Home
last modified time | relevance | path

Searched refs:pp_hwmgr (Results 1 – 25 of 65) sorted by relevance

123

/linux/drivers/gpu/drm/amd/pm/powerplay/inc/
H A Dsmumgr.h84 extern int smum_download_powerplay_table(struct pp_hwmgr *hwmgr, void **table);
86 extern int smum_upload_powerplay_table(struct pp_hwmgr *hwmgr);
88 extern int smum_send_msg_to_smc(struct pp_hwmgr *hwmgr, uint16_t msg, uint32_t *resp);
90 extern int smum_send_msg_to_smc_with_parameter(struct pp_hwmgr *hwmgr,
94 extern int smum_update_sclk_threshold(struct pp_hwmgr *hwmgr);
96 extern int smum_update_smc_table(struct pp_hwmgr *hwmgr, uint32_t type);
97 extern int smum_process_firmware_header(struct pp_hwmgr *hwmgr);
98 extern int smum_thermal_avfs_enable(struct pp_hwmgr *hwmgr);
99 extern int smum_thermal_setup_fan_table(struct pp_hwmgr *hwmgr);
100 extern int smum_init_smc_table(struct pp_hwmgr *hwmgr);
[all …]
/linux/drivers/gpu/drm/amd/pm/powerplay/hwmgr/
H A Dsmu7_thermal.h41 extern int smu7_thermal_get_temperature(struct pp_hwmgr *hwmgr);
42 extern int smu7_thermal_stop_thermal_controller(struct pp_hwmgr *hwmgr);
43 extern int smu7_fan_ctrl_get_fan_speed_info(struct pp_hwmgr *hwmgr, struct phm_fan_speed_info *fan_…
44 extern int smu7_fan_ctrl_get_fan_speed_pwm(struct pp_hwmgr *hwmgr, uint32_t *speed);
45 extern int smu7_fan_ctrl_set_default_mode(struct pp_hwmgr *hwmgr);
46 extern int smu7_fan_ctrl_set_static_mode(struct pp_hwmgr *hwmgr, uint32_t mode);
47 extern int smu7_fan_ctrl_set_fan_speed_pwm(struct pp_hwmgr *hwmgr, uint32_t speed);
48 extern int smu7_fan_ctrl_reset_fan_speed_to_default(struct pp_hwmgr *hwmgr);
49 extern int smu7_thermal_ctrl_uninitialize_thermal_controller(struct pp_hwmgr *hwmgr);
50 extern int smu7_fan_ctrl_set_fan_speed_rpm(struct pp_hwmgr *hwmgr, uint32_t speed);
[all …]
H A Dvega10_thermal.h53 extern int vega10_thermal_get_temperature(struct pp_hwmgr *hwmgr);
54 extern int vega10_thermal_stop_thermal_controller(struct pp_hwmgr *hwmgr);
55 extern int vega10_fan_ctrl_get_fan_speed_info(struct pp_hwmgr *hwmgr,
57 extern int vega10_fan_ctrl_get_fan_speed_pwm(struct pp_hwmgr *hwmgr,
59 extern int vega10_fan_ctrl_set_default_mode(struct pp_hwmgr *hwmgr);
60 extern int vega10_fan_ctrl_set_static_mode(struct pp_hwmgr *hwmgr,
62 extern int vega10_fan_ctrl_set_fan_speed_pwm(struct pp_hwmgr *hwmgr,
64 extern int vega10_fan_ctrl_reset_fan_speed_to_default(struct pp_hwmgr *hwmgr);
66 struct pp_hwmgr *hwmgr);
67 extern int vega10_fan_ctrl_set_fan_speed_rpm(struct pp_hwmgr *hwmgr,
[all …]
H A Dvega20_thermal.h52 extern int vega20_thermal_get_temperature(struct pp_hwmgr *hwmgr);
53 extern int vega20_fan_ctrl_get_fan_speed_info(struct pp_hwmgr *hwmgr,
55 extern int vega20_fan_ctrl_get_fan_speed_rpm(struct pp_hwmgr *hwmgr,
57 extern int vega20_fan_ctrl_set_fan_speed_rpm(struct pp_hwmgr *hwmgr,
59 extern int vega20_fan_ctrl_get_fan_speed_pwm(struct pp_hwmgr *hwmgr,
61 extern int vega20_fan_ctrl_set_fan_speed_pwm(struct pp_hwmgr *hwmgr,
63 extern int vega20_fan_ctrl_stop_smc_fan_control(struct pp_hwmgr *hwmgr);
64 extern int vega20_fan_ctrl_start_smc_fan_control(struct pp_hwmgr *hwmgr);
65 extern int vega20_thermal_disable_alert(struct pp_hwmgr *hwmgr);
66 extern int vega20_start_thermal_controller(struct pp_hwmgr *hwmgr,
[all …]
H A Dvega10_powertune.h69 void vega10_initialize_power_tune_defaults(struct pp_hwmgr *hwmgr);
70 int vega10_populate_bapm_parameters_in_dpm_table(struct pp_hwmgr *hwmgr);
71 int vega10_populate_pm_fuses(struct pp_hwmgr *hwmgr);
72 int vega10_enable_smc_cac(struct pp_hwmgr *hwmgr);
73 int vega10_enable_power_containment(struct pp_hwmgr *hwmgr);
74 int vega10_set_power_limit(struct pp_hwmgr *hwmgr, uint32_t n);
75 int vega10_power_control_set_level(struct pp_hwmgr *hwmgr);
76 int vega10_disable_power_containment(struct pp_hwmgr *hwmgr);
78 int vega10_enable_didt_config(struct pp_hwmgr *hwmgr);
79 int vega10_disable_didt_config(struct pp_hwmgr *hwmgr);
H A Dvega12_thermal.h52 extern int vega12_thermal_get_temperature(struct pp_hwmgr *hwmgr);
53 extern int vega12_thermal_stop_thermal_controller(struct pp_hwmgr *hwmgr);
54 extern int vega12_fan_ctrl_get_fan_speed_info(struct pp_hwmgr *hwmgr,
56 extern int vega12_fan_ctrl_reset_fan_speed_to_default(struct pp_hwmgr *hwmgr);
57 extern int vega12_fan_ctrl_get_fan_speed_rpm(struct pp_hwmgr *hwmgr,
59 extern int vega12_fan_ctrl_stop_smc_fan_control(struct pp_hwmgr *hwmgr);
60 extern int vega12_thermal_disable_alert(struct pp_hwmgr *hwmgr);
61 extern int vega12_fan_ctrl_start_smc_fan_control(struct pp_hwmgr *hwmgr);
62 extern int vega12_start_thermal_controller(struct pp_hwmgr *hwmgr,
H A Dvega12_thermal.c32 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()
68 static int vega12_enable_fan_control_feature(struct pp_hwmgr *hwmgr) in vega12_enable_fan_control_feature()
86 static int vega12_disable_fan_control_feature(struct pp_hwmgr *hwmgr) in vega12_disable_fan_control_feature()
104 int vega12_fan_ctrl_start_smc_fan_control(struct pp_hwmgr *hwmgr) in vega12_fan_ctrl_start_smc_fan_control()
118 int vega12_fan_ctrl_stop_smc_fan_control(struct pp_hwmgr *hwmgr) in vega12_fan_ctrl_stop_smc_fan_control()
135 int vega12_fan_ctrl_reset_fan_speed_to_default(struct pp_hwmgr *hwmgr) in vega12_fan_ctrl_reset_fan_speed_to_default()
145 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 …]
H A Dsmu7_powertune.h53 int smu7_enable_smc_cac(struct pp_hwmgr *hwmgr);
54 int smu7_disable_smc_cac(struct pp_hwmgr *hwmgr);
55 int smu7_enable_power_containment(struct pp_hwmgr *hwmgr);
56 int smu7_disable_power_containment(struct pp_hwmgr *hwmgr);
57 int smu7_set_power_limit(struct pp_hwmgr *hwmgr, uint32_t n);
58 int smu7_power_control_set_level(struct pp_hwmgr *hwmgr);
59 int smu7_enable_didt_config(struct pp_hwmgr *hwmgr);
60 int smu7_disable_didt_config(struct pp_hwmgr *hwmgr);
H A Dpp_psm.h29 int psm_init_power_state_table(struct pp_hwmgr *hwmgr);
30 int psm_fini_power_state_table(struct pp_hwmgr *hwmgr);
31 int psm_set_boot_states(struct pp_hwmgr *hwmgr);
32 int psm_set_performance_states(struct pp_hwmgr *hwmgr);
33 int psm_set_user_performance_state(struct pp_hwmgr *hwmgr,
36 int psm_adjust_power_state_dynamic(struct pp_hwmgr *hwmgr,
H A Dhwmgr.c50 extern int smu10_init_function_pointers(struct pp_hwmgr *hwmgr);
52 static int polaris_set_asic_special_caps(struct pp_hwmgr *hwmgr);
53 static void hwmgr_init_default_caps(struct pp_hwmgr *hwmgr);
54 static int hwmgr_set_user_specify_caps(struct pp_hwmgr *hwmgr);
55 static int fiji_set_asic_special_caps(struct pp_hwmgr *hwmgr);
56 static int tonga_set_asic_special_caps(struct pp_hwmgr *hwmgr);
57 static int topaz_set_asic_special_caps(struct pp_hwmgr *hwmgr);
58 static int ci_set_asic_special_caps(struct pp_hwmgr *hwmgr);
61 static void hwmgr_init_workload_prority(struct pp_hwmgr *hwmgr) in hwmgr_init_workload_prority()
78 int hwmgr_early_init(struct pp_hwmgr *hwmgr) in hwmgr_early_init()
[all …]
H A Dsmu8_hwmgr.c68 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()
174 static int smu8_initialize_dpm_defaults(struct pp_hwmgr *hwmgr) in smu8_initialize_dpm_defaults()
251 struct pp_hwmgr *hwmgr, uint16_t voltage) in smu8_convert_8Bit_index_to_voltage()
256 static int smu8_construct_max_power_limits_table(struct pp_hwmgr *hwmgr, in smu8_construct_max_power_limits_table()
274 struct pp_hwmgr *hwmgr, in smu8_init_dynamic_state_adjustment_rule_settings()
309 static int smu8_get_system_info_data(struct pp_hwmgr *hwmgr) in smu8_get_system_info_data()
413 static int smu8_construct_boot_state(struct pp_hwmgr *hwmgr) in smu8_construct_boot_state()
[all …]
H A Dsmu_helper.h27 struct pp_hwmgr;
51 struct pp_hwmgr *hwmgr,
57 struct pp_hwmgr *hwmgr,
62 extern int phm_wait_for_register_unequal(struct pp_hwmgr *hwmgr,
66 struct pp_hwmgr *hwmgr,
71 extern bool phm_cf_want_uvd_power_gating(struct pp_hwmgr *hwmgr);
72 extern bool phm_cf_want_vce_power_gating(struct pp_hwmgr *hwmgr);
73 extern bool phm_cf_want_microcode_fan_ctrl(struct pp_hwmgr *hwmgr);
88 extern int phm_get_sclk_for_voltage_evv(struct pp_hwmgr *hwmgr, phm_ppt_v1_voltage_lookup_table *lo…
90 extern int phm_initializa_dynamic_state_adjustment_rule_settings(struct pp_hwmgr *hwmgr);
[all …]
H A Dprocesspptables.h28 struct pp_hwmgr;
34 typedef int (*pp_tables_hw_clock_info_callback)(struct pp_hwmgr *hwmgr,
39 int pp_tables_get_num_of_entries(struct pp_hwmgr *hwmgr,
42 int pp_tables_get_entry(struct pp_hwmgr *hwmgr,
47 int pp_tables_get_response_times(struct pp_hwmgr *hwmgr,
H A Dvega12_hwmgr.c57 static int vega12_force_clock_level(struct pp_hwmgr *hwmgr,
59 static int vega12_get_clock_ranges(struct pp_hwmgr *hwmgr,
64 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 int vega12_init_dpm_defaults(struct pp_hwmgr *hwmgr) in vega12_init_dpm_defaults()
379 static int vega12_set_private_data_based_on_pptable(struct pp_hwmgr *hwmgr) in vega12_set_private_data_based_on_pptable()
384 static int vega12_hwmgr_backend_fini(struct pp_hwmgr *hwmgr) in vega12_hwmgr_backend_fini()
392 static int vega12_hwmgr_backend_init(struct pp_hwmgr *hwmgr) in vega12_hwmgr_backend_init()
460 static int vega12_init_sclk_threshold(struct pp_hwmgr *hwmgr) in vega12_init_sclk_threshold()
470 static int vega12_setup_asic_task(struct pp_hwmgr *hwmgr) in vega12_setup_asic_task()
[all …]
H A Dvega20_baco.h28 extern int vega20_get_bamaco_support(struct pp_hwmgr *hwmgr);
29 extern int vega20_baco_get_state(struct pp_hwmgr *hwmgr, enum BACO_STATE *state);
30 extern int vega20_baco_set_state(struct pp_hwmgr *hwmgr, enum BACO_STATE state);
31 extern int vega20_baco_apply_vdci_flush_workaround(struct pp_hwmgr *hwmgr);
H A Dprocesspptables.c50 static uint16_t get_vce_table_offset(struct pp_hwmgr *hwmgr, in get_vce_table_offset()
74 static uint16_t get_vce_clock_info_array_offset(struct pp_hwmgr *hwmgr, in get_vce_clock_info_array_offset()
86 static uint16_t get_vce_clock_info_array_size(struct pp_hwmgr *hwmgr, in get_vce_clock_info_array_size()
102 static uint16_t get_vce_clock_voltage_limit_table_offset(struct pp_hwmgr *hwmgr, in get_vce_clock_voltage_limit_table_offset()
115 static uint16_t get_vce_clock_voltage_limit_table_size(struct pp_hwmgr *hwmgr, in get_vce_clock_voltage_limit_table_size()
130 static uint16_t get_vce_state_table_offset(struct pp_hwmgr *hwmgr, const ATOM_PPLIB_POWERPLAYTABLE … in get_vce_state_table_offset()
141 struct pp_hwmgr *hwmgr, in get_vce_state_table()
152 static uint16_t get_uvd_table_offset(struct pp_hwmgr *hwmgr, in get_uvd_table_offset()
174 static uint16_t get_uvd_clock_info_array_offset(struct pp_hwmgr *hwmgr, in get_uvd_clock_info_array_offset()
185 static uint16_t get_uvd_clock_info_array_size(struct pp_hwmgr *hwmgr, in get_uvd_clock_info_array_size()
[all …]
H A Dsmu7_hwmgr.c173 static int smu7_force_clock_level(struct pp_hwmgr *hwmgr,
175 static int smu7_notify_has_display(struct pp_hwmgr *hwmgr);
203 static int smu7_get_mc_microcode_version(struct pp_hwmgr *hwmgr) in smu7_get_mc_microcode_version()
212 static uint16_t smu7_get_current_pcie_speed(struct pp_hwmgr *hwmgr) in smu7_get_current_pcie_speed()
223 static int smu7_get_current_pcie_lane_number(struct pp_hwmgr *hwmgr) in smu7_get_current_pcie_lane_number()
243 static int smu7_enable_smc_voltage_controller(struct pp_hwmgr *hwmgr) in smu7_enable_smc_voltage_controller()
264 static bool smu7_voltage_control(const struct pp_hwmgr *hwmgr) in smu7_voltage_control()
278 static int smu7_enable_voltage_control(struct pp_hwmgr *hwmgr) in smu7_enable_voltage_control()
316 static int smu7_construct_voltage_tables(struct pp_hwmgr *hwmgr) in smu7_construct_voltage_tables()
429 struct pp_hwmgr *hwmgr) in smu7_program_static_screen_threshold_parameters()
[all …]
H A Dpp_psm.c29 int psm_init_power_state_table(struct pp_hwmgr *hwmgr) in psm_init_power_state_table()
106 int psm_fini_power_state_table(struct pp_hwmgr *hwmgr) in psm_fini_power_state_table()
123 static int psm_get_ui_state(struct pp_hwmgr *hwmgr, in psm_get_ui_state()
144 static int psm_get_state_by_classification(struct pp_hwmgr *hwmgr, in psm_get_state_by_classification()
165 static int psm_set_states(struct pp_hwmgr *hwmgr, unsigned long state_id) in psm_set_states()
185 int psm_set_boot_states(struct pp_hwmgr *hwmgr) in psm_set_boot_states()
200 int psm_set_performance_states(struct pp_hwmgr *hwmgr) in psm_set_performance_states()
215 int psm_set_user_performance_state(struct pp_hwmgr *hwmgr, in psm_set_user_performance_state()
246 static void power_state_management(struct pp_hwmgr *hwmgr, in power_state_management()
271 int psm_adjust_power_state_dynamic(struct pp_hwmgr *hwmgr, bool skip_display_settings, in psm_adjust_power_state_dynamic()
H A Dvega10_processpptables.h58 extern int vega10_get_number_of_powerplay_table_entries(struct pp_hwmgr *hwmgr);
59 extern int vega10_get_powerplay_table_entry(struct pp_hwmgr *hwmgr, uint32_t entry_index,
60 struct pp_power_state *power_state, int (*call_back_func)(struct pp_hwmgr *, void *,
62 extern int vega10_baco_set_cap(struct pp_hwmgr *hwmgr);
/linux/drivers/gpu/drm/amd/pm/powerplay/smumgr/
H A Dsmumgr.c57 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_mac_definition(struct pp_hwmgr *hwmgr, uint32_t value) in smum_get_mac_definition()
114 int smum_download_powerplay_table(struct pp_hwmgr *hwmgr, void **table) in smum_download_powerplay_table()
122 int smum_upload_powerplay_table(struct pp_hwmgr *hwmgr) in smum_upload_powerplay_table()
130 int smum_send_msg_to_smc(struct pp_hwmgr *hwmgr, uint16_t msg, uint32_t *resp) in smum_send_msg_to_smc()
[all …]
H A Dvega20_smumgr.h50 int vega20_enable_smc_features(struct pp_hwmgr *hwmgr,
52 int vega20_get_enabled_smc_features(struct pp_hwmgr *hwmgr,
54 int vega20_set_activity_monitor_coeff(struct pp_hwmgr *hwmgr,
56 int vega20_get_activity_monitor_coeff(struct pp_hwmgr *hwmgr,
58 int vega20_set_pptable_driver_address(struct pp_hwmgr *hwmgr);
60 bool vega20_is_smc_ram_running(struct pp_hwmgr *hwmgr);
H A Dsmu8_smumgr.c56 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()
217 static uint8_t smu8_translate_firmware_enum_to_arg(struct pp_hwmgr *hwmgr, in smu8_translate_firmware_enum_to_arg()
327 struct pp_hwmgr *hwmgr, in smu8_smu_populate_single_scratch_task()
364 struct pp_hwmgr *hwmgr, in smu8_smu_populate_single_ucode_load_task()
[all …]
H A Dsmu9_smumgr.h26 bool smu9_is_smc_ram_running(struct pp_hwmgr *hwmgr);
27 int smu9_send_msg_to_smc(struct pp_hwmgr *hwmgr, uint16_t msg);
28 int smu9_send_msg_to_smc_with_parameter(struct pp_hwmgr *hwmgr,
30 uint32_t smu9_get_argument(struct pp_hwmgr *hwmgr);
H A Dsmu9_smumgr.c39 bool smu9_is_smc_ram_running(struct pp_hwmgr *hwmgr) in smu9_is_smc_ram_running()
59 static uint32_t smu9_wait_for_response(struct pp_hwmgr *hwmgr) in smu9_wait_for_response()
93 static int smu9_send_msg_to_smc_without_waiting(struct pp_hwmgr *hwmgr, in smu9_send_msg_to_smc_without_waiting()
113 int smu9_send_msg_to_smc(struct pp_hwmgr *hwmgr, uint16_t msg) in smu9_send_msg_to_smc()
141 int smu9_send_msg_to_smc_with_parameter(struct pp_hwmgr *hwmgr, in smu9_send_msg_to_smc_with_parameter()
166 uint32_t smu9_get_argument(struct pp_hwmgr *hwmgr) in smu9_get_argument()
/linux/drivers/gpu/drm/amd/pm/powerplay/
H A Damd_powerplay.c39 struct pp_hwmgr *hwmgr; in amd_powerplay_create()
44 hwmgr = kzalloc(sizeof(struct pp_hwmgr), GFP_KERNEL); in amd_powerplay_create()
69 struct pp_hwmgr *hwmgr = adev->powerplay.pp_handle; in amd_powerplay_destroy()
98 struct pp_hwmgr *hwmgr = in pp_swctf_delayed_work_handler()
99 container_of(work, struct pp_hwmgr, swctf_delayed_work.work); in pp_swctf_delayed_work_handler()
138 struct pp_hwmgr *hwmgr = adev->powerplay.pp_handle; in pp_sw_init()
155 struct pp_hwmgr *hwmgr = adev->powerplay.pp_handle; in pp_sw_fini()
168 struct pp_hwmgr *hwmgr = adev->powerplay.pp_handle; in pp_hw_init()
180 struct pp_hwmgr *hwmgr = ip_block->adev->powerplay.pp_handle; in pp_hw_fini()
194 struct pp_hwmgr *hwmgr = adev->powerplay.pp_handle; in pp_reserve_vram_for_smu()
[all …]

123