summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_userq.c
diff options
context:
space:
mode:
authorPrike Liang <Prike.Liang@amd.com>2026-05-26 16:42:14 +0800
committerAlex Deucher <alexander.deucher@amd.com>2026-06-03 13:49:29 -0400
commit113fa3ca614a865776f81759bb245dabf99859a7 (patch)
treee653a5e35ba3cc6d890303d49f77916a64abd048 /drivers/gpu/drm/amd/amdgpu/amdgpu_userq.c
parentc04b0430a9b9291ac2ad23a46cd6216c7ef8964f (diff)
downloadlinux-next-113fa3ca614a865776f81759bb245dabf99859a7.tar.gz
linux-next-113fa3ca614a865776f81759bb245dabf99859a7.zip
drm/amdgpu: reserve TTM move fences slot for rearming eviction fences
The eviction rearming does not cover possible TTM move fences. If TTM moves the BO and consumes move fence slots, the later eviction fence add can hit the dma_resv_add_fence() BUG. Signed-off-by: Prike Liang <Prike.Liang@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_userq.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_userq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_userq.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_userq.c
index 5438d5fde878..e07d936b8f8d 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_userq.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_userq.c
@@ -975,7 +975,7 @@ retry_lock:
if (unlikely(ret))
goto unlock_all;
- ret = amdgpu_vm_lock_individual(vm, &exec, 1);
+ ret = amdgpu_vm_lock_individual(vm, &exec, TTM_NUM_MOVE_FENCES + 1);
drm_exec_retry_on_contention(&exec);
if (unlikely(ret))
goto unlock_all;