From: Amaranath Somalapuram Date: Wed, 27 Nov 2024 16:06:45 +0000 (+0100) Subject: drm/amdgpu: fix IGT CI regression with eviction fence X-Git-Tag: v6.16-rc1~144^2~10^2~297 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f2234816a31d0ec85ab63899762ec962ab682704;p=thirdparty%2Fkernel%2Flinux.git 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 Signed-off-by: Amaranath Somalapuram Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_eviction_fence.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_eviction_fence.c index c22767a75348b..f7fb1674278c2 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))