From: "Zhang, Jerry (Junwei)" <Jerry.Zhang-5C7GfCeVMHo@public.gmane.org>
To: zhoucm1 <zhoucm1-5C7GfCeVMHo@public.gmane.org>,
Chunming Zhou <david1.zhou-5C7GfCeVMHo@public.gmane.org>,
dri-devel-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org,
amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org
Cc: ckoenig.leichtzumerken-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org,
Kai.Guo-5C7GfCeVMHo@public.gmane.org
Subject: Re: [PATCH 00/13] *** per vm lru ***
Date: Mon, 14 May 2018 13:54:46 +0800 [thread overview]
Message-ID: <5AF924A6.2070007@amd.com> (raw)
In-Reply-To: <8c18f05c-54bc-47c8-8d63-8610420238cc-5C7GfCeVMHo@public.gmane.org>
On 05/10/2018 04:45 PM, zhoucm1 wrote:
>
>
> On 2018年05月10日 13:07, Zhang, Jerry (Junwei) wrote:
>> On 05/09/2018 02:45 PM, Chunming Zhou wrote:
>>> move implemenation from ttm to amdgpu driver. (suggested by Christian)
>>> per-vm-lru is because of per-vm-bo, which has no chance to refresh lru, the
>>> nagtive effect is game performance isn't stable.
>>> so all per-vm-bo should have a default order, every per-vm-bo has its
>>> priority, relying on its creation index.
>>> When doing CS, if any normal bo is used, then all per-vm-bo should be used,
>>> so per-vm-bo prioirty >= normal bo priority.
>>>
>>> Above is per-vm-lru starting point.
>>
>> How do you think that we create the per vm bo as priority 1 and kernel bo as
>> priority 2 accordingly?
> Yeah, then how to fix per-vm-bo order? I think we need set priority for every
> per-vm-bo. Because of lacking bo list, the per-vm-bo lru can only depend on
> priority.
Mmm, maybe use RB tree for BOs in priority 1 lru.
but it actually works for per dev rather than per vm.
Seems we need per vm lru as the patches for per vm bo management.
Jerry
>
> Regards,
> David Zhou
>
>> Will that help to make some improvement?
>>
>> Jerry
>>
>>>
>>>
>>>
>>> Chunming Zhou (13):
>>> ttm: abstruct evictable bo
>>> ttm: allow driver has own lru policy
>>> drm/amdgpu: add lru backend for amdgpu driver
>>> drm/amdgpu: init/fini vm lru
>>> drm/amdgpu: pass vm lru to buffer object
>>> drm/amdgpu: add amdgpu lru implementation
>>> drm/ttm: export ttm_bo_ref_bug
>>> drm/amdgpu: use RB tree instead of link list
>>> drm/amdgpu: add bo index counter
>>> drm/amdgpu: bulk move per vm bo
>>> ttm: export ttm_transfered_destroy
>>> drm/amdgpu: transferred bo doesn't use vm lru
>>> drm/amdgpu: free vm lru when vm fini
>>>
>>> drivers/gpu/drm/amd/amdgpu/amdgpu.h | 5 +-
>>> drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 1 +
>>> drivers/gpu/drm/amd/amdgpu/amdgpu_fb.c | 2 +-
>>> drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | 14 +-
>>> drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | 9 +-
>>> drivers/gpu/drm/amd/amdgpu/amdgpu_object.h | 4 +
>>> drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c | 7 +
>>> drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 242 ++++++++++++++++++++++++++++-
>>> drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h | 25 +++
>>> drivers/gpu/drm/ttm/ttm_bo.c | 92 +++++++----
>>> drivers/gpu/drm/ttm/ttm_bo_util.c | 3 +-
>>> include/drm/ttm/ttm_bo_driver.h | 52 +++++++
>>> 12 files changed, 419 insertions(+), 37 deletions(-)
>>>
>> _______________________________________________
>> amd-gfx mailing list
>> amd-gfx@lists.freedesktop.org
>> https://lists.freedesktop.org/mailman/listinfo/amd-gfx
>
_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
prev parent reply other threads:[~2018-05-14 5:54 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-05-09 6:45 [PATCH 00/13] *** per vm lru *** Chunming Zhou
2018-05-09 6:45 ` [PATCH 03/13] drm/amdgpu: add lru backend for amdgpu driver Chunming Zhou
2018-05-09 6:45 ` [PATCH 05/13] drm/amdgpu: pass vm lru to buffer object Chunming Zhou
2018-05-09 6:45 ` [PATCH 06/13] drm/amdgpu: add amdgpu lru implementation Chunming Zhou
2018-05-09 6:45 ` [PATCH 07/13] drm/ttm: export ttm_bo_ref_bug Chunming Zhou
[not found] ` <20180509064543.15937-1-david1.zhou-5C7GfCeVMHo@public.gmane.org>
2018-05-09 6:45 ` [PATCH 01/13] ttm: abstruct evictable bo Chunming Zhou
2018-05-09 8:34 ` Lucas Stach
2018-05-09 9:50 ` Daniel Vetter
2018-05-09 10:06 ` zhoucm1
2018-05-09 16:04 ` Alex Deucher
2018-05-09 6:45 ` [PATCH 02/13] ttm: allow driver has own lru policy Chunming Zhou
2018-05-09 6:45 ` [PATCH 04/13] drm/amdgpu: init/fini vm lru Chunming Zhou
2018-05-09 6:45 ` [PATCH 08/13] drm/amdgpu: use RB tree instead of link list Chunming Zhou
2018-05-09 6:45 ` [PATCH 09/13] drm/amdgpu: add bo index counter Chunming Zhou
2018-05-09 6:45 ` [PATCH 10/13] drm/amdgpu: bulk move per vm bo Chunming Zhou
2018-05-09 6:45 ` [PATCH 12/13] drm/amdgpu: transferred bo doesn't use vm lru Chunming Zhou
2018-05-09 6:45 ` [PATCH 13/13] drm/amdgpu: free vm lru when vm fini Chunming Zhou
2018-05-09 6:45 ` [PATCH 11/13] ttm: export ttm_transfered_destroy Chunming Zhou
2018-05-10 5:07 ` [PATCH 00/13] *** per vm lru *** Zhang, Jerry (Junwei)
[not found] ` <5AF3D38F.1040704-5C7GfCeVMHo@public.gmane.org>
2018-05-10 8:45 ` zhoucm1
2018-05-14 5:44 ` Zhang, Jerry (Junwei)
[not found] ` <8c18f05c-54bc-47c8-8d63-8610420238cc-5C7GfCeVMHo@public.gmane.org>
2018-05-14 5:54 ` Zhang, Jerry (Junwei) [this message]
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=5AF924A6.2070007@amd.com \
--to=jerry.zhang-5c7gfcevmho@public.gmane.org \
--cc=Kai.Guo-5C7GfCeVMHo@public.gmane.org \
--cc=amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org \
--cc=ckoenig.leichtzumerken-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
--cc=david1.zhou-5C7GfCeVMHo@public.gmane.org \
--cc=dri-devel-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org \
--cc=zhoucm1-5C7GfCeVMHo@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