drm/amdkfd: Fix rescheduling of restore worker
authorFelix Kuehling <felix.kuehling@amd.com>
Fri, 19 Apr 2024 17:25:58 +0000 (13:25 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 24 Apr 2024 03:23:28 +0000 (23:23 -0400)
commite26305f369ed0e087a043c2cdc76f3d9a6efb3bd
tree9c0ea049cfc0e095890d27105fa59fc41de9344a
parentb0b13d532105e0e682d95214933bb8483a063184
drm/amdkfd: Fix rescheduling of restore worker

Handle the case that the restore worker was already scheduled by another
eviction while the restore was in progress.

Fixes: 9a1c1339abf9 ("drm/amdkfd: Run restore_workers on freezable WQs")
Signed-off-by: Felix Kuehling <felix.kuehling@amd.com>
Reviewed-by: Philip Yang <Philip.Yang@amd.com>
Tested-by: Yunxiang Li <Yunxiang.Li@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/amdkfd/kfd_process.c