/linux/drivers/gpu/drm/amd/pm/powerplay/hwmgr/ |
A D | vega10_thermal.c | 42 if (hwmgr->thermal_controller.fanInfo.bNoFan) in vega10_fan_ctrl_get_fan_speed_info() 51 hwmgr->thermal_controller.fanInfo. in vega10_fan_ctrl_get_fan_speed_info() 56 hwmgr->thermal_controller.fanInfo.ulMinRPM; in vega10_fan_ctrl_get_fan_speed_info() 58 hwmgr->thermal_controller.fanInfo.ulMaxRPM; in vega10_fan_ctrl_get_fan_speed_info() 73 if (hwmgr->thermal_controller.fanInfo.bNoFan) in vega10_fan_ctrl_get_fan_speed_pwm() 79 if (hwmgr->thermal_controller. in vega10_fan_ctrl_get_fan_speed_pwm() 82 hwmgr->thermal_controller. in vega10_fan_ctrl_get_fan_speed_pwm() 98 if (hwmgr->thermal_controller.fanInfo.bNoFan) in vega10_fan_ctrl_get_fan_speed_rpm() 217 if (hwmgr->thermal_controller.fanInfo.bNoFan) in vega10_fan_ctrl_start_smc_fan_control() 232 if (hwmgr->thermal_controller.fanInfo.bNoFan) in vega10_fan_ctrl_stop_smc_fan_control() [all …]
|
A D | process_pptables_v1_0.c | 914 ATOM_Tonga_Thermal_Controller *thermal_controller; in init_thermal_controller() local 922 hwmgr->thermal_controller.ucType = thermal_controller->ucType; in init_thermal_controller() 923 hwmgr->thermal_controller.ucI2cLine = thermal_controller->ucI2cLine; in init_thermal_controller() 924 hwmgr->thermal_controller.ucI2cAddress = thermal_controller->ucI2cAddress; in init_thermal_controller() 926 hwmgr->thermal_controller.fanInfo.bNoFan = in init_thermal_controller() 930 thermal_controller->ucFanParameters & in init_thermal_controller() 933 hwmgr->thermal_controller.fanInfo.ulMinRPM in init_thermal_controller() 934 = thermal_controller->ucFanMinRPM * 100UL; in init_thermal_controller() 935 hwmgr->thermal_controller.fanInfo.ulMaxRPM in init_thermal_controller() 936 = thermal_controller->ucFanMaxRPM * 100UL; in init_thermal_controller() [all …]
|
A D | smu7_thermal.c | 32 if (hwmgr->thermal_controller.fanInfo.bNoFan) in smu7_fan_ctrl_get_fan_speed_info() 61 if (hwmgr->thermal_controller.fanInfo.bNoFan) in smu7_fan_ctrl_get_fan_speed_pwm() 85 if (hwmgr->thermal_controller.fanInfo.bNoFan || in smu7_fan_ctrl_get_fan_speed_rpm() 156 hwmgr->thermal_controller. in smu7_fan_ctrl_start_smc_fan_control() 160 hwmgr->thermal_controller. in smu7_fan_ctrl_start_smc_fan_control() 168 if (!result && hwmgr->thermal_controller. in smu7_fan_ctrl_start_smc_fan_control() 172 hwmgr->thermal_controller. in smu7_fan_ctrl_start_smc_fan_control() 210 if (hwmgr->thermal_controller.fanInfo.bNoFan) in smu7_fan_ctrl_set_fan_speed_pwm() 243 if (hwmgr->thermal_controller.fanInfo.bNoFan) in smu7_fan_ctrl_reset_fan_speed_to_default() 268 (hwmgr->thermal_controller.fanInfo. in smu7_fan_ctrl_set_fan_speed_rpm() [all …]
|
A D | vega10_processpptables.c | 129 thermal_controller = (ATOM_Vega10_Thermal_Controller *) in init_thermal_controller() 136 hwmgr->thermal_controller.ucType = thermal_controller->ucType; in init_thermal_controller() 137 hwmgr->thermal_controller.ucI2cLine = thermal_controller->ucI2cLine; in init_thermal_controller() 138 hwmgr->thermal_controller.ucI2cAddress = thermal_controller->ucI2cAddress; in init_thermal_controller() 140 hwmgr->thermal_controller.fanInfo.bNoFan = in init_thermal_controller() 141 (0 != (thermal_controller->ucFanParameters & in init_thermal_controller() 145 thermal_controller->ucFanParameters & in init_thermal_controller() 148 hwmgr->thermal_controller.fanInfo.ulMinRPM = in init_thermal_controller() 149 thermal_controller->ucFanMinRPM * 100UL; in init_thermal_controller() 150 hwmgr->thermal_controller.fanInfo.ulMaxRPM = in init_thermal_controller() [all …]
|
A D | processpptables.c | 987 hwmgr->thermal_controller.ucType = in init_thermal_controller() 989 hwmgr->thermal_controller.ucI2cLine = in init_thermal_controller() 991 hwmgr->thermal_controller.ucI2cAddress = in init_thermal_controller() 994 hwmgr->thermal_controller.fanInfo.bNoFan = in init_thermal_controller() 1002 hwmgr->thermal_controller.fanInfo.ulMinRPM in init_thermal_controller() 1004 hwmgr->thermal_controller.fanInfo.ulMaxRPM in init_thermal_controller() 1016 hwmgr->thermal_controller.use_hw_fan_control = 1; in init_thermal_controller() 1024 hwmgr->thermal_controller.advanceFanControlParameters.ucTHyst = in init_thermal_controller() 1026 hwmgr->thermal_controller.advanceFanControlParameters.usTMin = in init_thermal_controller() 1028 hwmgr->thermal_controller.advanceFanControlParameters.usTMed = in init_thermal_controller() [all …]
|
A D | vega12_processpptables.c | 200 hwmgr->thermal_controller.ucType = powerplay_table->ucThermalControllerType; in init_powerplay_table_information() 204 ATOM_VEGA12_PP_THERMALCONTROLLER_NONE != hwmgr->thermal_controller.ucType, in init_powerplay_table_information()
|
A D | vega20_processpptables.c | 825 hwmgr->thermal_controller.ucType = powerplay_table->ucThermalControllerType; in init_powerplay_table_information() 827 hwmgr->thermal_controller.fanInfo.ulMinRPM = 0; in init_powerplay_table_information() 828 hwmgr->thermal_controller.fanInfo.ulMaxRPM = powerplay_table->smcPPTable.FanMaximumRpm; in init_powerplay_table_information() 831 ATOM_VEGA20_PP_THERMALCONTROLLER_NONE != hwmgr->thermal_controller.ucType, in init_powerplay_table_information()
|
A D | smu7_hwmgr.c | 2521 hwmgr->thermal_controller.advanceFanControlParameters.ucFanControlMode) { in smu7_thermal_parameter_init() 2522 hwmgr->thermal_controller.advanceFanControlParameters.usFanPWMMinLimit = in smu7_thermal_parameter_init() 2525 hwmgr->thermal_controller.advanceFanControlParameters.usFanPWMMaxLimit = in smu7_thermal_parameter_init() 2528 hwmgr->thermal_controller.advanceFanControlParameters.usFanPWMStep = 1; in smu7_thermal_parameter_init() 2530 hwmgr->thermal_controller.advanceFanControlParameters.usFanRPMMaxLimit = 100; in smu7_thermal_parameter_init() 2532 hwmgr->thermal_controller.advanceFanControlParameters.usFanRPMMinLimit = in smu7_thermal_parameter_init() 2535 hwmgr->thermal_controller.advanceFanControlParameters.usFanRPMStep = 1; in smu7_thermal_parameter_init() 2544 hwmgr->thermal_controller.advanceFanControlParameters.usMaxFanPWM = in smu7_thermal_parameter_init() 2547 hwmgr->thermal_controller.advanceFanControlParameters.usMaxFanRPM = in smu7_thermal_parameter_init() 4499 hwmgr->thermal_controller. in smu7_set_max_fan_pwm_output() [all …]
|
A D | vega12_hwmgr.c | 198 && hwmgr->thermal_controller.advanceFanControlParameters.usTMax) in vega12_set_features_platform_caps() 434 hwmgr->thermal_controller.advanceFanControlParameters.usMaxFanRPM; in vega12_hwmgr_backend_init() 436 hwmgr->thermal_controller.advanceFanControlParameters.ucTargetTemperature; in vega12_hwmgr_backend_init() 438 hwmgr->thermal_controller.advanceFanControlParameters.ulMinFanSCLKAcousticLimit; in vega12_hwmgr_backend_init() 440 hwmgr->thermal_controller.advanceFanControlParameters.usFanPWMMinLimit * in vega12_hwmgr_backend_init() 441 hwmgr->thermal_controller.fanInfo.ulMaxRPM / 100; in vega12_hwmgr_backend_init()
|
A D | hwmgr.c | 239 hwmgr->thermal_controller.fanInfo.bNoFan; in hwmgr_hw_init()
|
A D | vega10_hwmgr.c | 921 hwmgr->thermal_controller.advanceFanControlParameters.usMaxFanRPM; in vega10_hwmgr_backend_init() 923 hwmgr->thermal_controller. in vega10_hwmgr_backend_init() 926 hwmgr->thermal_controller.advanceFanControlParameters. in vega10_hwmgr_backend_init() 929 hwmgr->thermal_controller. in vega10_hwmgr_backend_init() 931 hwmgr->thermal_controller.fanInfo.ulMaxRPM / 100; in vega10_hwmgr_backend_init()
|
A D | vega20_hwmgr.c | 224 hwmgr->thermal_controller.advanceFanControlParameters.usTMax) in vega20_set_features_platform_caps()
|
/linux/drivers/gpu/drm/amd/pm/powerplay/smumgr/ |
A D | polaris10_smumgr.c | 437 &hwmgr->thermal_controller.advanceFanControlParameters; in polaris10_populate_bapm_parameters_in_dpm_table() 2178 if (hwmgr->thermal_controller.fanInfo.bNoFan) { in polaris10_thermal_setup_fan_table() 2200 if (hwmgr->thermal_controller.use_hw_fan_control) in polaris10_thermal_setup_fan_table() 2203 tmp64 = hwmgr->thermal_controller.advanceFanControlParameters. in polaris10_thermal_setup_fan_table() 2209 hwmgr->thermal_controller.advanceFanControlParameters.usTMin; in polaris10_thermal_setup_fan_table() 2211 hwmgr->thermal_controller.advanceFanControlParameters.usTMed; in polaris10_thermal_setup_fan_table() 2234 thermal_controller.advanceFanControlParameters.ucTHyst); in polaris10_thermal_setup_fan_table() 2258 if (!res && hwmgr->thermal_controller. in polaris10_thermal_setup_fan_table() 2262 hwmgr->thermal_controller. in polaris10_thermal_setup_fan_table() 2266 if (!res && hwmgr->thermal_controller. in polaris10_thermal_setup_fan_table() [all …]
|
A D | fiji_smumgr.c | 496 &hwmgr->thermal_controller.advanceFanControlParameters; in fiji_populate_bapm_parameters_in_dpm_table() 643 if ((hwmgr->thermal_controller.advanceFanControlParameters. in fiji_populate_fuzzy_fan() 647 hwmgr->thermal_controller.advanceFanControlParameters. in fiji_populate_fuzzy_fan() 648 usFanOutputSensitivity = hwmgr->thermal_controller. in fiji_populate_fuzzy_fan() 652 PP_HOST_TO_SMC_US(hwmgr->thermal_controller. in fiji_populate_fuzzy_fan() 2140 if (hwmgr->thermal_controller.fanInfo.bNoFan) { in fiji_thermal_setup_fan_table() 2192 thermal_controller.advanceFanControlParameters.ucTHyst); in fiji_thermal_setup_fan_table() 2216 if (!res && hwmgr->thermal_controller. in fiji_thermal_setup_fan_table() 2220 hwmgr->thermal_controller. in fiji_thermal_setup_fan_table() 2224 if (!res && hwmgr->thermal_controller. in fiji_thermal_setup_fan_table() [all …]
|
A D | tonga_smumgr.c | 1947 if ((hwmgr->thermal_controller.advanceFanControlParameters. in tonga_populate_fuzzy_fan() 1950 hwmgr->thermal_controller.advanceFanControlParameters. in tonga_populate_fuzzy_fan() 1951 usFanOutputSensitivity = hwmgr->thermal_controller. in tonga_populate_fuzzy_fan() 1955 PP_HOST_TO_SMC_US(hwmgr->thermal_controller. in tonga_populate_fuzzy_fan() 2476 if (hwmgr->thermal_controller.fanInfo.bNoFan) { in tonga_thermal_setup_fan_table() 2502 t_diff1 = hwmgr->thermal_controller.advanceFanControlParameters.usTMed - in tonga_thermal_setup_fan_table() 2503 hwmgr->thermal_controller.advanceFanControlParameters.usTMin; in tonga_thermal_setup_fan_table() 2504 t_diff2 = hwmgr->thermal_controller.advanceFanControlParameters.usTHigh - in tonga_thermal_setup_fan_table() 2505 hwmgr->thermal_controller.advanceFanControlParameters.usTMed; in tonga_thermal_setup_fan_table() 2508 hwmgr->thermal_controller.advanceFanControlParameters.usPWMMin; in tonga_thermal_setup_fan_table() [all …]
|
A D | ci_smumgr.c | 565 if ((hwmgr->thermal_controller.advanceFanControlParameters.usFanOutputSensitivity & (1 << 15)) in ci_populate_fuzzy_fan() 566 || 0 == hwmgr->thermal_controller.advanceFanControlParameters.usFanOutputSensitivity) in ci_populate_fuzzy_fan() 567 tmp = hwmgr->thermal_controller.advanceFanControlParameters.usFanOutputSensitivity; in ci_populate_fuzzy_fan() 569 tmp = hwmgr->thermal_controller.advanceFanControlParameters.usDefaultFanOutputSensitivity; in ci_populate_fuzzy_fan() 2138 if (hwmgr->thermal_controller.fanInfo.bNoFan) { in ci_thermal_setup_fan_table() 2156 tmp64 = hwmgr->thermal_controller.advanceFanControlParameters.usPWMMin * duty100; in ci_thermal_setup_fan_table() 2160 …t_diff1 = hwmgr->thermal_controller.advanceFanControlParameters.usTMed - hwmgr->thermal_controller… in ci_thermal_setup_fan_table() 2161 …t_diff2 = hwmgr->thermal_controller.advanceFanControlParameters.usTHigh - hwmgr->thermal_controlle… in ci_thermal_setup_fan_table() 2163 …pwm_diff1 = hwmgr->thermal_controller.advanceFanControlParameters.usPWMMed - hwmgr->thermal_contro… in ci_thermal_setup_fan_table() 2164 …pwm_diff2 = hwmgr->thermal_controller.advanceFanControlParameters.usPWMHigh - hwmgr->thermal_contr… in ci_thermal_setup_fan_table() [all …]
|
A D | iceland_smumgr.c | 2099 if (hwmgr->thermal_controller.fanInfo.bNoFan) { in iceland_thermal_setup_fan_table() 2117 tmp64 = hwmgr->thermal_controller.advanceFanControlParameters.usPWMMin * duty100; in iceland_thermal_setup_fan_table() 2121 …t_diff1 = hwmgr->thermal_controller.advanceFanControlParameters.usTMed - hwmgr->thermal_controller… in iceland_thermal_setup_fan_table() 2122 …t_diff2 = hwmgr->thermal_controller.advanceFanControlParameters.usTHigh - hwmgr->thermal_controlle… in iceland_thermal_setup_fan_table() 2124 …pwm_diff1 = hwmgr->thermal_controller.advanceFanControlParameters.usPWMMed - hwmgr->thermal_contro… in iceland_thermal_setup_fan_table() 2125 …pwm_diff2 = hwmgr->thermal_controller.advanceFanControlParameters.usPWMHigh - hwmgr->thermal_contr… in iceland_thermal_setup_fan_table() 2130 …fan_table.TempMin = cpu_to_be16((50 + hwmgr->thermal_controller.advanceFanControlParameters.usTMin… in iceland_thermal_setup_fan_table() 2131 …fan_table.TempMed = cpu_to_be16((50 + hwmgr->thermal_controller.advanceFanControlParameters.usTMed… in iceland_thermal_setup_fan_table() 2132 …fan_table.TempMax = cpu_to_be16((50 + hwmgr->thermal_controller.advanceFanControlParameters.usTMax… in iceland_thermal_setup_fan_table() 2139 fan_table.HystDown = cpu_to_be16(hwmgr->thermal_controller.advanceFanControlParameters.ucTHyst); in iceland_thermal_setup_fan_table() [all …]
|
A D | vegam_smumgr.c | 1449 &hwmgr->thermal_controller.advanceFanControlParameters; in vegam_populate_bapm_parameters_in_dpm_table() 1803 if ((hwmgr->thermal_controller.advanceFanControlParameters.usFanOutputSensitivity & (1 << 15)) in vegam_populate_fuzzy_fan() 1804 || 0 == hwmgr->thermal_controller.advanceFanControlParameters.usFanOutputSensitivity) in vegam_populate_fuzzy_fan() 1805 hwmgr->thermal_controller.advanceFanControlParameters.usFanOutputSensitivity = in vegam_populate_fuzzy_fan() 1806 hwmgr->thermal_controller.advanceFanControlParameters.usDefaultFanOutputSensitivity; in vegam_populate_fuzzy_fan() 1809 hwmgr->thermal_controller.advanceFanControlParameters.usFanOutputSensitivity); in vegam_populate_fuzzy_fan() 2270 PP_ASSERT_WITH_CODE(hwmgr->thermal_controller.fanInfo.bNoFan, in vegam_thermal_setup_fan_table()
|
/linux/drivers/gpu/drm/radeon/ |
A D | radeon_combios.c | 2667 u8 thermal_controller = 0, gpio = 0, i2c_addr = 0, clk_bit = 0, data_bit = 0; in radeon_combios_get_power_modes() local 2672 thermal_controller = RBIOS8(offset + 3); in radeon_combios_get_power_modes() 2676 thermal_controller = RBIOS8(offset + 4); in radeon_combios_get_power_modes() 2680 thermal_controller = RBIOS8(offset + 4); in radeon_combios_get_power_modes() 2686 if ((thermal_controller > 0) && (thermal_controller < 3)) { in radeon_combios_get_power_modes() 2688 thermal_controller_names[thermal_controller], in radeon_combios_get_power_modes() 2703 const char *name = thermal_controller_names[thermal_controller]; in radeon_combios_get_power_modes()
|
/linux/drivers/gpu/drm/amd/pm/powerplay/ |
A D | amd_powerplay.c | 849 *((uint32_t *)value) = hwmgr->thermal_controller.fanInfo.ulMinRPM; in pp_dpm_read_sensor() 852 *((uint32_t *)value) = hwmgr->thermal_controller.fanInfo.ulMaxRPM; in pp_dpm_read_sensor()
|
/linux/drivers/gpu/drm/amd/pm/inc/ |
A D | hwmgr.h | 787 struct pp_thermal_controller_info thermal_controller; member
|