From: "Lazar, Lijo" <lijo.lazar@amd.com>
To: Ahmad Rehman <Ahmad.Rehman@amd.com>, amd-gfx@lists.freedesktop.org
Subject: Re: [PATCH] amdkfd: Do nto wait for queue op response during reset
Date: Tue, 4 Nov 2025 23:36:49 +0530 [thread overview]
Message-ID: <65bceb8b-3088-4e72-8606-5bdd02f02061@amd.com> (raw)
In-Reply-To: <20251104173325.1381513-1-Ahmad.Rehman@amd.com>
On 11/4/2025 11:03 PM, Ahmad Rehman wrote:
> This patch adds the condition to not wait for
> the queue response for unmap, if the gpu is in reset.
>
> Signed-off-by: Ahmad Rehman <Ahmad.Rehman@amd.com>
Reviewed-by: Lijo Lazar <lijo.lazar@amd.com>
Thanks,
Lijo
> ---
> drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c b/drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c
> index 4fbe865ff279..0904c36192c7 100644
> --- a/drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c
> +++ b/drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c
> @@ -2094,7 +2094,8 @@ int amdkfd_fence_wait_timeout(struct device_queue_manager *dqm,
>
> while (*fence_addr != fence_value) {
> /* Fatal err detected, this response won't come */
> - if (amdgpu_amdkfd_is_fed(dqm->dev->adev))
> + if (amdgpu_amdkfd_is_fed(dqm->dev->adev) ||
> + amdgpu_in_reset(dqm->dev->adev))
> return -EIO;
>
> if (time_after(jiffies, end_jiffies)) {
next prev parent reply other threads:[~2025-11-04 18:07 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-11-04 17:33 [PATCH] amdkfd: Do nto wait for queue op response during reset Ahmad Rehman
2025-11-04 18:06 ` Lazar, Lijo [this message]
2025-11-05 9:36 ` Michel Dänzer
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=65bceb8b-3088-4e72-8606-5bdd02f02061@amd.com \
--to=lijo.lazar@amd.com \
--cc=Ahmad.Rehman@amd.com \
--cc=amd-gfx@lists.freedesktop.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