Commit 44e121fb authored by Philip Yang's avatar Philip Yang Committed by Alex Deucher

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: default avatarPhilip Yang <Philip.Yang@amd.com>
Reviewed-by: default avatarChristian König <christian.koenig@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 9563e1ec
...@@ -927,7 +927,7 @@ int amdgpu_vm_bo_update_mapping(struct amdgpu_device *adev, ...@@ -927,7 +927,7 @@ int amdgpu_vm_bo_update_mapping(struct amdgpu_device *adev,
r = vm->update_funcs->commit(&params, fence); r = vm->update_funcs->commit(&params, fence);
if (!unlocked && (!(flags & AMDGPU_PTE_VALID) || params.table_freed)) { if (!(flags & AMDGPU_PTE_VALID) || params.table_freed) {
tlb_cb->vm = vm; tlb_cb->vm = vm;
if (!fence || !*fence || if (!fence || !*fence ||
dma_fence_add_callback(*fence, &tlb_cb->cb, dma_fence_add_callback(*fence, &tlb_cb->cb,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment