aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRex Zhu <Rex.Zhu@amd.com>2017-04-21 05:26:07 -0400
committerAlex Deucher <alexander.deucher@amd.com>2017-04-28 17:33:10 -0400
commiteffa290caa9fa23d13b4531fcf55142a107a3b2a (patch)
tree1b1c76003cf132e284db62a39bba70881d6443a6
parent12d39245f6bea9dfddc29d75225a1d5ffc290186 (diff)
drm/amd/powerplay: correct UlvOffsetVid on Vega10.
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>
-rw-r--r--drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c b/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c
index 278def7380e7..5bb18a9a1056 100644
--- a/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c
+++ b/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c
@@ -1436,9 +1436,7 @@ static int vega10_populate_ulv_state(struct pp_hwmgr *hwmgr)
1436 (struct phm_ppt_v2_information *)(hwmgr->pptable); 1436 (struct phm_ppt_v2_information *)(hwmgr->pptable);
1437 1437
1438 data->smc_state_table.pp_table.UlvOffsetVid = 1438 data->smc_state_table.pp_table.UlvOffsetVid =
1439 (uint8_t)(table_info->us_ulv_voltage_offset * 1439 (uint8_t)table_info->us_ulv_voltage_offset;
1440 VOLTAGE_VID_OFFSET_SCALE2 /
1441 VOLTAGE_VID_OFFSET_SCALE1);
1442 1440
1443 data->smc_state_table.pp_table.UlvSmnclkDid = 1441 data->smc_state_table.pp_table.UlvSmnclkDid =
1444 (uint8_t)(table_info->us_ulv_smnclk_did); 1442 (uint8_t)(table_info->us_ulv_smnclk_did);
@@ -2342,6 +2340,7 @@ static int vega10_init_smc_table(struct pp_hwmgr *hwmgr)
2342 (uint8_t)(table_info->uc_vce_dpm_voltage_mode); 2340 (uint8_t)(table_info->uc_vce_dpm_voltage_mode);
2343 pp_table->Mp0DpmVoltageMode = 2341 pp_table->Mp0DpmVoltageMode =
2344 (uint8_t)(table_info->uc_mp0_dpm_voltage_mode); 2342 (uint8_t)(table_info->uc_mp0_dpm_voltage_mode);
2343
2345 pp_table->DisplayDpmVoltageMode = 2344 pp_table->DisplayDpmVoltageMode =
2346 (uint8_t)(table_info->uc_dcef_dpm_voltage_mode); 2345 (uint8_t)(table_info->uc_dcef_dpm_voltage_mode);
2347 2346