Searched refs:smu_table (Results 1 – 9 of 9) sorted by relevance
/drivers/gpu/drm/amd/pm/swsmu/smu11/ |
D | smu_v11_0.c | 329 if ((version_major == 2 && smu->smu_table.boot_values.pp_table_id > 0) || in smu_v11_0_setup_pptable() 331 dev_info(adev->dev, "use driver provided pptable %d\n", smu->smu_table.boot_values.pp_table_id); in smu_v11_0_setup_pptable() 338 smu->smu_table.boot_values.pp_table_id); in smu_v11_0_setup_pptable() 361 if (!smu->smu_table.power_play_table) in smu_v11_0_setup_pptable() 362 smu->smu_table.power_play_table = table; in smu_v11_0_setup_pptable() 363 if (!smu->smu_table.power_play_table_size) in smu_v11_0_setup_pptable() 364 smu->smu_table.power_play_table_size = size; in smu_v11_0_setup_pptable() 371 struct smu_table_context *smu_table = &smu->smu_table; in smu_v11_0_init_smc_tables() local 372 struct smu_table *tables = smu_table->tables; in smu_v11_0_init_smc_tables() 375 smu_table->driver_pptable = in smu_v11_0_init_smc_tables() [all …]
|
D | navi10_ppt.c | 343 struct smu_table_context *table_context = &smu->smu_table; in navi10_check_bxco_support() 361 struct smu_table_context *table_context = &smu->smu_table; in navi10_check_powerplay_table() 385 struct smu_table_context *table_context = &smu->smu_table; in navi10_append_powerplay_table() 437 struct smu_table_context *table_context = &smu->smu_table; in navi10_store_powerplay_table() 472 struct smu_table_context *smu_table = &smu->smu_table; in navi10_tables_init() local 473 struct smu_table *tables = smu_table->tables; in navi10_tables_init() 496 smu_table->metrics_table = kzalloc(adev->asic_type == CHIP_NAVI12 ? in navi10_tables_init() 499 if (!smu_table->metrics_table) in navi10_tables_init() 501 smu_table->metrics_time = 0; in navi10_tables_init() 503 smu_table->gpu_metrics_table_size = sizeof(struct gpu_metrics_v1_0); in navi10_tables_init() [all …]
|
D | sienna_cichlid_ppt.c | 299 struct smu_table_context *table_context = &smu->smu_table; in sienna_cichlid_check_bxco_support() 330 struct smu_table_context *table_context = &smu->smu_table; in sienna_cichlid_check_powerplay_table() 347 struct smu_table_context *table_context = &smu->smu_table; in sienna_cichlid_append_powerplay_table() 368 struct smu_table_context *table_context = &smu->smu_table; in sienna_cichlid_store_powerplay_table() 403 struct smu_table_context *smu_table = &smu->smu_table; in sienna_cichlid_tables_init() local 404 struct smu_table *tables = smu_table->tables; in sienna_cichlid_tables_init() 422 smu_table->metrics_table = kzalloc(sizeof(SmuMetrics_t), GFP_KERNEL); in sienna_cichlid_tables_init() 423 if (!smu_table->metrics_table) in sienna_cichlid_tables_init() 425 smu_table->metrics_time = 0; in sienna_cichlid_tables_init() 427 smu_table->gpu_metrics_table_size = sizeof(struct gpu_metrics_v1_0); in sienna_cichlid_tables_init() [all …]
|
D | arcturus_ppt.c | 215 struct smu_table_context *smu_table = &smu->smu_table; in arcturus_tables_init() local 216 struct smu_table *tables = smu_table->tables; in arcturus_tables_init() 234 smu_table->metrics_table = kzalloc(sizeof(SmuMetrics_t), GFP_KERNEL); in arcturus_tables_init() 235 if (!smu_table->metrics_table) in arcturus_tables_init() 237 smu_table->metrics_time = 0; in arcturus_tables_init() 239 smu_table->gpu_metrics_table_size = sizeof(struct gpu_metrics_v1_0); in arcturus_tables_init() 240 smu_table->gpu_metrics_table = kzalloc(smu_table->gpu_metrics_table_size, GFP_KERNEL); in arcturus_tables_init() 241 if (!smu_table->gpu_metrics_table) { in arcturus_tables_init() 242 kfree(smu_table->metrics_table); in arcturus_tables_init() 303 PPTable_t *driver_ppt = smu->smu_table.driver_pptable; in arcturus_set_default_dpm_table() [all …]
|
/drivers/gpu/drm/amd/pm/swsmu/smu12/ |
D | smu_v12_0.c | 179 struct smu_table_context *smu_table = &smu->smu_table; in smu_v12_0_fini_smc_tables() local 181 kfree(smu_table->clocks_table); in smu_v12_0_fini_smc_tables() 182 smu_table->clocks_table = NULL; in smu_v12_0_fini_smc_tables() 184 kfree(smu_table->metrics_table); in smu_v12_0_fini_smc_tables() 185 smu_table->metrics_table = NULL; in smu_v12_0_fini_smc_tables() 187 kfree(smu_table->watermarks_table); in smu_v12_0_fini_smc_tables() 188 smu_table->watermarks_table = NULL; in smu_v12_0_fini_smc_tables() 190 kfree(smu_table->gpu_metrics_table); in smu_v12_0_fini_smc_tables() 191 smu_table->gpu_metrics_table = NULL; in smu_v12_0_fini_smc_tables() 198 struct smu_table_context *smu_table = &smu->smu_table; in smu_v12_0_set_default_dpm_tables() local [all …]
|
D | renoir_ppt.c | 133 struct smu_table_context *smu_table = &smu->smu_table; in renoir_init_smc_tables() local 134 struct smu_table *tables = smu_table->tables; in renoir_init_smc_tables() 143 smu_table->clocks_table = kzalloc(sizeof(DpmClocks_t), GFP_KERNEL); in renoir_init_smc_tables() 144 if (!smu_table->clocks_table) in renoir_init_smc_tables() 147 smu_table->metrics_table = kzalloc(sizeof(SmuMetrics_t), GFP_KERNEL); in renoir_init_smc_tables() 148 if (!smu_table->metrics_table) in renoir_init_smc_tables() 150 smu_table->metrics_time = 0; in renoir_init_smc_tables() 152 smu_table->watermarks_table = kzalloc(sizeof(Watermarks_t), GFP_KERNEL); in renoir_init_smc_tables() 153 if (!smu_table->watermarks_table) in renoir_init_smc_tables() 156 smu_table->gpu_metrics_table_size = sizeof(struct gpu_metrics_v2_0); in renoir_init_smc_tables() [all …]
|
/drivers/gpu/drm/amd/pm/swsmu/ |
D | smu_cmn.c | 582 struct smu_table_context *smu_table = &smu->smu_table; in smu_cmn_update_table() local 584 struct smu_table *table = &smu_table->driver_table; in smu_cmn_update_table() 593 table_size = smu_table->tables[table_index].size; in smu_cmn_update_table() 622 void *watermarks_table = smu->smu_table.watermarks_table; in smu_cmn_write_watermarks_table() 636 void *pptable = smu->smu_table.driver_pptable; in smu_cmn_write_pptable() 649 struct smu_table_context *smu_table= &smu->smu_table; in smu_cmn_get_metrics_table_locked() local 651 smu_table->tables[SMU_TABLE_SMU_METRICS].size; in smu_cmn_get_metrics_table_locked() 655 !smu_table->metrics_time || in smu_cmn_get_metrics_table_locked() 656 time_after(jiffies, smu_table->metrics_time + msecs_to_jiffies(1))) { in smu_cmn_get_metrics_table_locked() 660 smu_table->metrics_table, in smu_cmn_get_metrics_table_locked() [all …]
|
D | amdgpu_smu.c | 292 struct smu_table_context *smu_table = &smu->smu_table; in smu_sys_get_pp_table() local 298 if (!smu_table->power_play_table && !smu_table->hardcode_pptable) in smu_sys_get_pp_table() 303 if (smu_table->hardcode_pptable) in smu_sys_get_pp_table() 304 *table = smu_table->hardcode_pptable; in smu_sys_get_pp_table() 306 *table = smu_table->power_play_table; in smu_sys_get_pp_table() 308 powerplay_table_size = smu_table->power_play_table_size; in smu_sys_get_pp_table() 317 struct smu_table_context *smu_table = &smu->smu_table; in smu_sys_set_pp_table() local 330 if (!smu_table->hardcode_pptable) in smu_sys_set_pp_table() 331 smu_table->hardcode_pptable = kzalloc(size, GFP_KERNEL); in smu_sys_set_pp_table() 332 if (!smu_table->hardcode_pptable) { in smu_sys_set_pp_table() [all …]
|
/drivers/gpu/drm/amd/pm/inc/ |
D | amdgpu_smu.h | 177 struct smu_table { struct 262 struct smu_table tables[SMU_TABLE_COUNT]; 271 struct smu_table driver_table; 272 struct smu_table memory_pool; 273 struct smu_table dummy_read_1_table; 405 struct smu_table_context smu_table; member
|