drm/amd/powerplay: enable uclk dpm default on navi10
authorKevin Wang <kevin1.wang@amd.com>
Thu, 16 May 2019 07:06:25 +0000 (15:06 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 21 Jun 2019 23:59:31 +0000 (18:59 -0500)
enable uclk (mclk) dpm by default on navi10

Signed-off-by: Kevin Wang <kevin1.wang@amd.com>
Reviewed-by: Kenneth Feng <kenneth.feng@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/navi10_ppt.c

index afdf5238d1c375b013ba6499d6ceeb4e68fe0a52..9463eff8d9074b520c26e73afbf2500667b71b26 100644 (file)
@@ -314,6 +314,9 @@ navi10_get_allowed_feature_mask(struct smu_context *smu,
                                | FEATURE_MASK(FEATURE_DPM_SOCCLK_BIT)
                                | FEATURE_MASK(FEATURE_DPM_MP0CLK_BIT)
                                | FEATURE_MASK(FEATURE_DPM_LINK_BIT)
+                               | FEATURE_MASK(FEATURE_DPM_UCLK_BIT)
+                               | FEATURE_MASK(FEATURE_MEM_VDDCI_SCALING_BIT)
+                               | FEATURE_MASK(FEATURE_MEM_MVDD_SCALING_BIT)
                                | FEATURE_MASK(FEATURE_GFX_ULV_BIT)
                                | FEATURE_MASK(FEATURE_RSMU_SMN_CG_BIT)
                                | FEATURE_MASK(FEATURE_DS_SOCCLK_BIT)
@@ -332,11 +335,6 @@ navi10_get_allowed_feature_mask(struct smu_context *smu,
                                | FEATURE_MASK(FEATURE_FW_DSTATE_BIT)
                                | FEATURE_MASK(FEATURE_ACDC_BIT);
 
-       if (adev->pm.pp_feature & PP_MCLK_DPM_MASK)
-               *(uint64_t *)feature_mask |= FEATURE_MASK(FEATURE_DPM_UCLK_BIT)
-                               | FEATURE_MASK(FEATURE_MEM_VDDCI_SCALING_BIT)
-                               | FEATURE_MASK(FEATURE_MEM_MVDD_SCALING_BIT);
-
        if (adev->pm.pp_feature & PP_GFXOFF_MASK)
                *(uint64_t *)feature_mask |= FEATURE_MASK(FEATURE_GFX_SS_BIT)
                                | FEATURE_MASK(FEATURE_GFXOFF_BIT);
@@ -350,7 +348,9 @@ navi10_get_allowed_feature_mask(struct smu_context *smu,
                if ((adev->asic_type == CHIP_NAVI10) &&
                        (adev->rev_id == 0)) {
                        *(uint64_t *)feature_mask &=
-                                       ~FEATURE_MASK(FEATURE_DPM_UCLK_BIT);
+                                       ~(FEATURE_MASK(FEATURE_DPM_UCLK_BIT)
+                                         | FEATURE_MASK(FEATURE_MEM_VDDCI_SCALING_BIT)
+                                         | FEATURE_MASK(FEATURE_MEM_MVDD_SCALING_BIT));
                        *(uint64_t *)feature_mask &=
                                        ~FEATURE_MASK(FEATURE_DS_SOCCLK_BIT);
                }