From: Amber Lin <Amber.Lin@amd.com>
To: <amd-gfx@lists.freedesktop.org>, <shaoyun.liu@amd.com>,
<alexander.deucher@amd.com>
Cc: Amber Lin <Amber.Lin@amd.com>
Subject: [PATCH] drm/amdkfd: Fix reset event signal
Date: Tue, 9 Jun 2026 12:46:43 -0400 [thread overview]
Message-ID: <20260609164643.3815222-1-Amber.Lin@amd.com> (raw)
During the KFD/KCQ coordination rework, bad queues not requiring reset
were combined into the rework and generated wrong reset signals to the
process. Fix it by adding the reset check.
Signed-off-by: Amber Lin <Amber.Lin@amd.com>
---
drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c | 6 +++++-
1 file changed, 5 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 1d12901d4823..828a7ce6eeca 100644
--- a/drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c
+++ b/drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c
@@ -474,7 +474,11 @@ static int reset_queues_mes(struct device_queue_manager *dqm, struct queue *q)
goto fail;
dqm->detect_hang_count = num_hung;
- kfd_signal_reset_event(dqm->dev);
+ /* When MES doesn't detect any queue hang, no reset happens. Don't signal reset
+ * event.
+ */
+ if (dqm->detect_hang_count)
+ kfd_signal_reset_event(dqm->dev);
fail:
dqm->detect_hang_count = 0;
--
2.43.0
next reply other threads:[~2026-06-09 16:47 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-09 16:46 Amber Lin [this message]
2026-06-09 17:01 ` [PATCH] drm/amdkfd: Fix reset event signal Liu, Shaoyun
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=20260609164643.3815222-1-Amber.Lin@amd.com \
--to=amber.lin@amd.com \
--cc=alexander.deucher@amd.com \
--cc=amd-gfx@lists.freedesktop.org \
--cc=shaoyun.liu@amd.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox