]> 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)
commit9ed447e8f696441ecafc9c9e8f3f5daf0a77ffdb
tree91d2a22ac58bc0b703f615a377b2ec17530efbf9
parent2c0f480735d06398de4749f3fae20986d8541a8c
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