]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/amdgpu: enable gpu tlb flush for gfxhub
authorLikun Gao <Likun.Gao@amd.com>
Tue, 24 Jun 2025 02:58:50 +0000 (10:58 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 16 Dec 2025 18:23:14 +0000 (13:23 -0500)
Enable gpu tlb flush for gfxhub without check gfx.is_poweron
as gfx is power on by default for gfx v12_1 ASIC.

Signed-off-by: Likun Gao <Likun.Gao@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gmc_v12_1.c

index e4b12b15bc943a680f26b27f17defa8f404cad8a..77746dd9faa152df2236a74466ab03b2a339c232 100644 (file)
@@ -307,9 +307,6 @@ static void gmc_v12_1_flush_vm_hub(struct amdgpu_device *adev, uint32_t vmid,
 static void gmc_v12_1_flush_gpu_tlb(struct amdgpu_device *adev, uint32_t vmid,
                                    uint32_t vmhub, uint32_t flush_type)
 {
-       if (AMDGPU_IS_GFXHUB(vmhub) && !adev->gfx.is_poweron)
-               return;
-
        /* This is necessary for SRIOV as well as for GFXOFF to function
         * properly under bare metal
         */