Skip to content

Commit effa290

Browse files
Rex Zhualexdeucher
authored andcommitted
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>
1 parent 12d3924 commit effa290

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1436,9 +1436,7 @@ static int vega10_populate_ulv_state(struct pp_hwmgr *hwmgr)
14361436
(struct phm_ppt_v2_information *)(hwmgr->pptable);
14371437

14381438
data->smc_state_table.pp_table.UlvOffsetVid =
1439-
(uint8_t)(table_info->us_ulv_voltage_offset *
1440-
VOLTAGE_VID_OFFSET_SCALE2 /
1441-
VOLTAGE_VID_OFFSET_SCALE1);
1439+
(uint8_t)table_info->us_ulv_voltage_offset;
14421440

14431441
data->smc_state_table.pp_table.UlvSmnclkDid =
14441442
(uint8_t)(table_info->us_ulv_smnclk_did);
@@ -2342,6 +2340,7 @@ static int vega10_init_smc_table(struct pp_hwmgr *hwmgr)
23422340
(uint8_t)(table_info->uc_vce_dpm_voltage_mode);
23432341
pp_table->Mp0DpmVoltageMode =
23442342
(uint8_t)(table_info->uc_mp0_dpm_voltage_mode);
2343+
23452344
pp_table->DisplayDpmVoltageMode =
23462345
(uint8_t)(table_info->uc_dcef_dpm_voltage_mode);
23472346

0 commit comments

Comments
 (0)