OSDN Git Service

drm/amdkfd: fix kfd_suspend_all_processes
authorJonathan Kim <jonathan.kim@amd.com>
Fri, 24 Mar 2023 20:19:27 +0000 (16:19 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 9 Jun 2023 16:35:18 +0000 (12:35 -0400)
commitbb13d763f251c28b08d996671c5146a2113fc9e7
tree4c34b94c4dfdcd20f0be3bfd306dba2c76ec721e
parent01f648202c5390f4c366793b34c27cddad4ca8d7
drm/amdkfd: fix kfd_suspend_all_processes

Flush delayed restore work in kfd_suspend_all_queues instead of
cancelling. Cancelling the work before it runs results in the queues
becoming permanently disabled. Flushing the work ensures that the
queue suspend/resume state stays balanced.

Signed-off-by: Jonathan Kim <jonathan.kim@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_process.c