Home
last modified time | relevance | path

Searched refs:hwmgr (Results 1 – 25 of 90) sorted by relevance

1234

/linux-6.3-rc2/drivers/gpu/drm/amd/pm/powerplay/hwmgr/
A Dhwmgr.c198 if (!hwmgr|| !hwmgr->smumgr_funcs || !hwmgr->smumgr_funcs->smu_init) in hwmgr_sw_init()
210 if (hwmgr && hwmgr->smumgr_funcs && hwmgr->smumgr_funcs->smu_fini) in hwmgr_sw_fini()
211 hwmgr->smumgr_funcs->smu_fini(hwmgr); in hwmgr_sw_fini()
221 hwmgr->pm_en = (amdgpu_dpm && (hwmgr->not_vf || hwmgr->pp_one_vf)) in hwmgr_hw_init()
271 hwmgr->hwmgr_func->backend_fini(hwmgr); in hwmgr_hw_init()
274 hwmgr->pptable_func->pptable_fini(hwmgr); in hwmgr_hw_init()
281 if (!hwmgr || !hwmgr->pm_en || !hwmgr->not_vf) in hwmgr_hw_fini()
291 hwmgr->hwmgr_func->backend_fini(hwmgr); in hwmgr_hw_fini()
293 hwmgr->pptable_func->pptable_fini(hwmgr); in hwmgr_hw_fini()
301 if (!hwmgr || !hwmgr->pm_en || !hwmgr->not_vf) in hwmgr_suspend()
[all …]
A Dhardwaremanager.c44 return hwmgr->hwmgr_func->asic_setup(hwmgr); in phm_setup_asic()
54 return hwmgr->hwmgr_func->power_off_asic(hwmgr); in phm_power_down_asic()
71 return hwmgr->hwmgr_func->power_state_set(hwmgr, &states); in phm_set_power_state()
84 if (!hwmgr->pp_one_vf && smum_is_dpm_running(hwmgr) in phm_enable_dynamic_state_management()
124 ret = hwmgr->hwmgr_func->force_dpm_level(hwmgr, level); in phm_force_dpm_levels()
157 return hwmgr->hwmgr_func->powerdown_uvd(hwmgr); in phm_powerdown_uvd()
177 hwmgr->hwmgr_func->pre_display_config_changed(hwmgr); in phm_pre_display_configuration_changed()
188 hwmgr->hwmgr_func->display_config_changed(hwmgr); in phm_display_configuration_changed()
221 return hwmgr->hwmgr_func->register_irq_handlers(hwmgr); in phm_register_irq_handlers()
330 hwmgr->hwmgr_func->store_cc6_data(hwmgr, in phm_store_dal_configuration_data()
[all …]
A Dpp_psm.c43 hwmgr->num_ps = table_entries = hwmgr->hwmgr_func->get_num_of_pp_table_entries(hwmgr); in psm_init_power_state_table()
45 hwmgr->ps_size = size = hwmgr->hwmgr_func->get_power_state_size(hwmgr) + in psm_init_power_state_table()
108 if (!hwmgr->ps) in psm_fini_power_state_table()
174 memcpy(hwmgr->request_ps, state, hwmgr->ps_size); in psm_set_states()
187 if (!hwmgr->ps) in psm_set_boot_states()
202 if (!hwmgr->ps) in psm_set_performance_states()
219 if (!hwmgr->ps) in psm_set_user_performance_state()
264 memcpy(hwmgr->current_ps, hwmgr->request_ps, hwmgr->ps_size); in power_state_management()
278 if (hwmgr->ps) in psm_adjust_power_state_dynamic()
291 if (!phm_force_dpm_levels(hwmgr, hwmgr->request_dpm_level)) in psm_adjust_power_state_dynamic()
[all …]
A Dsmu7_thermal.c111 hwmgr->fan_ctrl_default_mode = in smu7_fan_ctrl_set_static_mode()
114 hwmgr->tmin = in smu7_fan_ctrl_set_static_mode()
155 hwmgr->hwmgr_func->set_max_fan_rpm_output(hwmgr, in smu7_fan_ctrl_start_smc_fan_control()
156 hwmgr->thermal_controller. in smu7_fan_ctrl_start_smc_fan_control()
159 hwmgr->hwmgr_func->set_max_fan_pwm_output(hwmgr, in smu7_fan_ctrl_start_smc_fan_control()
160 hwmgr->thermal_controller. in smu7_fan_ctrl_start_smc_fan_control()
172 hwmgr->thermal_controller. in smu7_fan_ctrl_start_smc_fan_control()
186 hwmgr->fan_ctrl_enabled = true; in smu7_fan_ctrl_start_smc_fan_control()
194 hwmgr->fan_ctrl_enabled = false; in smu7_fan_ctrl_stop_smc_fan_control()
447 smu7_thermal_initialize(hwmgr); in smu7_start_thermal_controller()
[all …]
A Dvega10_thermal.c51 hwmgr->thermal_controller.fanInfo. in vega10_fan_ctrl_get_fan_speed_info()
70 struct amdgpu_device *adev = hwmgr->adev; in vega10_fan_ctrl_get_fan_speed_pwm()
131 hwmgr->fan_ctrl_default_mode = in vega10_fan_ctrl_set_static_mode()
134 hwmgr->tmin = in vega10_fan_ctrl_set_static_mode()
163 hwmgr->fan_ctrl_default_mode)); in vega10_fan_ctrl_set_default_mode()
186 hwmgr, true, in vega10_enable_fan_control_feature()
203 hwmgr, false, in vega10_disable_fan_control_feature()
554 ret = smum_smc_table_manager(hwmgr, in vega10_thermal_setup_fan_table()
579 ret = smum_smc_table_manager(hwmgr, in vega10_enable_mgpu_fan_boost()
627 vega10_thermal_initialize(hwmgr); in vega10_start_thermal_controller()
[all …]
A Dsmu10_hwmgr.c131 struct pp_hwmgr *hwmgr) in smu10_init_dynamic_state_adjustment_rule_settings() argument
383 smum_send_msg_to_smc(hwmgr, in smu10_populate_umdpstate_clocks()
558 hwmgr->backend = data; in smu10_hwmgr_backend_init()
591 hwmgr->od_enabled = 1; in smu10_hwmgr_backend_init()
618 kfree(hwmgr->backend); in smu10_hwmgr_backend_fini()
619 hwmgr->backend = NULL; in smu10_hwmgr_backend_fini()
856 if (hwmgr == NULL) in smu10_dpm_get_mclk()
872 if (hwmgr == NULL) in smu10_dpm_get_sclk()
1070 if (hwmgr->od_enabled) { in smu10_print_clock_levels()
1086 if (hwmgr->od_enabled) { in smu10_print_clock_levels()
[all …]
A Dsmu7_clockpowergating.c108 smu7_powerup_uvd(hwmgr); in smu7_disable_clock_power_gating()
109 smu7_powerup_vce(hwmgr); in smu7_disable_clock_power_gating()
128 smu7_powerdown_uvd(hwmgr); in smu7_powergate_uvd()
130 smu7_powerup_uvd(hwmgr); in smu7_powergate_uvd()
156 smu7_powerdown_vce(hwmgr); in smu7_powergate_vce()
158 smu7_powerup_vce(hwmgr); in smu7_powergate_vce()
189 hwmgr, msg, value, NULL)) in smu7_update_clock_gatings()
199 hwmgr, msg, value, NULL)) in smu7_update_clock_gatings()
212 hwmgr, msg, value, NULL)) in smu7_update_clock_gatings()
223 hwmgr, msg, value, NULL)) in smu7_update_clock_gatings()
[all …]
A Dsmu8_hwmgr.c274 struct pp_hwmgr *hwmgr, in smu8_init_dynamic_state_adjustment_rule_settings() argument
778 hwmgr->backend; in smu8_set_watermark_threshold()
824 hwmgr, in smu8_disable_nb_dpm()
846 hwmgr, in smu8_enable_nb_dpm()
1025 hwmgr->pstate_mclk = 0; in smu8_populate_umdpstate_clocks()
1118 hwmgr->backend = data; in smu8_hwmgr_backend_init()
1141 if (hwmgr != NULL) { in smu8_hwmgr_backend_fini()
1145 kfree(hwmgr->backend); in smu8_hwmgr_backend_fini()
1271 hwmgr, in smu8_dpm_powerup_uvd()
1344 if (hwmgr == NULL) in smu8_dpm_get_sclk()
[all …]
A Dsmu7_hwmgr.c734 smu7_override_pcie_speed(hwmgr), smu7_override_pcie_width(hwmgr)); in smu7_setup_default_pcie_table()
2486 if (hwmgr->chip_id >= CHIP_POLARIS10 && hwmgr->chip_id <= CHIP_VEGAM) in smu7_set_private_data_based_on_pptable_v1()
2801 tmp = smu7_patch_vddc(hwmgr, hwmgr->dyn_state.vddc_dependency_on_sclk); in smu7_patch_dependency_tables_with_leakage()
2805 tmp = smu7_patch_vddc(hwmgr, hwmgr->dyn_state.vddc_dependency_on_mclk); in smu7_patch_dependency_tables_with_leakage()
2809 tmp = smu7_patch_vddc(hwmgr, hwmgr->dyn_state.vddc_dep_on_dal_pwrl); in smu7_patch_dependency_tables_with_leakage()
2845 tmp = smu7_patch_cac_vddc(hwmgr, hwmgr->dyn_state.cac_leakage_table); in smu7_patch_dependency_tables_with_leakage()
3303 if (hwmgr->is_kicker || (hwmgr->chip_id == CHIP_POLARIS12)) in smu7_vblank_too_short()
3403 if (hwmgr->chip_id >= CHIP_POLARIS10 && hwmgr->chip_id <= CHIP_VEGAM) in smu7_apply_state_adjust_rules()
3439 if (hwmgr->chip_id >= CHIP_POLARIS10 && hwmgr->chip_id <= CHIP_VEGAM) { in smu7_apply_state_adjust_rules()
3499 if (hwmgr == NULL) in smu7_dpm_get_mclk()
[all …]
A Dprocesspptables.c454 hwmgr, in set_platform_caps()
460 hwmgr, in set_platform_caps()
466 hwmgr, in set_platform_caps()
472 hwmgr, in set_platform_caps()
478 hwmgr, in set_platform_caps()
484 hwmgr, in set_platform_caps()
490 hwmgr, in set_platform_caps()
496 hwmgr, in set_platform_caps()
502 hwmgr, in set_platform_caps()
508 hwmgr, in set_platform_caps()
[all …]
A Dvega12_thermal.c34 PP_ASSERT_WITH_CODE(!smum_send_msg_to_smc(hwmgr, in vega12_get_current_rpm()
59 return vega12_get_current_rpm(hwmgr, speed); in vega12_fan_ctrl_get_fan_speed_rpm()
75 hwmgr, true, in vega12_enable_fan_control_feature()
93 hwmgr, false, in vega12_disable_fan_control_feature()
110 !vega12_enable_fan_control_feature(hwmgr), in vega12_fan_ctrl_start_smc_fan_control()
147 struct amdgpu_device *adev = hwmgr->adev; in vega12_thermal_get_temperature()
175 struct amdgpu_device *adev = hwmgr->adev; in vega12_thermal_set_temperature_range()
209 struct amdgpu_device *adev = hwmgr->adev; in vega12_thermal_enable_alert()
227 struct amdgpu_device *adev = hwmgr->adev; in vega12_thermal_disable_alert()
295 vega12_thermal_enable_alert(hwmgr); in vega12_start_thermal_controller()
[all …]
A Dvega12_hwmgr.c380 kfree(hwmgr->backend); in vega12_hwmgr_backend_fini()
381 hwmgr->backend = NULL; in vega12_hwmgr_backend_fini()
396 hwmgr->backend = data; in vega12_hwmgr_backend_init()
413 vega12_init_dpm_defaults(hwmgr); in vega12_hwmgr_backend_init()
797 hwmgr->gfx_power_profile = hwmgr->default_gfx_power_profile;
798 hwmgr->compute_power_profile = hwmgr->default_compute_power_profile;
928 vega12_init_powergate_state(hwmgr); in vega12_enable_all_smu_features()
958 struct pp_hwmgr *hwmgr) in vega12_odn_initialize_default_settings() argument
1386 ret = smum_smc_table_manager(hwmgr, in vega12_get_metrics_table()
1452 struct pp_hwmgr *hwmgr, in vega12_get_current_activity_percent() argument
[all …]
A Dvega20_thermal.c34 struct vega20_hwmgr *data = hwmgr->backend; in vega20_disable_fan_control_feature()
39 hwmgr, false, in vega20_disable_fan_control_feature()
53 struct vega20_hwmgr *data = hwmgr->backend; in vega20_fan_ctrl_stop_smc_fan_control()
63 struct vega20_hwmgr *data = hwmgr->backend; in vega20_enable_fan_control_feature()
68 hwmgr, true, in vega20_enable_fan_control_feature()
82 struct vega20_hwmgr *data = hwmgr->backend; in vega20_fan_ctrl_start_smc_fan_control()
92 struct amdgpu_device *adev = hwmgr->adev; in vega20_fan_ctrl_set_static_mode()
120 struct amdgpu_device *adev = hwmgr->adev; in vega20_fan_ctrl_get_fan_speed_pwm()
142 struct amdgpu_device *adev = hwmgr->adev; in vega20_fan_ctrl_set_fan_speed_pwm()
190 struct amdgpu_device *adev = hwmgr->adev; in vega20_fan_ctrl_set_fan_speed_rpm()
[all …]
A Dvega10_hwmgr.c915 if (!hwmgr->not_vf) in vega10_hwmgr_backend_init()
985 if (!hwmgr->not_vf) in vega10_setup_asic_task()
1498 hwmgr, in vega10_populate_single_lclk_level()
1919 (hwmgr->pptable); in vega10_populate_single_display_type()
2564 if (!hwmgr->not_vf) in vega10_init_smc_table()
2897 if (!hwmgr->not_vf) in vega10_stop_dpm()
3052 if (hwmgr->not_vf || hwmgr->pp_one_vf) { in vega10_enable_dpm_tasks()
3863 if (hwmgr == NULL) in vega10_dpm_get_sclk()
3885 if (hwmgr == NULL) in vega10_dpm_get_mclk()
5433 if (!hwmgr->ps) in vega10_odn_update_power_state()
[all …]
/linux-6.3-rc2/drivers/gpu/drm/amd/pm/powerplay/
A Damd_powerplay.c179 if (hwmgr && hwmgr->pm_en) in pp_late_init()
297 if (!hwmgr || !hwmgr->pm_en) in pp_set_clockgating_by_smu()
337 if (!hwmgr || !hwmgr->pm_en) in pp_dpm_force_performance_level()
355 if (!hwmgr || !hwmgr->pm_en) in pp_dpm_get_performance_level()
365 if (!hwmgr || !hwmgr->pm_en) in pp_dpm_get_sclk()
379 if (!hwmgr || !hwmgr->pm_en) in pp_dpm_get_mclk()
393 if (!hwmgr || !hwmgr->pm_en) in pp_dpm_powergate_vce()
407 if (!hwmgr || !hwmgr->pm_en) in pp_dpm_powergate_uvd()
434 if (!hwmgr || !hwmgr->pm_en || !hwmgr->current_ps) in pp_dpm_get_current_power_state()
567 if (!hwmgr || !hwmgr->pm_en ||!hwmgr->ps) in pp_dpm_get_pp_num_states()
[all …]
/linux-6.3-rc2/drivers/gpu/drm/amd/pm/powerplay/smumgr/
A Dsmumgr.c60 return hwmgr->smumgr_funcs->thermal_avfs_enable(hwmgr); in smum_thermal_avfs_enable()
68 return hwmgr->smumgr_funcs->thermal_setup_fan_table(hwmgr); in smum_thermal_setup_fan_table()
77 return hwmgr->smumgr_funcs->update_sclk_threshold(hwmgr); in smum_update_sclk_threshold()
86 return hwmgr->smumgr_funcs->update_smc_table(hwmgr, type); in smum_update_smc_table()
141 ret = hwmgr->smumgr_funcs->send_msg_to_smc(hwmgr, msg); in smum_send_msg_to_smc()
148 *resp = hwmgr->smumgr_funcs->get_argument(hwmgr); in smum_send_msg_to_smc()
177 *resp = hwmgr->smumgr_funcs->get_argument(hwmgr); in smum_send_msg_to_smc_with_parameter()
187 return hwmgr->smumgr_funcs->init_smc_table(hwmgr); in smum_init_smc_table()
220 return hwmgr->smumgr_funcs->is_dpm_running(hwmgr); in smum_is_dpm_running()
228 return hwmgr->smumgr_funcs->is_hw_avfs_present(hwmgr); in smum_is_hw_avfs_present()
[all …]
A Dsmu8_smumgr.c58 if (hwmgr == NULL || hwmgr->device == NULL) in smu8_get_argument()
73 if (hwmgr == NULL || hwmgr->device == NULL) in smu8_send_msg_to_smc_with_parameter()
112 if (hwmgr == NULL || hwmgr->device == NULL) in smu8_set_smc_sram_address()
136 if (hwmgr == NULL || hwmgr->device == NULL) in smu8_write_smc_sram_dword()
154 if (hwmgr == NULL || hwmgr->device == NULL) in smu8_check_fw_load_finish()
181 if (hwmgr == NULL || hwmgr->device == NULL) in smu8_load_mec_firmware()
327 struct pp_hwmgr *hwmgr, in smu8_smu_populate_single_scratch_task() argument
740 if (hwmgr == NULL || hwmgr->device == NULL) in smu8_start_smu()
743 adev = hwmgr->adev; in smu8_start_smu()
746 hwmgr->smu_version = cgs_read_register(hwmgr->device, mmMP0PUB_IND_DATA); in smu8_start_smu()
[all …]
A Dsmu7_smumgr.c310 if (!hwmgr->not_vf) in smu7_populate_single_firmware_entry()
331 amdgpu_ucode_init_bo(hwmgr->adev); in smu7_request_smu_load_fw()
340 if (hwmgr->not_vf) { in smu7_request_smu_load_fw()
406 if (!hwmgr->not_vf) in smu7_request_smu_load_fw()
451 return hwmgr->smumgr_funcs->start_smu(hwmgr); in smu7_reload_firmware()
488 hwmgr->is_kicker = info.is_kicker; in smu7_upload_smu_firmware_image()
558 if (!hwmgr->not_vf) in smu7_init()
579 hwmgr->avfs_supported = true; in smu7_init()
593 if (hwmgr->not_vf) in smu7_smu_fini()
601 kfree(hwmgr->smu_backend); in smu7_smu_fini()
[all …]
A Dci_smumgr.c1024 struct pp_hwmgr *hwmgr, in ci_calculate_mclk_params() argument
1175 struct pp_hwmgr *hwmgr, in ci_populate_single_memory_level() argument
1622 struct pp_hwmgr *hwmgr, in ci_populate_memory_timing_parameters() argument
1674 hwmgr, in ci_program_memory_timing_parameters()
1763 struct pp_hwmgr *hwmgr, in ci_convert_mc_reg_table_entry_to_smc() argument
1798 hwmgr, in ci_convert_mc_reg_table_to_smc()
2120 ci_start_smc(hwmgr); in ci_init_smc_table()
2228 hwmgr, in ci_update_sclk_threshold()
2764 (hwmgr->smu_backend); in ci_update_dpm_settings()
2957 ci_reset_smc(hwmgr); in ci_stop_smc()
[all …]
A Diceland_smumgr.c148 iceland_start_smc(hwmgr); in iceland_smu_start_smc()
189 if (hwmgr == NULL || hwmgr->device == NULL) in iceland_smu_upload_firmware_image()
217 iceland_stop_smc_clock(hwmgr); in iceland_smu_upload_firmware_image()
220 iceland_reset_smc(hwmgr); in iceland_smu_upload_firmware_image()
271 if (smu7_init(hwmgr)) { in iceland_smu_init()
1045 struct pp_hwmgr *hwmgr, in iceland_calculate_mclk_params() argument
1228 struct pp_hwmgr *hwmgr, in iceland_populate_single_memory_level() argument
1583 struct pp_hwmgr *hwmgr, in iceland_populate_memory_timing_parameters() argument
1636 hwmgr, in iceland_program_memory_timing_parameters()
1763 hwmgr, in iceland_convert_mc_reg_table_to_smc()
[all …]
A Dpolaris10_smumgr.c179 if (!hwmgr->avfs_supported) in polaris10_avfs_event_mgr()
298 if (!smu7_is_smc_ram_running(hwmgr) && hwmgr->not_vf) { in polaris10_start_smu()
345 if (smu7_init(hwmgr)) { in polaris10_smu_init()
969 if (hwmgr->od_enabled) in polaris10_populate_single_graphic_level()
1164 if (hwmgr->od_enabled) in polaris10_populate_single_memory_level()
1512 hwmgr, in polaris10_program_memory_timing_parameters()
1788 if (!hwmgr->avfs_supported) in polaris10_populate_avfs_parameters()
1793 hwmgr->avfs_supported = 0; in polaris10_populate_avfs_parameters()
2149 if (!hwmgr->avfs_supported) in polaris10_thermal_avfs_enable()
2399 hwmgr, in polaris10_update_sclk_threshold()
[all …]
A Dfiji_smumgr.c262 if (!hwmgr->avfs_supported) in fiji_avfs_event_mgr()
287 if (!smu7_is_smc_ram_running(hwmgr) && hwmgr->not_vf) { in fiji_start_smu()
307 smu7_read_smc_sram_dword(hwmgr, in fiji_start_smu()
322 if (!hwmgr->not_vf) in fiji_is_hw_avfs_present()
344 if (smu7_init(hwmgr)) { in fiji_smu_init()
949 if (hwmgr->od_enabled) in fiji_populate_single_graphic_level()
1171 if (hwmgr->od_enabled) in fiji_populate_single_memory_level()
1545 hwmgr, in fiji_program_memory_timing_parameters()
2242 if (!hwmgr->avfs_supported) in fiji_thermal_avfs_enable()
2278 hwmgr, in fiji_update_sclk_threshold()
[all …]
A Dvegam_smumgr.c90 hwmgr->smu_backend = smu_data; in vegam_smu_init()
92 if (smu7_init(hwmgr)) { in vegam_smu_init()
176 smu7_program_jump_on_start(hwmgr); in vegam_start_smu_in_non_protection_mode()
198 if (!smu7_is_smc_ram_running(hwmgr) && hwmgr->not_vf) { in vegam_start_smu()
215 smu7_read_smc_sram_dword(hwmgr, in vegam_start_smu()
1300 hwmgr, in vegam_program_memory_timing_parameters()
1579 if (!hwmgr->avfs_supported) in vegam_populate_avfs_parameters()
1641 smu7_copy_bytes_to_smc(hwmgr, in vegam_populate_avfs_parameters()
1651 smu7_copy_bytes_to_smc(hwmgr, in vegam_populate_avfs_parameters()
2230 hwmgr, in vegam_update_sclk_threshold()
[all …]
A Dtonga_smumgr.c200 if (!smu7_is_smc_ram_running(hwmgr) && hwmgr->not_vf) { in tonga_start_smu()
237 if (smu7_init(hwmgr)) { in tonga_smu_init()
629 if (hwmgr->od_enabled) in tonga_populate_single_graphic_level()
977 if (hwmgr->od_enabled) in tonga_populate_single_memory_level()
1112 hwmgr, in tonga_populate_all_memory_levels()
1340 hwmgr, in tonga_populate_smc_uvd_level()
1511 hwmgr, in tonga_program_memory_timing_parameters()
2142 hwmgr, in tonga_convert_mc_reg_table_to_smc()
2177 hwmgr, address, in tonga_update_and_upload_mc_reg_table()
2436 hwmgr, in tonga_init_smc_table()
[all …]
/linux-6.3-rc2/drivers/gpu/drm/amd/pm/powerplay/inc/
A Dhwmgr.h202 int (*smu_init)(struct pp_hwmgr *hwmgr);
203 int (*smu_fini)(struct pp_hwmgr *hwmgr);
204 int (*start_smu)(struct pp_hwmgr *hwmgr);
232 int (*stop_smc)(struct pp_hwmgr *hwmgr);
376 struct pp_hwmgr *hwmgr,
817 int hwmgr_sw_init(struct pp_hwmgr *hwmgr);
818 int hwmgr_sw_fini(struct pp_hwmgr *hwmgr);
819 int hwmgr_hw_init(struct pp_hwmgr *hwmgr);
820 int hwmgr_hw_fini(struct pp_hwmgr *hwmgr);
821 int hwmgr_suspend(struct pp_hwmgr *hwmgr);
[all …]

Completed in 183 milliseconds

1234