mirror of
https://github.com/torvalds/linux.git
synced 2026-09-22 12:44:03 +02:00
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:
parent
d785df5598
commit
4693ade087
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user