drm/amdgpu: Add tlb_cb for unlocked update
authorPhilip Yang <Philip.Yang@amd.com>
Mon, 28 Mar 2022 02:22:44 +0000 (22:22 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 1 Apr 2022 03:05:53 +0000 (23:05 -0400)
commit44e121fbf155edc93eceaae273038afbf90f52a7
tree7ba2de71fe2573920ed5e06400ae8d1aabd09a78
parent9563e1ec9292254a5feb3dd1b7fbef0bed512c8f
drm/amdgpu: Add tlb_cb for unlocked update

Flush TLB needs wait for GPU update fence done. MMU notify callback to
unmap range from GPUs uses unlocked GPU page table update, so add tlb_cb
to unlocked update fence to increase vm->tlb_seq.

Signed-off-by: Philip Yang <Philip.Yang@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_vm.c