]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/amdgpu: fix IGT CI regression with eviction fence
authorAmaranath Somalapuram <amaranath.somalapuram@amd.com>
Wed, 27 Nov 2024 16:06:45 +0000 (17:06 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 8 Apr 2025 20:48:18 +0000 (16:48 -0400)
This patch fixes one of the regressions in eviction fence code with
IGT tests.

Reviewed-by: Shashank Sharma <shashank.sharma@amd.com>
Signed-off-by: Amaranath Somalapuram <amaranath.somalapuram@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_eviction_fence.c

index c22767a75348b0ef8f0b261edf36622c3ce6e2a8..f7fb1674278c23fd2aba3b37df1e4f59674d971e 100644 (file)
@@ -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))