drm/amdgpu: correct reservation fence slots for userq per-vm BOs eviction
Subsystems (2)
PATCH 1/1 drm/amdgpu: correct reservation fence slots for userq per-vm BOs eviction
It fixes both the move overflow and the eviction fence add for evicting these per-vm BOs,
Signed-off-by Prike Liang <[email protected]>
--- drivers/gpu/drm/amd/amdgpu/amdgpu_userq.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_userq.c +2 -1
@@ -935,7 +935,8 @@ amdgpu_userq_bo_validate(struct amdgpu_device *adev, struct drm_exec *exec,spin_unlock (&vm->individual_lock); bo = bo_va->base.bo; - ret =drm_exec_prepare_obj (exec, &bo->tbo.base,2 ); + ret =drm_exec_prepare_obj (exec, &bo->tbo.base, +TTM_NUM_MOVE_FENCES +1 );if (unlikely (ret))return ret;
Signature · 1 line
2.34.1
Quoted 4 lines · Prike Liang
It fixes both the move overflow and the eviction fence add for evicting these per-vm BOs,
Signed-off-by Prike Liang <[email protected]>
Reviewed-by Christian König <[email protected]>
Quoted 18 lines
--- drivers/gpu/drm/amd/amdgpu/amdgpu_userq.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)drivers/gpu/drm/amd/amdgpu/amdgpu_userq.c +2
-1@@ -935,7 +935,8 @@ amdgpu_userq_bo_validate(struct amdgpu_device *adev, struct drm_exec *exec,spin_unlock (&vm->individual_lock); bo = bo_va->base.bo; - ret =drm_exec_prepare_obj (exec, &bo->tbo.base,2 ); + ret =drm_exec_prepare_obj (exec, &bo->tbo.base, +TTM_NUM_MOVE_FENCES +1 );if (unlikely (ret))return ret;