drm/amdgpu/mes12: enable mes pipe wptr polling
Subsystems (2)
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.
Signed-off-by Jack Xiao <[email protected]>
--- 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
@@ -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
[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.
Signed-off-by Jack Xiao <[email protected]>
--- 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
@@ -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