drm/amdkfd: Fix reset event signal
Subsystems (3)
PATCH 1/1 drm/amdkfd: Fix reset event signal
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.
--- drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c +5 -1
@@ -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 ;
Signature · 1 line
2.43.0
AMD General
Looks good to me, you can add me as RB
Regards
Shaoyun.liu
Get Outlook for iOS<https://aka.ms/o0ukef>
________________________________
From: Lin, Amber <[email protected]>
Sent: Tuesday, 09 June 2026 12:46:43
To: [email protected] <[email protected]>; Liu, Shaoyun <[email protected]>; Deucher, Alexander <[email protected]>
Cc: Lin, Amber <[email protected]>
Subject: [PATCH] drm/amdkfd: Fix reset event signal
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.
--- drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c +5 -1
@@ -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