OSDN Git Service

drm/amdkfd: Improve HWS hang detection and handling
authorFelix Kuehling <Felix.Kuehling@amd.com>
Fri, 20 Dec 2019 07:07:54 +0000 (02:07 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 7 Jan 2020 16:54:56 +0000 (11:54 -0500)
commit09c34e8d7a631cf541c82f46ee73433c28b6ce0e
tree81d10d04199044f1c86abdc359fc8adee755d254
parent63e088acfc330c7031c4c07e8503337d1f36639a
drm/amdkfd: Improve HWS hang detection and handling

Move HWS hang detection into unmap_queues_cpsch to catch hangs in all
cases. If this happens during a reset, don't schedule another reset
because the reset already in progress is expected to take care of it.

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