From: Likun Gao <[email protected]>

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: Likun Gao <[email protected]>
Reviewed-by: Hawking Zhang <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
---
 drivers/gpu/drm/amd/amdgpu/gmc_v12_1.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v12_1.c 
b/drivers/gpu/drm/amd/amdgpu/gmc_v12_1.c
index e4b12b15bc943..77746dd9faa15 100644
--- a/drivers/gpu/drm/amd/amdgpu/gmc_v12_1.c
+++ b/drivers/gpu/drm/amd/amdgpu/gmc_v12_1.c
@@ -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
         */
-- 
2.51.1

Reply via email to