mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-05 03:59:04 -04:00
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>
This commit is contained in:
committed by
Alex Deucher
parent
9563e1ec92
commit
44e121fbf1
@@ -927,7 +927,7 @@ int amdgpu_vm_bo_update_mapping(struct amdgpu_device *adev,
|
||||
|
||||
r = vm->update_funcs->commit(¶ms, fence);
|
||||
|
||||
if (!unlocked && (!(flags & AMDGPU_PTE_VALID) || params.table_freed)) {
|
||||
if (!(flags & AMDGPU_PTE_VALID) || params.table_freed) {
|
||||
tlb_cb->vm = vm;
|
||||
if (!fence || !*fence ||
|
||||
dma_fence_add_callback(*fence, &tlb_cb->cb,
|
||||
|
||||
Reference in New Issue
Block a user