diff options
| author | Rex Zhu <Rex.Zhu@amd.com> | 2017-09-08 02:31:26 -0400 |
|---|---|---|
| committer | Alex Deucher <alexander.deucher@amd.com> | 2017-09-18 23:30:36 -0400 |
| commit | e71b7ae6731c1b426818ce4c9baa493fb4d6c427 (patch) | |
| tree | c00d5b08baf07d17c1e3f0a097e9135d223b1166 | |
| parent | 6df9855fe200d4e7e5cdd85575fb28cce808b2cc (diff) | |
drm/amd/powerplay: fix spelling typo in function name
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/ppatomctrl.c | 2 | ||||
| -rw-r--r-- | drivers/gpu/drm/amd/powerplay/hwmgr/ppatomctrl.h | 2 | ||||
| -rw-r--r-- | drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c | 12 | ||||
| -rw-r--r-- | drivers/gpu/drm/amd/powerplay/smumgr/fiji_smc.c | 11 | ||||
| -rw-r--r-- | drivers/gpu/drm/amd/powerplay/smumgr/iceland_smc.c | 21 | ||||
| -rw-r--r-- | drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.h | 2 | ||||
| -rw-r--r-- | drivers/gpu/drm/amd/powerplay/smumgr/polaris10_smc.c | 10 | ||||
| -rw-r--r-- | drivers/gpu/drm/amd/powerplay/smumgr/tonga_smc.c | 20 | ||||
| -rw-r--r-- | drivers/gpu/drm/amd/powerplay/smumgr/tonga_smc.h | 2 |
9 files changed, 19 insertions, 63 deletions
diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/ppatomctrl.c b/drivers/gpu/drm/amd/powerplay/hwmgr/ppatomctrl.c index 953e0c9ad7cd..49733c781717 100644 --- a/drivers/gpu/drm/amd/powerplay/hwmgr/ppatomctrl.c +++ b/drivers/gpu/drm/amd/powerplay/hwmgr/ppatomctrl.c | |||
| @@ -470,7 +470,7 @@ uint32_t atomctrl_get_reference_clock(struct pp_hwmgr *hwmgr) | |||
| 470 | * SET_VOLTAGE_TYPE_ASIC_MVDDC, SET_VOLTAGE_TYPE_ASIC_MVDDQ. | 470 | * SET_VOLTAGE_TYPE_ASIC_MVDDC, SET_VOLTAGE_TYPE_ASIC_MVDDQ. |
| 471 | * voltage_mode is one of ATOM_SET_VOLTAGE, ATOM_SET_VOLTAGE_PHASE | 471 | * voltage_mode is one of ATOM_SET_VOLTAGE, ATOM_SET_VOLTAGE_PHASE |
| 472 | */ | 472 | */ |
| 473 | bool atomctrl_is_voltage_controled_by_gpio_v3( | 473 | bool atomctrl_is_voltage_controlled_by_gpio_v3( |
| 474 | struct pp_hwmgr *hwmgr, | 474 | struct pp_hwmgr *hwmgr, |
| 475 | uint8_t voltage_type, | 475 | uint8_t voltage_type, |
| 476 | uint8_t voltage_mode) | 476 | uint8_t voltage_mode) |
diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/ppatomctrl.h b/drivers/gpu/drm/amd/powerplay/hwmgr/ppatomctrl.h index e9fe2e84006b..8d4188ad941a 100644 --- a/drivers/gpu/drm/amd/powerplay/hwmgr/ppatomctrl.h +++ b/drivers/gpu/drm/amd/powerplay/hwmgr/ppatomctrl.h | |||
| @@ -291,7 +291,7 @@ extern uint32_t atomctrl_get_reference_clock(struct pp_hwmgr *hwmgr); | |||
| 291 | extern int atomctrl_get_memory_pll_dividers_si(struct pp_hwmgr *hwmgr, uint32_t clock_value, pp_atomctrl_memory_clock_param *mpll_param, bool strobe_mode); | 291 | extern int atomctrl_get_memory_pll_dividers_si(struct pp_hwmgr *hwmgr, uint32_t clock_value, pp_atomctrl_memory_clock_param *mpll_param, bool strobe_mode); |
| 292 | extern int atomctrl_get_engine_pll_dividers_vi(struct pp_hwmgr *hwmgr, uint32_t clock_value, pp_atomctrl_clock_dividers_vi *dividers); | 292 | extern int atomctrl_get_engine_pll_dividers_vi(struct pp_hwmgr *hwmgr, uint32_t clock_value, pp_atomctrl_clock_dividers_vi *dividers); |
| 293 | extern int atomctrl_get_dfs_pll_dividers_vi(struct pp_hwmgr *hwmgr, uint32_t clock_value, pp_atomctrl_clock_dividers_vi *dividers); | 293 | extern int atomctrl_get_dfs_pll_dividers_vi(struct pp_hwmgr *hwmgr, uint32_t clock_value, pp_atomctrl_clock_dividers_vi *dividers); |
| 294 | extern bool atomctrl_is_voltage_controled_by_gpio_v3(struct pp_hwmgr *hwmgr, uint8_t voltage_type, uint8_t voltage_mode); | 294 | extern bool atomctrl_is_voltage_controlled_by_gpio_v3(struct pp_hwmgr *hwmgr, uint8_t voltage_type, uint8_t voltage_mode); |
| 295 | extern int atomctrl_get_voltage_table_v3(struct pp_hwmgr *hwmgr, uint8_t voltage_type, uint8_t voltage_mode, pp_atomctrl_voltage_table *voltage_table); | 295 | extern int atomctrl_get_voltage_table_v3(struct pp_hwmgr *hwmgr, uint8_t voltage_type, uint8_t voltage_mode, pp_atomctrl_voltage_table *voltage_table); |
| 296 | extern int atomctrl_get_memory_pll_dividers_vi(struct pp_hwmgr *hwmgr, | 296 | extern int atomctrl_get_memory_pll_dividers_vi(struct pp_hwmgr *hwmgr, |
| 297 | uint32_t clock_value, pp_atomctrl_memory_clock_param *mpll_param); | 297 | uint32_t clock_value, pp_atomctrl_memory_clock_param *mpll_param); |
diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c b/drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c index f1f1e4b390ca..03075c6ac512 100644 --- a/drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c +++ b/drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c | |||
| @@ -1392,13 +1392,13 @@ static void smu7_init_dpm_defaults(struct pp_hwmgr *hwmgr) | |||
| 1392 | } | 1392 | } |
| 1393 | 1393 | ||
| 1394 | data->fast_watermark_threshold = 100; | 1394 | data->fast_watermark_threshold = 100; |
| 1395 | if (atomctrl_is_voltage_controled_by_gpio_v3(hwmgr, | 1395 | if (atomctrl_is_voltage_controlled_by_gpio_v3(hwmgr, |
| 1396 | VOLTAGE_TYPE_VDDC, VOLTAGE_OBJ_SVID2)) | 1396 | VOLTAGE_TYPE_VDDC, VOLTAGE_OBJ_SVID2)) |
| 1397 | data->voltage_control = SMU7_VOLTAGE_CONTROL_BY_SVID2; | 1397 | data->voltage_control = SMU7_VOLTAGE_CONTROL_BY_SVID2; |
| 1398 | 1398 | ||
| 1399 | if (phm_cap_enabled(hwmgr->platform_descriptor.platformCaps, | 1399 | if (phm_cap_enabled(hwmgr->platform_descriptor.platformCaps, |
| 1400 | PHM_PlatformCaps_ControlVDDGFX)) { | 1400 | PHM_PlatformCaps_ControlVDDGFX)) { |
| 1401 | if (atomctrl_is_voltage_controled_by_gpio_v3(hwmgr, | 1401 | if (atomctrl_is_voltage_controlled_by_gpio_v3(hwmgr, |
| 1402 | VOLTAGE_TYPE_VDDGFX, VOLTAGE_OBJ_SVID2)) { | 1402 | VOLTAGE_TYPE_VDDGFX, VOLTAGE_OBJ_SVID2)) { |
| 1403 | data->vdd_gfx_control = SMU7_VOLTAGE_CONTROL_BY_SVID2; | 1403 | data->vdd_gfx_control = SMU7_VOLTAGE_CONTROL_BY_SVID2; |
| 1404 | } | 1404 | } |
| @@ -1406,10 +1406,10 @@ static void smu7_init_dpm_defaults(struct pp_hwmgr *hwmgr) | |||
| 1406 | 1406 | ||
| 1407 | if (phm_cap_enabled(hwmgr->platform_descriptor.platformCaps, | 1407 | if (phm_cap_enabled(hwmgr->platform_descriptor.platformCaps, |
| 1408 | PHM_PlatformCaps_EnableMVDDControl)) { | 1408 | PHM_PlatformCaps_EnableMVDDControl)) { |
| 1409 | if (atomctrl_is_voltage_controled_by_gpio_v3(hwmgr, | 1409 | if (atomctrl_is_voltage_controlled_by_gpio_v3(hwmgr, |
| 1410 | VOLTAGE_TYPE_MVDDC, VOLTAGE_OBJ_GPIO_LUT)) | 1410 | VOLTAGE_TYPE_MVDDC, VOLTAGE_OBJ_GPIO_LUT)) |
| 1411 | data->mvdd_control = SMU7_VOLTAGE_CONTROL_BY_GPIO; | 1411 | data->mvdd_control = SMU7_VOLTAGE_CONTROL_BY_GPIO; |
| 1412 | else if (atomctrl_is_voltage_controled_by_gpio_v3(hwmgr, | 1412 | else if (atomctrl_is_voltage_controlled_by_gpio_v3(hwmgr, |
| 1413 | VOLTAGE_TYPE_MVDDC, VOLTAGE_OBJ_SVID2)) | 1413 | VOLTAGE_TYPE_MVDDC, VOLTAGE_OBJ_SVID2)) |
| 1414 | data->mvdd_control = SMU7_VOLTAGE_CONTROL_BY_SVID2; | 1414 | data->mvdd_control = SMU7_VOLTAGE_CONTROL_BY_SVID2; |
| 1415 | } | 1415 | } |
| @@ -1421,10 +1421,10 @@ static void smu7_init_dpm_defaults(struct pp_hwmgr *hwmgr) | |||
| 1421 | 1421 | ||
| 1422 | if (phm_cap_enabled(hwmgr->platform_descriptor.platformCaps, | 1422 | if (phm_cap_enabled(hwmgr->platform_descriptor.platformCaps, |
| 1423 | PHM_PlatformCaps_ControlVDDCI)) { | 1423 | PHM_PlatformCaps_ControlVDDCI)) { |
| 1424 | if (atomctrl_is_voltage_controled_by_gpio_v3(hwmgr, | 1424 | if (atomctrl_is_voltage_controlled_by_gpio_v3(hwmgr, |
| 1425 | VOLTAGE_TYPE_VDDCI, VOLTAGE_OBJ_GPIO_LUT)) | 1425 | VOLTAGE_TYPE_VDDCI, VOLTAGE_OBJ_GPIO_LUT)) |
| 1426 | data->vddci_control = SMU7_VOLTAGE_CONTROL_BY_GPIO; | 1426 | data->vddci_control = SMU7_VOLTAGE_CONTROL_BY_GPIO; |
| 1427 | else if (atomctrl_is_voltage_controled_by_gpio_v3(hwmgr, | 1427 | else if (atomctrl_is_voltage_controlled_by_gpio_v3(hwmgr, |
| 1428 | VOLTAGE_TYPE_VDDCI, VOLTAGE_OBJ_SVID2)) | 1428 | VOLTAGE_TYPE_VDDCI, VOLTAGE_OBJ_SVID2)) |
| 1429 | data->vddci_control = SMU7_VOLTAGE_CONTROL_BY_SVID2; | 1429 | data->vddci_control = SMU7_VOLTAGE_CONTROL_BY_SVID2; |
| 1430 | } | 1430 | } |
diff --git a/drivers/gpu/drm/amd/powerplay/smumgr/fiji_smc.c b/drivers/gpu/drm/amd/powerplay/smumgr/fiji_smc.c index 8712f093d6d9..9f612dd395ac 100644 --- a/drivers/gpu/drm/amd/powerplay/smumgr/fiji_smc.c +++ b/drivers/gpu/drm/amd/powerplay/smumgr/fiji_smc.c | |||
| @@ -398,11 +398,6 @@ static int fiji_populate_gnb_lpml(struct pp_hwmgr *hwmgr) | |||
| 398 | return 0; | 398 | return 0; |
| 399 | } | 399 | } |
| 400 | 400 | ||
| 401 | static int fiji_min_max_vgnb_lpml_id_from_bapm_vddc(struct pp_hwmgr *hwmgr) | ||
| 402 | { | ||
| 403 | return 0; | ||
| 404 | } | ||
| 405 | |||
| 406 | static int fiji_populate_bapm_vddc_base_leakage_sidd(struct pp_hwmgr *hwmgr) | 401 | static int fiji_populate_bapm_vddc_base_leakage_sidd(struct pp_hwmgr *hwmgr) |
| 407 | { | 402 | { |
| 408 | struct fiji_smumgr *smu_data = (struct fiji_smumgr *)(hwmgr->smumgr->backend); | 403 | struct fiji_smumgr *smu_data = (struct fiji_smumgr *)(hwmgr->smumgr->backend); |
| @@ -472,12 +467,6 @@ static int fiji_populate_pm_fuses(struct pp_hwmgr *hwmgr) | |||
| 472 | "Attempt to populate GnbLPML Failed!", | 467 | "Attempt to populate GnbLPML Failed!", |
| 473 | return -EINVAL); | 468 | return -EINVAL); |
| 474 | 469 | ||
| 475 | /* DW19 */ | ||
| 476 | if (fiji_min_max_vgnb_lpml_id_from_bapm_vddc(hwmgr)) | ||
| 477 | PP_ASSERT_WITH_CODE(false, | ||
| 478 | "Attempt to populate GnbLPML Min and Max Vid Failed!", | ||
| 479 | return -EINVAL); | ||
| 480 | |||
| 481 | /* DW20 */ | 470 | /* DW20 */ |
| 482 | if (fiji_populate_bapm_vddc_base_leakage_sidd(hwmgr)) | 471 | if (fiji_populate_bapm_vddc_base_leakage_sidd(hwmgr)) |
| 483 | PP_ASSERT_WITH_CODE(false, | 472 | PP_ASSERT_WITH_CODE(false, |
diff --git a/drivers/gpu/drm/amd/powerplay/smumgr/iceland_smc.c b/drivers/gpu/drm/amd/powerplay/smumgr/iceland_smc.c index 51adf04ab4b3..1ed3214a965f 100644 --- a/drivers/gpu/drm/amd/powerplay/smumgr/iceland_smc.c +++ b/drivers/gpu/drm/amd/powerplay/smumgr/iceland_smc.c | |||
| @@ -193,11 +193,6 @@ static int iceland_populate_gnb_lpml(struct pp_hwmgr *hwmgr) | |||
| 193 | return 0; | 193 | return 0; |
| 194 | } | 194 | } |
| 195 | 195 | ||
| 196 | static int iceland_min_max_vgnb_lpml_id_from_bapm_vddc(struct pp_hwmgr *hwmgr) | ||
| 197 | { | ||
| 198 | return 0; | ||
| 199 | } | ||
| 200 | |||
| 201 | static int iceland_populate_bapm_vddc_base_leakage_sidd(struct pp_hwmgr *hwmgr) | 196 | static int iceland_populate_bapm_vddc_base_leakage_sidd(struct pp_hwmgr *hwmgr) |
| 202 | { | 197 | { |
| 203 | struct iceland_smumgr *smu_data = (struct iceland_smumgr *)(hwmgr->smumgr->backend); | 198 | struct iceland_smumgr *smu_data = (struct iceland_smumgr *)(hwmgr->smumgr->backend); |
| @@ -317,12 +312,6 @@ static int iceland_populate_pm_fuses(struct pp_hwmgr *hwmgr) | |||
| 317 | "Attempt to populate GnbLPML Failed!", | 312 | "Attempt to populate GnbLPML Failed!", |
| 318 | return -EINVAL); | 313 | return -EINVAL); |
| 319 | 314 | ||
| 320 | /* DW17 */ | ||
| 321 | if (iceland_min_max_vgnb_lpml_id_from_bapm_vddc(hwmgr)) | ||
| 322 | PP_ASSERT_WITH_CODE(false, | ||
| 323 | "Attempt to populate GnbLPML Min and Max Vid Failed!", | ||
| 324 | return -EINVAL); | ||
| 325 | |||
| 326 | /* DW18 */ | 315 | /* DW18 */ |
| 327 | if (iceland_populate_bapm_vddc_base_leakage_sidd(hwmgr)) | 316 | if (iceland_populate_bapm_vddc_base_leakage_sidd(hwmgr)) |
| 328 | PP_ASSERT_WITH_CODE(false, | 317 | PP_ASSERT_WITH_CODE(false, |
| @@ -339,7 +328,7 @@ static int iceland_populate_pm_fuses(struct pp_hwmgr *hwmgr) | |||
| 339 | return 0; | 328 | return 0; |
| 340 | } | 329 | } |
| 341 | 330 | ||
| 342 | static int iceland_get_dependecy_volt_by_clk(struct pp_hwmgr *hwmgr, | 331 | static int iceland_get_dependency_volt_by_clk(struct pp_hwmgr *hwmgr, |
| 343 | struct phm_clock_voltage_dependency_table *allowed_clock_voltage_table, | 332 | struct phm_clock_voltage_dependency_table *allowed_clock_voltage_table, |
| 344 | uint32_t clock, uint32_t *vol) | 333 | uint32_t clock, uint32_t *vol) |
| 345 | { | 334 | { |
| @@ -749,7 +738,7 @@ static int iceland_populate_single_graphic_level(struct pp_hwmgr *hwmgr, | |||
| 749 | result = iceland_calculate_sclk_params(hwmgr, engine_clock, graphic_level); | 738 | result = iceland_calculate_sclk_params(hwmgr, engine_clock, graphic_level); |
| 750 | 739 | ||
| 751 | /* populate graphics levels*/ | 740 | /* populate graphics levels*/ |
| 752 | result = iceland_get_dependecy_volt_by_clk(hwmgr, | 741 | result = iceland_get_dependency_volt_by_clk(hwmgr, |
| 753 | hwmgr->dyn_state.vddc_dependency_on_sclk, engine_clock, | 742 | hwmgr->dyn_state.vddc_dependency_on_sclk, engine_clock, |
| 754 | &graphic_level->MinVddc); | 743 | &graphic_level->MinVddc); |
| 755 | PP_ASSERT_WITH_CODE((0 == result), | 744 | PP_ASSERT_WITH_CODE((0 == result), |
| @@ -1104,7 +1093,7 @@ static int iceland_populate_single_memory_level( | |||
| 1104 | uint32_t mclk_strobe_mode_threshold = 40000; | 1093 | uint32_t mclk_strobe_mode_threshold = 40000; |
| 1105 | 1094 | ||
| 1106 | if (hwmgr->dyn_state.vddc_dependency_on_mclk != NULL) { | 1095 | if (hwmgr->dyn_state.vddc_dependency_on_mclk != NULL) { |
| 1107 | result = iceland_get_dependecy_volt_by_clk(hwmgr, | 1096 | result = iceland_get_dependency_volt_by_clk(hwmgr, |
| 1108 | hwmgr->dyn_state.vddc_dependency_on_mclk, memory_clock, &memory_level->MinVddc); | 1097 | hwmgr->dyn_state.vddc_dependency_on_mclk, memory_clock, &memory_level->MinVddc); |
| 1109 | PP_ASSERT_WITH_CODE((0 == result), | 1098 | PP_ASSERT_WITH_CODE((0 == result), |
| 1110 | "can not find MinVddc voltage value from memory VDDC voltage dependency table", return result); | 1099 | "can not find MinVddc voltage value from memory VDDC voltage dependency table", return result); |
| @@ -1113,7 +1102,7 @@ static int iceland_populate_single_memory_level( | |||
| 1113 | if (data->vddci_control == SMU7_VOLTAGE_CONTROL_NONE) { | 1102 | if (data->vddci_control == SMU7_VOLTAGE_CONTROL_NONE) { |
| 1114 | memory_level->MinVddci = memory_level->MinVddc; | 1103 | memory_level->MinVddci = memory_level->MinVddc; |
| 1115 | } else if (NULL != hwmgr->dyn_state.vddci_dependency_on_mclk) { | 1104 | } else if (NULL != hwmgr->dyn_state.vddci_dependency_on_mclk) { |
| 1116 | result = iceland_get_dependecy_volt_by_clk(hwmgr, | 1105 | result = iceland_get_dependency_volt_by_clk(hwmgr, |
| 1117 | hwmgr->dyn_state.vddci_dependency_on_mclk, | 1106 | hwmgr->dyn_state.vddci_dependency_on_mclk, |
| 1118 | memory_clock, | 1107 | memory_clock, |
| 1119 | &memory_level->MinVddci); | 1108 | &memory_level->MinVddci); |
| @@ -1776,7 +1765,7 @@ static int iceland_populate_bapm_parameters_in_dpm_table(struct pp_hwmgr *hwmgr) | |||
| 1776 | CONVERT_FROM_HOST_TO_SMC_US(dpm_table->PPM_PkgPwrLimit); | 1765 | CONVERT_FROM_HOST_TO_SMC_US(dpm_table->PPM_PkgPwrLimit); |
| 1777 | CONVERT_FROM_HOST_TO_SMC_US(dpm_table->PPM_TemperatureLimit); | 1766 | CONVERT_FROM_HOST_TO_SMC_US(dpm_table->PPM_TemperatureLimit); |
| 1778 | 1767 | ||
| 1779 | dpm_table->BAPM_TEMP_GRADIENT = PP_HOST_TO_SMC_UL(defaults->bamp_temp_gradient); | 1768 | dpm_table->BAPM_TEMP_GRADIENT = PP_HOST_TO_SMC_UL(defaults->bapm_temp_gradient); |
| 1780 | def1 = defaults->bapmti_r; | 1769 | def1 = defaults->bapmti_r; |
| 1781 | def2 = defaults->bapmti_rc; | 1770 | def2 = defaults->bapmti_rc; |
| 1782 | 1771 | ||
diff --git a/drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.h b/drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.h index 8eae01b37c40..802472530d34 100644 --- a/drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.h +++ b/drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.h | |||
| @@ -39,7 +39,7 @@ struct iceland_pt_defaults { | |||
| 39 | uint8_t tdc_waterfall_ctl; | 39 | uint8_t tdc_waterfall_ctl; |
| 40 | uint8_t dte_ambient_temp_base; | 40 | uint8_t dte_ambient_temp_base; |
| 41 | uint32_t display_cac; | 41 | uint32_t display_cac; |
| 42 | uint32_t bamp_temp_gradient; | 42 | uint32_t bapm_temp_gradient; |
| 43 | uint16_t bapmti_r[SMU71_DTE_ITERATIONS * SMU71_DTE_SOURCES * SMU71_DTE_SINKS]; | 43 | uint16_t bapmti_r[SMU71_DTE_ITERATIONS * SMU71_DTE_SOURCES * SMU71_DTE_SINKS]; |
| 44 | uint16_t bapmti_rc[SMU71_DTE_ITERATIONS * SMU71_DTE_SOURCES * SMU71_DTE_SINKS]; | 44 | uint16_t bapmti_rc[SMU71_DTE_ITERATIONS * SMU71_DTE_SOURCES * SMU71_DTE_SINKS]; |
| 45 | }; | 45 | }; |
diff --git a/drivers/gpu/drm/amd/powerplay/smumgr/polaris10_smc.c b/drivers/gpu/drm/amd/powerplay/smumgr/polaris10_smc.c index 99a00bd39256..2d444bb4802a 100644 --- a/drivers/gpu/drm/amd/powerplay/smumgr/polaris10_smc.c +++ b/drivers/gpu/drm/amd/powerplay/smumgr/polaris10_smc.c | |||
| @@ -288,11 +288,6 @@ static int polaris10_populate_gnb_lpml(struct pp_hwmgr *hwmgr) | |||
| 288 | return 0; | 288 | return 0; |
| 289 | } | 289 | } |
| 290 | 290 | ||
| 291 | static int polaris10_min_max_vgnb_lpml_id_from_bapm_vddc(struct pp_hwmgr *hwmgr) | ||
| 292 | { | ||
| 293 | return 0; | ||
| 294 | } | ||
| 295 | |||
| 296 | static int polaris10_populate_bapm_vddc_base_leakage_sidd(struct pp_hwmgr *hwmgr) | 291 | static int polaris10_populate_bapm_vddc_base_leakage_sidd(struct pp_hwmgr *hwmgr) |
| 297 | { | 292 | { |
| 298 | struct polaris10_smumgr *smu_data = (struct polaris10_smumgr *)(hwmgr->smumgr->backend); | 293 | struct polaris10_smumgr *smu_data = (struct polaris10_smumgr *)(hwmgr->smumgr->backend); |
| @@ -358,11 +353,6 @@ static int polaris10_populate_pm_fuses(struct pp_hwmgr *hwmgr) | |||
| 358 | "Attempt to populate GnbLPML Failed!", | 353 | "Attempt to populate GnbLPML Failed!", |
| 359 | return -EINVAL); | 354 | return -EINVAL); |
| 360 | 355 | ||
| 361 | if (polaris10_min_max_vgnb_lpml_id_from_bapm_vddc(hwmgr)) | ||
| 362 | PP_ASSERT_WITH_CODE(false, | ||
| 363 | "Attempt to populate GnbLPML Min and Max Vid Failed!", | ||
| 364 | return -EINVAL); | ||
| 365 | |||
| 366 | if (polaris10_populate_bapm_vddc_base_leakage_sidd(hwmgr)) | 356 | if (polaris10_populate_bapm_vddc_base_leakage_sidd(hwmgr)) |
| 367 | PP_ASSERT_WITH_CODE(false, | 357 | PP_ASSERT_WITH_CODE(false, |
| 368 | "Attempt to populate BapmVddCBaseLeakage Hi and Lo " | 358 | "Attempt to populate BapmVddCBaseLeakage Hi and Lo " |
diff --git a/drivers/gpu/drm/amd/powerplay/smumgr/tonga_smc.c b/drivers/gpu/drm/amd/powerplay/smumgr/tonga_smc.c index 65d3a4893958..a628eec5e6da 100644 --- a/drivers/gpu/drm/amd/powerplay/smumgr/tonga_smc.c +++ b/drivers/gpu/drm/amd/powerplay/smumgr/tonga_smc.c | |||
| @@ -97,7 +97,7 @@ static const uint8_t tonga_clock_stretch_amount_conversion[2][6] = { | |||
| 97 | */ | 97 | */ |
| 98 | 98 | ||
| 99 | 99 | ||
| 100 | static int tonga_get_dependecy_volt_by_clk(struct pp_hwmgr *hwmgr, | 100 | static int tonga_get_dependency_volt_by_clk(struct pp_hwmgr *hwmgr, |
| 101 | phm_ppt_v1_clock_voltage_dependency_table *allowed_clock_voltage_table, | 101 | phm_ppt_v1_clock_voltage_dependency_table *allowed_clock_voltage_table, |
| 102 | uint32_t clock, SMU_VoltageLevel *voltage, uint32_t *mvdd) | 102 | uint32_t clock, SMU_VoltageLevel *voltage, uint32_t *mvdd) |
| 103 | { | 103 | { |
| @@ -539,7 +539,7 @@ static int tonga_populate_single_graphic_level(struct pp_hwmgr *hwmgr, | |||
| 539 | result = tonga_calculate_sclk_params(hwmgr, engine_clock, graphic_level); | 539 | result = tonga_calculate_sclk_params(hwmgr, engine_clock, graphic_level); |
| 540 | 540 | ||
| 541 | /* populate graphics levels*/ | 541 | /* populate graphics levels*/ |
| 542 | result = tonga_get_dependecy_volt_by_clk(hwmgr, | 542 | result = tonga_get_dependency_volt_by_clk(hwmgr, |
| 543 | pptable_info->vdd_dep_on_sclk, engine_clock, | 543 | pptable_info->vdd_dep_on_sclk, engine_clock, |
| 544 | &graphic_level->MinVoltage, &mvdd); | 544 | &graphic_level->MinVoltage, &mvdd); |
| 545 | PP_ASSERT_WITH_CODE((!result), | 545 | PP_ASSERT_WITH_CODE((!result), |
| @@ -895,7 +895,7 @@ static int tonga_populate_single_memory_level( | |||
| 895 | uint32_t mclk_strobe_mode_threshold = 40000; | 895 | uint32_t mclk_strobe_mode_threshold = 40000; |
| 896 | 896 | ||
| 897 | if (NULL != pptable_info->vdd_dep_on_mclk) { | 897 | if (NULL != pptable_info->vdd_dep_on_mclk) { |
| 898 | result = tonga_get_dependecy_volt_by_clk(hwmgr, | 898 | result = tonga_get_dependency_volt_by_clk(hwmgr, |
| 899 | pptable_info->vdd_dep_on_mclk, | 899 | pptable_info->vdd_dep_on_mclk, |
| 900 | memory_clock, | 900 | memory_clock, |
| 901 | &memory_level->MinVoltage, &mvdd); | 901 | &memory_level->MinVoltage, &mvdd); |
| @@ -1838,7 +1838,7 @@ static int tonga_populate_bapm_parameters_in_dpm_table(struct pp_hwmgr *hwmgr) | |||
| 1838 | dpm_table->DTEAmbientTempBase = defaults->dte_ambient_temp_base; | 1838 | dpm_table->DTEAmbientTempBase = defaults->dte_ambient_temp_base; |
| 1839 | 1839 | ||
| 1840 | dpm_table->BAPM_TEMP_GRADIENT = | 1840 | dpm_table->BAPM_TEMP_GRADIENT = |
| 1841 | PP_HOST_TO_SMC_UL(defaults->bamp_temp_gradient); | 1841 | PP_HOST_TO_SMC_UL(defaults->bapm_temp_gradient); |
| 1842 | pdef1 = defaults->bapmti_r; | 1842 | pdef1 = defaults->bapmti_r; |
| 1843 | pdef2 = defaults->bapmti_rc; | 1843 | pdef2 = defaults->bapmti_rc; |
| 1844 | 1844 | ||
| @@ -1958,11 +1958,6 @@ static int tonga_populate_gnb_lpml(struct pp_hwmgr *hwmgr) | |||
| 1958 | return 0; | 1958 | return 0; |
| 1959 | } | 1959 | } |
| 1960 | 1960 | ||
| 1961 | static int tonga_min_max_vgnb_lpml_id_from_bapm_vddc(struct pp_hwmgr *hwmgr) | ||
| 1962 | { | ||
| 1963 | return 0; | ||
| 1964 | } | ||
| 1965 | |||
| 1966 | static int tonga_populate_bapm_vddc_base_leakage_sidd(struct pp_hwmgr *hwmgr) | 1961 | static int tonga_populate_bapm_vddc_base_leakage_sidd(struct pp_hwmgr *hwmgr) |
| 1967 | { | 1962 | { |
| 1968 | struct tonga_smumgr *smu_data = | 1963 | struct tonga_smumgr *smu_data = |
| @@ -2035,13 +2030,6 @@ static int tonga_populate_pm_fuses(struct pp_hwmgr *hwmgr) | |||
| 2035 | "Attempt to populate GnbLPML Failed !", | 2030 | "Attempt to populate GnbLPML Failed !", |
| 2036 | return -EINVAL); | 2031 | return -EINVAL); |
| 2037 | 2032 | ||
| 2038 | /* DW19 */ | ||
| 2039 | if (tonga_min_max_vgnb_lpml_id_from_bapm_vddc(hwmgr)) | ||
| 2040 | PP_ASSERT_WITH_CODE(false, | ||
| 2041 | "Attempt to populate GnbLPML " | ||
| 2042 | "Min and Max Vid Failed !", | ||
| 2043 | return -EINVAL); | ||
| 2044 | |||
| 2045 | /* DW20 */ | 2033 | /* DW20 */ |
| 2046 | if (tonga_populate_bapm_vddc_base_leakage_sidd(hwmgr)) | 2034 | if (tonga_populate_bapm_vddc_base_leakage_sidd(hwmgr)) |
| 2047 | PP_ASSERT_WITH_CODE( | 2035 | PP_ASSERT_WITH_CODE( |
diff --git a/drivers/gpu/drm/amd/powerplay/smumgr/tonga_smc.h b/drivers/gpu/drm/amd/powerplay/smumgr/tonga_smc.h index 962860f13f24..9d6a78a65976 100644 --- a/drivers/gpu/drm/amd/powerplay/smumgr/tonga_smc.h +++ b/drivers/gpu/drm/amd/powerplay/smumgr/tonga_smc.h | |||
| @@ -40,7 +40,7 @@ struct tonga_pt_defaults { | |||
| 40 | uint8_t tdc_waterfall_ctl; | 40 | uint8_t tdc_waterfall_ctl; |
| 41 | uint8_t dte_ambient_temp_base; | 41 | uint8_t dte_ambient_temp_base; |
| 42 | uint32_t display_cac; | 42 | uint32_t display_cac; |
| 43 | uint32_t bamp_temp_gradient; | 43 | uint32_t bapm_temp_gradient; |
| 44 | uint16_t bapmti_r[SMU72_DTE_ITERATIONS * SMU72_DTE_SOURCES * SMU72_DTE_SINKS]; | 44 | uint16_t bapmti_r[SMU72_DTE_ITERATIONS * SMU72_DTE_SOURCES * SMU72_DTE_SINKS]; |
| 45 | uint16_t bapmti_rc[SMU72_DTE_ITERATIONS * SMU72_DTE_SOURCES * SMU72_DTE_SINKS]; | 45 | uint16_t bapmti_rc[SMU72_DTE_ITERATIONS * SMU72_DTE_SOURCES * SMU72_DTE_SINKS]; |
| 46 | }; | 46 | }; |
