]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/amdgpu: attach tlb fence to the PTs update
authorPrike Liang <Prike.Liang@amd.com>
Fri, 31 Oct 2025 09:02:51 +0000 (17:02 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 26 Nov 2025 17:33:05 +0000 (12:33 -0500)
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 f3854e04b708d73276c4488231a8bd66d30b4671)
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c

index b1aaef962ad993855bb6f50d21e8fb350cb9547d..676e24fb88647461596f17fedb55961a4882bff5 100644 (file)
@@ -1066,7 +1066,7 @@ amdgpu_vm_tlb_flush(struct amdgpu_vm_update_params *params,
        }
 
        /* Prepare a TLB flush fence to be attached to PTs */
-       if (!params->unlocked && vm->is_compute_context) {
+       if (!params->unlocked) {
                amdgpu_vm_tlb_fence_create(params->adev, vm, fence);
 
                /* Makes sure no PD/PT is freed before the flush */