drm/amdgpu: update RLC_PG_DELAY_3 Value to 200us for yellow carp
Subsystems (2)
PATCH 1/1 drm/amdgpu: update RLC_PG_DELAY_3 Value to 200us for yellow carp
For yellow carp, the desired CGPG hysteresis value is 0x4E20.
--- drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)
drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c +1 -4
@@ -8316,11 +8316,8 @@ static void gfx_v10_cntl_power_gating(struct amdgpu_device *adev, bool enable)if (enable && (adev->pg_flags &AMD_PG_SUPPORT_GFX_PG )) {switch (adev->ip_versions[GC_HWIP ][0 ]) {case IP_VERSION (10 ,3 ,1 ): - data =0x4E20 & RLC_PG_DELAY_3__CGCG_ACTIVE_BEFORE_CGPG_MASK_Vangogh; -WREG32_SOC15 (GC ,0 , mmRLC_PG_DELAY_3, data); -break ;case IP_VERSION (10 ,3 ,3 ): - data =0x1388 & RLC_PG_DELAY_3__CGCG_ACTIVE_BEFORE_CGPG_MASK_Vangogh; + data =0x4E20 & RLC_PG_DELAY_3__CGCG_ACTIVE_BEFORE_CGPG_MASK_Vangogh;WREG32_SOC15 (GC ,0 , mmRLC_PG_DELAY_3, data);break ;default :
Signature · 1 line
2.25.1
Quoted 12 lines · Aaron
For yellow carp, the desired CGPG hysteresis value is
0x4E20.Signed-off-by Aaron Liu <[email protected]>--- drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c +0
-0
drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c static void gfx_v10_cntl_power_gating(struct amdgpu_device *adev, bool enable) · line 8320
Quoted 9 lines
drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c +1
-4@@ -8316,11 +8316,8 @@ static void gfx_v10_cntl_power_gating(struct amdgpu_device *adev, bool enable)if (enable && (adev->pg_flags &AMD_PG_SUPPORT_GFX_PG )) {switch (adev->ip_versions[GC_HWIP ][0 ]) {case IP_VERSION (10 ,3 ,1 ): - data =0x4E20 & RLC_PG_DELAY_3__CGCG_ACTIVE_BEFORE_CGPG_MASK_Vangogh; -WREG32_SOC15 (GC ,0 , mmRLC_PG_DELAY_3, data); -break ;case IP_VERSION (10 ,3 ,3 ): - data =0x1388 & RLC_PG_DELAY_3__CGCG_ACTIVE_BEFORE_CGPG_MASK_Vangogh; + data =0x4E20 & RLC_PG_DELAY_3__CGCG_ACTIVE_BEFORE_CGPG_MASK_Vangogh;
Is this patch able to fix the cgpg issue in ROCr test?
Thanks,
Ray
[AMD Official Use Only]
Ray,
That ROCR issue is caused by CGCG(NOT CGPG). With this patch applied, the rocr issue still exists.
--
Best Regards
Aaron Liu
Quoted 43 lines
-----Original Message-----
From: Huang, Ray <[email protected]>
Sent: Tuesday, November 2, 2021 5:19 PM
To: Liu, Aaron <[email protected]>
Cc: [email protected]; Deucher, Alexander <[email protected]>
Subject: Re: [PATCH] drm/amdgpu: updateRLC_PG_DELAY_3Value to 200us for yellow carpReview
Quoted 8 lines · Aaron
For yellow carp, the desired CGPG hysteresis value is
0x4E20.Signed-off-by Aaron Liu <[email protected]>--- drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)(quoted diff) +0
-0
b/drivers/gpu/drm/amd/amdgpu/gfx_v10_0.cdrivers/gpu/drm/amd/amdgpu/gfx_v10_0.c static void gfx_v10_cntl_power_gating(struct
Quoted 4 lines
index
90a834dc4008..b53b36f5ae92100644drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c +0
-0@@ -8316,11 +8316,8 @@ static void gfx_v10_cntl_power_gating(struct
amdgpu_device*adev, bool enable)drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c static void gfx_v10_cntl_power_gating(struct amdgpu_device *adev, bool enable)
Quoted 4 lines
drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c +0
-1if (enable && (adev->pg_flags &AMD_PG_SUPPORT_GFX_PG )) {switch (adev->ip_versions[GC_HWIP ][0 ]) {case IP_VERSION (10 ,3 ,1 ): - data = 0x4E20 &
RLC_PG_DELAY_3__CGCG_ACTIVE_BEFORE_CGPG_MASK_Vangogh;drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c static void gfx_v10_cntl_power_gating(struct amdgpu_device *adev, bool enable)
Quoted 4 lines
drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c +0
-3-WREG32_SOC15 (GC ,0 , mmRLC_PG_DELAY_3, data); -break ;case IP_VERSION (10 ,3 ,3 ): - data = 0x1388 &
RLC_PG_DELAY_3__CGCG_ACTIVE_BEFORE_CGPG_MASK_Vangogh;drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c static void gfx_v10_cntl_power_gating(struct · line 8320
Quoted 1 line
drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c +1
-0+ data = 0x4E20 &
RLC_PG_DELAY_3__CGCG_ACTIVE_BEFORE_CGPG_MASK_Vangogh;Acked-by Huang Rui <[email protected]>Is this patch able to fix the cgpg issue in ROCr test?
Thanks,
Ray