Commit bf2951e9 authored by Likun Gao's avatar Likun Gao Committed by Alex Deucher
Browse files

drm/amdgpu: enable gpu tlb flush for gfxhub



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: default avatarLikun Gao <Likun.Gao@amd.com>
Reviewed-by: default avatarHawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 2db09364
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -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
	 */