Home
last modified time | relevance | path

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

/Linux-v5.10/drivers/gpu/drm/amd/pm/powerplay/hwmgr/
Dvega12_hwmgr.c517 struct vega12_single_dpm_table *dpm_table, PPCLK_e clk_id) in vega12_setup_single_dpm_table() argument
527 dpm_table->count = num_of_levels; in vega12_setup_single_dpm_table()
534 dpm_table->dpm_levels[i].value = clk; in vega12_setup_single_dpm_table()
535 dpm_table->dpm_levels[i].enabled = true; in vega12_setup_single_dpm_table()
554 struct vega12_single_dpm_table *dpm_table; in vega12_setup_default_dpm_tables() local
557 memset(&data->dpm_table, 0, sizeof(data->dpm_table)); in vega12_setup_default_dpm_tables()
560 dpm_table = &(data->dpm_table.soc_table); in vega12_setup_default_dpm_tables()
562 ret = vega12_setup_single_dpm_table(hwmgr, dpm_table, PPCLK_SOCCLK); in vega12_setup_default_dpm_tables()
567 dpm_table->count = 1; in vega12_setup_default_dpm_tables()
568 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.c555 phm_reset_single_dpm_table(&data->dpm_table.pcie_speed_table, in smu7_setup_default_pcie_table()
566 phm_setup_pcie_table_entry(&data->dpm_table.pcie_speed_table, i - 1, in smu7_setup_default_pcie_table()
572 data->dpm_table.pcie_speed_table.count = max_entry - 1; in smu7_setup_default_pcie_table()
576 phm_setup_pcie_table_entry(&data->dpm_table.pcie_speed_table, 0, in smu7_setup_default_pcie_table()
581 phm_setup_pcie_table_entry(&data->dpm_table.pcie_speed_table, 1, in smu7_setup_default_pcie_table()
586 phm_setup_pcie_table_entry(&data->dpm_table.pcie_speed_table, 2, in smu7_setup_default_pcie_table()
591 phm_setup_pcie_table_entry(&data->dpm_table.pcie_speed_table, 3, in smu7_setup_default_pcie_table()
596 phm_setup_pcie_table_entry(&data->dpm_table.pcie_speed_table, 4, in smu7_setup_default_pcie_table()
601 phm_setup_pcie_table_entry(&data->dpm_table.pcie_speed_table, 5, in smu7_setup_default_pcie_table()
607 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.h204 struct smu7_dpm_table dpm_table; member
Dvega12_hwmgr.h314 struct vega12_dpm_table dpm_table; member
Dvega10_hwmgr.h311 struct vega10_dpm_table dpm_table; member
Dvega20_hwmgr.h437 struct vega20_dpm_table dpm_table; member
/Linux-v5.10/drivers/gpu/drm/amd/pm/swsmu/smu11/
Dsienna_cichlid_ppt.c552 struct smu_11_0_dpm_table *dpm_table; in sienna_cichlid_set_default_dpm_table() local
557 dpm_table = &dpm_context->dpm_tables.soc_table; in sienna_cichlid_set_default_dpm_table()
561 dpm_table); in sienna_cichlid_set_default_dpm_table()
564 dpm_table->is_fine_grained = in sienna_cichlid_set_default_dpm_table()
567 dpm_table->count = 1; in sienna_cichlid_set_default_dpm_table()
568 dpm_table->dpm_levels[0].value = smu->smu_table.boot_values.socclk / 100; in sienna_cichlid_set_default_dpm_table()
569 dpm_table->dpm_levels[0].enabled = true; in sienna_cichlid_set_default_dpm_table()
570 dpm_table->min = dpm_table->dpm_levels[0].value; in sienna_cichlid_set_default_dpm_table()
571 dpm_table->max = dpm_table->dpm_levels[0].value; in sienna_cichlid_set_default_dpm_table()
575 dpm_table = &dpm_context->dpm_tables.gfx_table; in sienna_cichlid_set_default_dpm_table()
[all …]
Dnavi10_ppt.c636 struct smu_11_0_dpm_table *dpm_table; in navi10_set_default_dpm_table() local
640 dpm_table = &dpm_context->dpm_tables.soc_table; in navi10_set_default_dpm_table()
644 dpm_table); in navi10_set_default_dpm_table()
647 dpm_table->is_fine_grained = in navi10_set_default_dpm_table()
650 dpm_table->count = 1; in navi10_set_default_dpm_table()
651 dpm_table->dpm_levels[0].value = smu->smu_table.boot_values.socclk / 100; in navi10_set_default_dpm_table()
652 dpm_table->dpm_levels[0].enabled = true; in navi10_set_default_dpm_table()
653 dpm_table->min = dpm_table->dpm_levels[0].value; in navi10_set_default_dpm_table()
654 dpm_table->max = dpm_table->dpm_levels[0].value; in navi10_set_default_dpm_table()
658 dpm_table = &dpm_context->dpm_tables.gfx_table; in navi10_set_default_dpm_table()
[all …]
Darcturus_ppt.c304 struct smu_11_0_dpm_table *dpm_table = NULL; in arcturus_set_default_dpm_table() local
308 dpm_table = &dpm_context->dpm_tables.soc_table; in arcturus_set_default_dpm_table()
312 dpm_table); in arcturus_set_default_dpm_table()
315 dpm_table->is_fine_grained = in arcturus_set_default_dpm_table()
318 dpm_table->count = 1; in arcturus_set_default_dpm_table()
319 dpm_table->dpm_levels[0].value = smu->smu_table.boot_values.socclk / 100; in arcturus_set_default_dpm_table()
320 dpm_table->dpm_levels[0].enabled = true; in arcturus_set_default_dpm_table()
321 dpm_table->min = dpm_table->dpm_levels[0].value; in arcturus_set_default_dpm_table()
322 dpm_table->max = dpm_table->dpm_levels[0].value; in arcturus_set_default_dpm_table()
326 dpm_table = &dpm_context->dpm_tables.gfx_table; in arcturus_set_default_dpm_table()
[all …]
/Linux-v5.10/drivers/gpu/drm/amd/pm/powerplay/smumgr/
Dfiji_smumgr.c491 SMU73_Discrete_DpmTable *dpm_table = &(smu_data->smc_state_table); in fiji_populate_bapm_parameters_in_dpm_table() local
503 dpm_table->DefaultTdp = PP_HOST_TO_SMC_US( in fiji_populate_bapm_parameters_in_dpm_table()
505 dpm_table->TargetTdp = PP_HOST_TO_SMC_US( in fiji_populate_bapm_parameters_in_dpm_table()
512 dpm_table->GpuTjMax = (uint8_t)(cac_dtp_table->usTargetOperatingTemp); in fiji_populate_bapm_parameters_in_dpm_table()
513 dpm_table->GpuTjHyst = 8; in fiji_populate_bapm_parameters_in_dpm_table()
515 dpm_table->DTEAmbientTempBase = defaults->DTEAmbientTempBase; in fiji_populate_bapm_parameters_in_dpm_table()
518 dpm_table->TemperatureLimitEdge = PP_HOST_TO_SMC_US( in fiji_populate_bapm_parameters_in_dpm_table()
520 dpm_table->TemperatureLimitHotspot = PP_HOST_TO_SMC_US( in fiji_populate_bapm_parameters_in_dpm_table()
522 dpm_table->TemperatureLimitLiquid1 = PP_HOST_TO_SMC_US( in fiji_populate_bapm_parameters_in_dpm_table()
524 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.c475 struct smu7_dpm_table *dpm_table = &data->dpm_table; in ci_populate_all_graphic_levels() local
485 for (i = 0; i < dpm_table->sclk_table.count; i++) { in ci_populate_all_graphic_levels()
487 dpm_table->sclk_table.dpm_levels[i].value, in ci_populate_all_graphic_levels()
493 if (i == (dpm_table->sclk_table.count - 1)) in ci_populate_all_graphic_levels()
500 smu_data->smc_state_table.GraphicsDpmLevelCount = (u8)dpm_table->sclk_table.count; in ci_populate_all_graphic_levels()
502 phm_get_dpm_level_enable_mask_value(&dpm_table->sclk_table); in ci_populate_all_graphic_levels()
719 SMU7_Discrete_DpmTable *dpm_table = &(smu_data->smc_state_table); in ci_populate_bapm_parameters_in_dpm_table() local
725 dpm_table->DefaultTdp = PP_HOST_TO_SMC_US((uint16_t)(cac_dtp_table->usTDP * 256)); in ci_populate_bapm_parameters_in_dpm_table()
726 dpm_table->TargetTdp = PP_HOST_TO_SMC_US((uint16_t)(cac_dtp_table->usConfigurableTDP * 256)); in ci_populate_bapm_parameters_in_dpm_table()
728 dpm_table->DTETjOffset = 0; in ci_populate_bapm_parameters_in_dpm_table()
[all …]
Dvegam_smumgr.c575 struct smu7_dpm_table *dpm_table = &data->dpm_table; in vegam_populate_smc_link_level() local
580 for (i = 0; i <= dpm_table->pcie_speed_table.count; i++) { in vegam_populate_smc_link_level()
582 (uint8_t)dpm_table->pcie_speed_table.dpm_levels[i].value; in vegam_populate_smc_link_level()
584 dpm_table->pcie_speed_table.dpm_levels[i].param1); in vegam_populate_smc_link_level()
592 (uint8_t)dpm_table->pcie_speed_table.count; in vegam_populate_smc_link_level()
596 phm_get_dpm_level_enable_mask_value(&dpm_table->pcie_speed_table); in vegam_populate_smc_link_level()
869 struct smu7_dpm_table *dpm_table = &hw_data->dpm_table; in vegam_populate_all_graphic_levels() local
873 uint8_t pcie_entry_cnt = (uint8_t) hw_data->dpm_table.pcie_speed_table.count; in vegam_populate_all_graphic_levels()
889 for (i = 0; i < dpm_table->sclk_table.count; i++) { in vegam_populate_all_graphic_levels()
892 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.c772 struct smu7_dpm_table *dpm_table = &data->dpm_table; in polaris10_populate_smc_link_level() local
777 for (i = 0; i <= dpm_table->pcie_speed_table.count; i++) { in polaris10_populate_smc_link_level()
779 (uint8_t)dpm_table->pcie_speed_table.dpm_levels[i].value; in polaris10_populate_smc_link_level()
781 dpm_table->pcie_speed_table.dpm_levels[i].param1); in polaris10_populate_smc_link_level()
789 (uint8_t)dpm_table->pcie_speed_table.count; in polaris10_populate_smc_link_level()
793 phm_get_dpm_level_enable_mask_value(&dpm_table->pcie_speed_table); in polaris10_populate_smc_link_level()
982 struct smu7_dpm_table *dpm_table = &hw_data->dpm_table; in polaris10_populate_all_graphic_levels() local
986 uint8_t pcie_entry_cnt = (uint8_t) hw_data->dpm_table.pcie_speed_table.count; in polaris10_populate_all_graphic_levels()
1002 for (i = 0; i < dpm_table->sclk_table.count; i++) { in polaris10_populate_all_graphic_levels()
1005 dpm_table->sclk_table.dpm_levels[i].value, in polaris10_populate_all_graphic_levels()
[all …]
/Linux-v5.10/drivers/gpu/drm/radeon/
Dci_dpm.c420 SMU7_Discrete_DpmTable *dpm_table = &pi->smc_state_table; in ci_populate_bapm_parameters_in_dpm_table() local
428 dpm_table->DefaultTdp = cac_tdp_table->tdp * 256; in ci_populate_bapm_parameters_in_dpm_table()
429 dpm_table->TargetTdp = cac_tdp_table->configurable_tdp * 256; in ci_populate_bapm_parameters_in_dpm_table()
431 dpm_table->DTETjOffset = (u8)pi->dte_tj_offset; in ci_populate_bapm_parameters_in_dpm_table()
432 dpm_table->GpuTjMax = in ci_populate_bapm_parameters_in_dpm_table()
434 dpm_table->GpuTjHyst = 8; in ci_populate_bapm_parameters_in_dpm_table()
436 dpm_table->DTEAmbientTempBase = pt_defaults->dte_ambient_temp_base; in ci_populate_bapm_parameters_in_dpm_table()
439 dpm_table->PPM_PkgPwrLimit = cpu_to_be16((u16)ppm->dgpu_tdp * 256 / 1000); in ci_populate_bapm_parameters_in_dpm_table()
440 dpm_table->PPM_TemperatureLimit = cpu_to_be16((u16)ppm->tj_max * 256); in ci_populate_bapm_parameters_in_dpm_table()
442 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