drm/amdgpu: enable gfx clock gating for rn
authorPrike Liang <Prike.Liang@amd.com>
Thu, 1 Aug 2019 08:21:07 +0000 (16:21 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 22 Aug 2019 22:40:58 +0000 (17:40 -0500)
Enable gfx cg/mg/cp etc clock gating.

Signed-off-by: Prike Liang <Prike.Liang@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/soc15.c

index a96582df2970315b11f4747b4ee9d49437efa168..bef1e642615b8f9246f9edd67982dcc91bedd72d 100644 (file)
@@ -1155,7 +1155,13 @@ static int soc15_common_early_init(void *handle)
                break;
        case CHIP_RENOIR:
                adev->asic_funcs = &soc15_asic_funcs;
-               adev->cg_flags = 0;
+               adev->cg_flags = AMD_CG_SUPPORT_GFX_MGCG |
+                                AMD_CG_SUPPORT_GFX_MGLS |
+                                AMD_CG_SUPPORT_GFX_3D_CGCG |
+                                AMD_CG_SUPPORT_GFX_3D_CGLS |
+                                AMD_CG_SUPPORT_GFX_CGCG |
+                                AMD_CG_SUPPORT_GFX_CGLS |
+                                AMD_CG_SUPPORT_GFX_CP_LS;
                adev->pg_flags = 0;
                adev->external_rev_id = adev->rev_id + 0x91;