drm/amdgpu: lock the eviction fence for wq signals it
authorPrike Liang <Prike.Liang@amd.com>
Wed, 30 Apr 2025 02:34:14 +0000 (10:34 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 22 May 2025 16:00:44 +0000 (12:00 -0400)
commitb2c11e27080d8556664c20c30ca3527ffa99bec4
tree494cd0d19a38f66d83c97e84b050cea74f0d10a5
parenteed6a6b2264078806163424b7cb70a3b47cb8e97
drm/amdgpu: lock the eviction fence for wq signals it

Lock and refer to the eviction fence before the eviction fence
schedules work queue tries to signal it.

Suggested-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Prike Liang <Prike.Liang@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Arvind Yadav <Arvind.Yadav@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_eviction_fence.c