It's now handled directly in the front end functions.

Signed-off-by: Alex Deucher <[email protected]>
---
 drivers/gpu/drm/amd/amdgpu/gmc_v12_0.c | 16 ---------------
 drivers/gpu/drm/amd/amdgpu/gmc_v12_1.c | 28 --------------------------
 2 files changed, 44 deletions(-)

diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v12_0.c 
b/drivers/gpu/drm/amd/amdgpu/gmc_v12_0.c
index 67eb1b595abe0..4bb8c1e4f335b 100644
--- a/drivers/gpu/drm/amd/amdgpu/gmc_v12_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/gmc_v12_0.c
@@ -356,22 +356,6 @@ static void gmc_v12_0_flush_gpu_tlb_pasid(struct 
amdgpu_device *adev,
        uint16_t queried;
        int vmid, i;
 
-       if (adev->enable_uni_mes && 
adev->mes.ring[AMDGPU_MES_SCHED_PIPE].sched.ready &&
-           (adev->mes.sched_version & AMDGPU_MES_VERSION_MASK) >= 0x84) {
-               struct mes_inv_tlbs_pasid_input input = {0};
-               input.pasid = pasid;
-               input.flush_type = flush_type;
-               input.hub_id = AMDGPU_GFXHUB(0);
-               /* MES will invalidate all gc_hub for the device from master */
-               adev->mes.funcs->invalidate_tlbs_pasid(&adev->mes, &input);
-               if (all_hub) {
-                       /* Only need to invalidate mm_hub now, gfx12 only 
support one mmhub */
-                       input.hub_id = AMDGPU_MMHUB0(0);
-                       adev->mes.funcs->invalidate_tlbs_pasid(&adev->mes, 
&input);
-               }
-               return;
-       }
-
        for (vmid = 1; vmid < 16; vmid++) {
                bool valid;
 
diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v12_1.c 
b/drivers/gpu/drm/amd/amdgpu/gmc_v12_1.c
index d6be7c092a22d..2c980dc02c262 100644
--- a/drivers/gpu/drm/amd/amdgpu/gmc_v12_1.c
+++ b/drivers/gpu/drm/amd/amdgpu/gmc_v12_1.c
@@ -411,34 +411,6 @@ static void gmc_v12_1_flush_gpu_tlb_pasid(struct 
amdgpu_device *adev,
        uint16_t queried;
        int vmid, i;
 
-       if (adev->enable_uni_mes && adev->mes.ring[0].sched.ready &&
-           (adev->mes.sched_version & AMDGPU_MES_VERSION_MASK) >= 0x6f) {
-               struct mes_inv_tlbs_pasid_input input = {0};
-               input.xcc_id = inst;
-               input.pasid = pasid;
-               input.flush_type = flush_type;
-
-               /* MES will invalidate hubs for the device(including slave xcc) 
from master, ignore request from slave */
-               if (!amdgpu_gfx_is_master_xcc(adev, inst))
-                       return;
-
-               input.hub_id = AMDGPU_GFXHUB(0);
-               adev->mes.funcs->invalidate_tlbs_pasid(&adev->mes, &input);
-
-               if (all_hub) {
-                       /* invalidate mm_hub */
-                       if (test_bit(AMDGPU_MMHUB0(0), adev->vmhubs_mask)) {
-                               input.hub_id = AMDGPU_MMHUB0(0);
-                               
adev->mes.funcs->invalidate_tlbs_pasid(&adev->mes, &input);
-                       }
-                       if (test_bit(AMDGPU_MMHUB1(0), adev->vmhubs_mask)) {
-                               input.hub_id = AMDGPU_MMHUB1(0);
-                               
adev->mes.funcs->invalidate_tlbs_pasid(&adev->mes, &input);
-                       }
-               }
-               return;
-       }
-
        for (vmid = 1; vmid < 16; vmid++) {
                bool valid;
 
-- 
2.55.0

Reply via email to