drm/amdgpu: enable sdma clock gating for rn
authorPrike Liang <Prike.Liang@amd.com>
Fri, 2 Aug 2019 07:10:45 +0000 (15:10 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 22 Aug 2019 22:40:58 +0000 (17:40 -0500)
Enable sdma middle grain and light sleep 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 e3c103cfbe4b7cba8d26b335caa4bf73c1b773b2..b1f9e7fc3b7d7388fc7e5b369555c36d16f6d40a 100644 (file)
@@ -1163,7 +1163,9 @@ static int soc15_common_early_init(void *handle)
                                 AMD_CG_SUPPORT_GFX_CGLS |
                                 AMD_CG_SUPPORT_GFX_CP_LS |
                                 AMD_CG_SUPPORT_MC_MGCG |
-                                AMD_CG_SUPPORT_MC_LS;
+                                AMD_CG_SUPPORT_MC_LS |
+                                AMD_CG_SUPPORT_SDMA_MGCG |
+                                AMD_CG_SUPPORT_SDMA_LS;
                adev->pg_flags = 0;
                adev->external_rev_id = adev->rev_id + 0x91;