drm/amdgpu: enable mmhub clock gating for Arcturus
authorLe Ma <le.ma@amd.com>
Fri, 9 Aug 2019 10:58:42 +0000 (18:58 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 12 Aug 2019 17:47:49 +0000 (12:47 -0500)
Init MC_MGCG/LS flag. Also apply to athub CG.

Signed-off-by: Le Ma <le.ma@amd.com>
Reviewed-by: Kevin Wang <kevin1.wang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/mmhub_v9_4.c
drivers/gpu/drm/amd/amdgpu/soc15.c

index e52e4d1860f55de9ac953b6634e9bdabafc589c6..0cf7ef44b4b5c7015d018612a872fb32596b3a54 100644 (file)
@@ -615,7 +615,6 @@ int mmhub_v9_4_set_clockgating(struct amdgpu_device *adev,
        return 0;
 }
 
-/* TODO: get 2 mmhub instances CG state */
 void mmhub_v9_4_get_clockgating(struct amdgpu_device *adev, u32 *flags)
 {
        int data, data1;
index 13d02f5ac746801011d514c357668b5ee3608581..ece2559df5374e5fc51b62c3f1ef80af46ce4c21 100644 (file)
@@ -1127,7 +1127,9 @@ static int soc15_common_early_init(void *handle)
                        AMD_CG_SUPPORT_HDP_MGCG |
                        AMD_CG_SUPPORT_HDP_LS |
                        AMD_CG_SUPPORT_SDMA_MGCG |
-                       AMD_CG_SUPPORT_SDMA_LS;
+                       AMD_CG_SUPPORT_SDMA_LS |
+                       AMD_CG_SUPPORT_MC_MGCG |
+                       AMD_CG_SUPPORT_MC_LS;
                adev->pg_flags = 0;
                adev->external_rev_id = adev->rev_id + 0x32;
                break;