OSDN Git Service

drm/amdgpu: update RLC_PG_DELAY_3 Value to 200us for yellow carp
authorAaron Liu <aaron.liu@amd.com>
Tue, 2 Nov 2021 08:45:09 +0000 (16:45 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 3 Nov 2021 16:22:08 +0000 (12:22 -0400)
For yellow carp, the desired CGPG hysteresis value is 0x4E20.

Signed-off-by: Aaron Liu <aaron.liu@amd.com>
Acked-by: Huang Rui <ray.huang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c

index 90a834d..b53b36f 100644 (file)
@@ -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: