Skip to contentSkip to conversation

drm/amdgpu/mes12: enable mes pipe wptr polling

PATCH In review Jack Xiao 1 participant 2 messages Jan 17, 2025

Subsystems (2)
lore
Share & tools
lore

Jack Xiao

author
#0 lore raw

PATCH 1/1 drm/amdgpu/mes12: enable mes pipe wptr polling

Enable mes pipe wptr polling for gfxoff might result in mes pipe wptr missing.

---
 drivers/gpu/drm/amd/amdgpu/mes_v12_0.c | 3 +++
 1 file changed, 3 insertions(+)
drivers/gpu/drm/amd/amdgpu/mes_v12_0.c +3 -0
index 185f4b55dcca..e516e4598017 100644
@@ -1256,6 +1256,9 @@ static int mes_v12_0_queue_init(struct amdgpu_device *adev,
 	else if (pipe == AMDGPU_MES_KIQ_PIPE && adev->enable_mes_kiq)
 		adev->mes.kiq_version = RREG32_SOC15(GC, 0, regCP_MES_GP3_LO);
 
+	/* enable wptr polling */
+	WREG32_FIELD15_PREREG(GC, 0, CP_PQ_WPTR_POLL_CNTL, EN, 1);
+
 	soc21_grbm_select(adev, 0, 0, 0, 0);
 	mutex_unlock(&adev->srbm_mutex);
 
Signature · 1 line
2.41.0
author
#1 lore raw

[AMD Official Use Only - AMD Internal Distribution Only]

Dropped, it caused a regression.

Regards,
Jack

-----Original Message-----
From: Xiao, Jack <[email protected]>
Sent: Friday, January 17, 2025 4:59 PM
To: [email protected]; Zhang, Hawking <[email protected]>; Feng, Kenneth <[email protected]>
Cc: Xiao, Jack <[email protected]>
Subject: [PATCH] drm/amdgpu/mes12: enable mes pipe wptr polling

Enable mes pipe wptr polling for gfxoff might result in mes pipe wptr missing.

---
 drivers/gpu/drm/amd/amdgpu/mes_v12_0.c | 3 +++
 1 file changed, 3 insertions(+)
drivers/gpu/drm/amd/amdgpu/mes_v12_0.c +3 -0
index 185f4b55dcca..e516e4598017 100644
@@ -1256,6 +1256,9 @@ static int mes_v12_0_queue_init(struct amdgpu_device *adev,
        else if (pipe == AMDGPU_MES_KIQ_PIPE && adev->enable_mes_kiq)
                adev->mes.kiq_version = RREG32_SOC15(GC, 0, regCP_MES_GP3_LO);
 
+       /* enable wptr polling */
+       WREG32_FIELD15_PREREG(GC, 0, CP_PQ_WPTR_POLL_CNTL, EN, 1);
+
        soc21_grbm_select(adev, 0, 0, 0, 0);
        mutex_unlock(&adev->srbm_mutex);
 

--
2.41.0