drm/amdgpu: enable soc15 clock gating flags for raven
authorHuang Rui <ray.huang@amd.com>
Wed, 18 Jan 2017 10:14:08 +0000 (18:14 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 24 May 2017 21:40:53 +0000 (17:40 -0400)
Signed-off-by: Huang Rui <ray.huang@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 cee2d8b62708ac261680f0733c8a07ac001b0eff..7a4af8b10e3d56b9bccbc79b176a15f8b482ef95 100644 (file)
@@ -588,7 +588,21 @@ static int soc15_common_early_init(void *handle)
                adev->external_rev_id = 0x1;
                break;
        case CHIP_RAVEN:
-               adev->cg_flags = 0;
+               adev->cg_flags = AMD_CG_SUPPORT_GFX_MGCG |
+                       AMD_CG_SUPPORT_GFX_MGLS |
+                       AMD_CG_SUPPORT_GFX_RLC_LS |
+                       AMD_CG_SUPPORT_GFX_CP_LS |
+                       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_BIF_MGCG |
+                       AMD_CG_SUPPORT_BIF_LS |
+                       AMD_CG_SUPPORT_HDP_MGCG |
+                       AMD_CG_SUPPORT_HDP_LS |
+                       AMD_CG_SUPPORT_DRM_MGCG |
+                       AMD_CG_SUPPORT_DRM_LS |
+                       AMD_CG_SUPPORT_ROM_MGCG;
                adev->pg_flags = 0;
                adev->external_rev_id = 0x1;
                break;