From: "Christian König" <christian.koenig-5C7GfCeVMHo@public.gmane.org>
To: "Liu, Monk" <Monk.Liu-5C7GfCeVMHo@public.gmane.org>,
Alex Deucher
<alexdeucher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Cc: "Deng, Emily" <Emily.Deng-5C7GfCeVMHo@public.gmane.org>,
amd-gfx list
<amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org>
Subject: Re: [PATCH] drm/amdgpu: fix a kcq hang issue for SRIOV
Date: Wed, 28 Mar 2018 09:36:51 +0200 [thread overview]
Message-ID: <90fa737f-1b91-6ace-aa13-edb7ff384667@amd.com> (raw)
In-Reply-To: <BLUPR12MB04491F1B2A1BBAFCA738900E84A30-7LeqcoF/hwpTIQvHjXdJlwdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
Am 28.03.2018 um 06:36 schrieb Liu, Monk:
> The SDMA is not directly connected to the GFXHUB, so even if the SDMA would provide a single command for this the write/wait would still be executed as two operations.
>
> I don't understand this point, more details may be ??
>
> For SDMA from v148 ucode, it'll ignore PREEMPT command when it is doing SRBM_WRITE and POLL_MEM_REG on registers, so as long as SDMA is dong vm invalidate the world switch will not
> Interrupt it
Ah! Good to know, I was assuming that the GFX block might actually
switch anyway in this case.
Christian.
>
> /Monk
>
> -----Original Message-----
> From: Koenig, Christian
> Sent: 2018年3月28日 0:30
> To: Alex Deucher <alexdeucher@gmail.com>
> Cc: Deng, Emily <Emily.Deng@amd.com>; Liu, Monk <Monk.Liu@amd.com>; amd-gfx list <amd-gfx@lists.freedesktop.org>
> Subject: Re: [PATCH] drm/amdgpu: fix a kcq hang issue for SRIOV
>
> Am 27.03.2018 um 17:52 schrieb Alex Deucher:
>> [SNIP]
>>>> 2. add the new callback implementation to gfx9 and gfx8 (I think
>>>> gfx8 will need this as well since we support sr-iov there too)
>>> gfx8 doesn't have the hardware bug which seems to make this
>>> necessary, not does it have the same VMHUB design as gfx9.
>> Oh, right, in this case it's the req/ack engines which were new for
>> soc15. We may want the same fix for sdma4 though.
> And exactly that is one of the reasons why this workaround doesn't work correctly.
>
> The SDMA is not directly connected to the GFXHUB, so even if the SDMA would provide a single command for this the write/wait would still be executed as two operations.
>
> In other words we can again run into the problem and the same thing applies for CPU based updates.
>
> The only real workaround would be to write the request, read the register back and if the write didn't succeeded write it again.
>
> But seriously remember that this issue is not limited to the VMHUB registers. Do you want to write and read back every register to make sure the write succeeded?
>
> Regards,
> Christian.
_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
next prev parent reply other threads:[~2018-03-28 7:36 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-03-27 5:58 [PATCH] drm/amdgpu: fix a kcq hang issue for SRIOV Emily Deng
[not found] ` <1522130286-25401-1-git-send-email-Emily.Deng-5C7GfCeVMHo@public.gmane.org>
2018-03-27 7:48 ` Christian König
[not found] ` <04acc6d7-680b-861d-2a3e-e4206b72345c-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2018-03-27 8:23 ` Deng, Emily
[not found] ` <CY4PR12MB1125AE6F5482FD386603A1188FAC0-rpdhrqHFk07v2MZdTKcfDgdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
2018-03-27 8:26 ` Christian König
[not found] ` <221c0352-0e9d-5f11-24a5-49842f1a3fa4-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2018-03-27 8:31 ` Deng, Emily
2018-03-27 15:15 ` Alex Deucher
2018-03-27 15:26 ` Alex Deucher
2018-03-27 15:37 ` Alex Deucher
[not found] ` <CADnq5_MaXurcEuMw2d_jYnb2_4iL9xLy7Z4VYgW6pr9Kcm7nKg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2018-03-27 15:43 ` Christian König
[not found] ` <183c370b-bcf5-fd80-429e-8418f2b1a105-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2018-03-27 15:52 ` Alex Deucher
[not found] ` <CADnq5_MPtDiJ3vx-yqWfa65xb3etO-e1xRuiM9mJR1bON=5Ecw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2018-03-27 16:30 ` Christian König
[not found] ` <97d802df-4563-7a6a-eae4-d14313762015-5C7GfCeVMHo@public.gmane.org>
2018-03-27 16:56 ` Alex Deucher
[not found] ` <CADnq5_OXS2tA4VEJ3Jo-2py-2gOCFphODDUeUt_wR=uZ51_XYA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2018-03-27 17:18 ` Christian König
[not found] ` <5c2b0241-4ddd-522e-3d94-9a29ba04ab2e-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2018-03-28 4:22 ` Liu, Monk
2018-03-28 4:36 ` Liu, Monk
[not found] ` <BLUPR12MB04491F1B2A1BBAFCA738900E84A30-7LeqcoF/hwpTIQvHjXdJlwdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
2018-03-28 7:36 ` Christian König [this message]
-- strict thread matches above, loose matches on Subject: below --
2018-03-20 6:29 Emily Deng
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=90fa737f-1b91-6ace-aa13-edb7ff384667@amd.com \
--to=christian.koenig-5c7gfcevmho@public.gmane.org \
--cc=Emily.Deng-5C7GfCeVMHo@public.gmane.org \
--cc=Monk.Liu-5C7GfCeVMHo@public.gmane.org \
--cc=alexdeucher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
--cc=amd-gfx-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