/Linux-v5.4/drivers/gpu/drm/amd/powerplay/hwmgr/ |
D | hardwaremanager.c | 39 int phm_setup_asic(struct pp_hwmgr *hwmgr) in phm_setup_asic() 49 int phm_power_down_asic(struct pp_hwmgr *hwmgr) in phm_power_down_asic() 59 int phm_set_power_state(struct pp_hwmgr *hwmgr, in phm_set_power_state() 76 int phm_enable_dynamic_state_management(struct pp_hwmgr *hwmgr) in phm_enable_dynamic_state_management() 96 int phm_disable_dynamic_state_management(struct pp_hwmgr *hwmgr) in phm_disable_dynamic_state_management() 113 int phm_force_dpm_levels(struct pp_hwmgr *hwmgr, enum amd_dpm_forced_level level) in phm_force_dpm_levels() 125 int phm_apply_state_adjust_rules(struct pp_hwmgr *hwmgr, in phm_apply_state_adjust_rules() 139 int phm_apply_clock_adjust_rules(struct pp_hwmgr *hwmgr) in phm_apply_clock_adjust_rules() 148 int phm_powerdown_uvd(struct pp_hwmgr *hwmgr) in phm_powerdown_uvd() 158 int phm_disable_clock_power_gatings(struct pp_hwmgr *hwmgr) in phm_disable_clock_power_gatings() [all …]
|
D | vega12_hwmgr.c | 58 static void vega12_set_default_registry_data(struct pp_hwmgr *hwmgr) in vega12_set_default_registry_data() 131 static int vega12_set_features_platform_caps(struct pp_hwmgr *hwmgr) in vega12_set_features_platform_caps() 289 static void vega12_init_dpm_defaults(struct pp_hwmgr *hwmgr) in vega12_init_dpm_defaults() 368 static int vega12_set_private_data_based_on_pptable(struct pp_hwmgr *hwmgr) in vega12_set_private_data_based_on_pptable() 373 static int vega12_hwmgr_backend_fini(struct pp_hwmgr *hwmgr) in vega12_hwmgr_backend_fini() 381 static int vega12_hwmgr_backend_init(struct pp_hwmgr *hwmgr) in vega12_hwmgr_backend_init() 445 static int vega12_init_sclk_threshold(struct pp_hwmgr *hwmgr) in vega12_init_sclk_threshold() 455 static int vega12_setup_asic_task(struct pp_hwmgr *hwmgr) in vega12_setup_asic_task() 479 static int vega12_get_number_of_dpm_level(struct pp_hwmgr *hwmgr, in vega12_get_number_of_dpm_level() 499 static int vega12_get_dpm_frequency_by_index(struct pp_hwmgr *hwmgr, in vega12_get_dpm_frequency_by_index() [all …]
|
D | smu8_hwmgr.c | 68 static uint32_t smu8_get_eclk_level(struct pp_hwmgr *hwmgr, in smu8_get_eclk_level() 99 static uint32_t smu8_get_sclk_level(struct pp_hwmgr *hwmgr, in smu8_get_sclk_level() 129 static uint32_t smu8_get_uvd_level(struct pp_hwmgr *hwmgr, in smu8_get_uvd_level() 160 static uint32_t smu8_get_max_sclk_level(struct pp_hwmgr *hwmgr) in smu8_get_max_sclk_level() 172 static int smu8_initialize_dpm_defaults(struct pp_hwmgr *hwmgr) in smu8_initialize_dpm_defaults() 249 struct pp_hwmgr *hwmgr, uint16_t voltage) in smu8_convert_8Bit_index_to_voltage() 254 static int smu8_construct_max_power_limits_table(struct pp_hwmgr *hwmgr, in smu8_construct_max_power_limits_table() 272 struct pp_hwmgr *hwmgr, in smu8_init_dynamic_state_adjustment_rule_settings() 307 static int smu8_get_system_info_data(struct pp_hwmgr *hwmgr) in smu8_get_system_info_data() 411 static int smu8_construct_boot_state(struct pp_hwmgr *hwmgr) in smu8_construct_boot_state() [all …]
|
D | hwmgr.c | 65 static void hwmgr_init_workload_prority(struct pp_hwmgr *hwmgr) in hwmgr_init_workload_prority() 82 int hwmgr_early_init(struct pp_hwmgr *hwmgr) in hwmgr_early_init() 191 int hwmgr_sw_init(struct pp_hwmgr *hwmgr) in hwmgr_sw_init() 203 int hwmgr_sw_fini(struct pp_hwmgr *hwmgr) in hwmgr_sw_fini() 211 int hwmgr_hw_init(struct pp_hwmgr *hwmgr) in hwmgr_hw_init() 271 int hwmgr_hw_fini(struct pp_hwmgr *hwmgr) in hwmgr_hw_fini() 289 int hwmgr_suspend(struct pp_hwmgr *hwmgr) in hwmgr_suspend() 308 int hwmgr_resume(struct pp_hwmgr *hwmgr) in hwmgr_resume() 349 int hwmgr_handle_task(struct pp_hwmgr *hwmgr, enum amd_pp_task task_id, in hwmgr_handle_task() 397 void hwmgr_init_default_caps(struct pp_hwmgr *hwmgr) in hwmgr_init_default_caps() [all …]
|
D | smu10_hwmgr.c | 56 static int smu10_display_clock_voltage_request(struct pp_hwmgr *hwmgr, in smu10_display_clock_voltage_request() 106 static int smu10_initialize_dpm_defaults(struct pp_hwmgr *hwmgr) in smu10_initialize_dpm_defaults() 129 static int smu10_construct_max_power_limits_table(struct pp_hwmgr *hwmgr, in smu10_construct_max_power_limits_table() 136 struct pp_hwmgr *hwmgr) in smu10_init_dynamic_state_adjustment_rule_settings() 170 static int smu10_get_system_info_data(struct pp_hwmgr *hwmgr) in smu10_get_system_info_data() 188 static int smu10_construct_boot_state(struct pp_hwmgr *hwmgr) in smu10_construct_boot_state() 193 static int smu10_set_clock_limit(struct pp_hwmgr *hwmgr, const void *input) in smu10_set_clock_limit() 208 static int smu10_set_min_deep_sleep_dcefclk(struct pp_hwmgr *hwmgr, uint32_t clock) in smu10_set_min_deep_sleep_dcefclk() 222 static int smu10_set_hard_min_dcefclk_by_freq(struct pp_hwmgr *hwmgr, uint32_t clock) in smu10_set_hard_min_dcefclk_by_freq() 236 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 …]
|
D | smu7_hwmgr.c | 138 static int smu7_get_mc_microcode_version(struct pp_hwmgr *hwmgr) in smu7_get_mc_microcode_version() 147 static uint16_t smu7_get_current_pcie_speed(struct pp_hwmgr *hwmgr) in smu7_get_current_pcie_speed() 158 static int smu7_get_current_pcie_lane_number(struct pp_hwmgr *hwmgr) in smu7_get_current_pcie_lane_number() 178 static int smu7_enable_smc_voltage_controller(struct pp_hwmgr *hwmgr) in smu7_enable_smc_voltage_controller() 198 static bool smu7_voltage_control(const struct pp_hwmgr *hwmgr) in smu7_voltage_control() 212 static int smu7_enable_voltage_control(struct pp_hwmgr *hwmgr) in smu7_enable_voltage_control() 250 static int smu7_construct_voltage_tables(struct pp_hwmgr *hwmgr) in smu7_construct_voltage_tables() 363 struct pp_hwmgr *hwmgr) in smu7_program_static_screen_threshold_parameters() 385 static int smu7_enable_display_gap(struct pp_hwmgr *hwmgr) in smu7_enable_display_gap() 409 static int smu7_program_voting_clients(struct pp_hwmgr *hwmgr) in smu7_program_voting_clients() [all …]
|
D | smu7_thermal.c | 29 int smu7_fan_ctrl_get_fan_speed_info(struct pp_hwmgr *hwmgr, in smu7_fan_ctrl_get_fan_speed_info() 54 int smu7_fan_ctrl_get_fan_speed_percent(struct pp_hwmgr *hwmgr, in smu7_fan_ctrl_get_fan_speed_percent() 83 int smu7_fan_ctrl_get_fan_speed_rpm(struct pp_hwmgr *hwmgr, uint32_t *speed) in smu7_fan_ctrl_get_fan_speed_rpm() 111 int smu7_fan_ctrl_set_static_mode(struct pp_hwmgr *hwmgr, uint32_t mode) in smu7_fan_ctrl_set_static_mode() 136 int smu7_fan_ctrl_set_default_mode(struct pp_hwmgr *hwmgr) in smu7_fan_ctrl_set_default_mode() 149 int smu7_fan_ctrl_start_smc_fan_control(struct pp_hwmgr *hwmgr) in smu7_fan_ctrl_start_smc_fan_control() 183 int smu7_fan_ctrl_stop_smc_fan_control(struct pp_hwmgr *hwmgr) in smu7_fan_ctrl_stop_smc_fan_control() 195 int smu7_fan_ctrl_set_fan_speed_percent(struct pp_hwmgr *hwmgr, in smu7_fan_ctrl_set_fan_speed_percent() 232 int smu7_fan_ctrl_reset_fan_speed_to_default(struct pp_hwmgr *hwmgr) in smu7_fan_ctrl_reset_fan_speed_to_default() 255 int smu7_fan_ctrl_set_fan_speed_rpm(struct pp_hwmgr *hwmgr, uint32_t speed) in smu7_fan_ctrl_set_fan_speed_rpm() [all …]
|
D | vega10_thermal.c | 32 static int vega10_get_current_rpm(struct pp_hwmgr *hwmgr, uint32_t *current_rpm) in vega10_get_current_rpm() 39 int vega10_fan_ctrl_get_fan_speed_info(struct pp_hwmgr *hwmgr, in vega10_fan_ctrl_get_fan_speed_info() 68 int vega10_fan_ctrl_get_fan_speed_percent(struct pp_hwmgr *hwmgr, in vega10_fan_ctrl_get_fan_speed_percent() 91 int vega10_fan_ctrl_get_fan_speed_rpm(struct pp_hwmgr *hwmgr, uint32_t *speed) in vega10_fan_ctrl_get_fan_speed_rpm() 128 int vega10_fan_ctrl_set_static_mode(struct pp_hwmgr *hwmgr, uint32_t mode) in vega10_fan_ctrl_set_static_mode() 157 int vega10_fan_ctrl_set_default_mode(struct pp_hwmgr *hwmgr) in vega10_fan_ctrl_set_default_mode() 183 static int vega10_enable_fan_control_feature(struct pp_hwmgr *hwmgr) in vega10_enable_fan_control_feature() 200 static int vega10_disable_fan_control_feature(struct pp_hwmgr *hwmgr) in vega10_disable_fan_control_feature() 217 int vega10_fan_ctrl_start_smc_fan_control(struct pp_hwmgr *hwmgr) in vega10_fan_ctrl_start_smc_fan_control() 230 int vega10_fan_ctrl_stop_smc_fan_control(struct pp_hwmgr *hwmgr) in vega10_fan_ctrl_stop_smc_fan_control() [all …]
|
D | vega20_hwmgr.c | 58 static void vega20_set_default_registry_data(struct pp_hwmgr *hwmgr) in vega20_set_default_registry_data() 172 static int vega20_set_features_platform_caps(struct pp_hwmgr *hwmgr) in vega20_set_features_platform_caps() 324 static void vega20_init_dpm_defaults(struct pp_hwmgr *hwmgr) in vega20_init_dpm_defaults() 408 static int vega20_set_private_data_based_on_pptable(struct pp_hwmgr *hwmgr) in vega20_set_private_data_based_on_pptable() 413 static int vega20_hwmgr_backend_fini(struct pp_hwmgr *hwmgr) in vega20_hwmgr_backend_fini() 421 static int vega20_hwmgr_backend_init(struct pp_hwmgr *hwmgr) in vega20_hwmgr_backend_init() 473 static int vega20_init_sclk_threshold(struct pp_hwmgr *hwmgr) in vega20_init_sclk_threshold() 483 static int vega20_setup_asic_task(struct pp_hwmgr *hwmgr) in vega20_setup_asic_task() 519 static int vega20_get_number_of_dpm_level(struct pp_hwmgr *hwmgr, in vega20_get_number_of_dpm_level() 539 static int vega20_get_dpm_frequency_by_index(struct pp_hwmgr *hwmgr, in vega20_get_dpm_frequency_by_index() [all …]
|
D | vega12_thermal.c | 32 static int vega12_get_current_rpm(struct pp_hwmgr *hwmgr, uint32_t *current_rpm) in vega12_get_current_rpm() 43 int vega12_fan_ctrl_get_fan_speed_info(struct pp_hwmgr *hwmgr, in vega12_fan_ctrl_get_fan_speed_info() 55 int vega12_fan_ctrl_get_fan_speed_rpm(struct pp_hwmgr *hwmgr, uint32_t *speed) in vega12_fan_ctrl_get_fan_speed_rpm() 69 static int vega12_enable_fan_control_feature(struct pp_hwmgr *hwmgr) in vega12_enable_fan_control_feature() 87 static int vega12_disable_fan_control_feature(struct pp_hwmgr *hwmgr) in vega12_disable_fan_control_feature() 105 int vega12_fan_ctrl_start_smc_fan_control(struct pp_hwmgr *hwmgr) in vega12_fan_ctrl_start_smc_fan_control() 119 int vega12_fan_ctrl_stop_smc_fan_control(struct pp_hwmgr *hwmgr) in vega12_fan_ctrl_stop_smc_fan_control() 136 int vega12_fan_ctrl_reset_fan_speed_to_default(struct pp_hwmgr *hwmgr) in vega12_fan_ctrl_reset_fan_speed_to_default() 146 int vega12_thermal_get_temperature(struct pp_hwmgr *hwmgr) in vega12_thermal_get_temperature() 170 static int vega12_thermal_set_temperature_range(struct pp_hwmgr *hwmgr, in vega12_thermal_set_temperature_range() [all …]
|
D | smu7_clockpowergating.c | 28 static int smu7_enable_disable_uvd_dpm(struct pp_hwmgr *hwmgr, bool enable) in smu7_enable_disable_uvd_dpm() 35 static int smu7_enable_disable_vce_dpm(struct pp_hwmgr *hwmgr, bool enable) in smu7_enable_disable_vce_dpm() 42 static int smu7_update_uvd_dpm(struct pp_hwmgr *hwmgr, bool bgate) in smu7_update_uvd_dpm() 49 static int smu7_update_vce_dpm(struct pp_hwmgr *hwmgr, bool bgate) in smu7_update_vce_dpm() 56 int smu7_powerdown_uvd(struct pp_hwmgr *hwmgr) in smu7_powerdown_uvd() 64 static int smu7_powerup_uvd(struct pp_hwmgr *hwmgr) in smu7_powerup_uvd() 80 static int smu7_powerdown_vce(struct pp_hwmgr *hwmgr) in smu7_powerdown_vce() 88 static int smu7_powerup_vce(struct pp_hwmgr *hwmgr) in smu7_powerup_vce() 96 int smu7_disable_clock_power_gating(struct pp_hwmgr *hwmgr) in smu7_disable_clock_power_gating() 109 void smu7_powergate_uvd(struct pp_hwmgr *hwmgr, bool bgate) in smu7_powergate_uvd() [all …]
|
D | vega10_hwmgr.c | 113 static void vega10_set_default_registry_data(struct pp_hwmgr *hwmgr) in vega10_set_default_registry_data() 191 static int vega10_set_features_platform_caps(struct pp_hwmgr *hwmgr) in vega10_set_features_platform_caps() 301 static int vega10_odn_initial_default_setting(struct pp_hwmgr *hwmgr) in vega10_odn_initial_default_setting() 355 static void vega10_init_dpm_defaults(struct pp_hwmgr *hwmgr) in vega10_init_dpm_defaults() 515 static int vega10_get_socclk_for_voltage_evv(struct pp_hwmgr *hwmgr, in vega10_get_socclk_for_voltage_evv() 551 static int vega10_get_evv_voltages(struct pp_hwmgr *hwmgr) in vega10_get_evv_voltages() 608 static void vega10_patch_with_vdd_leakage(struct pp_hwmgr *hwmgr, in vega10_patch_with_vdd_leakage() 635 static int vega10_patch_lookup_table_with_leakage(struct pp_hwmgr *hwmgr, in vega10_patch_lookup_table_with_leakage() 649 struct pp_hwmgr *hwmgr, struct vega10_leakage_voltage *leakage_table, in vega10_patch_clock_voltage_limits_with_vddc_leakage() 659 struct pp_hwmgr *hwmgr) in vega10_patch_voltage_dependency_tables_with_lookup_table() [all …]
|
D | vega20_thermal.c | 32 static int vega20_disable_fan_control_feature(struct pp_hwmgr *hwmgr) in vega20_disable_fan_control_feature() 51 int vega20_fan_ctrl_stop_smc_fan_control(struct pp_hwmgr *hwmgr) in vega20_fan_ctrl_stop_smc_fan_control() 61 static int vega20_enable_fan_control_feature(struct pp_hwmgr *hwmgr) in vega20_enable_fan_control_feature() 80 int vega20_fan_ctrl_start_smc_fan_control(struct pp_hwmgr *hwmgr) in vega20_fan_ctrl_start_smc_fan_control() 90 static int vega20_fan_ctrl_set_static_mode(struct pp_hwmgr *hwmgr, uint32_t mode) in vega20_fan_ctrl_set_static_mode() 104 static int vega20_get_current_rpm(struct pp_hwmgr *hwmgr, uint32_t *current_rpm) in vega20_get_current_rpm() 117 int vega20_fan_ctrl_get_fan_speed_percent(struct pp_hwmgr *hwmgr, in vega20_fan_ctrl_get_fan_speed_percent() 136 int vega20_fan_ctrl_set_fan_speed_percent(struct pp_hwmgr *hwmgr, in vega20_fan_ctrl_set_fan_speed_percent() 167 int vega20_fan_ctrl_get_fan_speed_info(struct pp_hwmgr *hwmgr, in vega20_fan_ctrl_get_fan_speed_info() 179 int vega20_fan_ctrl_get_fan_speed_rpm(struct pp_hwmgr *hwmgr, uint32_t *speed) in vega20_fan_ctrl_get_fan_speed_rpm() [all …]
|
D | processpptables.c | 48 static uint16_t get_vce_table_offset(struct pp_hwmgr *hwmgr, in get_vce_table_offset() 72 static uint16_t get_vce_clock_info_array_offset(struct pp_hwmgr *hwmgr, in get_vce_clock_info_array_offset() 84 static uint16_t get_vce_clock_info_array_size(struct pp_hwmgr *hwmgr, in get_vce_clock_info_array_size() 100 static uint16_t get_vce_clock_voltage_limit_table_offset(struct pp_hwmgr *hwmgr, in get_vce_clock_voltage_limit_table_offset() 113 static uint16_t get_vce_clock_voltage_limit_table_size(struct pp_hwmgr *hwmgr, in get_vce_clock_voltage_limit_table_size() 128 static uint16_t get_vce_state_table_offset(struct pp_hwmgr *hwmgr, const ATOM_PPLIB_POWERPLAYTABLE … in get_vce_state_table_offset() 139 struct pp_hwmgr *hwmgr, in get_vce_state_table() 150 static uint16_t get_uvd_table_offset(struct pp_hwmgr *hwmgr, in get_uvd_table_offset() 172 static uint16_t get_uvd_clock_info_array_offset(struct pp_hwmgr *hwmgr, in get_uvd_clock_info_array_offset() 183 static uint16_t get_uvd_clock_info_array_size(struct pp_hwmgr *hwmgr, in get_uvd_clock_info_array_size() [all …]
|
D | vega10_powertune.c | 799 static int vega10_program_didt_config_registers(struct pp_hwmgr *hwmgr, const struct vega10_didt_co… in vega10_program_didt_config_registers() 835 static int vega10_program_gc_didt_config_registers(struct pp_hwmgr *hwmgr, const struct vega10_didt… in vega10_program_gc_didt_config_registers() 850 static void vega10_didt_set_mask(struct pp_hwmgr *hwmgr, const bool enable) in vega10_didt_set_mask() 932 static int vega10_enable_cac_driving_se_didt_config(struct pp_hwmgr *hwmgr) in vega10_enable_cac_driving_se_didt_config() 970 static int vega10_disable_cac_driving_se_didt_config(struct pp_hwmgr *hwmgr) in vega10_disable_cac_driving_se_didt_config() 983 static int vega10_enable_psm_gc_didt_config(struct pp_hwmgr *hwmgr) in vega10_enable_psm_gc_didt_config() 1022 static int vega10_disable_psm_gc_didt_config(struct pp_hwmgr *hwmgr) in vega10_disable_psm_gc_didt_config() 1044 static int vega10_enable_se_edc_config(struct pp_hwmgr *hwmgr) in vega10_enable_se_edc_config() 1078 static int vega10_disable_se_edc_config(struct pp_hwmgr *hwmgr) in vega10_disable_se_edc_config() 1091 static int vega10_enable_psm_gc_edc_config(struct pp_hwmgr *hwmgr) in vega10_enable_psm_gc_edc_config() [all …]
|
/Linux-v5.4/drivers/gpu/drm/amd/powerplay/smumgr/ |
D | smumgr.c | 57 int smum_thermal_avfs_enable(struct pp_hwmgr *hwmgr) in smum_thermal_avfs_enable() 65 int smum_thermal_setup_fan_table(struct pp_hwmgr *hwmgr) in smum_thermal_setup_fan_table() 73 int smum_update_sclk_threshold(struct pp_hwmgr *hwmgr) in smum_update_sclk_threshold() 82 int smum_update_smc_table(struct pp_hwmgr *hwmgr, uint32_t type) in smum_update_smc_table() 91 uint32_t smum_get_offsetof(struct pp_hwmgr *hwmgr, uint32_t type, uint32_t member) in smum_get_offsetof() 99 int smum_process_firmware_header(struct pp_hwmgr *hwmgr) in smum_process_firmware_header() 106 uint32_t smum_get_argument(struct pp_hwmgr *hwmgr) in smum_get_argument() 114 uint32_t smum_get_mac_definition(struct pp_hwmgr *hwmgr, uint32_t value) in smum_get_mac_definition() 122 int smum_download_powerplay_table(struct pp_hwmgr *hwmgr, void **table) in smum_download_powerplay_table() 130 int smum_upload_powerplay_table(struct pp_hwmgr *hwmgr) in smum_upload_powerplay_table() [all …]
|
D | smu8_smumgr.c | 56 static uint32_t smu8_get_argument(struct pp_hwmgr *hwmgr) in smu8_get_argument() 66 static int smu8_send_msg_to_smc_with_parameter(struct pp_hwmgr *hwmgr, in smu8_send_msg_to_smc_with_parameter() 104 static int smu8_send_msg_to_smc(struct pp_hwmgr *hwmgr, uint16_t msg) in smu8_send_msg_to_smc() 109 static int smu8_set_smc_sram_address(struct pp_hwmgr *hwmgr, in smu8_set_smc_sram_address() 131 static int smu8_write_smc_sram_dword(struct pp_hwmgr *hwmgr, in smu8_write_smc_sram_dword() 146 static int smu8_check_fw_load_finish(struct pp_hwmgr *hwmgr, in smu8_check_fw_load_finish() 174 static int smu8_load_mec_firmware(struct pp_hwmgr *hwmgr) in smu8_load_mec_firmware() 219 static uint8_t smu8_translate_firmware_enum_to_arg(struct pp_hwmgr *hwmgr, in smu8_translate_firmware_enum_to_arg() 329 struct pp_hwmgr *hwmgr, in smu8_smu_populate_single_scratch_task() 366 struct pp_hwmgr *hwmgr, in smu8_smu_populate_single_ucode_load_task() [all …]
|
D | smu7_smumgr.c | 38 static int smu7_set_smc_sram_address(struct pp_hwmgr *hwmgr, uint32_t smc_addr, uint32_t limit) in smu7_set_smc_sram_address() 49 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() 85 int smu7_copy_bytes_to_smc(struct pp_hwmgr *hwmgr, uint32_t smc_start_address, in smu7_copy_bytes_to_smc() 151 int smu7_program_jump_on_start(struct pp_hwmgr *hwmgr) in smu7_program_jump_on_start() 160 bool smu7_is_smc_ram_running(struct pp_hwmgr *hwmgr) in smu7_is_smc_ram_running() 166 int smu7_send_msg_to_smc(struct pp_hwmgr *hwmgr, uint16_t msg) in smu7_send_msg_to_smc() 194 int smu7_send_msg_to_smc_without_waiting(struct pp_hwmgr *hwmgr, uint16_t msg) in smu7_send_msg_to_smc_without_waiting() 201 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() 210 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() 217 int smu7_send_msg_to_smc_offset(struct pp_hwmgr *hwmgr) in smu7_send_msg_to_smc_offset() [all …]
|
D | iceland_smumgr.c | 109 static int iceland_start_smc(struct pp_hwmgr *hwmgr) in iceland_start_smc() 117 static void iceland_reset_smc(struct pp_hwmgr *hwmgr) in iceland_reset_smc() 125 static void iceland_stop_smc_clock(struct pp_hwmgr *hwmgr) in iceland_stop_smc_clock() 132 static void iceland_start_smc_clock(struct pp_hwmgr *hwmgr) in iceland_start_smc_clock() 139 static int iceland_smu_start_smc(struct pp_hwmgr *hwmgr) in iceland_smu_start_smc() 157 static int iceland_upload_smc_firmware_data(struct pp_hwmgr *hwmgr, in iceland_upload_smc_firmware_data() 184 static int iceland_smu_upload_firmware_image(struct pp_hwmgr *hwmgr) in iceland_smu_upload_firmware_image() 228 static int iceland_request_smu_load_specific_fw(struct pp_hwmgr *hwmgr, in iceland_request_smu_load_specific_fw() 234 static int iceland_start_smu(struct pp_hwmgr *hwmgr) in iceland_start_smu() 260 static int iceland_smu_init(struct pp_hwmgr *hwmgr) in iceland_smu_init() [all …]
|
D | vega20_smumgr.c | 47 bool vega20_is_smc_ram_running(struct pp_hwmgr *hwmgr) in vega20_is_smc_ram_running() 68 static uint32_t vega20_wait_for_response(struct pp_hwmgr *hwmgr) in vega20_wait_for_response() 87 static int vega20_send_msg_to_smc_without_waiting(struct pp_hwmgr *hwmgr, in vega20_send_msg_to_smc_without_waiting() 103 static int vega20_send_msg_to_smc(struct pp_hwmgr *hwmgr, uint16_t msg) in vega20_send_msg_to_smc() 128 static int vega20_send_msg_to_smc_with_parameter(struct pp_hwmgr *hwmgr, in vega20_send_msg_to_smc_with_parameter() 149 static uint32_t vega20_get_argument(struct pp_hwmgr *hwmgr) in vega20_get_argument() 161 static int vega20_copy_table_from_smc(struct pp_hwmgr *hwmgr, in vega20_copy_table_from_smc() 205 static int vega20_copy_table_to_smc(struct pp_hwmgr *hwmgr, in vega20_copy_table_to_smc() 240 int vega20_set_activity_monitor_coeff(struct pp_hwmgr *hwmgr, in vega20_set_activity_monitor_coeff() 268 int vega20_get_activity_monitor_coeff(struct pp_hwmgr *hwmgr, in vega20_get_activity_monitor_coeff() [all …]
|
D | fiji_smumgr.c | 99 static int fiji_start_smu_in_protection_mode(struct pp_hwmgr *hwmgr) in fiji_start_smu_in_protection_mode() 162 static int fiji_start_smu_in_non_protection_mode(struct pp_hwmgr *hwmgr) in fiji_start_smu_in_non_protection_mode() 200 static int fiji_start_avfs_btc(struct pp_hwmgr *hwmgr) in fiji_start_avfs_btc() 223 static int fiji_setup_graphics_level_structure(struct pp_hwmgr *hwmgr) in fiji_setup_graphics_level_structure() 261 static int fiji_avfs_event_mgr(struct pp_hwmgr *hwmgr) in fiji_avfs_event_mgr() 282 static int fiji_start_smu(struct pp_hwmgr *hwmgr) in fiji_start_smu() 318 static bool fiji_is_hw_avfs_present(struct pp_hwmgr *hwmgr) in fiji_is_hw_avfs_present() 335 static int fiji_smu_init(struct pp_hwmgr *hwmgr) in fiji_smu_init() 354 static int fiji_get_dependency_volt_by_clk(struct pp_hwmgr *hwmgr, in fiji_get_dependency_volt_by_clk() 469 static void fiji_initialize_power_tune_defaults(struct pp_hwmgr *hwmgr) in fiji_initialize_power_tune_defaults() [all …]
|
D | ci_smumgr.c | 94 static int ci_set_smc_sram_address(struct pp_hwmgr *hwmgr, in ci_set_smc_sram_address() 108 static int ci_copy_bytes_to_smc(struct pp_hwmgr *hwmgr, uint32_t smc_start_address, in ci_copy_bytes_to_smc() 177 static int ci_program_jump_on_start(struct pp_hwmgr *hwmgr) in ci_program_jump_on_start() 186 bool ci_is_smc_ram_running(struct pp_hwmgr *hwmgr) in ci_is_smc_ram_running() 194 static int ci_read_smc_sram_dword(struct pp_hwmgr *hwmgr, uint32_t smc_addr, in ci_read_smc_sram_dword() 208 static int ci_send_msg_to_smc(struct pp_hwmgr *hwmgr, uint16_t msg) in ci_send_msg_to_smc() 225 static int ci_send_msg_to_smc_with_parameter(struct pp_hwmgr *hwmgr, in ci_send_msg_to_smc_with_parameter() 232 static void ci_initialize_power_tune_defaults(struct pp_hwmgr *hwmgr) in ci_initialize_power_tune_defaults() 275 static int ci_get_dependency_volt_by_clk(struct pp_hwmgr *hwmgr, in ci_get_dependency_volt_by_clk() 295 static int ci_calculate_sclk_params(struct pp_hwmgr *hwmgr, in ci_calculate_sclk_params() [all …]
|
D | vegam_smumgr.c | 82 static int vegam_smu_init(struct pp_hwmgr *hwmgr) in vegam_smu_init() 100 static int vegam_start_smu_in_protection_mode(struct pp_hwmgr *hwmgr) in vegam_start_smu_in_protection_mode() 155 static int vegam_start_smu_in_non_protection_mode(struct pp_hwmgr *hwmgr) in vegam_start_smu_in_non_protection_mode() 192 static int vegam_start_smu(struct pp_hwmgr *hwmgr) in vegam_start_smu() 225 static int vegam_process_firmware_header(struct pp_hwmgr *hwmgr) in vegam_process_firmware_header() 296 static bool vegam_is_dpm_running(struct pp_hwmgr *hwmgr) in vegam_is_dpm_running() 331 static int vegam_update_uvd_smc_table(struct pp_hwmgr *hwmgr) in vegam_update_uvd_smc_table() 363 static int vegam_update_vce_smc_table(struct pp_hwmgr *hwmgr) in vegam_update_vce_smc_table() 395 static int vegam_update_bif_smc_table(struct pp_hwmgr *hwmgr) in vegam_update_bif_smc_table() 412 static int vegam_update_smc_table(struct pp_hwmgr *hwmgr, uint32_t type) in vegam_update_smc_table() [all …]
|
D | polaris10_smumgr.c | 96 static int polaris10_perform_btc(struct pp_hwmgr *hwmgr) in polaris10_perform_btc() 119 static int polaris10_setup_graphics_level_structure(struct pp_hwmgr *hwmgr) in polaris10_setup_graphics_level_structure() 174 static int polaris10_avfs_event_mgr(struct pp_hwmgr *hwmgr) in polaris10_avfs_event_mgr() 199 static int polaris10_start_smu_in_protection_mode(struct pp_hwmgr *hwmgr) in polaris10_start_smu_in_protection_mode() 254 static int polaris10_start_smu_in_non_protection_mode(struct pp_hwmgr *hwmgr) in polaris10_start_smu_in_non_protection_mode() 291 static int polaris10_start_smu(struct pp_hwmgr *hwmgr) in polaris10_start_smu() 322 static bool polaris10_is_hw_avfs_present(struct pp_hwmgr *hwmgr) in polaris10_is_hw_avfs_present() 334 static int polaris10_smu_init(struct pp_hwmgr *hwmgr) in polaris10_smu_init() 352 static int polaris10_get_dependency_volt_by_clk(struct pp_hwmgr *hwmgr, in polaris10_get_dependency_volt_by_clk() 424 static int polaris10_populate_bapm_parameters_in_dpm_table(struct pp_hwmgr *hwmgr) in polaris10_populate_bapm_parameters_in_dpm_table() [all …]
|
/Linux-v5.4/drivers/gpu/drm/amd/powerplay/ |
D | amd_powerplay.c | 40 struct pp_hwmgr *hwmgr; in amd_powerplay_create() local 66 struct pp_hwmgr *hwmgr = adev->powerplay.pp_handle; in amd_powerplay_destroy() local 95 struct pp_hwmgr *hwmgr = adev->powerplay.pp_handle; in pp_sw_init() local 108 struct pp_hwmgr *hwmgr = adev->powerplay.pp_handle; in pp_sw_fini() local 122 struct pp_hwmgr *hwmgr = adev->powerplay.pp_handle; in pp_hw_init() local 135 struct pp_hwmgr *hwmgr = adev->powerplay.pp_handle; in pp_hw_fini() local 147 struct pp_hwmgr *hwmgr = adev->powerplay.pp_handle; in pp_reserve_vram_for_smu() local 176 struct pp_hwmgr *hwmgr = adev->powerplay.pp_handle; in pp_late_init() local 224 struct pp_hwmgr *hwmgr = adev->powerplay.pp_handle; in pp_suspend() local 232 struct pp_hwmgr *hwmgr = adev->powerplay.pp_handle; in pp_resume() local [all …]
|