On 11/18/26 19:52, Benjamin Cheng wrote:
> These two fences are never used, so just request no fences (lock only).
> 
> Signed-off-by: Benjamin Cheng <[email protected]>

Reviewed-by: Christian König <[email protected]>

> ---
>  drivers/gpu/drm/amd/amdgpu/amdgpu_userq_fence.c | 2 +-
>  drivers/gpu/drm/amd/amdgpu/mes_userqueue.c      | 2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_userq_fence.c 
> b/drivers/gpu/drm/amd/amdgpu/amdgpu_userq_fence.c
> index dd976a50e053..855e521eb201 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_userq_fence.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_userq_fence.c
> @@ -382,7 +382,7 @@ static int amdgpu_userq_fence_read_wptr(struct 
> amdgpu_device *adev,
>  
>       drm_exec_init(&exec, DRM_EXEC_IGNORE_DUPLICATES, 2);
>       drm_exec_until_all_locked(&exec) {
> -             ret = amdgpu_vm_lock_pd(queue->vm, &exec, 1);
> +             ret = amdgpu_vm_lock_pd(queue->vm, &exec, 0);
>               drm_exec_retry_on_contention(&exec);
>               if (unlikely(ret))
>                       goto lock_error;
> diff --git a/drivers/gpu/drm/amd/amdgpu/mes_userqueue.c 
> b/drivers/gpu/drm/amd/amdgpu/mes_userqueue.c
> index 7abb9d95ef59..8b07e21d2686 100644
> --- a/drivers/gpu/drm/amd/amdgpu/mes_userqueue.c
> +++ b/drivers/gpu/drm/amd/amdgpu/mes_userqueue.c
> @@ -48,7 +48,7 @@ mes_userq_create_wptr_mapping(struct amdgpu_device *adev,
>  
>       drm_exec_init(&exec, DRM_EXEC_IGNORE_DUPLICATES, 2);
>       drm_exec_until_all_locked(&exec) {
> -             ret = amdgpu_vm_lock_pd(vm, &exec, 1);
> +             ret = amdgpu_vm_lock_pd(vm, &exec, 0);
>               drm_exec_retry_on_contention(&exec);
>               if (unlikely(ret))
>                       goto fail_lock;

Reply via email to