/linux-6.1.9/drivers/gpu/drm/amd/pm/powerplay/hwmgr/ |
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() 97 if (hwmgr->thermal_controller.fanInfo.bNoFan) in vega10_fan_ctrl_get_fan_speed_rpm() 216 if (hwmgr->thermal_controller.fanInfo.bNoFan) in vega10_fan_ctrl_start_smc_fan_control() 231 if (hwmgr->thermal_controller.fanInfo.bNoFan) in vega10_fan_ctrl_stop_smc_fan_control() 255 if (hwmgr->thermal_controller.fanInfo.bNoFan) in vega10_fan_ctrl_set_fan_speed_pwm() 287 if (hwmgr->thermal_controller.fanInfo.bNoFan) in vega10_fan_ctrl_reset_fan_speed_to_default() 309 if (hwmgr->thermal_controller.fanInfo.bNoFan || in vega10_fan_ctrl_set_fan_speed_rpm() [all …]
|
D | process_pptables_v1_0.c | 914 ATOM_Tonga_Thermal_Controller *thermal_controller; in init_thermal_controller() local 916 thermal_controller = (ATOM_Tonga_Thermal_Controller *) in init_thermal_controller() 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() 927 (0 != (thermal_controller->ucFanParameters & ATOM_TONGA_PP_FANPARAMETERS_NOFAN)); in init_thermal_controller() 929 hwmgr->thermal_controller.fanInfo.ucTachometerPulsesPerRevolution = in init_thermal_controller() 930 thermal_controller->ucFanParameters & in init_thermal_controller() 933 hwmgr->thermal_controller.fanInfo.ulMinRPM in init_thermal_controller() [all …]
|
D | smu7_thermal.c | 32 if (hwmgr->thermal_controller.fanInfo.bNoFan) in smu7_fan_ctrl_get_fan_speed_info() 41 hwmgr->thermal_controller.fanInfo.ucTachometerPulsesPerRevolution) { in smu7_fan_ctrl_get_fan_speed_info() 44 fan_speed_info->min_rpm = hwmgr->thermal_controller.fanInfo.ulMinRPM; in smu7_fan_ctrl_get_fan_speed_info() 45 fan_speed_info->max_rpm = hwmgr->thermal_controller.fanInfo.ulMaxRPM; 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() 86 !hwmgr->thermal_controller.fanInfo.ucTachometerPulsesPerRevolution) 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() [all …]
|
D | vega10_processpptables.c | 123 const ATOM_Vega10_Thermal_Controller *thermal_controller; in init_thermal_controller() local 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() 144 hwmgr->thermal_controller.fanInfo.ucTachometerPulsesPerRevolution = in init_thermal_controller() 145 thermal_controller->ucFanParameters & in init_thermal_controller() 148 hwmgr->thermal_controller.fanInfo.ulMinRPM = in init_thermal_controller() [all …]
|
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() 998 hwmgr->thermal_controller.fanInfo.ucTachometerPulsesPerRevolution = in init_thermal_controller() 1002 hwmgr->thermal_controller.fanInfo.ulMinRPM in init_thermal_controller() 1004 hwmgr->thermal_controller.fanInfo.ulMaxRPM in init_thermal_controller() 1008 ATOM_PP_THERMALCONTROLLER_NONE != hwmgr->thermal_controller.ucType, 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() [all …]
|
D | vega12_processpptables.c | 199 hwmgr->thermal_controller.ucType = powerplay_table->ucThermalControllerType; in init_powerplay_table_information() 203 ATOM_VEGA12_PP_THERMALCONTROLLER_NONE != hwmgr->thermal_controller.ucType, in init_powerplay_table_information()
|
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()
|
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() 2523 (uint16_t)hwmgr->thermal_controller.advanceFanControlParameters.ucMinimumPWMLimit; in smu7_thermal_parameter_init() 2525 hwmgr->thermal_controller.advanceFanControlParameters.usFanPWMMaxLimit = in smu7_thermal_parameter_init() 2526 (uint16_t)hwmgr->thermal_controller.advanceFanControlParameters.usDefaultMaxFanPWM; 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() 2533 (uint16_t)hwmgr->thermal_controller.advanceFanControlParameters.ucMinimumPWMLimit; in smu7_thermal_parameter_init() 2535 hwmgr->thermal_controller.advanceFanControlParameters.usFanRPMStep = 1; in smu7_thermal_parameter_init() [all …]
|
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()
|
D | hwmgr.c | 239 hwmgr->thermal_controller.fanInfo.bNoFan; in hwmgr_hw_init()
|
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()
|
D | vega20_hwmgr.c | 224 hwmgr->thermal_controller.advanceFanControlParameters.usTMax) in vega20_set_features_platform_caps()
|
/linux-6.1.9/drivers/gpu/drm/amd/pm/powerplay/smumgr/ |
D | polaris10_smumgr.c | 437 &hwmgr->thermal_controller.advanceFanControlParameters; in polaris10_populate_bapm_parameters_in_dpm_table() 480 ((uint16_t)hwmgr->thermal_controller.advanceFanControlParameters.ucFanStopTemperature) << 8; in polaris10_populate_zero_rpm_parameters() 482 ((uint16_t)hwmgr->thermal_controller.advanceFanControlParameters.ucFanStartTemperature) << 8; in polaris10_populate_zero_rpm_parameters() 484 if (hwmgr->thermal_controller.advanceFanControlParameters.ucEnableZeroRPM) { in polaris10_populate_zero_rpm_parameters() 562 if ((hwmgr->thermal_controller.advanceFanControlParameters.usFanOutputSensitivity & (1 << 15)) in polaris10_populate_fuzzy_fan() 563 || 0 == hwmgr->thermal_controller.advanceFanControlParameters.usFanOutputSensitivity) in polaris10_populate_fuzzy_fan() 564 hwmgr->thermal_controller.advanceFanControlParameters.usFanOutputSensitivity = in polaris10_populate_fuzzy_fan() 565 hwmgr->thermal_controller.advanceFanControlParameters.usDefaultFanOutputSensitivity; in polaris10_populate_fuzzy_fan() 568 hwmgr->thermal_controller.advanceFanControlParameters.usFanOutputSensitivity); in polaris10_populate_fuzzy_fan() 2178 if (hwmgr->thermal_controller.fanInfo.bNoFan) { in polaris10_thermal_setup_fan_table() [all …]
|
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() 645 0 == 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() 2161 tmp64 = hwmgr->thermal_controller.advanceFanControlParameters. in fiji_thermal_setup_fan_table() 2166 t_diff1 = hwmgr->thermal_controller.advanceFanControlParameters.usTMed - in fiji_thermal_setup_fan_table() 2167 hwmgr->thermal_controller.advanceFanControlParameters.usTMin; in fiji_thermal_setup_fan_table() [all …]
|
D | tonga_smumgr.c | 1947 if ((hwmgr->thermal_controller.advanceFanControlParameters. in tonga_populate_fuzzy_fan() 1949 (hwmgr->thermal_controller.advanceFanControlParameters.usFanOutputSensitivity == 0)) 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() 2498 tmp64 = hwmgr->thermal_controller.advanceFanControlParameters.usPWMMin * duty100; 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() [all …]
|
D | ci_smumgr.c | 567 if ((hwmgr->thermal_controller.advanceFanControlParameters.usFanOutputSensitivity & (1 << 15)) in ci_populate_fuzzy_fan() 568 || 0 == hwmgr->thermal_controller.advanceFanControlParameters.usFanOutputSensitivity) in ci_populate_fuzzy_fan() 569 tmp = hwmgr->thermal_controller.advanceFanControlParameters.usFanOutputSensitivity; in ci_populate_fuzzy_fan() 571 tmp = hwmgr->thermal_controller.advanceFanControlParameters.usDefaultFanOutputSensitivity; in ci_populate_fuzzy_fan() 2140 if (hwmgr->thermal_controller.fanInfo.bNoFan) { in ci_thermal_setup_fan_table() 2158 tmp64 = hwmgr->thermal_controller.advanceFanControlParameters.usPWMMin * duty100; in ci_thermal_setup_fan_table() 2162 …t_diff1 = hwmgr->thermal_controller.advanceFanControlParameters.usTMed - hwmgr->thermal_controller… in ci_thermal_setup_fan_table() 2163 …t_diff2 = hwmgr->thermal_controller.advanceFanControlParameters.usTHigh - hwmgr->thermal_controlle… in ci_thermal_setup_fan_table() 2165 …pwm_diff1 = hwmgr->thermal_controller.advanceFanControlParameters.usPWMMed - hwmgr->thermal_contro… in ci_thermal_setup_fan_table() 2166 …pwm_diff2 = hwmgr->thermal_controller.advanceFanControlParameters.usPWMHigh - hwmgr->thermal_contr… in ci_thermal_setup_fan_table() [all …]
|
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 …]
|
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-6.1.9/drivers/gpu/drm/radeon/ |
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-6.1.9/drivers/gpu/drm/amd/pm/powerplay/ |
D | amd_powerplay.c | 778 *((uint32_t *)value) = hwmgr->thermal_controller.fanInfo.ulMinRPM; in pp_dpm_read_sensor() 781 *((uint32_t *)value) = hwmgr->thermal_controller.fanInfo.ulMaxRPM; in pp_dpm_read_sensor()
|
/linux-6.1.9/drivers/gpu/drm/amd/pm/powerplay/inc/ |
D | hwmgr.h | 785 struct pp_thermal_controller_info thermal_controller; member
|