Skip to contentSkip to conversation

drm/amd/amdgpu: Fix the mes version that support inv_tlbs

PATCH In review Shaoyun Liu 2 participants 3 messages Sep 25, 2025 – Sep 26, 2025

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/amd/amdgpu: Fix the mes version that support inv_tlbs

MES version 0x83 is not stable to use the inv_tlbs API. Defer it to 0x84 vertsion.

---
 drivers/gpu/drm/amd/amdgpu/gmc_v12_0.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/gmc_v12_0.c +1 -1
index 404cc8c2ff2c..f4a19357ccbc 100644
@@ -337,7 +337,7 @@ static void gmc_v12_0_flush_gpu_tlb_pasid(struct amdgpu_device *adev,
 	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) >= 0x83) {
+	    (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;
Signature · 1 line
2.34.1
#1 lore raw

[AMD Official Use Only - AMD Internal Distribution Only]

ping

-----Original Message-----
From: Liu, Shaoyun <[email protected]>
Sent: Wednesday, September 24, 2025 9:44 PM
To: [email protected]
Cc: Liu, Shaoyun <[email protected]>
Subject: [PATCH] drm/amd/amdgpu: Fix the mes version that support inv_tlbs

MES version 0x83 is not stable to use the inv_tlbs API. Defer it to 0x84 vertsion.

---
 drivers/gpu/drm/amd/amdgpu/gmc_v12_0.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/gmc_v12_0.c +1 -1
index 404cc8c2ff2c..f4a19357ccbc 100644
@@ -337,7 +337,7 @@ static void gmc_v12_0_flush_gpu_tlb_pasid(struct amdgpu_device *adev,
        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) >= 0x83) {
+           (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;

--
2.34.1

Reviewed-by on v1 1/1
#2 lore raw
In reply to Shaoyun Liu

[AMD Official Use Only - AMD Internal Distribution Only]

________________________________
From: amd-gfx <[email protected]> on behalf of Shaoyun Liu <[email protected]>
Sent: Wednesday, September 24, 2025 9:43 PM
To: [email protected] <[email protected]>
Cc: Liu, Shaoyun <[email protected]>
Subject: [PATCH] drm/amd/amdgpu: Fix the mes version that support inv_tlbs

MES version 0x83 is not stable to use the inv_tlbs API. Defer it to 0x84 vertsion.

---
 drivers/gpu/drm/amd/amdgpu/gmc_v12_0.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/gmc_v12_0.c +1 -1
index 404cc8c2ff2c..f4a19357ccbc 100644
@@ -337,7 +337,7 @@ static void gmc_v12_0_flush_gpu_tlb_pasid(struct amdgpu_device *adev,
         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) >= 0x83) {
+           (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;

--
2.34.1