Skip to contentSkip to conversation

drm/amdgpu: update RLC_PG_DELAY_3 Value to 200us for yellow carp

PATCH In review Aaron Liu 2 participants 3 messages Nov 2, 2021 – Nov 3, 2021

Subsystems (2)
lore
Share & tools
lore

Aaron Liu

author
#0 lore raw

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
index 90a834dc4008..b53b36f5ae92 100644
@@ -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
Acked-by on v1 1/1
#1 lore raw
Quoted 12 lines · Aaron

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 +0 -0
index 90a834dc4008..b53b36f5ae92 100644

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

author
#2 lore raw

[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: update RLC_PG_DELAY_3 Value to 200us for yellow carp

Review

Quoted 8 lines · Aaron

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(-)
(quoted diff) +0 -0

b/drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c

drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c static void gfx_v10_cntl_power_gating(struct

Quoted 4 lines

index 90a834dc4008..b53b36f5ae92 100644

drivers/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 -1
 	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;

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;

Is this patch able to fix the cgpg issue in ROCr test?

Thanks,
Ray