drm/amdgpu: Reserve fences for VM update
authorFelix Kuehling <Felix.Kuehling@amd.com>
Mon, 17 Jul 2023 19:28:52 +0000 (15:28 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 19 Oct 2023 22:26:52 +0000 (18:26 -0400)
commit207430b76a48b0b245bab08efe346148a5558df7
tree7db4cf13148b2e41d7c4aee163aa924a768b2967
parente6f8588733342c61948fde673a862b53c0d972bc
drm/amdgpu: Reserve fences for VM update

In amdgpu_dma_buf_move_notify reserve fences for the page table updates
in amdgpu_vm_clear_freed and amdgpu_vm_handle_moved. This fixes a BUG_ON
in dma_resv_add_fence when using SDMA for page table updates.

Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c