diff options
author | Rex Zhu <Rex.Zhu@amd.com> | 2017-08-02 07:27:04 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2017-08-15 14:46:10 -0400 |
commit | becdaf3f4aff560adc1263a505408a2f73f9a5d2 (patch) | |
tree | dc9a5a8ec3304aed9646a4d55148d9924920f420 /drivers/gpu | |
parent | 3d4d4fd095fd91da6c9aa0301f5e553409a9e3a0 (diff) |
drm/amd/powerplay: fix PSI not enabled by kmd
cherry-pick from windows driver.
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>
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/amd/powerplay/hwmgr/ppatomfwctrl.c | 2 | ||||
-rw-r--r-- | drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/ppatomfwctrl.c b/drivers/gpu/drm/amd/powerplay/hwmgr/ppatomfwctrl.c index cd33eb179db2..c062844b15f3 100644 --- a/drivers/gpu/drm/amd/powerplay/hwmgr/ppatomfwctrl.c +++ b/drivers/gpu/drm/amd/powerplay/hwmgr/ppatomfwctrl.c | |||
@@ -142,7 +142,7 @@ int pp_atomfwctrl_get_voltage_table_v4(struct pp_hwmgr *hwmgr, | |||
142 | } | 142 | } |
143 | } else if (voltage_mode == VOLTAGE_OBJ_SVID2) { | 143 | } else if (voltage_mode == VOLTAGE_OBJ_SVID2) { |
144 | voltage_table->psi1_enable = | 144 | voltage_table->psi1_enable = |
145 | voltage_object->svid2_voltage_obj.loadline_psi1 & 0x1; | 145 | (voltage_object->svid2_voltage_obj.loadline_psi1 & 0x20) >> 5; |
146 | voltage_table->psi0_enable = | 146 | voltage_table->psi0_enable = |
147 | voltage_object->svid2_voltage_obj.psi0_enable & 0x1; | 147 | voltage_object->svid2_voltage_obj.psi0_enable & 0x1; |
148 | voltage_table->max_vid_step = | 148 | voltage_table->max_vid_step = |
diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c b/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c index 979cc5cc6291..4aa0a767fc16 100644 --- a/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c +++ b/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c | |||
@@ -2522,6 +2522,9 @@ static int vega10_init_smc_table(struct pp_hwmgr *hwmgr) | |||
2522 | pp_table->DisplayDpmVoltageMode = | 2522 | pp_table->DisplayDpmVoltageMode = |
2523 | (uint8_t)(table_info->uc_dcef_dpm_voltage_mode); | 2523 | (uint8_t)(table_info->uc_dcef_dpm_voltage_mode); |
2524 | 2524 | ||
2525 | data->vddc_voltage_table.psi0_enable = voltage_table.psi0_enable; | ||
2526 | data->vddc_voltage_table.psi1_enable = voltage_table.psi1_enable; | ||
2527 | |||
2525 | if (data->registry_data.ulv_support && | 2528 | if (data->registry_data.ulv_support && |
2526 | table_info->us_ulv_voltage_offset) { | 2529 | table_info->us_ulv_voltage_offset) { |
2527 | result = vega10_populate_ulv_state(hwmgr); | 2530 | result = vega10_populate_ulv_state(hwmgr); |