From: Likun Gao Date: Mon, 25 Aug 2025 06:23:08 +0000 (+0800) Subject: drm/amdgpu: skip gfxhub tlb flush if gfx is power off X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=acf07acfae919305eb96085dc0b11ab0382ae3e5;p=thirdparty%2Fkernel%2Flinux.git drm/amdgpu: skip gfxhub tlb flush if gfx is power off Skip for gfxhub tlb flush for gc v12_1 if gfx is not poweron. Signed-off-by: Likun Gao Reviewed-by: Hawking Zhang Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v12_1.c b/drivers/gpu/drm/amd/amdgpu/gmc_v12_1.c index bef28aedfb93b..3c6b6c6f0cfc6 100644 --- a/drivers/gpu/drm/amd/amdgpu/gmc_v12_1.c +++ b/drivers/gpu/drm/amd/amdgpu/gmc_v12_1.c @@ -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