]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/amdgpu: Flush TLB on all XCCs on GFX 12.1
authorMukul Joshi <mukul.joshi@amd.com>
Mon, 23 Jun 2025 21:15:32 +0000 (17:15 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 16 Dec 2025 18:27:39 +0000 (13:27 -0500)
Currently, the driver code is flushing TLB on XCC 0 only.
Fix it by flushing on all XCCs within the partition.

Signed-off-by: Mukul Joshi <mukul.joshi@amd.com>
Reviewed-by: Felix Kuehling <felix.kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gmc_v12_1.c

index 77746dd9faa152df2236a74466ab03b2a339c232..fa46b0089e8dd3b037355772a771b79ec0446728 100644 (file)
@@ -361,7 +361,7 @@ static void gmc_v12_1_flush_gpu_tlb_pasid(struct amdgpu_device *adev,
                                gmc_v12_1_flush_gpu_tlb(adev, vmid, i,
                                                        flush_type);
                } else {
-                       gmc_v12_1_flush_gpu_tlb(adev, vmid, AMDGPU_GFXHUB(0),
+                       gmc_v12_1_flush_gpu_tlb(adev, vmid, AMDGPU_GFXHUB(inst),
                                                flush_type);
                }
        }