aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_eviction_fence.c
diff options
context:
space:
mode:
authorAmaranath Somalapuram <[email protected]>2024-11-27 16:06:45 +0000
committerAlex Deucher <[email protected]>2025-04-08 20:48:18 +0000
commitf2234816a31d0ec85ab63899762ec962ab682704 (patch)
treea63ba374e0f0612c9bbe9a6ac3deb9b49b4d16a7 /drivers/gpu/drm/amd/amdgpu/amdgpu_eviction_fence.c
parentdrm/amdgpu/gfx11: update mqd init for UQ (diff)
downloadkernel-f2234816a31d0ec85ab63899762ec962ab682704.tar.gz
kernel-f2234816a31d0ec85ab63899762ec962ab682704.zip
drm/amdgpu: fix IGT CI regression with eviction fence
This patch fixes one of the regressions in eviction fence code with IGT tests. Reviewed-by: Shashank Sharma <[email protected]> Signed-off-by: Amaranath Somalapuram <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_eviction_fence.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_eviction_fence.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_eviction_fence.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_eviction_fence.c
index c22767a75348..f7fb1674278c 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_eviction_fence.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_eviction_fence.c
@@ -136,6 +136,9 @@ amdgpu_eviction_fence_suspend_worker(struct work_struct *work)
if (!bo)
continue;
+ if (vm != bo_va->base.vm)
+ continue;
+
ret = drm_exec_lock_obj(&exec, &bo->tbo.base);
drm_exec_retry_on_contention(&exec);
if (unlikely(ret))