]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/amdgpu: skip gfxhub tlb flush if gfx is power off
authorLikun Gao <Likun.Gao@amd.com>
Mon, 25 Aug 2025 06:23:08 +0000 (14:23 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 5 Jan 2026 21:59:55 +0000 (16:59 -0500)
Skip for gfxhub tlb flush for gc v12_1 if gfx is not poweron.

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 bef28aedfb93b79babe32831ef1d3a57647c4d9b..3c6b6c6f0cfc65022a0773799b86e952d77bdb1d 100644 (file)
@@ -319,6 +319,10 @@ static void gmc_v12_1_flush_gpu_tlb(struct amdgpu_device *adev, uint32_t vmid,
 {
        u32 inst;
 
+       if (AMDGPU_IS_GFXHUB(vmhub) &&
+           !adev->gfx.is_poweron)
+               return;
+
        if (vmhub >= AMDGPU_MMHUB0(0))
                inst = 0;
        else