/linux-6.1.9/drivers/gpu/drm/amd/pm/powerplay/hwmgr/ |
D | vega12_hwmgr.c | 602 struct vega12_single_dpm_table *dpm_table, PPCLK_e clk_id) in vega12_setup_single_dpm_table() argument 612 dpm_table->count = num_of_levels; in vega12_setup_single_dpm_table() 619 dpm_table->dpm_levels[i].value = clk; in vega12_setup_single_dpm_table() 620 dpm_table->dpm_levels[i].enabled = true; in vega12_setup_single_dpm_table() 639 struct vega12_single_dpm_table *dpm_table; in vega12_setup_default_dpm_tables() local 642 memset(&data->dpm_table, 0, sizeof(data->dpm_table)); in vega12_setup_default_dpm_tables() 645 dpm_table = &(data->dpm_table.soc_table); in vega12_setup_default_dpm_tables() 647 ret = vega12_setup_single_dpm_table(hwmgr, dpm_table, PPCLK_SOCCLK); in vega12_setup_default_dpm_tables() 652 dpm_table->count = 1; in vega12_setup_default_dpm_tables() 653 dpm_table->dpm_levels[0].value = data->vbios_boot_state.soc_clock / 100; in vega12_setup_default_dpm_tables() [all …]
|
D | vega20_hwmgr.c | 559 struct vega20_single_dpm_table *dpm_table, PPCLK_e clk_id) in vega20_setup_single_dpm_table() argument 569 dpm_table->count = num_of_levels; in vega20_setup_single_dpm_table() 576 dpm_table->dpm_levels[i].value = clk; in vega20_setup_single_dpm_table() 577 dpm_table->dpm_levels[i].enabled = true; in vega20_setup_single_dpm_table() 587 struct vega20_single_dpm_table *dpm_table; in vega20_setup_gfxclk_dpm_table() local 590 dpm_table = &(data->dpm_table.gfx_table); in vega20_setup_gfxclk_dpm_table() 592 ret = vega20_setup_single_dpm_table(hwmgr, dpm_table, PPCLK_GFXCLK); in vega20_setup_gfxclk_dpm_table() 597 dpm_table->count = 1; in vega20_setup_gfxclk_dpm_table() 598 dpm_table->dpm_levels[0].value = data->vbios_boot_state.gfx_clock / 100; in vega20_setup_gfxclk_dpm_table() 608 struct vega20_single_dpm_table *dpm_table; in vega20_setup_memclk_dpm_table() local [all …]
|
D | vega10_hwmgr.c | 1231 struct vega10_single_dpm_table *dpm_table, in vega10_setup_default_single_dpm_table() argument 1236 dpm_table->count = 0; in vega10_setup_default_single_dpm_table() 1239 if (i == 0 || dpm_table->dpm_levels[dpm_table->count - 1].value <= in vega10_setup_default_single_dpm_table() 1241 dpm_table->dpm_levels[dpm_table->count].value = in vega10_setup_default_single_dpm_table() 1243 dpm_table->dpm_levels[dpm_table->count].enabled = true; in vega10_setup_default_single_dpm_table() 1244 dpm_table->count++; in vega10_setup_default_single_dpm_table() 1251 struct vega10_pcie_table *pcie_table = &(data->dpm_table.pcie_table); in vega10_setup_default_pcie_table() 1302 struct vega10_single_dpm_table *dpm_table; in vega10_setup_default_dpm_tables() local 1344 dpm_table = &(data->dpm_table.soc_table); in vega10_setup_default_dpm_tables() 1346 dpm_table, in vega10_setup_default_dpm_tables() [all …]
|
D | smu7_hwmgr.c | 663 phm_reset_single_dpm_table(&data->dpm_table.pcie_speed_table, in smu7_setup_default_pcie_table() 674 phm_setup_pcie_table_entry(&data->dpm_table.pcie_speed_table, i - 1, in smu7_setup_default_pcie_table() 680 data->dpm_table.pcie_speed_table.count = max_entry - 1; in smu7_setup_default_pcie_table() 684 phm_setup_pcie_table_entry(&data->dpm_table.pcie_speed_table, 0, in smu7_setup_default_pcie_table() 689 phm_setup_pcie_table_entry(&data->dpm_table.pcie_speed_table, 1, in smu7_setup_default_pcie_table() 694 phm_setup_pcie_table_entry(&data->dpm_table.pcie_speed_table, 2, in smu7_setup_default_pcie_table() 699 phm_setup_pcie_table_entry(&data->dpm_table.pcie_speed_table, 3, in smu7_setup_default_pcie_table() 704 phm_setup_pcie_table_entry(&data->dpm_table.pcie_speed_table, 4, in smu7_setup_default_pcie_table() 709 phm_setup_pcie_table_entry(&data->dpm_table.pcie_speed_table, 5, in smu7_setup_default_pcie_table() 715 data->dpm_table.pcie_speed_table.count = 6; in smu7_setup_default_pcie_table() [all …]
|
D | smu_helper.c | 351 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 …]
|
D | smu7_hwmgr.h | 214 struct smu7_dpm_table dpm_table; member
|
D | vega10_hwmgr.h | 311 struct vega10_dpm_table dpm_table; member
|
D | vega12_hwmgr.h | 314 struct vega12_dpm_table dpm_table; member
|
D | vega20_hwmgr.h | 437 struct vega20_dpm_table dpm_table; member
|
/linux-6.1.9/drivers/gpu/drm/amd/pm/swsmu/smu13/ |
D | smu_v13_0_0_ppt.c | 519 struct smu_13_0_dpm_table *dpm_table; in smu_v13_0_0_set_default_dpm_table() local 525 dpm_table = &dpm_context->dpm_tables.soc_table; in smu_v13_0_0_set_default_dpm_table() 529 dpm_table); in smu_v13_0_0_set_default_dpm_table() 533 dpm_table->count = 1; in smu_v13_0_0_set_default_dpm_table() 534 dpm_table->dpm_levels[0].value = smu->smu_table.boot_values.socclk / 100; in smu_v13_0_0_set_default_dpm_table() 535 dpm_table->dpm_levels[0].enabled = true; in smu_v13_0_0_set_default_dpm_table() 536 dpm_table->min = dpm_table->dpm_levels[0].value; in smu_v13_0_0_set_default_dpm_table() 537 dpm_table->max = dpm_table->dpm_levels[0].value; in smu_v13_0_0_set_default_dpm_table() 541 dpm_table = &dpm_context->dpm_tables.gfx_table; in smu_v13_0_0_set_default_dpm_table() 545 dpm_table); in smu_v13_0_0_set_default_dpm_table() [all …]
|
D | smu_v13_0_7_ppt.c | 548 struct smu_13_0_dpm_table *dpm_table; in smu_v13_0_7_set_default_dpm_table() local 554 dpm_table = &dpm_context->dpm_tables.soc_table; in smu_v13_0_7_set_default_dpm_table() 558 dpm_table); in smu_v13_0_7_set_default_dpm_table() 562 dpm_table->count = 1; in smu_v13_0_7_set_default_dpm_table() 563 dpm_table->dpm_levels[0].value = smu->smu_table.boot_values.socclk / 100; in smu_v13_0_7_set_default_dpm_table() 564 dpm_table->dpm_levels[0].enabled = true; in smu_v13_0_7_set_default_dpm_table() 565 dpm_table->min = dpm_table->dpm_levels[0].value; in smu_v13_0_7_set_default_dpm_table() 566 dpm_table->max = dpm_table->dpm_levels[0].value; in smu_v13_0_7_set_default_dpm_table() 570 dpm_table = &dpm_context->dpm_tables.gfx_table; in smu_v13_0_7_set_default_dpm_table() 574 dpm_table); in smu_v13_0_7_set_default_dpm_table() [all …]
|
D | aldebaran_ppt.c | 310 struct smu_13_0_dpm_table *dpm_table = NULL; in aldebaran_set_default_dpm_table() local 315 dpm_table = &dpm_context->dpm_tables.soc_table; in aldebaran_set_default_dpm_table() 319 dpm_table); in aldebaran_set_default_dpm_table() 323 dpm_table->count = 1; in aldebaran_set_default_dpm_table() 324 dpm_table->dpm_levels[0].value = smu->smu_table.boot_values.socclk / 100; in aldebaran_set_default_dpm_table() 325 dpm_table->dpm_levels[0].enabled = true; in aldebaran_set_default_dpm_table() 326 dpm_table->min = dpm_table->dpm_levels[0].value; in aldebaran_set_default_dpm_table() 327 dpm_table->max = dpm_table->dpm_levels[0].value; in aldebaran_set_default_dpm_table() 331 dpm_table = &dpm_context->dpm_tables.gfx_table; in aldebaran_set_default_dpm_table() 334 dpm_table->count = 2; in aldebaran_set_default_dpm_table() [all …]
|
/linux-6.1.9/drivers/gpu/drm/amd/pm/swsmu/smu11/ |
D | navi10_ppt.c | 966 struct smu_11_0_dpm_table *dpm_table; in navi10_set_default_dpm_table() local 970 dpm_table = &dpm_context->dpm_tables.soc_table; in navi10_set_default_dpm_table() 974 dpm_table); in navi10_set_default_dpm_table() 977 dpm_table->is_fine_grained = in navi10_set_default_dpm_table() 980 dpm_table->count = 1; in navi10_set_default_dpm_table() 981 dpm_table->dpm_levels[0].value = smu->smu_table.boot_values.socclk / 100; in navi10_set_default_dpm_table() 982 dpm_table->dpm_levels[0].enabled = true; in navi10_set_default_dpm_table() 983 dpm_table->min = dpm_table->dpm_levels[0].value; in navi10_set_default_dpm_table() 984 dpm_table->max = dpm_table->dpm_levels[0].value; in navi10_set_default_dpm_table() 988 dpm_table = &dpm_context->dpm_tables.gfx_table; in navi10_set_default_dpm_table() [all …]
|
D | sienna_cichlid_ppt.c | 927 struct smu_11_0_dpm_table *dpm_table; in sienna_cichlid_set_default_dpm_table() local 933 dpm_table = &dpm_context->dpm_tables.soc_table; in sienna_cichlid_set_default_dpm_table() 938 dpm_table); in sienna_cichlid_set_default_dpm_table() 941 dpm_table->is_fine_grained = in sienna_cichlid_set_default_dpm_table() 944 dpm_table->count = 1; in sienna_cichlid_set_default_dpm_table() 945 dpm_table->dpm_levels[0].value = smu->smu_table.boot_values.socclk / 100; in sienna_cichlid_set_default_dpm_table() 946 dpm_table->dpm_levels[0].enabled = true; in sienna_cichlid_set_default_dpm_table() 947 dpm_table->min = dpm_table->dpm_levels[0].value; in sienna_cichlid_set_default_dpm_table() 948 dpm_table->max = dpm_table->dpm_levels[0].value; in sienna_cichlid_set_default_dpm_table() 952 dpm_table = &dpm_context->dpm_tables.gfx_table; in sienna_cichlid_set_default_dpm_table() [all …]
|
D | arcturus_ppt.c | 331 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-6.1.9/drivers/gpu/drm/amd/pm/powerplay/smumgr/ |
D | fiji_smumgr.c | 490 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 …]
|
D | iceland_smumgr.c | 767 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 …]
|
D | ci_smumgr.c | 477 struct smu7_dpm_table *dpm_table = &data->dpm_table; in ci_populate_all_graphic_levels() local 487 for (i = 0; i < dpm_table->sclk_table.count; i++) { in ci_populate_all_graphic_levels() 489 dpm_table->sclk_table.dpm_levels[i].value, in ci_populate_all_graphic_levels() 495 if (i == (dpm_table->sclk_table.count - 1)) in ci_populate_all_graphic_levels() 502 smu_data->smc_state_table.GraphicsDpmLevelCount = (u8)dpm_table->sclk_table.count; in ci_populate_all_graphic_levels() 504 phm_get_dpm_level_enable_mask_value(&dpm_table->sclk_table); in ci_populate_all_graphic_levels() 721 SMU7_Discrete_DpmTable *dpm_table = &(smu_data->smc_state_table); in ci_populate_bapm_parameters_in_dpm_table() local 727 dpm_table->DefaultTdp = PP_HOST_TO_SMC_US((uint16_t)(cac_dtp_table->usTDP * 256)); in ci_populate_bapm_parameters_in_dpm_table() 728 dpm_table->TargetTdp = PP_HOST_TO_SMC_US((uint16_t)(cac_dtp_table->usConfigurableTDP * 256)); in ci_populate_bapm_parameters_in_dpm_table() 730 dpm_table->DTETjOffset = 0; in ci_populate_bapm_parameters_in_dpm_table() [all …]
|
D | vegam_smumgr.c | 575 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 …]
|
D | tonga_smumgr.c | 510 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 …]
|
D | polaris10_smumgr.c | 820 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-6.1.9/drivers/gpu/drm/radeon/ |
D | ci_dpm.c | 410 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 …]
|
D | ci_dpm.h | 195 struct ci_dpm_table dpm_table; member
|