Home
last modified time | relevance | path

Searched refs:metrics_table (Results 1 – 25 of 26) sorted by relevance

12

/linux-6.12.1/drivers/gpu/drm/amd/pm/swsmu/smu11/
Dcyan_skillfish_ppt.c97 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()
112 kfree(smu_table->metrics_table); in cyan_skillfish_tables_init()
134 SmuMetrics_t *metrics = (SmuMetrics_t *)smu_table->metrics_table; in cyan_skillfish_get_smu_metrics_data()
Dnavi10_ppt.c523 smu_table->metrics_table = kzalloc(sizeof(SmuMetrics_NV1X_t), in navi10_tables_init()
525 if (!smu_table->metrics_table) in navi10_tables_init()
550 kfree(smu_table->metrics_table); in navi10_tables_init()
561 (SmuMetrics_legacy_t *)smu_table->metrics_table; in navi10_get_legacy_smu_metrics_data()
647 (SmuMetrics_t *)smu_table->metrics_table; in navi10_get_smu_metrics_data()
736 (SmuMetrics_NV12_legacy_t *)smu_table->metrics_table; in navi12_get_legacy_smu_metrics_data()
822 (SmuMetrics_NV12_t *)smu_table->metrics_table; in navi12_get_smu_metrics_data()
2936 memcpy(&metrics, smu_table->metrics_table, sizeof(SmuMetrics_legacy_t)); in navi10_get_legacy_gpu_metrics()
3159 memcpy(&metrics, smu_table->metrics_table, sizeof(SmuMetrics_t)); in navi10_get_gpu_metrics()
3231 memcpy(&metrics, smu_table->metrics_table, sizeof(SmuMetrics_NV12_legacy_t)); in navi12_get_legacy_gpu_metrics()
[all …]
Dvangogh_ppt.c240 …smu_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()
267 kfree(smu_table->metrics_table); in vangogh_tables_init()
277 SmuMetrics_legacy_t *metrics = (SmuMetrics_legacy_t *)smu_table->metrics_table; in vangogh_get_legacy_smu_metrics_data()
346 SmuMetrics_t *metrics = (SmuMetrics_t *)smu_table->metrics_table; in vangogh_get_smu_metrics_data()
Darcturus_ppt.c271 smu_table->metrics_table = kzalloc(sizeof(SmuMetrics_t), GFP_KERNEL); in arcturus_tables_init()
272 if (!smu_table->metrics_table) in arcturus_tables_init()
279 kfree(smu_table->metrics_table); in arcturus_tables_init()
642 SmuMetrics_t *metrics = (SmuMetrics_t *)smu_table->metrics_table; in arcturus_get_smu_metrics_data()
Dsienna_cichlid_ppt.c558 smu_table->metrics_table = kzalloc(sizeof(SmuMetricsExternal_t), GFP_KERNEL); in sienna_cichlid_tables_init()
559 if (!smu_table->metrics_table) in sienna_cichlid_tables_init()
590 kfree(smu_table->metrics_table); in sienna_cichlid_tables_init()
601 (SmuMetricsExternal_t *)(smu_table->metrics_table); in sienna_cichlid_get_throttler_status_locked()
682 &(((SmuMetricsExternal_t *)(smu_table->metrics_table))->SmuMetrics_V4); in sienna_cichlid_get_smartshift_power_percentage()
736 &(((SmuMetricsExternal_t *)(smu_table->metrics_table))->SmuMetrics); in sienna_cichlid_get_smu_metrics_data()
738 &(((SmuMetricsExternal_t *)(smu_table->metrics_table))->SmuMetrics_V2); in sienna_cichlid_get_smu_metrics_data()
740 &(((SmuMetricsExternal_t *)(smu_table->metrics_table))->SmuMetrics_V3); in sienna_cichlid_get_smu_metrics_data()
Dsmu_v11_0.c448 kfree(smu_table->metrics_table); in smu_v11_0_fini_smc_tables()
452 smu_table->metrics_table = NULL; in smu_v11_0_fini_smc_tables()
/linux-6.12.1/drivers/gpu/drm/amd/pm/swsmu/
Dsmu_cmn.c1015 void *metrics_table, in smu_cmn_get_metrics_table() argument
1029 smu_table->metrics_table, in smu_cmn_get_metrics_table()
1038 if (metrics_table) in smu_cmn_get_metrics_table()
1039 memcpy(metrics_table, smu_table->metrics_table, table_size); in smu_cmn_get_metrics_table()
Dsmu_cmn.h123 void *metrics_table,
/linux-6.12.1/drivers/gpu/drm/amd/pm/powerplay/hwmgr/
Dvega12_hwmgr.c1386 SmuMetrics_t *metrics_table, in vega12_get_metrics_table() argument
1397 (uint8_t *)(&data->metrics_table), in vega12_get_metrics_table()
1407 if (metrics_table) in vega12_get_metrics_table()
1408 memcpy(metrics_table, &data->metrics_table, sizeof(SmuMetrics_t)); in vega12_get_metrics_table()
1415 SmuMetrics_t metrics_table; in vega12_get_gpu_power() local
1418 ret = vega12_get_metrics_table(hwmgr, &metrics_table, false); in vega12_get_gpu_power()
1422 *query = metrics_table.CurrSocketPower << 8; in vega12_get_gpu_power()
1466 SmuMetrics_t metrics_table; in vega12_get_current_activity_percent() local
1469 ret = vega12_get_metrics_table(hwmgr, &metrics_table, false); in vega12_get_current_activity_percent()
1475 *activity_percent = metrics_table.AverageGfxActivity; in vega12_get_current_activity_percent()
[all …]
Dvega20_hwmgr.c2116 SmuMetrics_t *metrics_table, in vega20_get_metrics_table() argument
2127 (uint8_t *)(&data->metrics_table), in vega20_get_metrics_table()
2137 if (metrics_table) in vega20_get_metrics_table()
2138 memcpy(metrics_table, &data->metrics_table, sizeof(SmuMetrics_t)); in vega20_get_metrics_table()
2147 SmuMetrics_t metrics_table; in vega20_get_gpu_power() local
2149 ret = vega20_get_metrics_table(hwmgr, &metrics_table, false); in vega20_get_gpu_power()
2157 *query = metrics_table.AverageSocketPower << 8; in vega20_get_gpu_power()
2162 *query = metrics_table.CurrSocketPower << 8; in vega20_get_gpu_power()
2192 SmuMetrics_t metrics_table; in vega20_get_current_activity_percent() local
2194 ret = vega20_get_metrics_table(hwmgr, &metrics_table, false); in vega20_get_current_activity_percent()
[all …]
Dvega12_hwmgr.h400 SmuMetrics_t metrics_table; member
Dvega20_hwmgr.h527 SmuMetrics_t metrics_table; member
/linux-6.12.1/drivers/gpu/drm/amd/pm/swsmu/smu13/
Dsmu_v13_0_5_ppt.c140 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()
159 kfree(smu_table->metrics_table); in smu_v13_0_5_init_smc_tables()
173 kfree(smu_table->metrics_table); in smu_v13_0_5_fini_smc_tables()
174 smu_table->metrics_table = NULL; in smu_v13_0_5_fini_smc_tables()
262 SmuMetrics_t *metrics = (SmuMetrics_t *)smu_table->metrics_table; in smu_v13_0_5_get_smu_metrics_data()
Dsmu_v13_0_4_ppt.c166 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()
185 kfree(smu_table->metrics_table); in smu_v13_0_4_init_smc_tables()
199 kfree(smu_table->metrics_table); in smu_v13_0_4_fini_smc_tables()
200 smu_table->metrics_table = NULL; in smu_v13_0_4_fini_smc_tables()
306 SmuMetrics_t *metrics = (SmuMetrics_t *)smu_table->metrics_table; in smu_v13_0_4_get_smu_metrics_data()
Dyellow_carp_ppt.c167 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()
186 kfree(smu_table->metrics_table); in yellow_carp_init_smc_tables()
200 kfree(smu_table->metrics_table); in yellow_carp_fini_smc_tables()
201 smu_table->metrics_table = NULL; in yellow_carp_fini_smc_tables()
337 SmuMetrics_t *metrics = (SmuMetrics_t *)smu_table->metrics_table; in yellow_carp_get_smu_metrics_data()
Dsmu_v13_0_6_ppt.c349 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()
359 kfree(smu_table->metrics_table); in smu_v13_0_6_tables_init()
366 kfree(smu_table->metrics_table); in smu_v13_0_6_tables_init()
513 void *metrics_table, bool bypass_cache) in smu_v13_0_6_get_metrics_table() argument
531 memcpy(smu_table->metrics_table, table->cpu_addr, table_size); in smu_v13_0_6_get_metrics_table()
536 if (metrics_table) in smu_v13_0_6_get_metrics_table()
537 memcpy(metrics_table, smu_table->metrics_table, table_size); in smu_v13_0_6_get_metrics_table()
582 MetricsTableX_t *metrics_x = (MetricsTableX_t *)smu_table->metrics_table; in smu_v13_0_6_setup_driver_pptable()
583 MetricsTableA_t *metrics_a = (MetricsTableA_t *)smu_table->metrics_table; in smu_v13_0_6_setup_driver_pptable()
[all …]
Daldebaran_ppt.c247 smu_table->metrics_table = kzalloc(sizeof(SmuMetrics_t), GFP_KERNEL); in aldebaran_tables_init()
248 if (!smu_table->metrics_table) in aldebaran_tables_init()
255 kfree(smu_table->metrics_table); in aldebaran_tables_init()
261 kfree(smu_table->metrics_table); in aldebaran_tables_init()
615 SmuMetrics_t *metrics = (SmuMetrics_t *)smu_table->metrics_table; in aldebaran_get_smu_metrics_data()
Dsmu_v13_0_0_ppt.c507 smu_table->metrics_table = kzalloc(sizeof(SmuMetricsExternal_t), GFP_KERNEL); in smu_v13_0_0_tables_init()
508 if (!smu_table->metrics_table) in smu_v13_0_0_tables_init()
532 kfree(smu_table->metrics_table); in smu_v13_0_0_tables_init()
777 &(((SmuMetricsExternal_t *)(smu_table->metrics_table))->SmuMetrics); in smu_v13_0_0_get_smu_metrics_data()
2280 &(((SmuMetricsExternal_t *)(smu_table->metrics_table))->SmuMetrics); in smu_v13_0_0_get_unique_id()
Dsmu_v13_0_7_ppt.c521 smu_table->metrics_table = kzalloc(sizeof(SmuMetricsExternal_t), GFP_KERNEL); in smu_v13_0_7_tables_init()
522 if (!smu_table->metrics_table) in smu_v13_0_7_tables_init()
540 kfree(smu_table->metrics_table); in smu_v13_0_7_tables_init()
769 &(((SmuMetricsExternal_t *)(smu_table->metrics_table))->SmuMetrics); in smu_v13_0_7_get_smu_metrics_data()
/linux-6.12.1/drivers/gpu/drm/amd/pm/swsmu/smu12/
Dsmu_v12_0.c189 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()
Drenoir_ppt.c172 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()
191 kfree(smu_table->metrics_table); in renoir_init_smc_tables()
1208 SmuMetrics_t *metrics = (SmuMetrics_t *)smu_table->metrics_table; in renoir_get_smu_metrics_data()
/linux-6.12.1/drivers/gpu/drm/amd/pm/swsmu/smu14/
Dsmu_v14_0_0_ppt.c197 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()
222 kfree(smu_table->metrics_table); in smu_v14_0_0_init_smc_tables()
234 kfree(smu_table->metrics_table); in smu_v14_0_0_fini_smc_tables()
235 smu_table->metrics_table = NULL; in smu_v14_0_0_fini_smc_tables()
263 SmuMetrics_t *metrics = (SmuMetrics_t *)smu_table->metrics_table; in smu_v14_0_0_get_smu_metrics_data()
Dsmu_v14_0_2_ppt.c438 smu_table->metrics_table = kzalloc(sizeof(SmuMetricsExternal_t), GFP_KERNEL); in smu_v14_0_2_tables_init()
439 if (!smu_table->metrics_table) in smu_v14_0_2_tables_init()
463 kfree(smu_table->metrics_table); in smu_v14_0_2_tables_init()
705 &(((SmuMetricsExternal_t *)(smu_table->metrics_table))->SmuMetrics); in smu_v14_0_2_get_smu_metrics_data()
1604 &(((SmuMetricsExternal_t *)(smu_table->metrics_table))->SmuMetrics); in smu_v14_0_2_get_unique_id()
Dsmu_v14_0.c508 kfree(smu_table->metrics_table); in smu_v14_0_fini_smc_tables()
511 smu_table->metrics_table = NULL; in smu_v14_0_fini_smc_tables()
/linux-6.12.1/drivers/gpu/drm/amd/pm/swsmu/inc/
Damdgpu_smu.h333 void *metrics_table; member

12