drm/amd/amdkfd: Don't sent command to HWS on kfd reset
authorshaoyunl <shaoyun.liu@amd.com>
Wed, 3 Nov 2021 14:49:47 +0000 (10:49 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 5 Nov 2021 18:12:38 +0000 (14:12 -0400)
commitb8c20c74ab8c765b29fb253f6da4b0e59d9bdf3d
tree91d2a22ac58bc0b703f615a377b2ec17530efbf9
parente6ef9b396b6354b33373c62f0f47edf8702f12e5
drm/amd/amdkfd: Don't sent command to HWS on kfd reset

When kfd need to be reset, sent command to HWS might cause hang and get unnecessary timeout.
This change try not to touch HW in pre_reset and keep queues to be in the evicted state
when the reset is done, so they are not put back on the runlist. These queues will be destroied
on process termination.

Signed-off-by: shaoyunl <shaoyun.liu@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c
drivers/gpu/drm/amd/amdkfd/kfd_process.c