drm/amdkfd: Avoid hanging hardware in stop_cpsch
authorFelix Kuehling <Felix.Kuehling@amd.com>
Fri, 20 Dec 2019 07:46:55 +0000 (02:46 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 7 Jan 2020 16:55:04 +0000 (11:55 -0500)
commitc2a77fde10ec2cac33a23c8ac53d181bc2fe0cee
tree6e2dbeb8f3fcd22080543a48cb798246175aff82
parent09c34e8d7a631cf541c82f46ee73433c28b6ce0e
drm/amdkfd: Avoid hanging hardware in stop_cpsch

Don't use the HWS if it's known to be hanging. In a reset also
don't try to destroy the HIQ because that may hang on SRIOV if the
KIQ is unresponsive.

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_queue_manager.c
drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue.c
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager.c
drivers/gpu/drm/amd/amdkfd/kfd_priv.h
drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c