Home
last modified time | relevance | path

Searched defs:smu (Results 1 – 24 of 24) sorted by relevance

/linux-6.1.9/drivers/gpu/drm/amd/pm/swsmu/
Dsmu_internal.h30 #define smu_ppt_funcs(intf, ret, smu, args...) \ argument
33 #define smu_init_microcode(smu) smu_ppt_funcs(init_microcode, 0, smu) argument
34 #define smu_fini_microcode(smu) smu_ppt_funcs(fini_microcode, 0, smu) argument
35 #define smu_init_smc_tables(smu) smu_ppt_funcs(init_smc_tables, 0, smu) argument
36 #define smu_fini_smc_tables(smu) smu_ppt_funcs(fini_smc_tables, 0, smu) argument
37 #define smu_init_power(smu) smu_ppt_funcs(init_power, 0, smu) argument
38 #define smu_fini_power(smu) smu_ppt_funcs(fini_power, 0, smu) argument
39 #define smu_setup_pptable(smu) smu_ppt_funcs(setup_pptable, 0, smu) argument
40 #define smu_powergate_sdma(smu, gate) smu_ppt_funcs(powergate_sdma, 0, smu, gate) argument
41 #define smu_get_vbios_bootup_values(smu) smu_ppt_funcs(get_vbios_bootup_values, 0, smu) argument
[all …]
Damdgpu_smu.c74 struct smu_context *smu = handle; in smu_sys_get_pp_feature_mask() local
85 struct smu_context *smu = handle; in smu_sys_set_pp_feature_mask() local
93 int smu_set_residency_gfxoff(struct smu_context *smu, bool value) in smu_set_residency_gfxoff()
101 int smu_get_residency_gfxoff(struct smu_context *smu, u32 *value) in smu_get_residency_gfxoff()
109 int smu_get_entrycount_gfxoff(struct smu_context *smu, u64 *value) in smu_get_entrycount_gfxoff()
117 int smu_get_status_gfxoff(struct smu_context *smu, uint32_t *value) in smu_get_status_gfxoff()
127 int smu_set_soft_freq_range(struct smu_context *smu, in smu_set_soft_freq_range()
143 int smu_get_dpm_freq_range(struct smu_context *smu, in smu_get_dpm_freq_range()
162 int smu_set_gfx_power_up_by_imu(struct smu_context *smu) in smu_set_gfx_power_up_by_imu()
172 struct smu_context *smu = handle; in smu_get_mclk() local
[all …]
Dsmu_cmn.c48 #define smu_cmn_call_asic_func(intf, smu, args...) \ argument
54 static const char *smu_get_message_name(struct smu_context *smu, in smu_get_message_name()
63 static void smu_cmn_read_arg(struct smu_context *smu, in smu_cmn_read_arg()
107 static u32 __smu_cmn_poll_stat(struct smu_context *smu) in __smu_cmn_poll_stat()
124 static void __smu_cmn_reg_print_error(struct smu_context *smu, in __smu_cmn_reg_print_error()
180 static int __smu_cmn_reg2errno(struct smu_context *smu, u32 reg_c2pmsg_90) in __smu_cmn_reg2errno()
225 static void __smu_cmn_send_msg(struct smu_context *smu, in __smu_cmn_send_msg()
236 static int __smu_cmn_send_debug_msg(struct smu_context *smu, in __smu_cmn_send_debug_msg()
261 int smu_cmn_send_msg_without_waiting(struct smu_context *smu, in smu_cmn_send_msg_without_waiting()
299 int smu_cmn_wait_for_response(struct smu_context *smu) in smu_cmn_wait_for_response()
[all …]
/linux-6.1.9/drivers/gpu/drm/amd/pm/swsmu/smu13/
Dsmu_v13_0.c88 int smu_v13_0_init_microcode(struct smu_context *smu) in smu_v13_0_init_microcode()
144 void smu_v13_0_fini_microcode(struct smu_context *smu) in smu_v13_0_fini_microcode()
153 int smu_v13_0_load_microcode(struct smu_context *smu) in smu_v13_0_load_microcode()
195 int smu_v13_0_init_pptable_microcode(struct smu_context *smu) in smu_v13_0_init_pptable_microcode()
246 int smu_v13_0_check_fw_status(struct smu_context *smu) in smu_v13_0_check_fw_status()
270 int smu_v13_0_check_fw_version(struct smu_context *smu) in smu_v13_0_check_fw_version()
344 static int smu_v13_0_set_pptable_v2_0(struct smu_context *smu, void **table, uint32_t *size) in smu_v13_0_set_pptable_v2_0()
359 static int smu_v13_0_set_pptable_v2_1(struct smu_context *smu, void **table, in smu_v13_0_set_pptable_v2_1()
386 static int smu_v13_0_get_pptable_from_vbios(struct smu_context *smu, void **table, uint32_t *size) in smu_v13_0_get_pptable_from_vbios()
408 int smu_v13_0_get_pptable_from_firmware(struct smu_context *smu, in smu_v13_0_get_pptable_from_firmware()
[all …]
Daldebaran_ppt.c228 static int aldebaran_tables_init(struct smu_context *smu) in aldebaran_tables_init()
267 static int aldebaran_allocate_dpm_context(struct smu_context *smu) in aldebaran_allocate_dpm_context()
280 static int aldebaran_init_smc_tables(struct smu_context *smu) in aldebaran_init_smc_tables()
295 static int aldebaran_get_allowed_feature_mask(struct smu_context *smu, in aldebaran_get_allowed_feature_mask()
307 static int aldebaran_set_default_dpm_table(struct smu_context *smu) in aldebaran_set_default_dpm_table()
384 static int aldebaran_check_powerplay_table(struct smu_context *smu) in aldebaran_check_powerplay_table()
396 static int aldebaran_store_powerplay_table(struct smu_context *smu) in aldebaran_store_powerplay_table()
407 static int aldebaran_append_powerplay_table(struct smu_context *smu) in aldebaran_append_powerplay_table()
433 static int aldebaran_setup_pptable(struct smu_context *smu) in aldebaran_setup_pptable()
459 static bool aldebaran_is_primary(struct smu_context *smu) in aldebaran_is_primary()
[all …]
Dyellow_carp_ppt.c143 static int yellow_carp_init_smc_tables(struct smu_context *smu) in yellow_carp_init_smc_tables()
185 static int yellow_carp_fini_smc_tables(struct smu_context *smu) in yellow_carp_fini_smc_tables()
204 static int yellow_carp_system_features_control(struct smu_context *smu, bool en) in yellow_carp_system_features_control()
215 static int yellow_carp_dpm_set_vcn_enable(struct smu_context *smu, bool enable) in yellow_carp_dpm_set_vcn_enable()
230 static int yellow_carp_dpm_set_jpeg_enable(struct smu_context *smu, bool enable) in yellow_carp_dpm_set_jpeg_enable()
246 static bool yellow_carp_is_dpm_running(struct smu_context *smu) in yellow_carp_is_dpm_running()
259 static int yellow_carp_post_smu_init(struct smu_context *smu) in yellow_carp_post_smu_init()
271 static int yellow_carp_mode_reset(struct smu_context *smu, int type) in yellow_carp_mode_reset()
282 static int yellow_carp_mode2_reset(struct smu_context *smu) in yellow_carp_mode2_reset()
323 static int yellow_carp_get_smu_metrics_data(struct smu_context *smu, in yellow_carp_get_smu_metrics_data()
[all …]
Dsmu_v13_0_5_ppt.c124 static int smu_v13_0_5_init_smc_tables(struct smu_context *smu) in smu_v13_0_5_init_smc_tables()
166 static int smu_v13_0_5_fini_smc_tables(struct smu_context *smu) in smu_v13_0_5_fini_smc_tables()
185 static int smu_v13_0_5_system_features_control(struct smu_context *smu, bool en) in smu_v13_0_5_system_features_control()
196 static int smu_v13_0_5_dpm_set_vcn_enable(struct smu_context *smu, bool enable) in smu_v13_0_5_dpm_set_vcn_enable()
211 static int smu_v13_0_5_dpm_set_jpeg_enable(struct smu_context *smu, bool enable) in smu_v13_0_5_dpm_set_jpeg_enable()
227 static bool smu_v13_0_5_is_dpm_running(struct smu_context *smu) in smu_v13_0_5_is_dpm_running()
240 static int smu_v13_0_5_mode_reset(struct smu_context *smu, int type) in smu_v13_0_5_mode_reset()
251 static int smu_v13_0_5_mode2_reset(struct smu_context *smu) in smu_v13_0_5_mode2_reset()
256 static int smu_v13_0_5_get_smu_metrics_data(struct smu_context *smu, in smu_v13_0_5_get_smu_metrics_data()
319 static int smu_v13_0_5_read_sensor(struct smu_context *smu, in smu_v13_0_5_read_sensor()
[all …]
Dsmu_v13_0_7_ppt.c246 smu_v13_0_7_get_allowed_feature_mask(struct smu_context *smu, in smu_v13_0_7_get_allowed_feature_mask()
315 static int smu_v13_0_7_check_powerplay_table(struct smu_context *smu) in smu_v13_0_7_check_powerplay_table()
346 static int smu_v13_0_7_store_powerplay_table(struct smu_context *smu) in smu_v13_0_7_store_powerplay_table()
362 static int smu_v13_0_7_check_fw_status(struct smu_context *smu) in smu_v13_0_7_check_fw_status()
385 static int smu_v13_0_7_append_powerplay_table(struct smu_context *smu) in smu_v13_0_7_append_powerplay_table()
410 static int smu_v13_0_7_get_pptable_from_pmfw(struct smu_context *smu, in smu_v13_0_7_get_pptable_from_pmfw()
428 static int smu_v13_0_7_setup_pptable(struct smu_context *smu) in smu_v13_0_7_setup_pptable()
466 static int smu_v13_0_7_tables_init(struct smu_context *smu) in smu_v13_0_7_tables_init()
514 static int smu_v13_0_7_allocate_dpm_context(struct smu_context *smu) in smu_v13_0_7_allocate_dpm_context()
528 static int smu_v13_0_7_init_smc_tables(struct smu_context *smu) in smu_v13_0_7_init_smc_tables()
[all …]
Dsmu_v13_0_0_ppt.c268 smu_v13_0_0_get_allowed_feature_mask(struct smu_context *smu, in smu_v13_0_0_get_allowed_feature_mask()
317 static int smu_v13_0_0_check_powerplay_table(struct smu_context *smu) in smu_v13_0_0_check_powerplay_table()
346 static int smu_v13_0_0_store_powerplay_table(struct smu_context *smu) in smu_v13_0_0_store_powerplay_table()
365 static int smu_v13_0_0_append_powerplay_table(struct smu_context *smu) in smu_v13_0_0_append_powerplay_table()
386 static int smu_v13_0_0_get_pptable_from_pmfw(struct smu_context *smu, in smu_v13_0_0_get_pptable_from_pmfw()
404 static int smu_v13_0_0_setup_pptable(struct smu_context *smu) in smu_v13_0_0_setup_pptable()
437 static int smu_v13_0_0_tables_init(struct smu_context *smu) in smu_v13_0_0_tables_init()
484 static int smu_v13_0_0_allocate_dpm_context(struct smu_context *smu) in smu_v13_0_0_allocate_dpm_context()
498 static int smu_v13_0_0_init_smc_tables(struct smu_context *smu) in smu_v13_0_0_init_smc_tables()
513 static int smu_v13_0_0_set_default_dpm_table(struct smu_context *smu) in smu_v13_0_0_set_default_dpm_table()
[all …]
Dsmu_v13_0_4_ppt.c146 static int smu_v13_0_4_init_smc_tables(struct smu_context *smu) in smu_v13_0_4_init_smc_tables()
188 static int smu_v13_0_4_fini_smc_tables(struct smu_context *smu) in smu_v13_0_4_fini_smc_tables()
207 static bool smu_v13_0_4_is_dpm_running(struct smu_context *smu) in smu_v13_0_4_is_dpm_running()
220 static int smu_v13_0_4_system_features_control(struct smu_context *smu, bool en) in smu_v13_0_4_system_features_control()
231 static ssize_t smu_v13_0_4_get_gpu_metrics(struct smu_context *smu, in smu_v13_0_4_get_gpu_metrics()
284 static int smu_v13_0_4_get_smu_metrics_data(struct smu_context *smu, in smu_v13_0_4_get_smu_metrics_data()
369 static int smu_v13_0_4_get_current_clk_freq(struct smu_context *smu, in smu_v13_0_4_get_current_clk_freq()
405 static int smu_v13_0_4_get_dpm_freq_by_index(struct smu_context *smu, in smu_v13_0_4_get_dpm_freq_by_index()
449 static int smu_v13_0_4_get_dpm_level_count(struct smu_context *smu, in smu_v13_0_4_get_dpm_level_count()
478 static int smu_v13_0_4_print_clk_levels(struct smu_context *smu, in smu_v13_0_4_print_clk_levels()
[all …]
/linux-6.1.9/drivers/gpu/drm/amd/pm/swsmu/smu11/
Dsmu_v11_0.c82 int smu_v11_0_init_microcode(struct smu_context *smu) in smu_v11_0_init_microcode()
160 void smu_v11_0_fini_microcode(struct smu_context *smu) in smu_v11_0_fini_microcode()
169 int smu_v11_0_load_microcode(struct smu_context *smu) in smu_v11_0_load_microcode()
209 int smu_v11_0_check_fw_status(struct smu_context *smu) in smu_v11_0_check_fw_status()
224 int smu_v11_0_check_fw_version(struct smu_context *smu) in smu_v11_0_check_fw_version()
299 static int smu_v11_0_set_pptable_v2_0(struct smu_context *smu, void **table, uint32_t *size) in smu_v11_0_set_pptable_v2_0()
314 static int smu_v11_0_set_pptable_v2_1(struct smu_context *smu, void **table, in smu_v11_0_set_pptable_v2_1()
341 int smu_v11_0_setup_pptable(struct smu_context *smu) in smu_v11_0_setup_pptable()
395 int smu_v11_0_init_smc_tables(struct smu_context *smu) in smu_v11_0_init_smc_tables()
454 int smu_v11_0_fini_smc_tables(struct smu_context *smu) in smu_v11_0_fini_smc_tables()
[all …]
Dsienna_cichlid_ppt.c92 static int get_table_size(struct smu_context *smu) in get_table_size()
275 sienna_cichlid_get_allowed_feature_mask(struct smu_context *smu, in sienna_cichlid_get_allowed_feature_mask()
358 static void sienna_cichlid_check_bxco_support(struct smu_context *smu) in sienna_cichlid_check_bxco_support()
392 static void sienna_cichlid_check_fan_support(struct smu_context *smu) in sienna_cichlid_check_fan_support()
406 static int sienna_cichlid_check_powerplay_table(struct smu_context *smu) in sienna_cichlid_check_powerplay_table()
430 static int sienna_cichlid_append_powerplay_table(struct smu_context *smu) in sienna_cichlid_append_powerplay_table()
450 static int sienna_cichlid_store_powerplay_table(struct smu_context *smu) in sienna_cichlid_store_powerplay_table()
464 static int sienna_cichlid_patch_pptable_quirk(struct smu_context *smu) in sienna_cichlid_patch_pptable_quirk()
494 static int sienna_cichlid_setup_pptable(struct smu_context *smu) in sienna_cichlid_setup_pptable()
517 static int sienna_cichlid_tables_init(struct smu_context *smu) in sienna_cichlid_tables_init()
[all …]
Dnavi10_ppt.c262 static bool is_asic_secure(struct smu_context *smu) in is_asic_secure()
278 navi10_get_allowed_feature_mask(struct smu_context *smu, in navi10_get_allowed_feature_mask()
364 static void navi10_check_bxco_support(struct smu_context *smu) in navi10_check_bxco_support()
382 static int navi10_check_powerplay_table(struct smu_context *smu) in navi10_check_powerplay_table()
405 static int navi10_append_powerplay_table(struct smu_context *smu) in navi10_append_powerplay_table()
458 static int navi10_store_powerplay_table(struct smu_context *smu) in navi10_store_powerplay_table()
470 static int navi10_setup_pptable(struct smu_context *smu) in navi10_setup_pptable()
493 static int navi10_tables_init(struct smu_context *smu) in navi10_tables_init()
548 static int navi10_get_legacy_smu_metrics_data(struct smu_context *smu, in navi10_get_legacy_smu_metrics_data()
634 static int navi10_get_smu_metrics_data(struct smu_context *smu, in navi10_get_smu_metrics_data()
[all …]
Dvangogh_ppt.c222 static int vangogh_tables_init(struct smu_context *smu) in vangogh_tables_init()
285 static int vangogh_get_legacy_smu_metrics_data(struct smu_context *smu, in vangogh_get_legacy_smu_metrics_data()
354 static int vangogh_get_smu_metrics_data(struct smu_context *smu, in vangogh_get_smu_metrics_data()
423 static int vangogh_common_get_smu_metrics_data(struct smu_context *smu, in vangogh_common_get_smu_metrics_data()
445 static int vangogh_allocate_dpm_context(struct smu_context *smu) in vangogh_allocate_dpm_context()
459 static int vangogh_init_smc_tables(struct smu_context *smu) in vangogh_init_smc_tables()
481 static int vangogh_dpm_set_vcn_enable(struct smu_context *smu, bool enable) in vangogh_dpm_set_vcn_enable()
499 static int vangogh_dpm_set_jpeg_enable(struct smu_context *smu, bool enable) in vangogh_dpm_set_jpeg_enable()
516 static bool vangogh_is_dpm_running(struct smu_context *smu) in vangogh_is_dpm_running()
534 static int vangogh_get_dpm_clk_limited(struct smu_context *smu, enum smu_clk_type clk_type, in vangogh_get_dpm_clk_limited()
[all …]
Darcturus_ppt.c250 static int arcturus_tables_init(struct smu_context *smu) in arcturus_tables_init()
286 static int arcturus_allocate_dpm_context(struct smu_context *smu) in arcturus_allocate_dpm_context()
299 static int arcturus_init_smc_tables(struct smu_context *smu) in arcturus_init_smc_tables()
315 arcturus_get_allowed_feature_mask(struct smu_context *smu, in arcturus_get_allowed_feature_mask()
327 static int arcturus_set_default_dpm_table(struct smu_context *smu) in arcturus_set_default_dpm_table()
409 static void arcturus_check_bxco_support(struct smu_context *smu) in arcturus_check_bxco_support()
427 static void arcturus_check_fan_support(struct smu_context *smu) in arcturus_check_fan_support()
440 static int arcturus_check_powerplay_table(struct smu_context *smu) in arcturus_check_powerplay_table()
455 static int arcturus_store_powerplay_table(struct smu_context *smu) in arcturus_store_powerplay_table()
467 static int arcturus_append_powerplay_table(struct smu_context *smu) in arcturus_append_powerplay_table()
[all …]
Dcyan_skillfish_ppt.c87 static int cyan_skillfish_tables_init(struct smu_context *smu) in cyan_skillfish_tables_init()
117 static int cyan_skillfish_init_smc_tables(struct smu_context *smu) in cyan_skillfish_init_smc_tables()
129 cyan_skillfish_get_smu_metrics_data(struct smu_context *smu, in cyan_skillfish_get_smu_metrics_data()
186 static int cyan_skillfish_read_sensor(struct smu_context *smu, in cyan_skillfish_read_sensor()
249 static int cyan_skillfish_get_current_clk_freq(struct smu_context *smu, in cyan_skillfish_get_current_clk_freq()
280 static int cyan_skillfish_print_clk_levels(struct smu_context *smu, in cyan_skillfish_print_clk_levels()
349 static bool cyan_skillfish_is_dpm_running(struct smu_context *smu) in cyan_skillfish_is_dpm_running()
373 static ssize_t cyan_skillfish_get_gpu_metrics(struct smu_context *smu, in cyan_skillfish_get_gpu_metrics()
428 static int cyan_skillfish_od_edit_dpm_table(struct smu_context *smu, in cyan_skillfish_od_edit_dpm_table()
525 static int cyan_skillfish_get_dpm_ultimate_freq(struct smu_context *smu, in cyan_skillfish_get_dpm_ultimate_freq()
[all …]
/linux-6.1.9/drivers/gpu/drm/amd/pm/swsmu/smu12/
Drenoir_ppt.c156 static int renoir_init_smc_tables(struct smu_context *smu) in renoir_init_smc_tables()
202 static int renoir_get_dpm_clk_limited(struct smu_context *smu, enum smu_clk_type clk_type, in renoir_get_dpm_clk_limited()
250 static int renoir_get_profiling_clk_mask(struct smu_context *smu, in renoir_get_profiling_clk_mask()
280 static int renoir_get_dpm_ultimate_freq(struct smu_context *smu, in renoir_get_dpm_ultimate_freq()
383 static int renoir_od_edit_dpm_table(struct smu_context *smu, in renoir_od_edit_dpm_table()
470 static int renoir_set_fine_grain_gfx_freq_parameters(struct smu_context *smu) in renoir_set_fine_grain_gfx_freq_parameters()
494 static int renoir_print_clk_levels(struct smu_context *smu, in renoir_print_clk_levels()
619 static enum amd_pm_state_type renoir_get_current_power_state(struct smu_context *smu) in renoir_get_current_power_state()
649 static int renoir_dpm_set_vcn_enable(struct smu_context *smu, bool enable) in renoir_dpm_set_vcn_enable()
671 static int renoir_dpm_set_jpeg_enable(struct smu_context *smu, bool enable) in renoir_dpm_set_jpeg_enable()
[all …]
Dsmu_v12_0.c58 int smu_v12_0_check_fw_status(struct smu_context *smu) in smu_v12_0_check_fw_status()
73 int smu_v12_0_check_fw_version(struct smu_context *smu) in smu_v12_0_check_fw_version()
110 int smu_v12_0_powergate_sdma(struct smu_context *smu, bool gate) in smu_v12_0_powergate_sdma()
121 int smu_v12_0_set_gfx_cgpg(struct smu_context *smu, bool enable) in smu_v12_0_set_gfx_cgpg()
145 uint32_t smu_v12_0_get_gfxoff_status(struct smu_context *smu) in smu_v12_0_get_gfxoff_status()
158 int smu_v12_0_gfx_off_control(struct smu_context *smu, bool enable) in smu_v12_0_gfx_off_control()
182 int smu_v12_0_fini_smc_tables(struct smu_context *smu) in smu_v12_0_fini_smc_tables()
201 int smu_v12_0_set_default_dpm_tables(struct smu_context *smu) in smu_v12_0_set_default_dpm_tables()
208 int smu_v12_0_mode2_reset(struct smu_context *smu){ in smu_v12_0_mode2_reset()
212 int smu_v12_0_set_soft_freq_limited_range(struct smu_context *smu, enum smu_clk_type clk_type, in smu_v12_0_set_soft_freq_limited_range()
[all …]
/linux-6.1.9/drivers/gpu/drm/amd/pm/
Damdgpu_dpm.c112 struct smu_context *smu = adev->powerplay.pp_handle; in amdgpu_dpm_set_gfx_power_up_by_imu() local
256 struct smu_context *smu = adev->powerplay.pp_handle; in amdgpu_dpm_is_mode1_reset_supported() local
270 struct smu_context *smu = adev->powerplay.pp_handle; in amdgpu_dpm_mode1_reset() local
336 struct smu_context *smu = adev->powerplay.pp_handle; in amdgpu_dpm_allow_xgmi_power_down() local
564 struct smu_context *smu = adev->powerplay.pp_handle; in amdgpu_dpm_send_hbm_bad_pages_num() local
579 struct smu_context *smu = adev->powerplay.pp_handle; in amdgpu_dpm_send_hbm_bad_channel_flag() local
620 struct smu_context *smu = adev->powerplay.pp_handle; in amdgpu_dpm_set_soft_freq_range() local
641 struct smu_context *smu = adev->powerplay.pp_handle; in amdgpu_dpm_write_watermarks_table() local
658 struct smu_context *smu = adev->powerplay.pp_handle; in amdgpu_dpm_wait_for_event() local
673 struct smu_context *smu = adev->powerplay.pp_handle; in amdgpu_dpm_set_residency_gfxoff() local
[all …]
/linux-6.1.9/arch/arm/mach-shmobile/
Dsmp-emev2.c32 void __iomem *smu; in emev2_smp_prepare_cpus() local
/linux-6.1.9/drivers/mtd/nand/raw/atmel/
Dpmecc.c175 s16 *smu; member
502 s16 *smu = user->smu; in atmel_pmecc_get_sigma() local
649 s16 *smu = user->smu; in atmel_pmecc_err_location() local
/linux-6.1.9/drivers/macintosh/
Dwindfarm_smu_controls.c259 struct device_node *smu, *fans, *fan; in smu_controls_init() local
Dwindfarm_smu_sensors.c411 struct device_node *smu, *sensors, *s; in smu_sensors_init() local
Dsmu.c98 static struct smu_device *smu; variable