]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf671f202d735094b9c30b6eda7cc2a162ae08eac
tree6e2dbeb8f3fcd22080543a48cb798246175aff82
parent98e1b245b6ad3757670dafec884324ee84e3c936
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