Home
last modified time | relevance | path

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

/openbmc/linux/drivers/gpu/drm/amd/pm/swsmu/smu13/
H A Dsmu_v13_0_7_ppt.c574 struct smu_13_0_pcie_table *pcie_table; in smu_v13_0_7_set_default_dpm_table() local
683 pcie_table = &dpm_context->dpm_tables.pcie_table; in smu_v13_0_7_set_default_dpm_table()
684 pcie_table->num_of_link_levels = 0; in smu_v13_0_7_set_default_dpm_table()
691 pcie_table->pcie_gen[pcie_table->num_of_link_levels] = in smu_v13_0_7_set_default_dpm_table()
693 pcie_table->pcie_lane[pcie_table->num_of_link_levels] = in smu_v13_0_7_set_default_dpm_table()
695 pcie_table->clk_freq[pcie_table->num_of_link_levels] = in smu_v13_0_7_set_default_dpm_table()
697 pcie_table->num_of_link_levels++; in smu_v13_0_7_set_default_dpm_table()
1146 struct smu_13_0_pcie_table *pcie_table; in smu_v13_0_7_print_clk_levels() local
1247 pcie_table = &(dpm_context->dpm_tables.pcie_table); in smu_v13_0_7_print_clk_levels()
1248 for (i = 0; i < pcie_table->num_of_link_levels; i++) in smu_v13_0_7_print_clk_levels()
[all …]
H A Dsmu_v13_0_0_ppt.c575 struct smu_13_0_pcie_table *pcie_table; in smu_v13_0_0_set_default_dpm_table() local
693 pcie_table = &dpm_context->dpm_tables.pcie_table; in smu_v13_0_0_set_default_dpm_table()
694 pcie_table->num_of_link_levels = 0; in smu_v13_0_0_set_default_dpm_table()
701 pcie_table->pcie_gen[pcie_table->num_of_link_levels] = in smu_v13_0_0_set_default_dpm_table()
703 pcie_table->pcie_lane[pcie_table->num_of_link_levels] = in smu_v13_0_0_set_default_dpm_table()
705 pcie_table->clk_freq[pcie_table->num_of_link_levels] = in smu_v13_0_0_set_default_dpm_table()
707 pcie_table->num_of_link_levels++; in smu_v13_0_0_set_default_dpm_table()
1165 struct smu_13_0_pcie_table *pcie_table; in smu_v13_0_0_print_clk_levels() local
1266 pcie_table = &(dpm_context->dpm_tables.pcie_table); in smu_v13_0_0_print_clk_levels()
1267 for (i = 0; i < pcie_table->num_of_link_levels; i++) in smu_v13_0_0_print_clk_levels()
[all …]
H A Dsmu_v13_0.c2429 struct smu_13_0_pcie_table *pcie_table = in smu_v13_0_update_pcie_parameters() local
2430 &dpm_context->dpm_tables.pcie_table; in smu_v13_0_update_pcie_parameters()
2431 int num_of_levels = pcie_table->num_of_link_levels; in smu_v13_0_update_pcie_parameters()
2439 if (pcie_table->pcie_gen[num_of_levels - 1] < pcie_gen_cap) in smu_v13_0_update_pcie_parameters()
2440 pcie_gen_cap = pcie_table->pcie_gen[num_of_levels - 1]; in smu_v13_0_update_pcie_parameters()
2442 if (pcie_table->pcie_lane[num_of_levels - 1] < pcie_width_cap) in smu_v13_0_update_pcie_parameters()
2443 pcie_width_cap = pcie_table->pcie_lane[num_of_levels - 1]; in smu_v13_0_update_pcie_parameters()
2447 pcie_table->pcie_gen[i] = pcie_gen_cap; in smu_v13_0_update_pcie_parameters()
2448 pcie_table->pcie_lane[i] = pcie_width_cap; in smu_v13_0_update_pcie_parameters()
2452 if (pcie_table->pcie_gen[i] > pcie_gen_cap) in smu_v13_0_update_pcie_parameters()
[all …]
H A Daldebaran_ppt.h67 struct aldebaran_pcie_table pcie_table; member
/openbmc/linux/drivers/gpu/drm/amd/pm/powerplay/hwmgr/
H A Dprocess_pptables_v1_0.c482 phm_ppt_v1_pcie_table *pcie_table; in get_pcie_table() local
494 pcie_table = kzalloc(struct_size(pcie_table, entries, in get_pcie_table()
497 if (!pcie_table) in get_pcie_table()
510 pcie_table->count = pcie_count; in get_pcie_table()
514 entries, pcie_table, i); in get_pcie_table()
522 *pp_tonga_pcie_table = pcie_table; in get_pcie_table()
531 pcie_table = kzalloc(struct_size(pcie_table, entries, in get_pcie_table()
534 if (!pcie_table) in get_pcie_table()
547 pcie_table->count = pcie_count; in get_pcie_table()
552 entries, pcie_table, i); in get_pcie_table()
[all …]
H A Dvega10_processpptables.c787 struct phm_ppt_v1_pcie_table *pcie_table; in get_pcie_table() local
797 pcie_table = kzalloc(struct_size(pcie_table, entries, atom_pcie_table->ucNumEntries), in get_pcie_table()
799 if (!pcie_table) in get_pcie_table()
810 pcie_table->count = pcie_count; in get_pcie_table()
813 pcie_table->entries[i].gen_speed = in get_pcie_table()
815 pcie_table->entries[i].lane_width = in get_pcie_table()
817 pcie_table->entries[i].pcie_sclk = in get_pcie_table()
821 *vega10_pcie_table = pcie_table; in get_pcie_table()
907 const Vega10_PPTable_Generic_SubTable_Header *pcie_table = in init_powerplay_extended_tables() local
984 &pp_table_info->pcie_table, in init_powerplay_extended_tables()
[all …]
H A Dvega10_hwmgr.c1261 struct vega10_pcie_table *pcie_table = &(data->dpm_table.pcie_table); in vega10_setup_default_pcie_table() local
1265 table_info->pcie_table; in vega10_setup_default_pcie_table()
1274 pcie_table->pcie_gen[i] = in vega10_setup_default_pcie_table()
1277 pcie_table->pcie_gen[i] = in vega10_setup_default_pcie_table()
1281 pcie_table->pcie_lane[i] = (uint8_t)encode_pcie_lane_width( in vega10_setup_default_pcie_table()
1284 pcie_table->pcie_lane[i] = (uint8_t)encode_pcie_lane_width( in vega10_setup_default_pcie_table()
1287 pcie_table->lclk[i] = in vega10_setup_default_pcie_table()
1290 pcie_table->lclk[i] = in vega10_setup_default_pcie_table()
1294 pcie_table->count = NUM_LINK_LEVELS; in vega10_setup_default_pcie_table()
1571 struct vega10_pcie_table *pcie_table = in vega10_populate_smc_link_levels() local
[all …]
H A Dsmu7_hwmgr.c640 struct phm_ppt_v1_pcie_table *pcie_table = NULL; in smu7_setup_default_pcie_table() local
650 pcie_table = table_info->pcie_table; in smu7_setup_default_pcie_table()
666 if (pcie_table != NULL) { in smu7_setup_default_pcie_table()
671 max_entry = (tmp < pcie_table->count) ? tmp : pcie_table->count; in smu7_setup_default_pcie_table()
675 pcie_table->entries[i].gen_speed), in smu7_setup_default_pcie_table()
677 pcie_table->entries[i].lane_width)); in smu7_setup_default_pcie_table()
4965 struct smu7_single_dpm_table *pcie_table = &(data->dpm_table.pcie_speed_table); in smu7_print_clock_levels() local
5005 for (i = 0; i < pcie_table->count; i++) { in smu7_print_clock_levels()
5006 if (pcie_speed != pcie_table->dpm_levels[i].value) in smu7_print_clock_levels()
5012 for (i = 0; i < pcie_table->count; i++) in smu7_print_clock_levels()
[all …]
H A Dvega12_hwmgr.h135 struct vega12_pcie_table pcie_table; member
H A Dvega10_hwmgr.h157 struct vega10_pcie_table pcie_table; member
H A Dvega20_hwmgr.h189 struct vega20_pcie_table pcie_table; member
/openbmc/linux/drivers/gpu/drm/amd/pm/swsmu/smu11/
H A Dnavi10_ppt.c1347 (dpm_context->dpm_tables.pcie_table.pcie_gen[i] == 0) ? "2.5GT/s," : in navi10_emit_clk_levels()
1348 (dpm_context->dpm_tables.pcie_table.pcie_gen[i] == 1) ? "5.0GT/s," : in navi10_emit_clk_levels()
1349 (dpm_context->dpm_tables.pcie_table.pcie_gen[i] == 2) ? "8.0GT/s," : in navi10_emit_clk_levels()
1350 (dpm_context->dpm_tables.pcie_table.pcie_gen[i] == 3) ? "16.0GT/s," : "", in navi10_emit_clk_levels()
1351 (dpm_context->dpm_tables.pcie_table.pcie_lane[i] == 1) ? "x1" : in navi10_emit_clk_levels()
1352 (dpm_context->dpm_tables.pcie_table.pcie_lane[i] == 2) ? "x2" : in navi10_emit_clk_levels()
1353 (dpm_context->dpm_tables.pcie_table.pcie_lane[i] == 3) ? "x4" : in navi10_emit_clk_levels()
1354 (dpm_context->dpm_tables.pcie_table.pcie_lane[i] == 4) ? "x8" : in navi10_emit_clk_levels()
1355 (dpm_context->dpm_tables.pcie_table.pcie_lane[i] == 5) ? "x12" : in navi10_emit_clk_levels()
1356 (dpm_context->dpm_tables.pcie_table.pcie_lane[i] == 6) ? "x16" : "", in navi10_emit_clk_levels()
[all …]
H A Darcturus_ppt.h67 struct arcturus_pcie_table pcie_table; member
H A Dsienna_cichlid_ppt.c1342 (dpm_context->dpm_tables.pcie_table.pcie_gen[i] == 0) ? "2.5GT/s," : in sienna_cichlid_print_clk_levels()
1343 (dpm_context->dpm_tables.pcie_table.pcie_gen[i] == 1) ? "5.0GT/s," : in sienna_cichlid_print_clk_levels()
1344 (dpm_context->dpm_tables.pcie_table.pcie_gen[i] == 2) ? "8.0GT/s," : in sienna_cichlid_print_clk_levels()
1345 (dpm_context->dpm_tables.pcie_table.pcie_gen[i] == 3) ? "16.0GT/s," : "", in sienna_cichlid_print_clk_levels()
1346 (dpm_context->dpm_tables.pcie_table.pcie_lane[i] == 1) ? "x1" : in sienna_cichlid_print_clk_levels()
1347 (dpm_context->dpm_tables.pcie_table.pcie_lane[i] == 2) ? "x2" : in sienna_cichlid_print_clk_levels()
1348 (dpm_context->dpm_tables.pcie_table.pcie_lane[i] == 3) ? "x4" : in sienna_cichlid_print_clk_levels()
1349 (dpm_context->dpm_tables.pcie_table.pcie_lane[i] == 4) ? "x8" : in sienna_cichlid_print_clk_levels()
1350 (dpm_context->dpm_tables.pcie_table.pcie_lane[i] == 5) ? "x12" : in sienna_cichlid_print_clk_levels()
1351 (dpm_context->dpm_tables.pcie_table.pcie_lane[i] == 6) ? "x16" : "", in sienna_cichlid_print_clk_levels()
[all …]
/openbmc/linux/drivers/gpu/drm/amd/pm/powerplay/smumgr/
H A Dvegam_smumgr.c401 struct phm_ppt_v1_pcie_table *pcie_table = table_info->pcie_table; in vegam_update_bif_smc_table() local
404 max_entry = (SMU75_MAX_LEVELS_LINK < pcie_table->count) ? in vegam_update_bif_smc_table()
406 pcie_table->count; in vegam_update_bif_smc_table()
409 smu_data->bif_sclk_table[i] = pcie_table->entries[i].pcie_sclk; in vegam_update_bif_smc_table()
871 struct phm_ppt_v1_pcie_table *pcie_table = table_info->pcie_table; in vegam_populate_all_graphic_levels() local
917 if (pcie_table != NULL) { in vegam_populate_all_graphic_levels()
H A Dpolaris10_smumgr.c1043 struct phm_ppt_v1_pcie_table *pcie_table = table_info->pcie_table; in polaris10_populate_all_graphic_levels() local
1106 if (pcie_table != NULL) { in polaris10_populate_all_graphic_levels()
2352 struct phm_ppt_v1_pcie_table *pcie_table = table_info->pcie_table; in polaris10_update_bif_smc_table() local
2355 max_entry = (SMU74_MAX_LEVELS_LINK < pcie_table->count) ? in polaris10_update_bif_smc_table()
2357 pcie_table->count; in polaris10_update_bif_smc_table()
2360 smu_data->bif_sclk_table[i] = pcie_table->entries[i].pcie_sclk; in polaris10_update_bif_smc_table()
H A Dfiji_smumgr.c1007 struct phm_ppt_v1_pcie_table *pcie_table = table_info->pcie_table; in fiji_populate_all_graphic_levels() local
1046 if (pcie_table != NULL) { in fiji_populate_all_graphic_levels()
H A Dtonga_smumgr.c692 struct phm_ppt_v1_pcie_table *pcie_table = pptable_info->pcie_table; in tonga_populate_all_graphic_levels() local
735 if (pcie_table != NULL) { in tonga_populate_all_graphic_levels()
/openbmc/linux/drivers/gpu/drm/amd/pm/swsmu/inc/
H A Dsmu_v13_0.h103 struct smu_13_0_pcie_table pcie_table; member
H A Dsmu_v11_0.h115 struct smu_11_0_pcie_table pcie_table; member
/openbmc/linux/drivers/gpu/drm/radeon/
H A Dci_dpm.c3684 struct ci_single_dpm_table *pcie_table = &pi->dpm_table.pcie_speed_table; in ci_trim_pcie_dpm_states() local
3687 for (i = 0; i < pcie_table->count; i++) { in ci_trim_pcie_dpm_states()
3688 if ((pcie_table->dpm_levels[i].value < speed_low) || in ci_trim_pcie_dpm_states()
3689 (pcie_table->dpm_levels[i].param1 < lanes_low) || in ci_trim_pcie_dpm_states()
3690 (pcie_table->dpm_levels[i].value > speed_high) || in ci_trim_pcie_dpm_states()
3691 (pcie_table->dpm_levels[i].param1 > lanes_high)) in ci_trim_pcie_dpm_states()
3692 pcie_table->dpm_levels[i].enabled = false; in ci_trim_pcie_dpm_states()
3694 pcie_table->dpm_levels[i].enabled = true; in ci_trim_pcie_dpm_states()
3697 for (i = 0; i < pcie_table->count; i++) { in ci_trim_pcie_dpm_states()
3698 if (pcie_table->dpm_levels[i].enabled) { in ci_trim_pcie_dpm_states()
[all …]
/openbmc/linux/drivers/gpu/drm/amd/pm/powerplay/inc/
H A Dhwmgr.h552 struct phm_ppt_v1_pcie_table *pcie_table; member
591 struct phm_ppt_v1_pcie_table *pcie_table; member