Home
last modified time | relevance | path

Searched refs:smu_table (Results 1 – 22 of 22) sorted by relevance

/linux-6.12.1/drivers/gpu/drm/amd/pm/swsmu/smu12/ !
Dsmu_v12_0.c184 struct smu_table_context *smu_table = &smu->smu_table; in smu_v12_0_fini_smc_tables() local
186 kfree(smu_table->clocks_table); in smu_v12_0_fini_smc_tables()
187 smu_table->clocks_table = NULL; in smu_v12_0_fini_smc_tables()
189 kfree(smu_table->metrics_table); in smu_v12_0_fini_smc_tables()
190 smu_table->metrics_table = NULL; in smu_v12_0_fini_smc_tables()
192 kfree(smu_table->watermarks_table); in smu_v12_0_fini_smc_tables()
193 smu_table->watermarks_table = NULL; in smu_v12_0_fini_smc_tables()
195 kfree(smu_table->gpu_metrics_table); in smu_v12_0_fini_smc_tables()
196 smu_table->gpu_metrics_table = NULL; in smu_v12_0_fini_smc_tables()
203 struct smu_table_context *smu_table = &smu->smu_table; in smu_v12_0_set_default_dpm_tables() local
[all …]
Drenoir_ppt.c158 struct smu_table_context *smu_table = &smu->smu_table; in renoir_init_smc_tables() local
159 struct smu_table *tables = smu_table->tables; in renoir_init_smc_tables()
168 smu_table->clocks_table = kzalloc(sizeof(DpmClocks_t), GFP_KERNEL); in renoir_init_smc_tables()
169 if (!smu_table->clocks_table) in renoir_init_smc_tables()
172 smu_table->metrics_table = kzalloc(sizeof(SmuMetrics_t), GFP_KERNEL); in renoir_init_smc_tables()
173 if (!smu_table->metrics_table) in renoir_init_smc_tables()
175 smu_table->metrics_time = 0; in renoir_init_smc_tables()
177 smu_table->watermarks_table = kzalloc(sizeof(Watermarks_t), GFP_KERNEL); in renoir_init_smc_tables()
178 if (!smu_table->watermarks_table) in renoir_init_smc_tables()
181 smu_table->gpu_metrics_table_size = sizeof(struct gpu_metrics_v2_2); in renoir_init_smc_tables()
[all …]
/linux-6.12.1/drivers/gpu/drm/amd/pm/swsmu/smu14/ !
Dsmu_v14_0.c184 pptable_id = smu->smu_table.boot_values.pp_table_id; in smu_v14_0_init_pptable_microcode()
401 pptable_id = smu->smu_table.boot_values.pp_table_id; in smu_v14_0_setup_pptable()
413 if (!smu->smu_table.power_play_table) in smu_v14_0_setup_pptable()
414 smu->smu_table.power_play_table = table; in smu_v14_0_setup_pptable()
415 if (!smu->smu_table.power_play_table_size) in smu_v14_0_setup_pptable()
416 smu->smu_table.power_play_table_size = size; in smu_v14_0_setup_pptable()
423 struct smu_table_context *smu_table = &smu->smu_table; in smu_v14_0_init_smc_tables() local
424 struct smu_table *tables = smu_table->tables; in smu_v14_0_init_smc_tables()
427 smu_table->driver_pptable = in smu_v14_0_init_smc_tables()
429 if (!smu_table->driver_pptable) { in smu_v14_0_init_smc_tables()
[all …]
Dsmu_v14_0_0_ppt.c187 struct smu_table_context *smu_table = &smu->smu_table; in smu_v14_0_0_init_smc_tables() local
188 struct smu_table *tables = smu_table->tables; in smu_v14_0_0_init_smc_tables()
197 smu_table->metrics_table = kzalloc(sizeof(SmuMetrics_t), GFP_KERNEL); in smu_v14_0_0_init_smc_tables()
198 if (!smu_table->metrics_table) in smu_v14_0_0_init_smc_tables()
200 smu_table->metrics_time = 0; in smu_v14_0_0_init_smc_tables()
202smu_table->clocks_table = kzalloc(max(sizeof(DpmClocks_t), sizeof(DpmClocks_t_v14_0_1)), GFP_KERNE… in smu_v14_0_0_init_smc_tables()
203 if (!smu_table->clocks_table) in smu_v14_0_0_init_smc_tables()
206 smu_table->watermarks_table = kzalloc(sizeof(Watermarks_t), GFP_KERNEL); in smu_v14_0_0_init_smc_tables()
207 if (!smu_table->watermarks_table) in smu_v14_0_0_init_smc_tables()
210 smu_table->gpu_metrics_table_size = sizeof(struct gpu_metrics_v3_0); in smu_v14_0_0_init_smc_tables()
[all …]
Dsmu_v14_0_2_ppt.c319 struct smu_table_context *table_context = &smu->smu_table; in smu_v14_0_2_check_powerplay_table()
323 PPTable_t *pptable = smu->smu_table.driver_pptable; in smu_v14_0_2_check_powerplay_table()
360 struct smu_table_context *table_context = &smu->smu_table; in smu_v14_0_2_store_powerplay_table()
374 struct smu_table_context *smu_table = &smu->smu_table; in smu_v14_0_2_get_pptable_from_pmfw() local
375 void *combo_pptable = smu_table->combo_pptable; in smu_v14_0_2_get_pptable_from_pmfw()
390 struct smu_table_context *smu_table = &smu->smu_table; in smu_v14_0_2_setup_pptable() local
397 &smu_table->power_play_table, in smu_v14_0_2_setup_pptable()
398 &smu_table->power_play_table_size); in smu_v14_0_2_setup_pptable()
415 struct smu_table_context *smu_table = &smu->smu_table; in smu_v14_0_2_tables_init() local
416 struct smu_table *tables = smu_table->tables; in smu_v14_0_2_tables_init()
[all …]
/linux-6.12.1/drivers/gpu/drm/amd/pm/swsmu/smu11/ !
Dsmu_v11_0.c326 if (version_major == 2 && smu->smu_table.boot_values.pp_table_id > 0) { in smu_v11_0_setup_pptable()
327 dev_info(adev->dev, "use driver provided pptable %d\n", smu->smu_table.boot_values.pp_table_id); in smu_v11_0_setup_pptable()
334 smu->smu_table.boot_values.pp_table_id); in smu_v11_0_setup_pptable()
357 if (!smu->smu_table.power_play_table) in smu_v11_0_setup_pptable()
358 smu->smu_table.power_play_table = table; in smu_v11_0_setup_pptable()
359 if (!smu->smu_table.power_play_table_size) in smu_v11_0_setup_pptable()
360 smu->smu_table.power_play_table_size = size; in smu_v11_0_setup_pptable()
367 struct smu_table_context *smu_table = &smu->smu_table; in smu_v11_0_init_smc_tables() local
368 struct smu_table *tables = smu_table->tables; in smu_v11_0_init_smc_tables()
371 smu_table->driver_pptable = in smu_v11_0_init_smc_tables()
[all …]
Dcyan_skillfish_ppt.c89 struct smu_table_context *smu_table = &smu->smu_table; in cyan_skillfish_tables_init() local
90 struct smu_table *tables = smu_table->tables; in cyan_skillfish_tables_init()
97 smu_table->metrics_table = kzalloc(sizeof(SmuMetrics_t), GFP_KERNEL); in cyan_skillfish_tables_init()
98 if (!smu_table->metrics_table) in cyan_skillfish_tables_init()
101 smu_table->gpu_metrics_table_size = sizeof(struct gpu_metrics_v2_2); in cyan_skillfish_tables_init()
102 smu_table->gpu_metrics_table = kzalloc(smu_table->gpu_metrics_table_size, GFP_KERNEL); in cyan_skillfish_tables_init()
103 if (!smu_table->gpu_metrics_table) in cyan_skillfish_tables_init()
106 smu_table->metrics_time = 0; in cyan_skillfish_tables_init()
111 smu_table->gpu_metrics_table_size = 0; in cyan_skillfish_tables_init()
112 kfree(smu_table->metrics_table); in cyan_skillfish_tables_init()
[all …]
Dnavi10_ppt.c367 struct smu_table_context *table_context = &smu->smu_table; in navi10_check_bxco_support()
385 struct smu_table_context *table_context = &smu->smu_table; in navi10_check_powerplay_table()
409 struct smu_table_context *table_context = &smu->smu_table; in navi10_append_powerplay_table()
461 struct smu_table_context *table_context = &smu->smu_table; in navi10_store_powerplay_table()
496 struct smu_table_context *smu_table = &smu->smu_table; in navi10_tables_init() local
497 struct smu_table *tables = smu_table->tables; in navi10_tables_init()
498 struct smu_table *dummy_read_1_table = in navi10_tables_init()
499 &smu_table->dummy_read_1_table; in navi10_tables_init()
523 smu_table->metrics_table = kzalloc(sizeof(SmuMetrics_NV1X_t), in navi10_tables_init()
525 if (!smu_table->metrics_table) in navi10_tables_init()
[all …]
Dvangogh_ppt.c226 struct smu_table_context *smu_table = &smu->smu_table; in vangogh_tables_init() local
227 struct smu_table *tables = smu_table->tables; in vangogh_tables_init()
240smu_table->metrics_table = kzalloc(max(sizeof(SmuMetrics_t), sizeof(SmuMetrics_legacy_t)), GFP_KER… in vangogh_tables_init()
241 if (!smu_table->metrics_table) in vangogh_tables_init()
243 smu_table->metrics_time = 0; in vangogh_tables_init()
245 smu_table->gpu_metrics_table_size = sizeof(struct gpu_metrics_v2_2); in vangogh_tables_init()
246smu_table->gpu_metrics_table_size = max(smu_table->gpu_metrics_table_size, sizeof(struct gpu_metri… in vangogh_tables_init()
247smu_table->gpu_metrics_table_size = max(smu_table->gpu_metrics_table_size, sizeof(struct gpu_metri… in vangogh_tables_init()
248 smu_table->gpu_metrics_table = kzalloc(smu_table->gpu_metrics_table_size, GFP_KERNEL); in vangogh_tables_init()
249 if (!smu_table->gpu_metrics_table) in vangogh_tables_init()
[all …]
Darcturus_ppt.c252 struct smu_table_context *smu_table = &smu->smu_table; in arcturus_tables_init() local
253 struct smu_table *tables = smu_table->tables; in arcturus_tables_init()
271 smu_table->metrics_table = kzalloc(sizeof(SmuMetrics_t), GFP_KERNEL); in arcturus_tables_init()
272 if (!smu_table->metrics_table) in arcturus_tables_init()
274 smu_table->metrics_time = 0; in arcturus_tables_init()
276 smu_table->gpu_metrics_table_size = sizeof(struct gpu_metrics_v1_3); in arcturus_tables_init()
277 smu_table->gpu_metrics_table = kzalloc(smu_table->gpu_metrics_table_size, GFP_KERNEL); in arcturus_tables_init()
278 if (!smu_table->gpu_metrics_table) { in arcturus_tables_init()
279 kfree(smu_table->metrics_table); in arcturus_tables_init()
364 PPTable_t *driver_ppt = smu->smu_table.driver_pptable; in arcturus_set_default_dpm_table()
[all …]
Dsienna_cichlid_ppt.c80 (*member) = (smu->smu_table.driver_pptable + \
83 (*member) = (smu->smu_table.driver_pptable + \
364 struct smu_table_context *table_context = &smu->smu_table; in sienna_cichlid_check_bxco_support()
398 struct smu_table_context *table_context = &smu->smu_table; in sienna_cichlid_check_fan_support()
412 struct smu_table_context *table_context = &smu->smu_table; in sienna_cichlid_check_powerplay_table()
442 ppt_beige_goby = smu->smu_table.driver_pptable; in sienna_cichlid_append_powerplay_table()
444 ppt = smu->smu_table.driver_pptable; in sienna_cichlid_append_powerplay_table()
466 struct smu_table_context *table_context = &smu->smu_table; in sienna_cichlid_store_powerplay_table()
533 struct smu_table_context *smu_table = &smu->smu_table; in sienna_cichlid_tables_init() local
534 struct smu_table *tables = smu_table->tables; in sienna_cichlid_tables_init()
[all …]
/linux-6.12.1/drivers/gpu/drm/amd/pm/swsmu/smu13/ !
Dsmu_v13_0.c207 pptable_id = smu->smu_table.boot_values.pp_table_id; in smu_v13_0_init_pptable_microcode()
413 pptable_id = smu->smu_table.boot_values.pp_table_id; in smu_v13_0_setup_pptable()
425 if (!smu->smu_table.power_play_table) in smu_v13_0_setup_pptable()
426 smu->smu_table.power_play_table = table; in smu_v13_0_setup_pptable()
427 if (!smu->smu_table.power_play_table_size) in smu_v13_0_setup_pptable()
428 smu->smu_table.power_play_table_size = size; in smu_v13_0_setup_pptable()
435 struct smu_table_context *smu_table = &smu->smu_table; in smu_v13_0_init_smc_tables() local
436 struct smu_table *tables = smu_table->tables; in smu_v13_0_init_smc_tables()
439 smu_table->driver_pptable = in smu_v13_0_init_smc_tables()
441 if (!smu_table->driver_pptable) { in smu_v13_0_init_smc_tables()
[all …]
Dsmu_v13_0_5_ppt.c126 struct smu_table_context *smu_table = &smu->smu_table; in smu_v13_0_5_init_smc_tables() local
127 struct smu_table *tables = smu_table->tables; in smu_v13_0_5_init_smc_tables()
136 smu_table->clocks_table = kzalloc(sizeof(DpmClocks_t), GFP_KERNEL); in smu_v13_0_5_init_smc_tables()
137 if (!smu_table->clocks_table) in smu_v13_0_5_init_smc_tables()
140 smu_table->metrics_table = kzalloc(sizeof(SmuMetrics_t), GFP_KERNEL); in smu_v13_0_5_init_smc_tables()
141 if (!smu_table->metrics_table) in smu_v13_0_5_init_smc_tables()
143 smu_table->metrics_time = 0; in smu_v13_0_5_init_smc_tables()
145 smu_table->watermarks_table = kzalloc(sizeof(Watermarks_t), GFP_KERNEL); in smu_v13_0_5_init_smc_tables()
146 if (!smu_table->watermarks_table) in smu_v13_0_5_init_smc_tables()
149 smu_table->gpu_metrics_table_size = sizeof(struct gpu_metrics_v2_1); in smu_v13_0_5_init_smc_tables()
[all …]
Dsmu_v13_0_4_ppt.c152 struct smu_table_context *smu_table = &smu->smu_table; in smu_v13_0_4_init_smc_tables() local
153 struct smu_table *tables = smu_table->tables; in smu_v13_0_4_init_smc_tables()
162 smu_table->clocks_table = kzalloc(sizeof(DpmClocks_t), GFP_KERNEL); in smu_v13_0_4_init_smc_tables()
163 if (!smu_table->clocks_table) in smu_v13_0_4_init_smc_tables()
166 smu_table->metrics_table = kzalloc(sizeof(SmuMetrics_t), GFP_KERNEL); in smu_v13_0_4_init_smc_tables()
167 if (!smu_table->metrics_table) in smu_v13_0_4_init_smc_tables()
169 smu_table->metrics_time = 0; in smu_v13_0_4_init_smc_tables()
171 smu_table->watermarks_table = kzalloc(sizeof(Watermarks_t), GFP_KERNEL); in smu_v13_0_4_init_smc_tables()
172 if (!smu_table->watermarks_table) in smu_v13_0_4_init_smc_tables()
175 smu_table->gpu_metrics_table_size = sizeof(struct gpu_metrics_v2_1); in smu_v13_0_4_init_smc_tables()
[all …]
Dyellow_carp_ppt.c153 struct smu_table_context *smu_table = &smu->smu_table; in yellow_carp_init_smc_tables() local
154 struct smu_table *tables = smu_table->tables; in yellow_carp_init_smc_tables()
163 smu_table->clocks_table = kzalloc(sizeof(DpmClocks_t), GFP_KERNEL); in yellow_carp_init_smc_tables()
164 if (!smu_table->clocks_table) in yellow_carp_init_smc_tables()
167 smu_table->metrics_table = kzalloc(sizeof(SmuMetrics_t), GFP_KERNEL); in yellow_carp_init_smc_tables()
168 if (!smu_table->metrics_table) in yellow_carp_init_smc_tables()
170 smu_table->metrics_time = 0; in yellow_carp_init_smc_tables()
172 smu_table->watermarks_table = kzalloc(sizeof(Watermarks_t), GFP_KERNEL); in yellow_carp_init_smc_tables()
173 if (!smu_table->watermarks_table) in yellow_carp_init_smc_tables()
176 smu_table->gpu_metrics_table_size = sizeof(struct gpu_metrics_v2_1); in yellow_carp_init_smc_tables()
[all …]
Dsmu_v13_0_0_ppt.c346 struct smu_table_context *table_context = &smu->smu_table; in smu_v13_0_0_check_powerplay_table()
350 PPTable_t *pptable = smu->smu_table.driver_pptable; in smu_v13_0_0_check_powerplay_table()
387 struct smu_table_context *table_context = &smu->smu_table; in smu_v13_0_0_store_powerplay_table()
406 struct smu_table_context *table_context = &smu->smu_table; in smu_v13_0_0_append_powerplay_table()
429 struct smu_table_context *smu_table = &smu->smu_table; in smu_v13_0_0_get_pptable_from_pmfw() local
430 void *combo_pptable = smu_table->combo_pptable; in smu_v13_0_0_get_pptable_from_pmfw()
445 struct smu_table_context *smu_table = &smu->smu_table; in smu_v13_0_0_setup_pptable() local
453 &smu_table->power_play_table, in smu_v13_0_0_setup_pptable()
454 &smu_table->power_play_table_size); in smu_v13_0_0_setup_pptable()
481 struct smu_table_context *smu_table = &smu->smu_table; in smu_v13_0_0_tables_init() local
[all …]
Dsmu_v13_0_7_ppt.c337 struct smu_table_context *table_context = &smu->smu_table; in smu_v13_0_7_check_powerplay_table()
377 struct smu_table_context *table_context = &smu->smu_table; in smu_v13_0_7_store_powerplay_table()
415 struct smu_table_context *table_context = &smu->smu_table; in smu_v13_0_7_append_powerplay_table()
442 struct smu_table_context *smu_table = &smu->smu_table; in smu_v13_0_7_get_pptable_from_pmfw() local
443 void *combo_pptable = smu_table->combo_pptable; in smu_v13_0_7_get_pptable_from_pmfw()
458 struct smu_table_context *smu_table = &smu->smu_table; in smu_v13_0_7_setup_pptable() local
468 &smu_table->power_play_table, in smu_v13_0_7_setup_pptable()
469 &smu_table->power_play_table_size); in smu_v13_0_7_setup_pptable()
496 struct smu_table_context *smu_table = &smu->smu_table; in smu_v13_0_7_tables_init() local
497 struct smu_table *tables = smu_table->tables; in smu_v13_0_7_tables_init()
[all …]
Daldebaran_ppt.c229 struct smu_table_context *smu_table = &smu->smu_table; in aldebaran_tables_init() local
230 struct smu_table *tables = smu_table->tables; in aldebaran_tables_init()
247 smu_table->metrics_table = kzalloc(sizeof(SmuMetrics_t), GFP_KERNEL); in aldebaran_tables_init()
248 if (!smu_table->metrics_table) in aldebaran_tables_init()
250 smu_table->metrics_time = 0; in aldebaran_tables_init()
252 smu_table->gpu_metrics_table_size = sizeof(struct gpu_metrics_v1_3); in aldebaran_tables_init()
253 smu_table->gpu_metrics_table = kzalloc(smu_table->gpu_metrics_table_size, GFP_KERNEL); in aldebaran_tables_init()
254 if (!smu_table->gpu_metrics_table) { in aldebaran_tables_init()
255 kfree(smu_table->metrics_table); in aldebaran_tables_init()
259 smu_table->ecc_table = kzalloc(tables[SMU_TABLE_ECCINFO].size, GFP_KERNEL); in aldebaran_tables_init()
[all …]
Dsmu_v13_0_6_ppt.c332 struct smu_table_context *smu_table = &smu->smu_table; in smu_v13_0_6_tables_init() local
333 struct smu_table *tables = smu_table->tables; in smu_v13_0_6_tables_init()
349 smu_table->metrics_table = kzalloc(max(sizeof(MetricsTableX_t), in smu_v13_0_6_tables_init()
351 if (!smu_table->metrics_table) in smu_v13_0_6_tables_init()
353 smu_table->metrics_time = 0; in smu_v13_0_6_tables_init()
355 smu_table->gpu_metrics_table_size = sizeof(struct gpu_metrics_v1_5); in smu_v13_0_6_tables_init()
356 smu_table->gpu_metrics_table = in smu_v13_0_6_tables_init()
357 kzalloc(smu_table->gpu_metrics_table_size, GFP_KERNEL); in smu_v13_0_6_tables_init()
358 if (!smu_table->gpu_metrics_table) { in smu_v13_0_6_tables_init()
359 kfree(smu_table->metrics_table); in smu_v13_0_6_tables_init()
[all …]
/linux-6.12.1/drivers/gpu/drm/amd/pm/swsmu/ !
Dsmu_cmn.c951 struct smu_table_context *smu_table = &smu->smu_table; in smu_cmn_update_table() local
953 struct smu_table *table = &smu_table->driver_table; in smu_cmn_update_table()
962 table_size = smu_table->tables[table_index].size; in smu_cmn_update_table()
991 void *watermarks_table = smu->smu_table.watermarks_table; in smu_cmn_write_watermarks_table()
1005 void *pptable = smu->smu_table.driver_pptable; in smu_cmn_write_pptable()
1018 struct smu_table_context *smu_table = &smu->smu_table; in smu_cmn_get_metrics_table() local
1020 smu_table->tables[SMU_TABLE_SMU_METRICS].size; in smu_cmn_get_metrics_table()
1024 !smu_table->metrics_time || in smu_cmn_get_metrics_table()
1025 time_after(jiffies, smu_table->metrics_time + msecs_to_jiffies(1))) { in smu_cmn_get_metrics_table()
1029 smu_table->metrics_table, in smu_cmn_get_metrics_table()
[all …]
Damdgpu_smu.c573 struct smu_table_context *smu_table = &smu->smu_table; in smu_sys_get_pp_table() local
578 if (!smu_table->power_play_table && !smu_table->hardcode_pptable) in smu_sys_get_pp_table()
581 if (smu_table->hardcode_pptable) in smu_sys_get_pp_table()
582 *table = smu_table->hardcode_pptable; in smu_sys_get_pp_table()
584 *table = smu_table->power_play_table; in smu_sys_get_pp_table()
586 return smu_table->power_play_table_size; in smu_sys_get_pp_table()
594 struct smu_table_context *smu_table = &smu->smu_table; in smu_sys_set_pp_table() local
606 if (!smu_table->hardcode_pptable) { in smu_sys_set_pp_table()
607 smu_table->hardcode_pptable = kzalloc(size, GFP_KERNEL); in smu_sys_set_pp_table()
608 if (!smu_table->hardcode_pptable) in smu_sys_set_pp_table()
[all …]
/linux-6.12.1/drivers/gpu/drm/amd/pm/swsmu/inc/ !
Damdgpu_smu.h252 struct smu_table { struct
343 struct smu_table tables[SMU_TABLE_COUNT];
352 struct smu_table driver_table;
353 struct smu_table memory_pool;
354 struct smu_table dummy_read_1_table;
526 struct smu_table_context smu_table; member