Skip to content

Commit f3854e0

Browse files
prliangpubalexdeucher
authored andcommitted
drm/amdgpu: attach tlb fence to the PTs update
Ensure the userq TLB flush is emitted only after the VM update finishes and the PT BOs have been annotated with bookkeeping fences. Suggested-by: Christian König <christian.koenig@amd.com> Signed-off-by: Prike Liang <Prike.Liang@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent 0897026 commit f3854e0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1069,7 +1069,7 @@ amdgpu_vm_tlb_flush(struct amdgpu_vm_update_params *params,
10691069
}
10701070

10711071
/* Prepare a TLB flush fence to be attached to PTs */
1072-
if (!params->unlocked && vm->is_compute_context) {
1072+
if (!params->unlocked) {
10731073
amdgpu_vm_tlb_fence_create(params->adev, vm, fence);
10741074

10751075
/* Makes sure no PD/PT is freed before the flush */

0 commit comments

Comments
 (0)