drm/amd/powerplay: enable pcie dpm on Vega10.
authorRex Zhu <Rex.Zhu@amd.com>
Thu, 20 Apr 2017 08:38:36 +0000 (16:38 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 28 Apr 2017 21:32:50 +0000 (17:32 -0400)
Signed-off-by: Rex Zhu <Rex.Zhu@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c

index deb112485f824bae1e0972c64848be0b4a3a6488..ee40378c3e826525886bbe0cf8d1b0271233b6c1 100644 (file)
@@ -111,6 +111,8 @@ static void vega10_set_default_registry_data(struct pp_hwmgr *hwmgr)
                        hwmgr->feature_mask & PP_SOCCLK_DPM_MASK ? false : true;
        data->registry_data.mclk_dpm_key_disabled =
                        hwmgr->feature_mask & PP_MCLK_DPM_MASK ? false : true;
+       data->registry_data.pcie_dpm_key_disabled =
+                       hwmgr->feature_mask & PP_PCIE_DPM_MASK ? false : true;
 
        data->registry_data.dcefclk_dpm_key_disabled =
                        hwmgr->feature_mask & PP_DCEFCLK_DPM_MASK ? false : true;
@@ -121,7 +123,6 @@ static void vega10_set_default_registry_data(struct pp_hwmgr *hwmgr)
                data->registry_data.enable_tdc_limit_feature = 1;
        }
 
-       data->registry_data.pcie_dpm_key_disabled = 1;
        data->registry_data.disable_water_mark = 0;
 
        data->registry_data.fan_control_support = 1;