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>
Fri, 26 Apr 2024 21:22:38 +0000 (17:22 -0400)
commitf989ecccdf6bfe985b89d713db1b6c46ae582b64
tree2654a02731302c2e15147c2e2766f939514a126c
parente76691f45a60bf71a3210c4fb2abd492b26bd4a6
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>
drivers/gpu/drm/amd/amdkfd/kfd_process.c