dri-devel.lists.freedesktop.org archive mirror
 help / color / mirror / Atom feed
From: Huang Rui <ray.huang-5C7GfCeVMHo@public.gmane.org>
To: dri-devel-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org,
	amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org
Cc: Huang Rui <ray.huang-5C7GfCeVMHo@public.gmane.org>
Subject: [PATCH v3 5/5] drm/amdgpu: move PD/PT bos on LRU again
Date: Mon, 13 Aug 2018 17:58:51 +0800	[thread overview]
Message-ID: <1534154331-11810-6-git-send-email-ray.huang@amd.com> (raw)
In-Reply-To: <1534154331-11810-1-git-send-email-ray.huang-5C7GfCeVMHo@public.gmane.org>

The new bulk moving functionality is ready, the overhead of moving PD/PT bos to
LRU is fixed. So move them on LRU again.

Signed-off-by: Huang Rui <ray.huang@amd.com>
Tested-by: Mike Lothian <mike@fireburn.co.uk>
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
index ee1af53..872ae5b 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
@@ -1125,7 +1125,7 @@ int amdgpu_vm_update_directories(struct amdgpu_device *adev,
 					   struct amdgpu_vm_bo_base,
 					   vm_status);
 		bo_base->moved = false;
-		list_del_init(&bo_base->vm_status);
+		list_move(&bo_base->vm_status, &vm->idle);
 
 		bo = bo_base->bo->parent;
 		if (!bo)
-- 
2.7.4

_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

  parent reply	other threads:[~2018-08-13  9:58 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-08-13  9:58 [PATCH v3 0/5] drm/ttm,amdgpu: Introduce LRU bulk move functionality Huang Rui
     [not found] ` <1534154331-11810-1-git-send-email-ray.huang-5C7GfCeVMHo@public.gmane.org>
2018-08-13  9:58   ` [PATCH v3 1/5] drm/ttm: add helper structures for bulk moves on lru list Huang Rui
     [not found]     ` <1534154331-11810-2-git-send-email-ray.huang-5C7GfCeVMHo@public.gmane.org>
2018-08-13 10:16       ` Christian König
     [not found]         ` <d0ebdd92-73a7-7959-4df0-391f3dd27526-5C7GfCeVMHo@public.gmane.org>
2018-08-14  2:02           ` zhoucm1
     [not found]             ` <b993176a-cf49-d3b7-9be1-feb7dc95456f-5C7GfCeVMHo@public.gmane.org>
2018-08-14  2:25               ` Huang Rui
2018-08-14  2:22           ` Zhang, Jerry (Junwei)
     [not found]             ` <5B723CEA.1070903-5C7GfCeVMHo@public.gmane.org>
2018-08-14  2:49               ` Huang Rui
2018-08-13  9:58   ` [PATCH v3 2/5] drm/ttm: revise ttm_bo_move_to_lru_tail to support bulk moves Huang Rui
2018-08-13  9:58   ` [PATCH v3 4/5] drm/amdgpu: use bulk moves for efficient VM LRU handling (v3) Huang Rui
2018-08-14  2:26     ` Zhang, Jerry (Junwei)
     [not found]       ` <5B723DE3.50005-5C7GfCeVMHo@public.gmane.org>
2018-08-14  3:05         ` Huang Rui
2018-08-14  6:45           ` Christian König
     [not found]             ` <4f7e6d61-0b4a-5c12-38a9-ea905b9f6234-5C7GfCeVMHo@public.gmane.org>
2018-08-14  7:24               ` Huang Rui
2018-08-14  7:35                 ` Christian König
     [not found]                   ` <e1635b5e-e5a1-c4cf-005c-1920c6fc86e0-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2018-08-14  8:17                     ` Huang Rui
2018-08-13  9:58   ` Huang Rui [this message]
2018-08-13  9:58 ` [PATCH v3 3/5] drm/ttm: add bulk move function on LRU Huang Rui
2018-08-16  0:41 ` [PATCH v3 0/5] drm/ttm,amdgpu: Introduce LRU bulk move functionality Dieter Nützel
     [not found]   ` <70f3ba4a773f5ee3d1c46bc63991702a-0hun7QTegEsDD4udEopG9Q@public.gmane.org>
2018-08-17 10:06     ` Huang Rui

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1534154331-11810-6-git-send-email-ray.huang@amd.com \
    --to=ray.huang-5c7gfcevmho@public.gmane.org \
    --cc=amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org \
    --cc=dri-devel-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).