Home
last modified time | relevance | path

Searched defs:hwmgr (Results 1 – 25 of 52) sorted by relevance

123

/netbsd-src/sys/external/bsd/drm2/dist/drm/amd/powerplay/hwmgr/
H A Damdgpu_hardwaremanager.c44 int phm_setup_asic(struct pp_hwmgr *hwmgr) in phm_setup_asic()
54 int phm_power_down_asic(struct pp_hwmgr *hwmgr) in phm_power_down_asic()
64 int phm_set_power_state(struct pp_hwmgr *hwmgr, in phm_set_power_state()
81 int phm_enable_dynamic_state_management(struct pp_hwmgr *hwmgr) in phm_enable_dynamic_state_management()
101 int phm_disable_dynamic_state_management(struct pp_hwmgr *hwmgr) in phm_disable_dynamic_state_management()
121 int phm_force_dpm_levels(struct pp_hwmgr *hwmgr, enum amd_dpm_forced_level level) in phm_force_dpm_levels()
133 int phm_apply_state_adjust_rules(struct pp_hwmgr *hwmgr, in phm_apply_state_adjust_rules()
147 int phm_apply_clock_adjust_rules(struct pp_hwmgr *hwmgr) in phm_apply_clock_adjust_rules()
156 int phm_powerdown_uvd(struct pp_hwmgr *hwmgr) in phm_powerdown_uvd()
166 int phm_disable_clock_power_gatings(struct pp_hwmgr *hwmgr) in phm_disable_clock_power_gatings()
[all …]
H A Damdgpu_hwmgr.c71 static void hwmgr_init_workload_prority(struct pp_hwmgr *hwmgr) in hwmgr_init_workload_prority()
88 int hwmgr_early_init(struct pp_hwmgr *hwmgr) in hwmgr_early_init()
206 int hwmgr_sw_init(struct pp_hwmgr *hwmgr) in hwmgr_sw_init()
218 int hwmgr_sw_fini(struct pp_hwmgr *hwmgr) in hwmgr_sw_fini()
226 int hwmgr_hw_init(struct pp_hwmgr *hwmgr) in hwmgr_hw_init()
289 int hwmgr_hw_fini(struct pp_hwmgr *hwmgr) in hwmgr_hw_fini()
307 int hwmgr_suspend(struct pp_hwmgr *hwmgr) in hwmgr_suspend()
326 int hwmgr_resume(struct pp_hwmgr *hwmgr) in hwmgr_resume()
367 int hwmgr_handle_task(struct pp_hwmgr *hwmgr, enum amd_pp_task task_id, in hwmgr_handle_task()
419 void hwmgr_init_default_caps(struct pp_hwmgr *hwmgr) in hwmgr_init_default_caps()
[all …]
H A Damdgpu_smu7_thermal.c34 int smu7_fan_ctrl_get_fan_speed_info(struct pp_hwmgr *hwmgr, in smu7_fan_ctrl_get_fan_speed_info()
59 int smu7_fan_ctrl_get_fan_speed_percent(struct pp_hwmgr *hwmgr, in smu7_fan_ctrl_get_fan_speed_percent()
88 int smu7_fan_ctrl_get_fan_speed_rpm(struct pp_hwmgr *hwmgr, uint32_t *speed) in smu7_fan_ctrl_get_fan_speed_rpm()
116 int smu7_fan_ctrl_set_static_mode(struct pp_hwmgr *hwmgr, uint32_t mode) in smu7_fan_ctrl_set_static_mode()
141 int smu7_fan_ctrl_set_default_mode(struct pp_hwmgr *hwmgr) in smu7_fan_ctrl_set_default_mode()
154 int smu7_fan_ctrl_start_smc_fan_control(struct pp_hwmgr *hwmgr) in smu7_fan_ctrl_start_smc_fan_control()
188 int smu7_fan_ctrl_stop_smc_fan_control(struct pp_hwmgr *hwmgr) in smu7_fan_ctrl_stop_smc_fan_control()
200 int smu7_fan_ctrl_set_fan_speed_percent(struct pp_hwmgr *hwmgr, in smu7_fan_ctrl_set_fan_speed_percent()
237 int smu7_fan_ctrl_reset_fan_speed_to_default(struct pp_hwmgr *hwmgr) in smu7_fan_ctrl_reset_fan_speed_to_default()
260 int smu7_fan_ctrl_set_fan_speed_rpm(struct pp_hwmgr *hwmgr, uint32_t speed) in smu7_fan_ctrl_set_fan_speed_rpm()
[all …]
H A Damdgpu_vega12_hwmgr.c65 static void vega12_set_default_registry_data(struct pp_hwmgr *hwmgr) in vega12_set_default_registry_data()
138 static int vega12_set_features_platform_caps(struct pp_hwmgr *hwmgr) in vega12_set_features_platform_caps()
296 static void vega12_init_dpm_defaults(struct pp_hwmgr *hwmgr) in vega12_init_dpm_defaults()
375 static int vega12_set_private_data_based_on_pptable(struct pp_hwmgr *hwmgr) in vega12_set_private_data_based_on_pptable()
380 static int vega12_hwmgr_backend_fini(struct pp_hwmgr *hwmgr) in vega12_hwmgr_backend_fini()
388 static int vega12_hwmgr_backend_init(struct pp_hwmgr *hwmgr) in vega12_hwmgr_backend_init()
452 static int vega12_init_sclk_threshold(struct pp_hwmgr *hwmgr) in vega12_init_sclk_threshold()
462 static int vega12_setup_asic_task(struct pp_hwmgr *hwmgr) in vega12_setup_asic_task()
486 static int vega12_get_number_of_dpm_level(struct pp_hwmgr *hwmgr, in vega12_get_number_of_dpm_level()
506 static int vega12_get_dpm_frequency_by_index(struct pp_hwmgr *hwmgr, in vega12_get_dpm_frequency_by_index()
[all …]
H A Damdgpu_vega12_thermal.c37 static int vega12_get_current_rpm(struct pp_hwmgr *hwmgr, uint32_t *current_rpm) in vega12_get_current_rpm()
48 int vega12_fan_ctrl_get_fan_speed_info(struct pp_hwmgr *hwmgr, in vega12_fan_ctrl_get_fan_speed_info()
60 int vega12_fan_ctrl_get_fan_speed_rpm(struct pp_hwmgr *hwmgr, uint32_t *speed) in vega12_fan_ctrl_get_fan_speed_rpm()
74 static int vega12_enable_fan_control_feature(struct pp_hwmgr *hwmgr) in vega12_enable_fan_control_feature()
92 static int vega12_disable_fan_control_feature(struct pp_hwmgr *hwmgr) in vega12_disable_fan_control_feature()
110 int vega12_fan_ctrl_start_smc_fan_control(struct pp_hwmgr *hwmgr) in vega12_fan_ctrl_start_smc_fan_control()
124 int vega12_fan_ctrl_stop_smc_fan_control(struct pp_hwmgr *hwmgr) in vega12_fan_ctrl_stop_smc_fan_control()
141 int vega12_fan_ctrl_reset_fan_speed_to_default(struct pp_hwmgr *hwmgr) in vega12_fan_ctrl_reset_fan_speed_to_default()
151 int vega12_thermal_get_temperature(struct pp_hwmgr *hwmgr) in vega12_thermal_get_temperature()
175 static int vega12_thermal_set_temperature_range(struct pp_hwmgr *hwmgr, in vega12_thermal_set_temperature_range()
[all …]
H A Damdgpu_smu8_hwmgr.c75 static uint32_t smu8_get_eclk_level(struct pp_hwmgr *hwmgr, in smu8_get_eclk_level()
106 static uint32_t smu8_get_sclk_level(struct pp_hwmgr *hwmgr, in smu8_get_sclk_level()
136 static uint32_t smu8_get_uvd_level(struct pp_hwmgr *hwmgr, in smu8_get_uvd_level()
167 static uint32_t smu8_get_max_sclk_level(struct pp_hwmgr *hwmgr) in smu8_get_max_sclk_level()
179 static int smu8_initialize_dpm_defaults(struct pp_hwmgr *hwmgr) in smu8_initialize_dpm_defaults()
256 struct pp_hwmgr *hwmgr, uint16_t voltage) in smu8_convert_8Bit_index_to_voltage()
261 static int smu8_construct_max_power_limits_table(struct pp_hwmgr *hwmgr, in smu8_construct_max_power_limits_table()
279 struct pp_hwmgr *hwmgr, in smu8_init_dynamic_state_adjustment_rule_settings()
314 static int smu8_get_system_info_data(struct pp_hwmgr *hwmgr) in smu8_get_system_info_data()
418 static int smu8_construct_boot_state(struct pp_hwmgr *hwmgr) in smu8_construct_boot_state()
[all …]
H A Damdgpu_vega10_thermal.c37 static int vega10_get_current_rpm(struct pp_hwmgr *hwmgr, uint32_t *current_rpm) in vega10_get_current_rpm()
44 int vega10_fan_ctrl_get_fan_speed_info(struct pp_hwmgr *hwmgr, in vega10_fan_ctrl_get_fan_speed_info()
73 int vega10_fan_ctrl_get_fan_speed_percent(struct pp_hwmgr *hwmgr, in vega10_fan_ctrl_get_fan_speed_percent()
96 int vega10_fan_ctrl_get_fan_speed_rpm(struct pp_hwmgr *hwmgr, uint32_t *speed) in vega10_fan_ctrl_get_fan_speed_rpm()
133 int vega10_fan_ctrl_set_static_mode(struct pp_hwmgr *hwmgr, uint32_t mode) in vega10_fan_ctrl_set_static_mode()
162 int vega10_fan_ctrl_set_default_mode(struct pp_hwmgr *hwmgr) in vega10_fan_ctrl_set_default_mode()
188 static int vega10_enable_fan_control_feature(struct pp_hwmgr *hwmgr) in vega10_enable_fan_control_feature()
205 static int vega10_disable_fan_control_feature(struct pp_hwmgr *hwmgr) in vega10_disable_fan_control_feature()
222 int vega10_fan_ctrl_start_smc_fan_control(struct pp_hwmgr *hwmgr) in vega10_fan_ctrl_start_smc_fan_control()
235 int vega10_fan_ctrl_stop_smc_fan_control(struct pp_hwmgr *hwmgr) in vega10_fan_ctrl_stop_smc_fan_control()
[all …]
H A Damdgpu_smu10_hwmgr.c63 static int smu10_display_clock_voltage_request(struct pp_hwmgr *hwmgr, in smu10_display_clock_voltage_request()
113 static int smu10_initialize_dpm_defaults(struct pp_hwmgr *hwmgr) in smu10_initialize_dpm_defaults()
136 static int smu10_construct_max_power_limits_table(struct pp_hwmgr *hwmgr, in smu10_construct_max_power_limits_table()
143 struct pp_hwmgr *hwmgr) in smu10_init_dynamic_state_adjustment_rule_settings()
177 static int smu10_get_system_info_data(struct pp_hwmgr *hwmgr) in smu10_get_system_info_data()
195 static int smu10_construct_boot_state(struct pp_hwmgr *hwmgr) in smu10_construct_boot_state()
200 static int smu10_set_clock_limit(struct pp_hwmgr *hwmgr, const void *input) in smu10_set_clock_limit()
215 static int smu10_set_min_deep_sleep_dcefclk(struct pp_hwmgr *hwmgr, uint32_t clock) in smu10_set_min_deep_sleep_dcefclk()
229 static int smu10_set_hard_min_dcefclk_by_freq(struct pp_hwmgr *hwmgr, uint32_t clock) in smu10_set_hard_min_dcefclk_by_freq()
243 static int smu10_set_hard_min_fclk_by_freq(struct pp_hwmgr *hwmgr, uint32_t clock) in smu10_set_hard_min_fclk_by_freq()
[all …]
H A Damdgpu_smu7_clockpowergating.c33 static int smu7_enable_disable_uvd_dpm(struct pp_hwmgr *hwmgr, bool enable) in smu7_enable_disable_uvd_dpm()
40 static int smu7_enable_disable_vce_dpm(struct pp_hwmgr *hwmgr, bool enable) in smu7_enable_disable_vce_dpm()
47 static int smu7_update_uvd_dpm(struct pp_hwmgr *hwmgr, bool bgate) in smu7_update_uvd_dpm()
54 static int smu7_update_vce_dpm(struct pp_hwmgr *hwmgr, bool bgate) in smu7_update_vce_dpm()
61 int smu7_powerdown_uvd(struct pp_hwmgr *hwmgr) in smu7_powerdown_uvd()
69 static int smu7_powerup_uvd(struct pp_hwmgr *hwmgr) in smu7_powerup_uvd()
85 static int smu7_powerdown_vce(struct pp_hwmgr *hwmgr) in smu7_powerdown_vce()
93 static int smu7_powerup_vce(struct pp_hwmgr *hwmgr) in smu7_powerup_vce()
101 int smu7_disable_clock_power_gating(struct pp_hwmgr *hwmgr) in smu7_disable_clock_power_gating()
114 void smu7_powergate_uvd(struct pp_hwmgr *hwmgr, bool bgate) in smu7_powergate_uvd()
[all …]
H A Damdgpu_smu7_hwmgr.c147 static int smu7_get_mc_microcode_version(struct pp_hwmgr *hwmgr) in smu7_get_mc_microcode_version()
156 static uint16_t smu7_get_current_pcie_speed(struct pp_hwmgr *hwmgr) in smu7_get_current_pcie_speed()
167 static int smu7_get_current_pcie_lane_number(struct pp_hwmgr *hwmgr) in smu7_get_current_pcie_lane_number()
187 static int smu7_enable_smc_voltage_controller(struct pp_hwmgr *hwmgr) in smu7_enable_smc_voltage_controller()
207 static bool smu7_voltage_control(const struct pp_hwmgr *hwmgr) in smu7_voltage_control()
221 static int smu7_enable_voltage_control(struct pp_hwmgr *hwmgr) in smu7_enable_voltage_control()
259 static int smu7_construct_voltage_tables(struct pp_hwmgr *hwmgr) in smu7_construct_voltage_tables()
372 struct pp_hwmgr *hwmgr) in smu7_program_static_screen_threshold_parameters()
394 static int smu7_enable_display_gap(struct pp_hwmgr *hwmgr) in smu7_enable_display_gap()
418 static int smu7_program_voting_clients(struct pp_hwmgr *hwmgr) in smu7_program_voting_clients()
[all …]
H A Damdgpu_vega20_hwmgr.c65 static void vega20_set_default_registry_data(struct pp_hwmgr *hwmgr) in vega20_set_default_registry_data()
179 static int vega20_set_features_platform_caps(struct pp_hwmgr *hwmgr) in vega20_set_features_platform_caps()
334 static void vega20_init_dpm_defaults(struct pp_hwmgr *hwmgr) in vega20_init_dpm_defaults()
418 static int vega20_set_private_data_based_on_pptable(struct pp_hwmgr *hwmgr) in vega20_set_private_data_based_on_pptable()
423 static int vega20_hwmgr_backend_fini(struct pp_hwmgr *hwmgr) in vega20_hwmgr_backend_fini()
431 static int vega20_hwmgr_backend_init(struct pp_hwmgr *hwmgr) in vega20_hwmgr_backend_init()
483 static int vega20_init_sclk_threshold(struct pp_hwmgr *hwmgr) in vega20_init_sclk_threshold()
493 static int vega20_setup_asic_task(struct pp_hwmgr *hwmgr) in vega20_setup_asic_task()
529 static int vega20_get_number_of_dpm_level(struct pp_hwmgr *hwmgr, in vega20_get_number_of_dpm_level()
549 static int vega20_get_dpm_frequency_by_index(struct pp_hwmgr *hwmgr, in vega20_get_dpm_frequency_by_index()
[all …]
H A Damdgpu_vega20_thermal.c37 static int vega20_disable_fan_control_feature(struct pp_hwmgr *hwmgr) in vega20_disable_fan_control_feature()
56 int vega20_fan_ctrl_stop_smc_fan_control(struct pp_hwmgr *hwmgr) in vega20_fan_ctrl_stop_smc_fan_control()
66 static int vega20_enable_fan_control_feature(struct pp_hwmgr *hwmgr) in vega20_enable_fan_control_feature()
85 int vega20_fan_ctrl_start_smc_fan_control(struct pp_hwmgr *hwmgr) in vega20_fan_ctrl_start_smc_fan_control()
95 static int vega20_fan_ctrl_set_static_mode(struct pp_hwmgr *hwmgr, uint32_t mode) in vega20_fan_ctrl_set_static_mode()
109 static int vega20_get_current_rpm(struct pp_hwmgr *hwmgr, uint32_t *current_rpm) in vega20_get_current_rpm()
122 int vega20_fan_ctrl_get_fan_speed_percent(struct pp_hwmgr *hwmgr, in vega20_fan_ctrl_get_fan_speed_percent()
141 int vega20_fan_ctrl_set_fan_speed_percent(struct pp_hwmgr *hwmgr, in vega20_fan_ctrl_set_fan_speed_percent()
172 int vega20_fan_ctrl_get_fan_speed_info(struct pp_hwmgr *hwmgr, in vega20_fan_ctrl_get_fan_speed_info()
184 int vega20_fan_ctrl_get_fan_speed_rpm(struct pp_hwmgr *hwmgr, uint32_t *speed) in vega20_fan_ctrl_get_fan_speed_rpm()
[all …]
H A Damdgpu_vega10_hwmgr.c120 static void vega10_set_default_registry_data(struct pp_hwmgr *hwmgr) in vega10_set_default_registry_data()
198 static int vega10_set_features_platform_caps(struct pp_hwmgr *hwmgr) in vega10_set_features_platform_caps()
308 static int vega10_odn_initial_default_setting(struct pp_hwmgr *hwmgr) in vega10_odn_initial_default_setting()
362 static void vega10_init_dpm_defaults(struct pp_hwmgr *hwmgr) in vega10_init_dpm_defaults()
522 static int vega10_get_socclk_for_voltage_evv(struct pp_hwmgr *hwmgr, in vega10_get_socclk_for_voltage_evv()
558 static int vega10_get_evv_voltages(struct pp_hwmgr *hwmgr) in vega10_get_evv_voltages()
615 static void vega10_patch_with_vdd_leakage(struct pp_hwmgr *hwmgr, in vega10_patch_with_vdd_leakage()
642 static int vega10_patch_lookup_table_with_leakage(struct pp_hwmgr *hwmgr, in vega10_patch_lookup_table_with_leakage()
656 struct pp_hwmgr *hwmgr, struct vega10_leakage_voltage *leakage_table, in vega10_patch_clock_voltage_limits_with_vddc_leakage()
666 struct pp_hwmgr *hwmgr) in vega10_patch_voltage_dependency_tables_with_lookup_table()
[all …]
H A Damdgpu_processpptables.c53 static uint16_t get_vce_table_offset(struct pp_hwmgr *hwmgr, in get_vce_table_offset()
77 static uint16_t get_vce_clock_info_array_offset(struct pp_hwmgr *hwmgr, in get_vce_clock_info_array_offset()
89 static uint16_t get_vce_clock_info_array_size(struct pp_hwmgr *hwmgr, in get_vce_clock_info_array_size()
105 static uint16_t get_vce_clock_voltage_limit_table_offset(struct pp_hwmgr *hwmgr, in get_vce_clock_voltage_limit_table_offset()
118 static uint16_t get_vce_clock_voltage_limit_table_size(struct pp_hwmgr *hwmgr, in get_vce_clock_voltage_limit_table_size()
133 static uint16_t get_vce_state_table_offset(struct pp_hwmgr *hwmgr, const ATOM_PPLIB_POWERPLAYTABLE … in get_vce_state_table_offset()
144 struct pp_hwmgr *hwmgr, in get_vce_state_table()
155 static uint16_t get_uvd_table_offset(struct pp_hwmgr *hwmgr, in get_uvd_table_offset()
177 static uint16_t get_uvd_clock_info_array_offset(struct pp_hwmgr *hwmgr, in get_uvd_clock_info_array_offset()
188 static uint16_t get_uvd_clock_info_array_size(struct pp_hwmgr *hwmgr, in get_uvd_clock_info_array_size()
[all …]
H A Damdgpu_vega10_powertune.c804 static int vega10_program_didt_config_registers(struct pp_hwmgr *hwmgr, const struct vega10_didt_co… in vega10_program_didt_config_registers()
840 static int vega10_program_gc_didt_config_registers(struct pp_hwmgr *hwmgr, const struct vega10_didt… in vega10_program_gc_didt_config_registers()
855 static void vega10_didt_set_mask(struct pp_hwmgr *hwmgr, const bool enable) in vega10_didt_set_mask()
937 static int vega10_enable_cac_driving_se_didt_config(struct pp_hwmgr *hwmgr) in vega10_enable_cac_driving_se_didt_config()
975 static int vega10_disable_cac_driving_se_didt_config(struct pp_hwmgr *hwmgr) in vega10_disable_cac_driving_se_didt_config()
988 static int vega10_enable_psm_gc_didt_config(struct pp_hwmgr *hwmgr) in vega10_enable_psm_gc_didt_config()
1027 static int vega10_disable_psm_gc_didt_config(struct pp_hwmgr *hwmgr) in vega10_disable_psm_gc_didt_config()
1049 static int vega10_enable_se_edc_config(struct pp_hwmgr *hwmgr) in vega10_enable_se_edc_config()
1083 static int vega10_disable_se_edc_config(struct pp_hwmgr *hwmgr) in vega10_disable_se_edc_config()
1096 static int vega10_enable_psm_gc_edc_config(struct pp_hwmgr *hwmgr) in vega10_enable_psm_gc_edc_config()
[all …]
/netbsd-src/sys/external/bsd/drm2/dist/drm/amd/powerplay/smumgr/
H A Damdgpu_smumgr.c62 int smum_thermal_avfs_enable(struct pp_hwmgr *hwmgr) in smum_thermal_avfs_enable()
70 int smum_thermal_setup_fan_table(struct pp_hwmgr *hwmgr) in smum_thermal_setup_fan_table()
78 int smum_update_sclk_threshold(struct pp_hwmgr *hwmgr) in smum_update_sclk_threshold()
87 int smum_update_smc_table(struct pp_hwmgr *hwmgr, uint32_t type) in smum_update_smc_table()
96 uint32_t smum_get_offsetof(struct pp_hwmgr *hwmgr, uint32_t type, uint32_t member) in smum_get_offsetof()
104 int smum_process_firmware_header(struct pp_hwmgr *hwmgr) in smum_process_firmware_header()
111 uint32_t smum_get_argument(struct pp_hwmgr *hwmgr) in smum_get_argument()
119 uint32_t smum_get_mac_definition(struct pp_hwmgr *hwmgr, uint32_t value) in smum_get_mac_definition()
127 int smum_download_powerplay_table(struct pp_hwmgr *hwmgr, void **table) in smum_download_powerplay_table()
135 int smum_upload_powerplay_table(struct pp_hwmgr *hwmgr) in smum_upload_powerplay_table()
[all …]
H A Damdgpu_smu7_smumgr.c43 static int smu7_set_smc_sram_address(struct pp_hwmgr *hwmgr, uint32_t smc_addr, uint32_t limit) in smu7_set_smc_sram_address()
54 int smu7_copy_bytes_from_smc(struct pp_hwmgr *hwmgr, uint32_t smc_start_address, uint32_t *dest, ui… in smu7_copy_bytes_from_smc()
90 int smu7_copy_bytes_to_smc(struct pp_hwmgr *hwmgr, uint32_t smc_start_address, in smu7_copy_bytes_to_smc()
156 int smu7_program_jump_on_start(struct pp_hwmgr *hwmgr) in smu7_program_jump_on_start()
165 bool smu7_is_smc_ram_running(struct pp_hwmgr *hwmgr) in smu7_is_smc_ram_running()
171 int smu7_send_msg_to_smc(struct pp_hwmgr *hwmgr, uint16_t msg) in smu7_send_msg_to_smc()
199 int smu7_send_msg_to_smc_without_waiting(struct pp_hwmgr *hwmgr, uint16_t msg) in smu7_send_msg_to_smc_without_waiting()
206 int smu7_send_msg_to_smc_with_parameter(struct pp_hwmgr *hwmgr, uint16_t msg, uint32_t parameter) in smu7_send_msg_to_smc_with_parameter()
215 int smu7_send_msg_to_smc_with_parameter_without_waiting(struct pp_hwmgr *hwmgr, uint16_t msg, uint3… in smu7_send_msg_to_smc_with_parameter_without_waiting()
222 int smu7_send_msg_to_smc_offset(struct pp_hwmgr *hwmgr) in smu7_send_msg_to_smc_offset()
[all …]
H A Damdgpu_smu8_smumgr.c63 static uint32_t smu8_get_argument(struct pp_hwmgr *hwmgr) in smu8_get_argument()
73 static int smu8_send_msg_to_smc_with_parameter(struct pp_hwmgr *hwmgr, in smu8_send_msg_to_smc_with_parameter()
111 static int smu8_send_msg_to_smc(struct pp_hwmgr *hwmgr, uint16_t msg) in smu8_send_msg_to_smc()
116 static int smu8_set_smc_sram_address(struct pp_hwmgr *hwmgr, in smu8_set_smc_sram_address()
138 static int smu8_write_smc_sram_dword(struct pp_hwmgr *hwmgr, in smu8_write_smc_sram_dword()
153 static int smu8_check_fw_load_finish(struct pp_hwmgr *hwmgr, in smu8_check_fw_load_finish()
181 static int smu8_load_mec_firmware(struct pp_hwmgr *hwmgr) in smu8_load_mec_firmware()
224 static uint8_t smu8_translate_firmware_enum_to_arg(struct pp_hwmgr *hwmgr, in smu8_translate_firmware_enum_to_arg()
334 struct pp_hwmgr *hwmgr, in smu8_smu_populate_single_scratch_task()
371 struct pp_hwmgr *hwmgr, in smu8_smu_populate_single_ucode_load_task()
[all …]
H A Damdgpu_iceland_smumgr.c114 static int iceland_start_smc(struct pp_hwmgr *hwmgr) in iceland_start_smc()
122 static void iceland_reset_smc(struct pp_hwmgr *hwmgr) in iceland_reset_smc()
130 static void iceland_stop_smc_clock(struct pp_hwmgr *hwmgr) in iceland_stop_smc_clock()
137 static void iceland_start_smc_clock(struct pp_hwmgr *hwmgr) in iceland_start_smc_clock()
144 static int iceland_smu_start_smc(struct pp_hwmgr *hwmgr) in iceland_smu_start_smc()
162 static int iceland_upload_smc_firmware_data(struct pp_hwmgr *hwmgr, in iceland_upload_smc_firmware_data()
189 static int iceland_smu_upload_firmware_image(struct pp_hwmgr *hwmgr) in iceland_smu_upload_firmware_image()
233 static int iceland_request_smu_load_specific_fw(struct pp_hwmgr *hwmgr, in iceland_request_smu_load_specific_fw()
239 static int iceland_start_smu(struct pp_hwmgr *hwmgr) in iceland_start_smu()
265 static int iceland_smu_init(struct pp_hwmgr *hwmgr) in iceland_smu_init()
[all …]
H A Damdgpu_vega20_smumgr.c52 bool vega20_is_smc_ram_running(struct pp_hwmgr *hwmgr) in vega20_is_smc_ram_running()
73 static uint32_t vega20_wait_for_response(struct pp_hwmgr *hwmgr) in vega20_wait_for_response()
92 static int vega20_send_msg_to_smc_without_waiting(struct pp_hwmgr *hwmgr, in vega20_send_msg_to_smc_without_waiting()
108 static int vega20_send_msg_to_smc(struct pp_hwmgr *hwmgr, uint16_t msg) in vega20_send_msg_to_smc()
133 static int vega20_send_msg_to_smc_with_parameter(struct pp_hwmgr *hwmgr, in vega20_send_msg_to_smc_with_parameter()
154 static uint32_t vega20_get_argument(struct pp_hwmgr *hwmgr) in vega20_get_argument()
166 static int vega20_copy_table_from_smc(struct pp_hwmgr *hwmgr, in vega20_copy_table_from_smc()
210 static int vega20_copy_table_to_smc(struct pp_hwmgr *hwmgr, in vega20_copy_table_to_smc()
248 int vega20_set_activity_monitor_coeff(struct pp_hwmgr *hwmgr, in vega20_set_activity_monitor_coeff()
279 int vega20_get_activity_monitor_coeff(struct pp_hwmgr *hwmgr, in vega20_get_activity_monitor_coeff()
[all …]
H A Damdgpu_fiji_smumgr.c104 static int fiji_start_smu_in_protection_mode(struct pp_hwmgr *hwmgr) in fiji_start_smu_in_protection_mode()
167 static int fiji_start_smu_in_non_protection_mode(struct pp_hwmgr *hwmgr) in fiji_start_smu_in_non_protection_mode()
205 static int fiji_start_avfs_btc(struct pp_hwmgr *hwmgr) in fiji_start_avfs_btc()
228 static int fiji_setup_graphics_level_structure(struct pp_hwmgr *hwmgr) in fiji_setup_graphics_level_structure()
266 static int fiji_avfs_event_mgr(struct pp_hwmgr *hwmgr) in fiji_avfs_event_mgr()
287 static int fiji_start_smu(struct pp_hwmgr *hwmgr) in fiji_start_smu()
323 static bool fiji_is_hw_avfs_present(struct pp_hwmgr *hwmgr) in fiji_is_hw_avfs_present()
340 static int fiji_smu_init(struct pp_hwmgr *hwmgr) in fiji_smu_init()
359 static int fiji_get_dependency_volt_by_clk(struct pp_hwmgr *hwmgr, in fiji_get_dependency_volt_by_clk()
474 static void fiji_initialize_power_tune_defaults(struct pp_hwmgr *hwmgr) in fiji_initialize_power_tune_defaults()
[all …]
H A Damdgpu_vega10_smumgr.c43 static int vega10_copy_table_from_smc(struct pp_hwmgr *hwmgr, in vega10_copy_table_from_smc()
74 static int vega10_copy_table_to_smc(struct pp_hwmgr *hwmgr, in vega10_copy_table_to_smc()
111 int vega10_enable_smc_features(struct pp_hwmgr *hwmgr, in vega10_enable_smc_features()
129 int vega10_get_enabled_smc_features(struct pp_hwmgr *hwmgr, in vega10_get_enabled_smc_features()
141 static bool vega10_is_dpm_running(struct pp_hwmgr *hwmgr) in vega10_is_dpm_running()
153 static int vega10_set_tools_address(struct pp_hwmgr *hwmgr) in vega10_set_tools_address()
168 static int vega10_verify_smc_interface(struct pp_hwmgr *hwmgr) in vega10_verify_smc_interface()
198 static int vega10_smu_init(struct pp_hwmgr *hwmgr) in vega10_smu_init()
322 static int vega10_smu_fini(struct pp_hwmgr *hwmgr) in vega10_smu_fini()
349 static int vega10_start_smu(struct pp_hwmgr *hwmgr) in vega10_start_smu()
[all …]
H A Damdgpu_ci_smumgr.c99 static int ci_set_smc_sram_address(struct pp_hwmgr *hwmgr, in ci_set_smc_sram_address()
113 static int ci_copy_bytes_to_smc(struct pp_hwmgr *hwmgr, uint32_t smc_start_address, in ci_copy_bytes_to_smc()
182 static int ci_program_jump_on_start(struct pp_hwmgr *hwmgr) in ci_program_jump_on_start()
191 bool ci_is_smc_ram_running(struct pp_hwmgr *hwmgr) in ci_is_smc_ram_running()
199 static int ci_read_smc_sram_dword(struct pp_hwmgr *hwmgr, uint32_t smc_addr, in ci_read_smc_sram_dword()
213 static int ci_send_msg_to_smc(struct pp_hwmgr *hwmgr, uint16_t msg) in ci_send_msg_to_smc()
230 static int ci_send_msg_to_smc_with_parameter(struct pp_hwmgr *hwmgr, in ci_send_msg_to_smc_with_parameter()
237 static void ci_initialize_power_tune_defaults(struct pp_hwmgr *hwmgr) in ci_initialize_power_tune_defaults()
280 static int ci_get_dependency_volt_by_clk(struct pp_hwmgr *hwmgr, in ci_get_dependency_volt_by_clk()
300 static int ci_calculate_sclk_params(struct pp_hwmgr *hwmgr, in ci_calculate_sclk_params()
[all …]
H A Damdgpu_smu10_smumgr.c54 static uint32_t smu10_wait_for_response(struct pp_hwmgr *hwmgr) in smu10_wait_for_response()
67 static int smu10_send_msg_to_smc_without_waiting(struct pp_hwmgr *hwmgr, in smu10_send_msg_to_smc_without_waiting()
77 static uint32_t smu10_read_arg_from_smc(struct pp_hwmgr *hwmgr) in smu10_read_arg_from_smc()
84 static int smu10_send_msg_to_smc(struct pp_hwmgr *hwmgr, uint16_t msg) in smu10_send_msg_to_smc()
101 static int smu10_send_msg_to_smc_with_parameter(struct pp_hwmgr *hwmgr, in smu10_send_msg_to_smc_with_parameter()
121 static int smu10_copy_table_from_smc(struct pp_hwmgr *hwmgr, in smu10_copy_table_from_smc()
153 static int smu10_copy_table_to_smc(struct pp_hwmgr *hwmgr, in smu10_copy_table_to_smc()
185 static int smu10_verify_smc_interface(struct pp_hwmgr *hwmgr) in smu10_verify_smc_interface()
202 static int smu10_smu_fini(struct pp_hwmgr *hwmgr) in smu10_smu_fini()
221 static int smu10_start_smu(struct pp_hwmgr *hwmgr) in smu10_start_smu()
[all …]
/netbsd-src/sys/external/bsd/drm2/dist/drm/amd/powerplay/
H A Damdgpu_amd_powerplay.c46 struct pp_hwmgr *hwmgr; in amd_powerplay_create() local
71 struct pp_hwmgr *hwmgr = adev->powerplay.pp_handle; in amd_powerplay_destroy() local
101 struct pp_hwmgr *hwmgr = adev->powerplay.pp_handle; in pp_sw_init() local
114 struct pp_hwmgr *hwmgr = adev->powerplay.pp_handle; in pp_sw_fini() local
128 struct pp_hwmgr *hwmgr = adev->powerplay.pp_handle; in pp_hw_init() local
141 struct pp_hwmgr *hwmgr = adev->powerplay.pp_handle; in pp_hw_fini() local
153 struct pp_hwmgr *hwmgr = adev->powerplay.pp_handle; in pp_reserve_vram_for_smu() local
182 struct pp_hwmgr *hwmgr = adev->powerplay.pp_handle; in pp_late_init() local
230 struct pp_hwmgr *hwmgr = adev->powerplay.pp_handle; in pp_suspend() local
238 struct pp_hwmgr *hwmgr = adev->powerplay.pp_handle; in pp_resume() local
[all …]

123