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.

Signed-off-by: Amber Lin <Amber.Lin@amd.com>
Reviewed-by: Shaoyun Liu <shaoyun.liu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
Amber Lin 2026-06-09 12:33:40 -04:00 committed by Alex Deucher
parent d785df5598
commit 4693ade087

View File

@ -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;