On 11/18/26 19:52, Benjamin Cheng wrote:
> This is about to update the VM so we need to use the macro previously
> introduced to make sure there are enough fence slots.
The amdgpu_dma_buf_move_notify() path should use the unlocked approach I'm
currently working on the KFD team and Timur.
So that here is unnecessary to begin with.
Regards,
Christian.
>
> Fixes: d8a3f0a0348d ("drm/amdgpu: implement TLB flush fence")
> Fixes: 897ee11ec020 ("drm/amdgpu: create multiple clear/move ttm entities")
> Signed-off-by: Benjamin Cheng <[email protected]>
> ---
> drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c
> b/drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c
> index 7b85152d6872..d3a7cf9c274c 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c
> @@ -562,7 +562,7 @@ amdgpu_dma_buf_move_notify(struct dma_buf_attachment
> *attach)
> }
>
> /* Reserve fences for two SDMA page table updates */
> - r = dma_resv_reserve_fences(resv, 2);
> + r = dma_resv_reserve_fences(resv, AMDGPU_VM_UPDATE_FENCES);
> if (!r)
> r = amdgpu_vm_clear_freed(adev, vm, NULL);
>