From: "Timur Kristóf" <timur.kristof@gmail.com>
To: "Deucher, Alexander" <Alexander.Deucher@amd.com>,
"Koenig, Christian" <Christian.Koenig@amd.com>,
"Chen, Jiqian" <Jiqian.Chen@amd.com>
Cc: "amd-gfx@lists.freedesktop.org" <amd-gfx@lists.freedesktop.org>,
Samuel Pitoiset <samuel.pitoiset@gmail.com>,
Tvrtko Ursulin <tvrtko.ursulin@igalia.com>,
"Huang, Ray" <Ray.Huang@amd.com>,
"Huang, Trigger" <Trigger.Huang@amd.com>
Subject: Re: [PATCH v2 1/1] drm/amdgpu/gfx9: Fix Ring and IB test fail after mode2
Date: Fri, 12 Jun 2026 09:48:45 +0200 [thread overview]
Message-ID: <2014755.b9uPGUboIS@timur-max> (raw)
In-Reply-To: <BL1PR12MB5849F914400E06407D2C9451E7182@BL1PR12MB5849.namprd12.prod.outlook.com>
Hi Jiqian,
> > Indeed I've seen similar issues on other GPUs, as I've been looking into
> > improving GPU recovery.
> >
> > Instead of forcing the HQD_ACTIVE to zero, I suggest to deactivate the HQD
> > before reset. We should introduce a gfx_v9_0_deactivate_hqd() function
> > similar to what gfx_v8_0_deactivate_hqd() is doing, and call that from
> > somewhere in gfx_v9_0_hw_fini() when disabling the compute queues.
>
> Make sense, that look like a more suitable place, I will try to move my
> sequences into gfx_v9_0_hw_fini() in next version.
Sounds good.
> > In fact, it looks like it already deactivates HQD, but only for the KIQ
> > and only when it isn't in reset or suspend. That looks wrong to me and
> > I think it should do that for all compute queues (in addition to the KIQ)
> > either unconditionally or before a mode2 reset.
>
> So, you think the if condition checks are not needed?
> if ((adev->flags & AMD_IS_APU) && amdgpu_in_reset(adev) &&
> amdgpu_asic_reset_method(adev) ==
AMD_RESET_METHOD_MODE2)
> Since I only reproduced and verified when mode2 on APU, I think keeping this
> check would be better.
Yes, I think the checks may not be needed or need to be adjusted.
Additionally, the same sequence needs to be repeated for every compute ring.
> > I don't have a Renoir APU yet but if you need help, I can try to see if I
> > can reproduce something like this on a Vega 10 dGPU.
>
> It seems Vega 10 dGPU uses Moed1 or BACO reset. I am not sure if it has the
> same issue. When you "see similar issues on other GPUs", are they all APUs?
> What's the gfx version? And what reset method they use. If they are not, I
> may find a same hardware as your to verify my changes. I tried other APU
> with gfx10, there is no this issue.
You are correct that dGPUs don't use mode2 reset. I saw a similar issue while
working on a patch series to improve GFX IP block soft reset on GFX8. I am
testing that on a Carrizo APU as well as Fiji and Polaris 10 dGPUs.
The problem I saw is very similar to yours: compute rings fail to resume after
the reset and are "stuck". I managed to solve that by making sure the HQD is
deactivated before the reset and ensuring that the MQD is cleaned up after the
reset.
Best regards,
Timur
next prev parent reply other threads:[~2026-06-12 7:48 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-11 5:57 [PATCH v2 1/1] drm/amdgpu/gfx9: Fix Ring and IB test fail after mode2 Jiqian Chen
2026-06-11 6:26 ` Huang Rui
2026-06-11 7:09 ` Lazar, Lijo
2026-06-11 7:42 ` Huang Rui
2026-06-11 20:26 ` Timur Kristóf
2026-06-12 6:56 ` Chen, Jiqian
2026-06-12 7:48 ` Timur Kristóf [this message]
2026-06-12 8:22 ` Chen, Jiqian
2026-06-12 11:19 ` Timur Kristóf
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=2014755.b9uPGUboIS@timur-max \
--to=timur.kristof@gmail.com \
--cc=Alexander.Deucher@amd.com \
--cc=Christian.Koenig@amd.com \
--cc=Jiqian.Chen@amd.com \
--cc=Ray.Huang@amd.com \
--cc=Trigger.Huang@amd.com \
--cc=amd-gfx@lists.freedesktop.org \
--cc=samuel.pitoiset@gmail.com \
--cc=tvrtko.ursulin@igalia.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.