Home
last modified time | relevance | path

Searched refs:cac_dtp_table (Results 1 – 12 of 12) sorted by relevance

/linux-6.1.9/drivers/gpu/drm/amd/pm/powerplay/smumgr/
Dfiji_smumgr.c474 table_info->cac_dtp_table->usPowerTuneDataSetID <= POWERTUNE_DEFAULT_SET_MAX && in fiji_initialize_power_tune_defaults()
475 table_info->cac_dtp_table->usPowerTuneDataSetID) in fiji_initialize_power_tune_defaults()
478 [table_info->cac_dtp_table->usPowerTuneDataSetID - 1]; in fiji_initialize_power_tune_defaults()
494 struct phm_cac_tdp_table *cac_dtp_table = table_info->cac_dtp_table; in fiji_populate_bapm_parameters_in_dpm_table() local
503 (uint16_t)(cac_dtp_table->usTDP * 128)); in fiji_populate_bapm_parameters_in_dpm_table()
505 (uint16_t)(cac_dtp_table->usTDP * 128)); in fiji_populate_bapm_parameters_in_dpm_table()
507 PP_ASSERT_WITH_CODE(cac_dtp_table->usTargetOperatingTemp <= 255, 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()
518 cac_dtp_table->usTargetOperatingTemp * 256); in fiji_populate_bapm_parameters_in_dpm_table()
520 cac_dtp_table->usTemperatureLimitHotspot * 256); in fiji_populate_bapm_parameters_in_dpm_table()
[all …]
Dvegam_smumgr.c439 table_info->cac_dtp_table->usPowerTuneDataSetID <= POWERTUNE_DEFAULT_SET_MAX && in vegam_initialize_power_tune_defaults()
440 table_info->cac_dtp_table->usPowerTuneDataSetID) in vegam_initialize_power_tune_defaults()
443 [table_info->cac_dtp_table->usPowerTuneDataSetID - 1]; in vegam_initialize_power_tune_defaults()
1447 struct phm_cac_tdp_table *cac_dtp_table = table_info->cac_dtp_table; in vegam_populate_bapm_parameters_in_dpm_table() local
1454 table->DefaultTdp = PP_HOST_TO_SMC_US((uint16_t)(cac_dtp_table->usTDP * 128)); in vegam_populate_bapm_parameters_in_dpm_table()
1455 table->TargetTdp = PP_HOST_TO_SMC_US((uint16_t)(cac_dtp_table->usTDP * 128)); in vegam_populate_bapm_parameters_in_dpm_table()
1457 PP_ASSERT_WITH_CODE(cac_dtp_table->usTargetOperatingTemp <= 255, in vegam_populate_bapm_parameters_in_dpm_table()
1462 cac_dtp_table->usTargetOperatingTemp * 256); in vegam_populate_bapm_parameters_in_dpm_table()
1464 cac_dtp_table->usTemperatureLimitHotspot * 256); in vegam_populate_bapm_parameters_in_dpm_table()
1499 stretch_amount = (uint8_t)table_info->cac_dtp_table->usClockStretchAmount; in vegam_populate_clock_stretcher_data_table()
[all …]
Dpolaris10_smumgr.c435 struct phm_cac_tdp_table *cac_dtp_table = table_info->cac_dtp_table; in polaris10_populate_bapm_parameters_in_dpm_table() local
442 table->DefaultTdp = PP_HOST_TO_SMC_US((uint16_t)(cac_dtp_table->usTDP * 128)); in polaris10_populate_bapm_parameters_in_dpm_table()
443 table->TargetTdp = PP_HOST_TO_SMC_US((uint16_t)(cac_dtp_table->usTDP * 128)); in polaris10_populate_bapm_parameters_in_dpm_table()
445 PP_ASSERT_WITH_CODE(cac_dtp_table->usTargetOperatingTemp <= 255, in polaris10_populate_bapm_parameters_in_dpm_table()
450 cac_dtp_table->usTargetOperatingTemp * 256); in polaris10_populate_bapm_parameters_in_dpm_table()
452 cac_dtp_table->usTemperatureLimitHotspot * 256); in polaris10_populate_bapm_parameters_in_dpm_table()
511 tdc_limit = (uint16_t)(table_info->cac_dtp_table->usTDC * 128); in polaris10_populate_tdc_limit()
591 struct phm_cac_tdp_table *cac_table = table_info->cac_dtp_table; in polaris10_populate_bapm_vddc_base_leakage_sidd()
1661 stretch_amount = (uint8_t)table_info->cac_dtp_table->usClockStretchAmount; in polaris10_populate_clock_stretcher_data_table()
1693 …a->smc_state_table.LdoRefSel = (table_info->cac_dtp_table->ucCKS_LDO_REFSEL != 0) ? table_info->ca… in polaris10_populate_clock_stretcher_data_table()
[all …]
Dtonga_smumgr.c1589 stretch_amount = (uint8_t)table_info->cac_dtp_table->usClockStretchAmount; in tonga_populate_clock_stretcher_data_table()
1834 struct phm_cac_tdp_table *cac_dtp_table = table_info->cac_dtp_table; in tonga_populate_bapm_parameters_in_dpm_table() local
1839 (uint16_t)(cac_dtp_table->usTDP * 256)); in tonga_populate_bapm_parameters_in_dpm_table()
1841 (uint16_t)(cac_dtp_table->usConfigurableTDP * 256)); in tonga_populate_bapm_parameters_in_dpm_table()
1843 PP_ASSERT_WITH_CODE(cac_dtp_table->usTargetOperatingTemp <= 255, in tonga_populate_bapm_parameters_in_dpm_table()
1847 dpm_table->GpuTjMax = (uint8_t)(cac_dtp_table->usTargetOperatingTemp); in tonga_populate_bapm_parameters_in_dpm_table()
1899 tdc_limit = (uint16_t)(table_info->cac_dtp_table->usTDC * 256); in tonga_populate_tdc_limit()
1981 struct phm_cac_tdp_table *cac_table = table_info->cac_dtp_table; in tonga_populate_bapm_vddc_base_leakage_sidd()
2211 table_info->cac_dtp_table->usPowerTuneDataSetID <= POWERTUNE_DEFAULT_SET_MAX && in tonga_initialize_power_tune_defaults()
2212 table_info->cac_dtp_table->usPowerTuneDataSetID) in tonga_initialize_power_tune_defaults()
[all …]
Diceland_smumgr.c325 tdc_limit = (uint16_t)(hwmgr->dyn_state.cac_dtp_table->usTDC * 256); in iceland_populate_tdc_limit()
376 struct phm_cac_tdp_table *cac_table = hwmgr->dyn_state.cac_dtp_table; in iceland_populate_bapm_vddc_base_leakage_sidd()
1855 struct phm_cac_tdp_table *cac_dtp_table = hwmgr->dyn_state.cac_dtp_table; in iceland_populate_bapm_parameters_in_dpm_table() local
1866 dpm_table->DefaultTdp = PP_HOST_TO_SMC_US((uint16_t)(cac_dtp_table->usTDP * 256)); in iceland_populate_bapm_parameters_in_dpm_table()
1867 dpm_table->TargetTdp = PP_HOST_TO_SMC_US((uint16_t)(cac_dtp_table->usConfigurableTDP * 256)); in iceland_populate_bapm_parameters_in_dpm_table()
Dci_smumgr.c533 tdc_limit = (uint16_t)(hwmgr->dyn_state.cac_dtp_table->usTDC * 256); in ci_populate_tdc_limit()
661 struct phm_cac_tdp_table *cac_table = hwmgr->dyn_state.cac_dtp_table; in ci_populate_bapm_vddc_base_leakage_sidd()
722 struct phm_cac_tdp_table *cac_dtp_table = hwmgr->dyn_state.cac_dtp_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()
/linux-6.1.9/drivers/gpu/drm/amd/pm/powerplay/hwmgr/
Dprocess_pptables_v1_0.c582 hwmgr->dyn_state.cac_dtp_table = kzalloc(table_size, GFP_KERNEL); in get_cac_tdp_table()
584 if (NULL == hwmgr->dyn_state.cac_dtp_table) { in get_cac_tdp_table()
830 &pp_table_information->cac_dtp_table, pPowerTuneTable); in init_clock_voltage_dependency()
1216 kfree(pp_table_information->cac_dtp_table); in pp_tables_v1_0_uninitialize()
1217 pp_table_information->cac_dtp_table = NULL; in pp_tables_v1_0_uninitialize()
1219 kfree(hwmgr->dyn_state.cac_dtp_table); in pp_tables_v1_0_uninitialize()
1220 hwmgr->dyn_state.cac_dtp_table = NULL; in pp_tables_v1_0_uninitialize()
Dsmu7_hwmgr.c1888 && (table_info->cac_dtp_table->usClockStretchAmount != 0)) in smu7_init_dpm_defaults()
2520 if (table_info->cac_dtp_table->usDefaultTargetOperatingTemp != 0 && in smu7_thermal_parameter_init()
2537 …table_info->cac_dtp_table->usDefaultTargetOperatingTemp = (table_info->cac_dtp_table->usDefaultTar… in smu7_thermal_parameter_init()
2538 (table_info->cac_dtp_table->usDefaultTargetOperatingTemp - 50) : 0; in smu7_thermal_parameter_init()
2540 …table_info->cac_dtp_table->usOperatingTempMaxLimit = table_info->cac_dtp_table->usDefaultTargetOpe… in smu7_thermal_parameter_init()
2541 table_info->cac_dtp_table->usOperatingTempStep = 1; in smu7_thermal_parameter_init()
2542 table_info->cac_dtp_table->usOperatingTempHyst = 1; in smu7_thermal_parameter_init()
2550 hwmgr->dyn_state.cac_dtp_table->usOperatingTempMinLimit = in smu7_thermal_parameter_init()
2551 table_info->cac_dtp_table->usOperatingTempMinLimit; in smu7_thermal_parameter_init()
2553 hwmgr->dyn_state.cac_dtp_table->usOperatingTempMaxLimit = in smu7_thermal_parameter_init()
[all …]
Dprocesspptables.c1396 result = get_cac_tdp_table(hwmgr, &hwmgr->dyn_state.cac_dtp_table, in init_clock_voltage_dependency()
1399 hwmgr->dyn_state.cac_dtp_table->usDefaultTargetOperatingTemp = in init_clock_voltage_dependency()
1406 &hwmgr->dyn_state.cac_dtp_table, in init_clock_voltage_dependency()
1790 kfree(hwmgr->dyn_state.cac_dtp_table); in pp_tables_uninitialize()
1791 hwmgr->dyn_state.cac_dtp_table = NULL; in pp_tables_uninitialize()
Dvega10_processpptables.c1229 kfree(pp_table_info->cac_dtp_table); in vega10_pp_tables_uninitialize()
1230 pp_table_info->cac_dtp_table = NULL; in vega10_pp_tables_uninitialize()
1232 kfree(hwmgr->dyn_state.cac_dtp_table); in vega10_pp_tables_uninitialize()
1233 hwmgr->dyn_state.cac_dtp_table = NULL; in vega10_pp_tables_uninitialize()
Dsmu7_powertune.c1161 cac_table = table_info->cac_dtp_table; in smu7_enable_power_containment()
1163 cac_table = hwmgr->dyn_state.cac_dtp_table; in smu7_enable_power_containment()
1251 cac_table = table_info->cac_dtp_table; in smu7_power_control_set_level()
1253 cac_table = hwmgr->dyn_state.cac_dtp_table; in smu7_power_control_set_level()
/linux-6.1.9/drivers/gpu/drm/amd/pm/powerplay/inc/
Dhwmgr.h547 struct phm_cac_tdp_table *cac_dtp_table; member
584 struct phm_cac_tdp_table *cac_dtp_table; member
659 struct phm_cac_tdp_table *cac_dtp_table; member