diff options
| author | Likun Gao <Likun.Gao@amd.com> | 2025-08-25 14:23:08 +0800 |
|---|---|---|
| committer | Alex Deucher <alexander.deucher@amd.com> | 2026-01-05 16:59:55 -0500 |
| commit | acf07acfae919305eb96085dc0b11ab0382ae3e5 (patch) | |
| tree | 7ef9ce1656d43fa2b99af9a79401d21a0d79eca4 /drivers | |
| parent | 7bd5d763b8e125bec578ab66ce5d90a4c83e1bff (diff) | |
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 <Likun.Gao@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/gmc_v12_1.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v12_1.c b/drivers/gpu/drm/amd/amdgpu/gmc_v12_1.c index bef28aedfb93..3c6b6c6f0cfc 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 |
