Home
last modified time | relevance | path

Searched refs:dpm_table (Results 1 – 24 of 24) sorted by relevance

/Linux-v6.6/drivers/gpu/drm/amd/pm/powerplay/hwmgr/
Dvega12_hwmgr.c601 struct vega12_single_dpm_table *dpm_table, PPCLK_e clk_id) in vega12_setup_single_dpm_table() argument
611 dpm_table->count = num_of_levels; in vega12_setup_single_dpm_table()
618 dpm_table->dpm_levels[i].value = clk; in vega12_setup_single_dpm_table()
619 dpm_table->dpm_levels[i].enabled = true; in vega12_setup_single_dpm_table()
638 struct vega12_single_dpm_table *dpm_table; in vega12_setup_default_dpm_tables() local
641 memset(&data->dpm_table, 0, sizeof(data->dpm_table)); in vega12_setup_default_dpm_tables()
644 dpm_table = &(data->dpm_table.soc_table); in vega12_setup_default_dpm_tables()
646 ret = vega12_setup_single_dpm_table(hwmgr, dpm_table, PPCLK_SOCCLK); in vega12_setup_default_dpm_tables()
651 dpm_table->count = 1; in vega12_setup_default_dpm_tables()
652 dpm_table->dpm_levels[0].value = data->vbios_boot_state.soc_clock / 100; in vega12_setup_default_dpm_tables()
[all …]
Dvega20_hwmgr.c558 struct vega20_single_dpm_table *dpm_table, PPCLK_e clk_id) in vega20_setup_single_dpm_table() argument
568 dpm_table->count = num_of_levels; in vega20_setup_single_dpm_table()
575 dpm_table->dpm_levels[i].value = clk; in vega20_setup_single_dpm_table()
576 dpm_table->dpm_levels[i].enabled = true; in vega20_setup_single_dpm_table()
586 struct vega20_single_dpm_table *dpm_table; in vega20_setup_gfxclk_dpm_table() local
589 dpm_table = &(data->dpm_table.gfx_table); in vega20_setup_gfxclk_dpm_table()
591 ret = vega20_setup_single_dpm_table(hwmgr, dpm_table, PPCLK_GFXCLK); in vega20_setup_gfxclk_dpm_table()
596 dpm_table->count = 1; in vega20_setup_gfxclk_dpm_table()
597 dpm_table->dpm_levels[0].value = data->vbios_boot_state.gfx_clock / 100; in vega20_setup_gfxclk_dpm_table()
607 struct vega20_single_dpm_table *dpm_table; in vega20_setup_memclk_dpm_table() local
[all …]
Dvega10_hwmgr.c1230 struct vega10_single_dpm_table *dpm_table, in vega10_setup_default_single_dpm_table() argument
1235 dpm_table->count = 0; in vega10_setup_default_single_dpm_table()
1238 if (i == 0 || dpm_table->dpm_levels[dpm_table->count - 1].value <= in vega10_setup_default_single_dpm_table()
1240 dpm_table->dpm_levels[dpm_table->count].value = in vega10_setup_default_single_dpm_table()
1242 dpm_table->dpm_levels[dpm_table->count].enabled = true; in vega10_setup_default_single_dpm_table()
1243 dpm_table->count++; in vega10_setup_default_single_dpm_table()
1250 struct vega10_pcie_table *pcie_table = &(data->dpm_table.pcie_table); in vega10_setup_default_pcie_table()
1301 struct vega10_single_dpm_table *dpm_table; in vega10_setup_default_dpm_tables() local
1343 dpm_table = &(data->dpm_table.soc_table); in vega10_setup_default_dpm_tables()
1345 dpm_table, in vega10_setup_default_dpm_tables()
[all …]
Dsmu7_hwmgr.c662 phm_reset_single_dpm_table(&data->dpm_table.pcie_speed_table, in smu7_setup_default_pcie_table()
673 phm_setup_pcie_table_entry(&data->dpm_table.pcie_speed_table, i - 1, in smu7_setup_default_pcie_table()
679 data->dpm_table.pcie_speed_table.count = max_entry - 1; in smu7_setup_default_pcie_table()
683 phm_setup_pcie_table_entry(&data->dpm_table.pcie_speed_table, 0, in smu7_setup_default_pcie_table()
688 phm_setup_pcie_table_entry(&data->dpm_table.pcie_speed_table, 1, in smu7_setup_default_pcie_table()
693 phm_setup_pcie_table_entry(&data->dpm_table.pcie_speed_table, 2, in smu7_setup_default_pcie_table()
698 phm_setup_pcie_table_entry(&data->dpm_table.pcie_speed_table, 3, in smu7_setup_default_pcie_table()
703 phm_setup_pcie_table_entry(&data->dpm_table.pcie_speed_table, 4, in smu7_setup_default_pcie_table()
708 phm_setup_pcie_table_entry(&data->dpm_table.pcie_speed_table, 5, in smu7_setup_default_pcie_table()
714 data->dpm_table.pcie_speed_table.count = 6; in smu7_setup_default_pcie_table()
[all …]
Dsmu_helper.c351 struct vi_dpm_table *dpm_table = (struct vi_dpm_table *)table; in phm_reset_single_dpm_table() local
353 dpm_table->count = count > max ? max : count; in phm_reset_single_dpm_table()
355 for (i = 0; i < dpm_table->count; i++) in phm_reset_single_dpm_table()
356 dpm_table->dpm_level[i].enabled = false; in phm_reset_single_dpm_table()
366 struct vi_dpm_table *dpm_table = (struct vi_dpm_table *)table; in phm_setup_pcie_table_entry() local
367 dpm_table->dpm_level[index].value = pcie_gen; in phm_setup_pcie_table_entry()
368 dpm_table->dpm_level[index].param1 = pcie_lanes; in phm_setup_pcie_table_entry()
369 dpm_table->dpm_level[index].enabled = 1; in phm_setup_pcie_table_entry()
376 struct vi_dpm_table *dpm_table = (struct vi_dpm_table *)table; in phm_get_dpm_level_enable_mask_value() local
378 for (i = dpm_table->count; i > 0; i--) { in phm_get_dpm_level_enable_mask_value()
[all …]
Dsmu7_hwmgr.h214 struct smu7_dpm_table dpm_table; member
Dvega10_hwmgr.h311 struct vega10_dpm_table dpm_table; member
Dvega12_hwmgr.h313 struct vega12_dpm_table dpm_table; member
Dvega20_hwmgr.h435 struct vega20_dpm_table dpm_table; member
/Linux-v6.6/drivers/gpu/drm/amd/pm/swsmu/smu13/
Dsmu_v13_0_7_ppt.c572 struct smu_13_0_dpm_table *dpm_table; in smu_v13_0_7_set_default_dpm_table() local
578 dpm_table = &dpm_context->dpm_tables.soc_table; in smu_v13_0_7_set_default_dpm_table()
582 dpm_table); in smu_v13_0_7_set_default_dpm_table()
586 dpm_table->count = 1; in smu_v13_0_7_set_default_dpm_table()
587 dpm_table->dpm_levels[0].value = smu->smu_table.boot_values.socclk / 100; in smu_v13_0_7_set_default_dpm_table()
588 dpm_table->dpm_levels[0].enabled = true; in smu_v13_0_7_set_default_dpm_table()
589 dpm_table->min = dpm_table->dpm_levels[0].value; in smu_v13_0_7_set_default_dpm_table()
590 dpm_table->max = dpm_table->dpm_levels[0].value; in smu_v13_0_7_set_default_dpm_table()
594 dpm_table = &dpm_context->dpm_tables.gfx_table; in smu_v13_0_7_set_default_dpm_table()
598 dpm_table); in smu_v13_0_7_set_default_dpm_table()
[all …]
Dsmu_v13_0_0_ppt.c574 struct smu_13_0_dpm_table *dpm_table; in smu_v13_0_0_set_default_dpm_table() local
580 dpm_table = &dpm_context->dpm_tables.soc_table; in smu_v13_0_0_set_default_dpm_table()
584 dpm_table); in smu_v13_0_0_set_default_dpm_table()
588 dpm_table->count = 1; in smu_v13_0_0_set_default_dpm_table()
589 dpm_table->dpm_levels[0].value = smu->smu_table.boot_values.socclk / 100; in smu_v13_0_0_set_default_dpm_table()
590 dpm_table->dpm_levels[0].enabled = true; in smu_v13_0_0_set_default_dpm_table()
591 dpm_table->min = dpm_table->dpm_levels[0].value; in smu_v13_0_0_set_default_dpm_table()
592 dpm_table->max = dpm_table->dpm_levels[0].value; in smu_v13_0_0_set_default_dpm_table()
596 dpm_table = &dpm_context->dpm_tables.gfx_table; in smu_v13_0_0_set_default_dpm_table()
600 dpm_table); in smu_v13_0_0_set_default_dpm_table()
[all …]
Daldebaran_ppt.c309 struct smu_13_0_dpm_table *dpm_table = NULL; in aldebaran_set_default_dpm_table() local
314 dpm_table = &dpm_context->dpm_tables.soc_table; in aldebaran_set_default_dpm_table()
318 dpm_table); in aldebaran_set_default_dpm_table()
322 dpm_table->count = 1; in aldebaran_set_default_dpm_table()
323 dpm_table->dpm_levels[0].value = smu->smu_table.boot_values.socclk / 100; in aldebaran_set_default_dpm_table()
324 dpm_table->dpm_levels[0].enabled = true; in aldebaran_set_default_dpm_table()
325 dpm_table->min = dpm_table->dpm_levels[0].value; in aldebaran_set_default_dpm_table()
326 dpm_table->max = dpm_table->dpm_levels[0].value; in aldebaran_set_default_dpm_table()
330 dpm_table = &dpm_context->dpm_tables.gfx_table; in aldebaran_set_default_dpm_table()
333 dpm_table->count = 2; in aldebaran_set_default_dpm_table()
[all …]
Dsmu_v13_0_6_ppt.c214 struct smu_13_0_dpm_table *dpm_table; member
487 struct smu_13_0_dpm_table *dpm_table = NULL; in smu_v13_0_6_set_default_dpm_table() local
513 dpm_table = &dpm_context->dpm_tables.gfx_table; in smu_v13_0_6_set_default_dpm_table()
523 dpm_table->count = 2; in smu_v13_0_6_set_default_dpm_table()
524 dpm_table->dpm_levels[0].value = gfxclkmin; in smu_v13_0_6_set_default_dpm_table()
525 dpm_table->dpm_levels[0].enabled = true; in smu_v13_0_6_set_default_dpm_table()
526 dpm_table->dpm_levels[1].value = gfxclkmax; in smu_v13_0_6_set_default_dpm_table()
527 dpm_table->dpm_levels[1].enabled = true; in smu_v13_0_6_set_default_dpm_table()
528 dpm_table->min = dpm_table->dpm_levels[0].value; in smu_v13_0_6_set_default_dpm_table()
529 dpm_table->max = dpm_table->dpm_levels[1].value; in smu_v13_0_6_set_default_dpm_table()
[all …]
/Linux-v6.6/drivers/gpu/drm/amd/pm/swsmu/smu11/
Dnavi10_ppt.c973 struct smu_11_0_dpm_table *dpm_table; in navi10_set_default_dpm_table() local
977 dpm_table = &dpm_context->dpm_tables.soc_table; in navi10_set_default_dpm_table()
981 dpm_table); in navi10_set_default_dpm_table()
984 dpm_table->is_fine_grained = in navi10_set_default_dpm_table()
987 dpm_table->count = 1; in navi10_set_default_dpm_table()
988 dpm_table->dpm_levels[0].value = smu->smu_table.boot_values.socclk / 100; in navi10_set_default_dpm_table()
989 dpm_table->dpm_levels[0].enabled = true; in navi10_set_default_dpm_table()
990 dpm_table->min = dpm_table->dpm_levels[0].value; in navi10_set_default_dpm_table()
991 dpm_table->max = dpm_table->dpm_levels[0].value; in navi10_set_default_dpm_table()
995 dpm_table = &dpm_context->dpm_tables.gfx_table; in navi10_set_default_dpm_table()
[all …]
Dsienna_cichlid_ppt.c937 struct smu_11_0_dpm_table *dpm_table; in sienna_cichlid_set_default_dpm_table() local
943 dpm_table = &dpm_context->dpm_tables.soc_table; in sienna_cichlid_set_default_dpm_table()
948 dpm_table); in sienna_cichlid_set_default_dpm_table()
951 dpm_table->is_fine_grained = in sienna_cichlid_set_default_dpm_table()
954 dpm_table->count = 1; in sienna_cichlid_set_default_dpm_table()
955 dpm_table->dpm_levels[0].value = smu->smu_table.boot_values.socclk / 100; in sienna_cichlid_set_default_dpm_table()
956 dpm_table->dpm_levels[0].enabled = true; in sienna_cichlid_set_default_dpm_table()
957 dpm_table->min = dpm_table->dpm_levels[0].value; in sienna_cichlid_set_default_dpm_table()
958 dpm_table->max = dpm_table->dpm_levels[0].value; in sienna_cichlid_set_default_dpm_table()
962 dpm_table = &dpm_context->dpm_tables.gfx_table; in sienna_cichlid_set_default_dpm_table()
[all …]
Darcturus_ppt.c331 struct smu_11_0_dpm_table *dpm_table = NULL; in arcturus_set_default_dpm_table() local
335 dpm_table = &dpm_context->dpm_tables.soc_table; in arcturus_set_default_dpm_table()
339 dpm_table); in arcturus_set_default_dpm_table()
342 dpm_table->is_fine_grained = in arcturus_set_default_dpm_table()
345 dpm_table->count = 1; in arcturus_set_default_dpm_table()
346 dpm_table->dpm_levels[0].value = smu->smu_table.boot_values.socclk / 100; in arcturus_set_default_dpm_table()
347 dpm_table->dpm_levels[0].enabled = true; in arcturus_set_default_dpm_table()
348 dpm_table->min = dpm_table->dpm_levels[0].value; in arcturus_set_default_dpm_table()
349 dpm_table->max = dpm_table->dpm_levels[0].value; in arcturus_set_default_dpm_table()
353 dpm_table = &dpm_context->dpm_tables.gfx_table; in arcturus_set_default_dpm_table()
[all …]
/Linux-v6.6/drivers/gpu/drm/amd/pm/powerplay/smumgr/
Dfiji_smumgr.c490 SMU73_Discrete_DpmTable *dpm_table = &(smu_data->smc_state_table); in fiji_populate_bapm_parameters_in_dpm_table() local
502 dpm_table->DefaultTdp = PP_HOST_TO_SMC_US( in fiji_populate_bapm_parameters_in_dpm_table()
504 dpm_table->TargetTdp = PP_HOST_TO_SMC_US( in fiji_populate_bapm_parameters_in_dpm_table()
511 dpm_table->GpuTjMax = (uint8_t)(cac_dtp_table->usTargetOperatingTemp); in fiji_populate_bapm_parameters_in_dpm_table()
512 dpm_table->GpuTjHyst = 8; in fiji_populate_bapm_parameters_in_dpm_table()
514 dpm_table->DTEAmbientTempBase = defaults->DTEAmbientTempBase; in fiji_populate_bapm_parameters_in_dpm_table()
517 dpm_table->TemperatureLimitEdge = PP_HOST_TO_SMC_US( in fiji_populate_bapm_parameters_in_dpm_table()
519 dpm_table->TemperatureLimitHotspot = PP_HOST_TO_SMC_US( in fiji_populate_bapm_parameters_in_dpm_table()
521 dpm_table->TemperatureLimitLiquid1 = PP_HOST_TO_SMC_US( in fiji_populate_bapm_parameters_in_dpm_table()
523 dpm_table->TemperatureLimitLiquid2 = PP_HOST_TO_SMC_US( in fiji_populate_bapm_parameters_in_dpm_table()
[all …]
Diceland_smumgr.c767 struct smu7_dpm_table *dpm_table = &data->dpm_table; in iceland_populate_smc_link_level() local
772 for (i = 0; i <= dpm_table->pcie_speed_table.count; i++) { in iceland_populate_smc_link_level()
774 (uint8_t)dpm_table->pcie_speed_table.dpm_levels[i].value; in iceland_populate_smc_link_level()
776 (uint8_t)encode_pcie_lane_width(dpm_table->pcie_speed_table.dpm_levels[i].param1); in iceland_populate_smc_link_level()
788 (uint8_t)dpm_table->pcie_speed_table.count; in iceland_populate_smc_link_level()
790 phm_get_dpm_level_enable_mask_value(&dpm_table->pcie_speed_table); in iceland_populate_smc_link_level()
963 struct smu7_dpm_table *dpm_table = &data->dpm_table; in iceland_populate_all_graphic_levels() local
980 for (i = 0; i < dpm_table->sclk_table.count; i++) { in iceland_populate_all_graphic_levels()
982 dpm_table->sclk_table.dpm_levels[i].value, in iceland_populate_all_graphic_levels()
996 if (dpm_table->sclk_table.count > 1) in iceland_populate_all_graphic_levels()
[all …]
Dci_smumgr.c476 struct smu7_dpm_table *dpm_table = &data->dpm_table; in ci_populate_all_graphic_levels() local
486 for (i = 0; i < dpm_table->sclk_table.count; i++) { in ci_populate_all_graphic_levels()
488 dpm_table->sclk_table.dpm_levels[i].value, in ci_populate_all_graphic_levels()
494 if (i == (dpm_table->sclk_table.count - 1)) in ci_populate_all_graphic_levels()
501 smu_data->smc_state_table.GraphicsDpmLevelCount = (u8)dpm_table->sclk_table.count; in ci_populate_all_graphic_levels()
503 phm_get_dpm_level_enable_mask_value(&dpm_table->sclk_table); in ci_populate_all_graphic_levels()
720 SMU7_Discrete_DpmTable *dpm_table = &(smu_data->smc_state_table); in ci_populate_bapm_parameters_in_dpm_table() local
726 dpm_table->DefaultTdp = PP_HOST_TO_SMC_US((uint16_t)(cac_dtp_table->usTDP * 256)); in ci_populate_bapm_parameters_in_dpm_table()
727 dpm_table->TargetTdp = PP_HOST_TO_SMC_US((uint16_t)(cac_dtp_table->usConfigurableTDP * 256)); in ci_populate_bapm_parameters_in_dpm_table()
729 dpm_table->DTETjOffset = 0; in ci_populate_bapm_parameters_in_dpm_table()
[all …]
Dvegam_smumgr.c574 struct smu7_dpm_table *dpm_table = &data->dpm_table; in vegam_populate_smc_link_level() local
579 for (i = 0; i <= dpm_table->pcie_speed_table.count; i++) { in vegam_populate_smc_link_level()
581 (uint8_t)dpm_table->pcie_speed_table.dpm_levels[i].value; in vegam_populate_smc_link_level()
583 dpm_table->pcie_speed_table.dpm_levels[i].param1); in vegam_populate_smc_link_level()
591 (uint8_t)dpm_table->pcie_speed_table.count; in vegam_populate_smc_link_level()
595 phm_get_dpm_level_enable_mask_value(&dpm_table->pcie_speed_table); in vegam_populate_smc_link_level()
868 struct smu7_dpm_table *dpm_table = &hw_data->dpm_table; in vegam_populate_all_graphic_levels() local
872 uint8_t pcie_entry_cnt = (uint8_t) hw_data->dpm_table.pcie_speed_table.count; in vegam_populate_all_graphic_levels()
888 for (i = 0; i < dpm_table->sclk_table.count; i++) { in vegam_populate_all_graphic_levels()
891 dpm_table->sclk_table.dpm_levels[i].value, in vegam_populate_all_graphic_levels()
[all …]
Dtonga_smumgr.c510 struct smu7_dpm_table *dpm_table = &data->dpm_table; in tonga_populate_smc_link_level() local
515 for (i = 0; i <= dpm_table->pcie_speed_table.count; i++) { in tonga_populate_smc_link_level()
517 (uint8_t)dpm_table->pcie_speed_table.dpm_levels[i].value; in tonga_populate_smc_link_level()
519 (uint8_t)encode_pcie_lane_width(dpm_table->pcie_speed_table.dpm_levels[i].param1); in tonga_populate_smc_link_level()
531 (uint8_t)dpm_table->pcie_speed_table.count; in tonga_populate_smc_link_level()
533 phm_get_dpm_level_enable_mask_value(&dpm_table->pcie_speed_table); in tonga_populate_smc_link_level()
691 struct smu7_dpm_table *dpm_table = &data->dpm_table; in tonga_populate_all_graphic_levels() local
693 uint8_t pcie_entry_count = (uint8_t) data->dpm_table.pcie_speed_table.count; in tonga_populate_all_graphic_levels()
710 for (i = 0; i < dpm_table->sclk_table.count; i++) { in tonga_populate_all_graphic_levels()
712 dpm_table->sclk_table.dpm_levels[i].value, in tonga_populate_all_graphic_levels()
[all …]
Dpolaris10_smumgr.c820 struct smu7_dpm_table *dpm_table = &data->dpm_table; in polaris10_populate_smc_link_level() local
825 for (i = 0; i <= dpm_table->pcie_speed_table.count; i++) { in polaris10_populate_smc_link_level()
827 (uint8_t)dpm_table->pcie_speed_table.dpm_levels[i].value; in polaris10_populate_smc_link_level()
829 dpm_table->pcie_speed_table.dpm_levels[i].param1); in polaris10_populate_smc_link_level()
837 (uint8_t)dpm_table->pcie_speed_table.count; in polaris10_populate_smc_link_level()
841 phm_get_dpm_level_enable_mask_value(&dpm_table->pcie_speed_table); in polaris10_populate_smc_link_level()
1040 struct smu7_dpm_table *dpm_table = &hw_data->dpm_table; in polaris10_populate_all_graphic_levels() local
1044 uint8_t pcie_entry_cnt = (uint8_t) hw_data->dpm_table.pcie_speed_table.count; in polaris10_populate_all_graphic_levels()
1067 for (i = 0; i < dpm_table->sclk_table.count; i++) { in polaris10_populate_all_graphic_levels()
1070 dpm_table->sclk_table.dpm_levels[i].value, in polaris10_populate_all_graphic_levels()
[all …]
/Linux-v6.6/drivers/gpu/drm/radeon/
Dci_dpm.c410 SMU7_Discrete_DpmTable *dpm_table = &pi->smc_state_table; in ci_populate_bapm_parameters_in_dpm_table() local
418 dpm_table->DefaultTdp = cac_tdp_table->tdp * 256; in ci_populate_bapm_parameters_in_dpm_table()
419 dpm_table->TargetTdp = cac_tdp_table->configurable_tdp * 256; in ci_populate_bapm_parameters_in_dpm_table()
421 dpm_table->DTETjOffset = (u8)pi->dte_tj_offset; in ci_populate_bapm_parameters_in_dpm_table()
422 dpm_table->GpuTjMax = in ci_populate_bapm_parameters_in_dpm_table()
424 dpm_table->GpuTjHyst = 8; in ci_populate_bapm_parameters_in_dpm_table()
426 dpm_table->DTEAmbientTempBase = pt_defaults->dte_ambient_temp_base; in ci_populate_bapm_parameters_in_dpm_table()
429 dpm_table->PPM_PkgPwrLimit = cpu_to_be16((u16)ppm->dgpu_tdp * 256 / 1000); in ci_populate_bapm_parameters_in_dpm_table()
430 dpm_table->PPM_TemperatureLimit = cpu_to_be16((u16)ppm->tj_max * 256); in ci_populate_bapm_parameters_in_dpm_table()
432 dpm_table->PPM_PkgPwrLimit = cpu_to_be16(0); in ci_populate_bapm_parameters_in_dpm_table()
[all …]
Dci_dpm.h195 struct ci_dpm_table dpm_table; member