From: "Michel Dänzer" <michel-otUistvHUpPR7s880joybQ@public.gmane.org>
To: christian.koenig-5C7GfCeVMHo@public.gmane.org,
Huang Rui <ray.huang-5C7GfCeVMHo@public.gmane.org>
Cc: amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org
Subject: Re: [PATCH v5 5/5] drm/amdgpu: move PD/PT bos on LRU again
Date: Wed, 29 Aug 2018 11:00:41 +0200 [thread overview]
Message-ID: <d82b82f1-638b-2e1f-fcc9-9a95bc2cb8ae@daenzer.net> (raw)
In-Reply-To: <37d1ce1e-52e6-8c10-0dc4-8482f37c6803-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
On 2018-08-29 10:57 a.m., Christian König wrote:
> Am 29.08.2018 um 09:52 schrieb Michel Dänzer:
>> On 2018-08-28 7:03 p.m., Michel Dänzer wrote:
>>> On 2018-08-28 11:14 a.m., Michel Dänzer wrote:
>>>> On 2018-08-22 9:52 a.m., Huang Rui wrote:
>>>>> 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>
>>>>> Tested-by: Dieter Nützel <Dieter@nuetzel-hh.de>
>>>>> Acked-by: Chunming Zhou <david1.zhou@amd.com>
>>>>> Reviewed-by: Junwei Zhang <Jerry.Zhang@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 db1f28a..d195a3d 100644
>>>>> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
>>>>> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
>>>>> @@ -1107,7 +1107,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)
>>>>>
>>>> Since this change, I'm getting various badness when running piglit
>>>> using
>>>> radeonsi on Bonaire, see the attached dmesg excerpt.
>>>>
>>>> Reverting just this change on top of current amd-staging-drm-next
>>>> avoids
>>>> the problem.
>>>>
>>>> Looks like some list manipulation isn't sufficiently protected against
>>>> concurrent execution?
>>> KASAN pointed me to one issue:
>>> https://patchwork.freedesktop.org/patch/246212/
>>>
>>> However, this doesn't fully fix the problem.
>> Ray, any ideas yet for solving this? If not, let's revert this change
>> for now.
>
> I've gone over this multiple times now as well, but can't find anything
> obvious wrong either.
Thanks for looking into it.
> If we don't have any more ideas I would say revert it for now and try to
> debug it further.
Yep.
> BTW: Any idea how to force the issue?
Not specifically. It happens reliably and pretty quickly for me when
running the piglit gpu profile.
--
Earthling Michel Dänzer | http://www.amd.com
Libre software enthusiast | Mesa and X developer
_______________________________________________
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-29 9:00 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-08-22 7:52 [PATCH v5 0/5] drm/ttm,amdgpu: Introduce LRU bulk move functionality Huang Rui
2018-08-22 7:52 ` [PATCH v5 1/5] drm/ttm: add helper structures for bulk moves on lru list Huang Rui
2018-08-22 7:52 ` [PATCH v5 2/5] drm/ttm: revise ttm_bo_move_to_lru_tail to support bulk moves Huang Rui
[not found] ` <1534924375-5837-1-git-send-email-ray.huang-5C7GfCeVMHo@public.gmane.org>
2018-08-22 7:52 ` [PATCH v5 3/5] drm/ttm: add bulk move function on LRU Huang Rui
2018-08-22 7:52 ` [PATCH v5 4/5] drm/amdgpu: use bulk moves for efficient VM LRU handling (v5) Huang Rui
[not found] ` <1534924375-5837-5-git-send-email-ray.huang-5C7GfCeVMHo@public.gmane.org>
2018-08-22 8:07 ` Zhang, Jerry (Junwei)
[not found] ` <5B7D19B8.2060307-5C7GfCeVMHo@public.gmane.org>
2018-08-22 8:33 ` Huang Rui
2018-08-22 8:38 ` Huang Rui
2018-08-22 8:45 ` Zhang, Jerry (Junwei)
[not found] ` <5B7D22A7.4090306-5C7GfCeVMHo@public.gmane.org>
2018-08-22 8:49 ` Huang Rui
2018-08-22 8:51 ` Zhang, Jerry (Junwei)
2018-08-22 7:52 ` [PATCH v5 5/5] drm/amdgpu: move PD/PT bos on LRU again Huang Rui
[not found] ` <1534924375-5837-6-git-send-email-ray.huang-5C7GfCeVMHo@public.gmane.org>
2018-08-28 9:14 ` Michel Dänzer
[not found] ` <9528d248-f784-f5c8-28f2-12f694491cfe-otUistvHUpPR7s880joybQ@public.gmane.org>
2018-08-28 17:03 ` Michel Dänzer
[not found] ` <0e7db3c6-0feb-edba-fb7b-58e9d69f3859-otUistvHUpPR7s880joybQ@public.gmane.org>
2018-08-29 7:52 ` Michel Dänzer
[not found] ` <33a2fd23-0173-7faa-2927-bebf10929c58-otUistvHUpPR7s880joybQ@public.gmane.org>
2018-08-29 8:57 ` Christian König
[not found] ` <37d1ce1e-52e6-8c10-0dc4-8482f37c6803-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2018-08-29 9:00 ` Michel Dänzer [this message]
2018-08-29 14:51 ` Michel Dänzer
[not found] ` <b040c891-fcb8-b9bb-e7ac-beffdc130093-otUistvHUpPR7s880joybQ@public.gmane.org>
2018-08-29 15:00 ` Christian König
2018-08-22 8:24 ` [PATCH v5 0/5] drm/ttm,amdgpu: Introduce LRU bulk move functionality Christian König
[not found] ` <51ebd226-3290-5ea5-e272-0d566a119aca-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2018-08-22 8:43 ` Huang Rui
2018-09-02 8:12 ` [PATCH v5 0/5] drm/ttm, amdgpu: " Mike Lothian
[not found] ` <CAHbf0-GsMRx9uZp=FRMf947-BNocaCegiP8W3+w65tOhykOpvg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2018-09-02 15:11 ` [PATCH v5 0/5] drm/ttm,amdgpu: " Koenig, Christian
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=d82b82f1-638b-2e1f-fcc9-9a95bc2cb8ae@daenzer.net \
--to=michel-otuistvhuppr7s880joybq@public.gmane.org \
--cc=amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org \
--cc=christian.koenig-5C7GfCeVMHo@public.gmane.org \
--cc=ray.huang-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;
as well as URLs for NNTP newsgroup(s).