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 v2 5/5] drm/amdgpu: move PD/PT bos on LRU again
Date: Fri, 10 Aug 2018 19:55:59 +0800 [thread overview]
Message-ID: <1533902159-14232-6-git-send-email-ray.huang@amd.com> (raw)
In-Reply-To: <1533902159-14232-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>
---
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 81fb1ac..9f44514 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
@@ -1127,7 +1127,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
next prev parent reply other threads:[~2018-08-10 11:55 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-08-10 11:55 [PATCH v2 0/5] drm/ttm,amdgpu: Introduce LRU bulk move functionality Huang Rui
2018-08-10 11:55 ` [PATCH v2 1/5] drm/ttm: add helper structures for bulk moves on lru list Huang Rui
2018-08-10 11:55 ` [PATCH v2 2/5] drm/ttm: revise ttm_bo_move_to_lru_tail to support bulk moves Huang Rui
[not found] ` <1533902159-14232-1-git-send-email-ray.huang-5C7GfCeVMHo@public.gmane.org>
2018-08-10 11:55 ` [PATCH v2 3/5] drm/ttm: add bulk move function on LRU Huang Rui
2018-08-10 11:55 ` [PATCH v2 4/5] drm/amdgpu: use bulk moves for efficient VM LRU handling (v2) Huang Rui
[not found] ` <1533902159-14232-5-git-send-email-ray.huang-5C7GfCeVMHo@public.gmane.org>
2018-08-10 14:18 ` Christian König
[not found] ` <1ebf27de-2230-827a-e96c-4ba0dcce14ed-5C7GfCeVMHo@public.gmane.org>
2018-08-11 4:41 ` Huang Rui
2018-08-10 11:55 ` Huang Rui [this message]
2018-08-12 21:12 ` [PATCH v2 0/5] drm/ttm, amdgpu: Introduce LRU bulk move functionality Mike Lothian
[not found] ` <CAHbf0-F-0y-nss2Dd8SGBLhbiO49H4EA9wEgFBTL0ZjgnmvjOQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2018-08-13 6:52 ` 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=1533902159-14232-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).