Skip to content

Commit b4a7f4e

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> (cherry picked from commit f3854e0) Cc: stable@vger.kernel.org
1 parent 8ea9023 commit b4a7f4e

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
@@ -1066,7 +1066,7 @@ amdgpu_vm_tlb_flush(struct amdgpu_vm_update_params *params,
10661066
}
10671067

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

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

0 commit comments

Comments
 (0)