Home
last modified time | relevance | path

Searched full:smu (Results 1 – 25 of 250) sorted by relevance

12345678910

/Linux-v6.1/drivers/gpu/drm/amd/pm/swsmu/
Dsmu_internal.h30 #define smu_ppt_funcs(intf, ret, smu, args...) \ argument
31 ((smu)->ppt_funcs ? ((smu)->ppt_funcs->intf ? (smu)->ppt_funcs->intf(smu, ##args) : ret) : -EINVAL)
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
[all …]
Damdgpu_smu.c57 static int smu_force_smuclk_levels(struct smu_context *smu,
60 static int smu_handle_task(struct smu_context *smu,
63 static int smu_reset(struct smu_context *smu);
68 static int smu_set_gfx_cgpg(struct smu_context *smu, bool enabled);
74 struct smu_context *smu = handle; in smu_sys_get_pp_feature_mask() local
76 if (!smu->pm_enabled || !smu->adev->pm.dpm_enabled) in smu_sys_get_pp_feature_mask()
79 return smu_get_pp_feature_mask(smu, buf); in smu_sys_get_pp_feature_mask()
85 struct smu_context *smu = handle; in smu_sys_set_pp_feature_mask() local
87 if (!smu->pm_enabled || !smu->adev->pm.dpm_enabled) in smu_sys_set_pp_feature_mask()
90 return smu_set_pp_feature_mask(smu, new_mask); in smu_sys_set_pp_feature_mask()
[all …]
Dsmu_cmn.c48 #define smu_cmn_call_asic_func(intf, smu, args...) \ argument
49 ((smu)->ppt_funcs ? ((smu)->ppt_funcs->intf ? \
50 (smu)->ppt_funcs->intf(smu, ##args) : \
54 static const char *smu_get_message_name(struct smu_context *smu, in smu_get_message_name() argument
58 return "unknown smu message"; in smu_get_message_name()
63 static void smu_cmn_read_arg(struct smu_context *smu, in smu_cmn_read_arg() argument
66 struct amdgpu_device *adev = smu->adev; in smu_cmn_read_arg()
68 *arg = RREG32(smu->param_reg); in smu_cmn_read_arg()
71 /* Redefine the SMU error codes here.
74 * when the SMU has exported a unified header file containing these
[all …]
Dsmu_cmn.h33 int smu_cmn_send_msg_without_waiting(struct smu_context *smu,
36 int smu_cmn_send_smc_msg_with_param(struct smu_context *smu,
41 int smu_cmn_send_smc_msg(struct smu_context *smu,
45 int smu_cmn_wait_for_response(struct smu_context *smu);
47 int smu_cmn_to_asic_specific_index(struct smu_context *smu,
51 int smu_cmn_feature_is_supported(struct smu_context *smu,
54 int smu_cmn_feature_is_enabled(struct smu_context *smu,
57 bool smu_cmn_clk_dpm_is_enabled(struct smu_context *smu,
60 int smu_cmn_get_enabled_mask(struct smu_context *smu,
67 int smu_cmn_feature_update_enable_state(struct smu_context *smu,
[all …]
/Linux-v6.1/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() argument
90 struct amdgpu_device *adev = smu->adev; in smu_v13_0_init_microcode()
99 /* doesn't need to load smu firmware in IOV mode */ in smu_v13_0_init_microcode()
144 void smu_v13_0_fini_microcode(struct smu_context *smu) in smu_v13_0_fini_microcode() argument
146 struct amdgpu_device *adev = smu->adev; in smu_v13_0_fini_microcode()
153 int smu_v13_0_load_microcode(struct smu_context *smu) in smu_v13_0_load_microcode() argument
156 struct amdgpu_device *adev = smu->adev; 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() argument
197 struct amdgpu_device *adev = smu->adev; in smu_v13_0_init_pptable_microcode()
203 /* doesn't need to load smu firmware in IOV mode */ in smu_v13_0_init_pptable_microcode()
[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() argument
126 struct smu_table_context *smu_table = &smu->smu_table; 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() argument
168 struct smu_table_context *smu_table = &smu->smu_table; 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() argument
187 struct amdgpu_device *adev = smu->adev; in smu_v13_0_5_system_features_control()
191 ret = smu_cmn_send_smc_msg(smu, SMU_MSG_PrepareMp1ForUnload, NULL); 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() argument
202 ret = smu_cmn_send_smc_msg_with_param(smu, SMU_MSG_PowerUpVcn, in smu_v13_0_5_dpm_set_vcn_enable()
205 ret = smu_cmn_send_smc_msg_with_param(smu, SMU_MSG_PowerDownVcn, in smu_v13_0_5_dpm_set_vcn_enable()
[all …]
Dyellow_carp_ppt.c143 static int yellow_carp_init_smc_tables(struct smu_context *smu) in yellow_carp_init_smc_tables() argument
145 struct smu_table_context *smu_table = &smu->smu_table; in yellow_carp_init_smc_tables()
185 static int yellow_carp_fini_smc_tables(struct smu_context *smu) in yellow_carp_fini_smc_tables() argument
187 struct smu_table_context *smu_table = &smu->smu_table; 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() argument
206 struct amdgpu_device *adev = smu->adev; in yellow_carp_system_features_control()
210 ret = smu_cmn_send_smc_msg(smu, SMU_MSG_PrepareMp1ForUnload, NULL); 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() argument
221 ret = smu_cmn_send_smc_msg_with_param(smu, SMU_MSG_PowerUpVcn, in yellow_carp_dpm_set_vcn_enable()
224 ret = smu_cmn_send_smc_msg_with_param(smu, SMU_MSG_PowerDownVcn, in yellow_carp_dpm_set_vcn_enable()
[all …]
Daldebaran_ppt.c80 * SMU support ECCTABLE since version 68.42.0,
86 * SMU support mca_ceumc_addr in ECCTABLE since version 68.55.0,
92 * SMU support BAD CHENNEL info MSG since version 68.51.00,
228 static int aldebaran_tables_init(struct smu_context *smu) in aldebaran_tables_init() argument
230 struct smu_table_context *smu_table = &smu->smu_table; in aldebaran_tables_init()
267 static int aldebaran_allocate_dpm_context(struct smu_context *smu) in aldebaran_allocate_dpm_context() argument
269 struct smu_dpm_context *smu_dpm = &smu->smu_dpm; in aldebaran_allocate_dpm_context()
280 static int aldebaran_init_smc_tables(struct smu_context *smu) in aldebaran_init_smc_tables() argument
284 ret = aldebaran_tables_init(smu); in aldebaran_init_smc_tables()
288 ret = aldebaran_allocate_dpm_context(smu); in aldebaran_init_smc_tables()
[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() argument
148 struct smu_table_context *smu_table = &smu->smu_table; 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() argument
190 struct smu_table_context *smu_table = &smu->smu_table; 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() argument
212 ret = smu_cmn_get_enabled_mask(smu, &feature_enabled); 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() argument
222 struct amdgpu_device *adev = smu->adev; in smu_v13_0_4_system_features_control()
226 ret = smu_cmn_send_smc_msg(smu, SMU_MSG_PrepareMp1ForUnload, NULL); 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() argument
[all …]
Dsmu_v13_0_7_ppt.c242 smu_v13_0_7_get_allowed_feature_mask(struct smu_context *smu, in smu_v13_0_7_get_allowed_feature_mask() argument
245 struct amdgpu_device *adev = smu->adev; in smu_v13_0_7_get_allowed_feature_mask()
311 static int smu_v13_0_7_check_powerplay_table(struct smu_context *smu) in smu_v13_0_7_check_powerplay_table() argument
313 struct smu_table_context *table_context = &smu->smu_table; in smu_v13_0_7_check_powerplay_table()
316 struct smu_baco_context *smu_baco = &smu->smu_baco; in smu_v13_0_7_check_powerplay_table()
321 smu->dc_controlled_by_gpio = true; in smu_v13_0_7_check_powerplay_table()
335 * smu->od_settings just points to the actual overdrive_table in smu_v13_0_7_check_powerplay_table()
337 smu->od_settings = &powerplay_table->overdrive_table; in smu_v13_0_7_check_powerplay_table()
342 static int smu_v13_0_7_store_powerplay_table(struct smu_context *smu) in smu_v13_0_7_store_powerplay_table() argument
344 struct smu_table_context *table_context = &smu->smu_table; in smu_v13_0_7_store_powerplay_table()
[all …]
Dsmu_v13_0_0_ppt.c240 smu_v13_0_0_get_allowed_feature_mask(struct smu_context *smu, in smu_v13_0_0_get_allowed_feature_mask() argument
243 struct amdgpu_device *adev = smu->adev; in smu_v13_0_0_get_allowed_feature_mask()
264 smu_cmn_get_smc_version(smu, NULL, &smu_version); in smu_v13_0_0_get_allowed_feature_mask()
289 static int smu_v13_0_0_check_powerplay_table(struct smu_context *smu) in smu_v13_0_0_check_powerplay_table() argument
291 struct smu_table_context *table_context = &smu->smu_table; in smu_v13_0_0_check_powerplay_table()
294 struct smu_baco_context *smu_baco = &smu->smu_baco; in smu_v13_0_0_check_powerplay_table()
297 smu->dc_controlled_by_gpio = true; in smu_v13_0_0_check_powerplay_table()
311 * smu->od_settings just points to the actual overdrive_table in smu_v13_0_0_check_powerplay_table()
313 smu->od_settings = &powerplay_table->overdrive_table; in smu_v13_0_0_check_powerplay_table()
318 static int smu_v13_0_0_store_powerplay_table(struct smu_context *smu) in smu_v13_0_0_store_powerplay_table() argument
[all …]
/Linux-v6.1/drivers/gpu/drm/amd/pm/swsmu/inc/
Dsmu_v13_0.h129 int smu_v13_0_init_microcode(struct smu_context *smu);
131 void smu_v13_0_fini_microcode(struct smu_context *smu);
133 int smu_v13_0_load_microcode(struct smu_context *smu);
135 int smu_v13_0_init_smc_tables(struct smu_context *smu);
137 int smu_v13_0_fini_smc_tables(struct smu_context *smu);
139 int smu_v13_0_init_power(struct smu_context *smu);
141 int smu_v13_0_fini_power(struct smu_context *smu);
143 int smu_v13_0_check_fw_status(struct smu_context *smu);
145 int smu_v13_0_setup_pptable(struct smu_context *smu);
147 int smu_v13_0_get_vbios_bootup_values(struct smu_context *smu);
[all …]
Dsmu_v11_0.h152 int smu_v11_0_init_microcode(struct smu_context *smu);
154 void smu_v11_0_fini_microcode(struct smu_context *smu);
156 int smu_v11_0_load_microcode(struct smu_context *smu);
158 int smu_v11_0_init_smc_tables(struct smu_context *smu);
160 int smu_v11_0_fini_smc_tables(struct smu_context *smu);
162 int smu_v11_0_init_power(struct smu_context *smu);
164 int smu_v11_0_fini_power(struct smu_context *smu);
166 int smu_v11_0_check_fw_status(struct smu_context *smu);
168 int smu_v11_0_setup_pptable(struct smu_context *smu);
170 int smu_v11_0_get_vbios_bootup_values(struct smu_context *smu);
[all …]
Damdgpu_smu.h185 * Structure to hold a SMU Power State.
347 * uploading/downloading content from the SMU.
350 * SMU_MSG_TransferTableDram2Smu instructs SMU
576 * struct pptable_funcs - Callbacks used to interact with the SMU.
584 int (*run_btc)(struct smu_context *smu);
591 int (*get_allowed_feature_mask)(struct smu_context *smu, uint32_t *feature_mask, uint32_t num);
598 enum amd_pm_state_type (*get_current_power_state)(struct smu_context *smu);
602 * the SMU.
604 int (*set_default_dpm_table)(struct smu_context *smu);
606 int (*set_power_state)(struct smu_context *smu);
[all …]
Dsmu_v12_0.h36 int smu_v12_0_check_fw_status(struct smu_context *smu);
38 int smu_v12_0_check_fw_version(struct smu_context *smu);
40 int smu_v12_0_powergate_sdma(struct smu_context *smu, bool gate);
42 int smu_v12_0_powergate_vcn(struct smu_context *smu, bool gate);
44 int smu_v12_0_powergate_jpeg(struct smu_context *smu, bool gate);
46 int smu_v12_0_set_gfx_cgpg(struct smu_context *smu, bool enable);
48 uint32_t smu_v12_0_get_gfxoff_status(struct smu_context *smu);
50 int smu_v12_0_gfx_off_control(struct smu_context *smu, bool enable);
52 int smu_v12_0_fini_smc_tables(struct smu_context *smu);
54 int smu_v12_0_set_default_dpm_tables(struct smu_context *smu);
[all …]
/Linux-v6.1/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() argument
84 struct amdgpu_device *adev = smu->adev; in smu_v11_0_init_microcode()
160 void smu_v11_0_fini_microcode(struct smu_context *smu) in smu_v11_0_fini_microcode() argument
162 struct amdgpu_device *adev = smu->adev; in smu_v11_0_fini_microcode()
169 int smu_v11_0_load_microcode(struct smu_context *smu) in smu_v11_0_load_microcode() argument
171 struct amdgpu_device *adev = smu->adev; 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() argument
211 struct amdgpu_device *adev = smu->adev; 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() argument
226 struct amdgpu_device *adev = smu->adev; in smu_v11_0_check_fw_version()
[all …]
Dvangogh_ppt.c222 static int vangogh_tables_init(struct smu_context *smu) in vangogh_tables_init() argument
224 struct smu_table_context *smu_table = &smu->smu_table; in vangogh_tables_init()
230 ret = smu_cmn_get_smc_version(smu, &if_version, &smu_version); in vangogh_tables_init()
285 static int vangogh_get_legacy_smu_metrics_data(struct smu_context *smu, in vangogh_get_legacy_smu_metrics_data() argument
289 struct smu_table_context *smu_table = &smu->smu_table; in vangogh_get_legacy_smu_metrics_data()
293 ret = smu_cmn_get_metrics_table(smu, in vangogh_get_legacy_smu_metrics_data()
344 smu->cpu_core_num * sizeof(uint16_t)); 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() argument
358 struct smu_table_context *smu_table = &smu->smu_table; in vangogh_get_smu_metrics_data()
362 ret = smu_cmn_get_metrics_table(smu, in vangogh_get_smu_metrics_data()
[all …]
Dsienna_cichlid_ppt.c77 if (smu->adev->ip_versions[MP1_HWIP][0] == IP_VERSION(11, 0, 13))\
78 (*member) = (smu->smu_table.driver_pptable + offsetof(PPTable_beige_goby_t, field));\
80 (*member) = (smu->smu_table.driver_pptable + offsetof(PPTable_t, field));\
87 * SMU support ECCTABLE since version 58.70.0,
92 static int get_table_size(struct smu_context *smu) in get_table_size() argument
94 if (smu->adev->ip_versions[MP1_HWIP][0] == IP_VERSION(11, 0, 13)) in get_table_size()
275 sienna_cichlid_get_allowed_feature_mask(struct smu_context *smu, in sienna_cichlid_get_allowed_feature_mask() argument
278 struct amdgpu_device *adev = smu->adev; in sienna_cichlid_get_allowed_feature_mask()
339 if (smu->adev->pg_flags & AMD_PG_SUPPORT_ATHUB) in sienna_cichlid_get_allowed_feature_mask()
342 if (smu->adev->pg_flags & AMD_PG_SUPPORT_MMHUB) in sienna_cichlid_get_allowed_feature_mask()
[all …]
Darcturus_ppt.c250 static int arcturus_tables_init(struct smu_context *smu) in arcturus_tables_init() argument
252 struct smu_table_context *smu_table = &smu->smu_table; in arcturus_tables_init()
286 static int arcturus_allocate_dpm_context(struct smu_context *smu) in arcturus_allocate_dpm_context() argument
288 struct smu_dpm_context *smu_dpm = &smu->smu_dpm; in arcturus_allocate_dpm_context()
299 static int arcturus_init_smc_tables(struct smu_context *smu) in arcturus_init_smc_tables() argument
303 ret = arcturus_tables_init(smu); in arcturus_init_smc_tables()
307 ret = arcturus_allocate_dpm_context(smu); in arcturus_init_smc_tables()
311 return smu_v11_0_init_smc_tables(smu); in arcturus_init_smc_tables()
315 arcturus_get_allowed_feature_mask(struct smu_context *smu, in arcturus_get_allowed_feature_mask() argument
327 static int arcturus_set_default_dpm_table(struct smu_context *smu) in arcturus_set_default_dpm_table() argument
[all …]
Dnavi10_ppt.c262 static bool is_asic_secure(struct smu_context *smu) in is_asic_secure() argument
264 struct amdgpu_device *adev = smu->adev; in is_asic_secure()
278 navi10_get_allowed_feature_mask(struct smu_context *smu, in navi10_get_allowed_feature_mask() argument
281 struct amdgpu_device *adev = smu->adev; in navi10_get_allowed_feature_mask()
327 if (smu->adev->pg_flags & AMD_PG_SUPPORT_MMHUB) in navi10_get_allowed_feature_mask()
330 if (smu->adev->pg_flags & AMD_PG_SUPPORT_ATHUB) in navi10_get_allowed_feature_mask()
333 if (smu->adev->pg_flags & AMD_PG_SUPPORT_VCN) in navi10_get_allowed_feature_mask()
336 if (smu->adev->pg_flags & AMD_PG_SUPPORT_JPEG) in navi10_get_allowed_feature_mask()
339 if (smu->dc_controlled_by_gpio) in navi10_get_allowed_feature_mask()
346 if (!(is_asic_secure(smu) && in navi10_get_allowed_feature_mask()
[all …]
Dcyan_skillfish_ppt.c87 static int cyan_skillfish_tables_init(struct smu_context *smu) in cyan_skillfish_tables_init() argument
89 struct smu_table_context *smu_table = &smu->smu_table; in cyan_skillfish_tables_init()
117 static int cyan_skillfish_init_smc_tables(struct smu_context *smu) in cyan_skillfish_init_smc_tables() argument
121 ret = cyan_skillfish_tables_init(smu); in cyan_skillfish_init_smc_tables()
125 return smu_v11_0_init_smc_tables(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() argument
133 struct smu_table_context *smu_table = &smu->smu_table; in cyan_skillfish_get_smu_metrics_data()
137 ret = smu_cmn_get_metrics_table(smu, NULL, false); in cyan_skillfish_get_smu_metrics_data()
186 static int cyan_skillfish_read_sensor(struct smu_context *smu, in cyan_skillfish_read_sensor() argument
198 ret = cyan_skillfish_get_smu_metrics_data(smu, in cyan_skillfish_read_sensor()
[all …]
/Linux-v6.1/drivers/gpu/drm/amd/pm/swsmu/smu12/
Dsmu_v12_0.c58 int smu_v12_0_check_fw_status(struct smu_context *smu) in smu_v12_0_check_fw_status() argument
60 struct amdgpu_device *adev = smu->adev; 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() argument
75 struct amdgpu_device *adev = smu->adev; in smu_v12_0_check_fw_version()
80 ret = smu_cmn_get_smc_version(smu, &if_version, &smu_version); in smu_v12_0_check_fw_version()
88 if (smu->is_apu) in smu_v12_0_check_fw_version()
99 if (if_version != smu->smc_driver_if_version) { in smu_v12_0_check_fw_version()
100 dev_info(smu->adev->dev, "smu driver if version = 0x%08x, smu fw if version = 0x%08x, " in smu_v12_0_check_fw_version()
101 "smu fw program = %d, smu fw version = 0x%08x (%d.%d.%d)\n", in smu_v12_0_check_fw_version()
102 smu->smc_driver_if_version, if_version, in smu_v12_0_check_fw_version()
[all …]
Drenoir_ppt.c156 static int renoir_init_smc_tables(struct smu_context *smu) in renoir_init_smc_tables() argument
158 struct smu_table_context *smu_table = &smu->smu_table; 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() argument
205 DpmClocks_t *clk_table = smu->smu_table.clocks_table; in renoir_get_dpm_clk_limited()
250 static int renoir_get_profiling_clk_mask(struct smu_context *smu, in renoir_get_profiling_clk_mask() argument
280 static int renoir_get_dpm_ultimate_freq(struct smu_context *smu, in renoir_get_dpm_ultimate_freq() argument
289 if (!smu_cmn_clk_dpm_is_enabled(smu, clk_type)) { in renoir_get_dpm_ultimate_freq()
293 clock_limit = smu->smu_table.boot_values.uclk; in renoir_get_dpm_ultimate_freq()
297 clock_limit = smu->smu_table.boot_values.gfxclk; in renoir_get_dpm_ultimate_freq()
300 clock_limit = smu->smu_table.boot_values.socclk; in renoir_get_dpm_ultimate_freq()
[all …]
/Linux-v6.1/drivers/macintosh/
Dsmu.c3 * PowerMac G5 SMU driver
15 * - maybe avoid some data copies with i2c by directly using the smu cmd
17 * - understand SMU -> CPU events and implement reception of them via
46 #include <asm/smu.h>
62 * This is the command buffer passed to the SMU hardware
94 * I don't think there will ever be more than one SMU, so
98 static struct smu_device *smu; variable
106 * SMU driver low level stuff
114 if (list_empty(&smu->cmd_list)) in smu_start_cmd()
118 cmd = list_entry(smu->cmd_list.next, struct smu_cmd, link); in smu_start_cmd()
[all …]
/Linux-v6.1/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn30/
Ddcn30_clk_mgr_smu_msg.c86 /* Set the parameter register for the SMU message */ in dcn30_smu_send_msg_with_param()
114 smu_print("SMU Test message: %d\n", input); in dcn30_smu_test_message()
126 smu_print("SMU Get SMU version\n"); in dcn30_smu_get_smu_version()
131 smu_print("SMU version: %d\n", *version); in dcn30_smu_get_smu_version()
144 smu_print("SMU Check driver if version\n"); in dcn30_smu_check_driver_if_version()
149 smu_print("SMU driver if version: %d\n", response); in dcn30_smu_check_driver_if_version()
163 smu_print("SMU Check msg header version\n"); in dcn30_smu_check_msg_header_version()
168 smu_print("SMU msg header version: %d\n", response); in dcn30_smu_check_msg_header_version()
179 smu_print("SMU Set DRAM addr high: %d\n", addr_high); in dcn30_smu_set_dram_addr_high()
187 smu_print("SMU Set DRAM addr low: %d\n", addr_low); in dcn30_smu_set_dram_addr_low()
[all …]

12345678910