]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2c1c096de7d1786bcf04f566d0a2f722d54f7642
tree91d2a22ac58bc0b703f615a377b2ec17530efbf9
parenta423476ba65eac37a4fae1d50a9f5e6bf2b6d796
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