mirror of
https://github.com/torvalds/linux.git
synced 2026-07-29 02:31:27 +02:00
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>
This commit is contained in:
parent
7bd5d763b8
commit
acf07acfae
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user