/linux/drivers/gpu/drm/amd/pm/swsmu/smu12/ |
A D | renoir_ppt.c | 194 uint32_t dpm_level, uint32_t *freq) in renoir_get_dpm_clk_limited() argument 203 if (dpm_level >= NUM_SOCCLK_DPM_LEVELS) in renoir_get_dpm_clk_limited() 209 if (dpm_level >= NUM_FCLK_DPM_LEVELS) in renoir_get_dpm_clk_limited() 211 *freq = clk_table->FClocks[dpm_level].Freq; in renoir_get_dpm_clk_limited() 214 if (dpm_level >= NUM_DCFCLK_DPM_LEVELS) in renoir_get_dpm_clk_limited() 219 if (dpm_level >= NUM_FCLK_DPM_LEVELS) in renoir_get_dpm_clk_limited() 221 *freq = clk_table->FClocks[dpm_level].Freq; in renoir_get_dpm_clk_limited() 224 if (dpm_level >= NUM_VCN_DPM_LEVELS) in renoir_get_dpm_clk_limited() 226 *freq = clk_table->VClocks[dpm_level].Freq; in renoir_get_dpm_clk_limited() 229 if (dpm_level >= NUM_VCN_DPM_LEVELS) in renoir_get_dpm_clk_limited() [all …]
|
/linux/drivers/gpu/drm/amd/pm/swsmu/smu13/ |
A D | yellow_carp_ppt.c | 743 uint32_t dpm_level, in yellow_carp_get_dpm_freq_by_index() argument 753 if (dpm_level >= clk_table->NumSocClkLevelsEnabled) in yellow_carp_get_dpm_freq_by_index() 755 *freq = clk_table->SocClocks[dpm_level]; in yellow_carp_get_dpm_freq_by_index() 758 if (dpm_level >= clk_table->VcnClkLevelsEnabled) in yellow_carp_get_dpm_freq_by_index() 760 *freq = clk_table->VClocks[dpm_level]; in yellow_carp_get_dpm_freq_by_index() 763 if (dpm_level >= clk_table->VcnClkLevelsEnabled) in yellow_carp_get_dpm_freq_by_index() 765 *freq = clk_table->DClocks[dpm_level]; in yellow_carp_get_dpm_freq_by_index() 769 if (dpm_level >= clk_table->NumDfPstatesEnabled) in yellow_carp_get_dpm_freq_by_index() 771 *freq = clk_table->DfPstateTable[dpm_level].MemClk; in yellow_carp_get_dpm_freq_by_index() 774 if (dpm_level >= clk_table->NumDfPstatesEnabled) in yellow_carp_get_dpm_freq_by_index() [all …]
|
A D | aldebaran_ppt.c | 1276 if ((smu_dpm->dpm_level == AMD_DPM_FORCED_LEVEL_PERF_DETERMINISM) && in aldebaran_set_performance_level() 1316 if ((smu_dpm->dpm_level != AMD_DPM_FORCED_LEVEL_MANUAL) in aldebaran_set_soft_freq_limited_range() 1317 && (smu_dpm->dpm_level != AMD_DPM_FORCED_LEVEL_PERF_DETERMINISM)) in aldebaran_set_soft_freq_limited_range() 1320 if (smu_dpm->dpm_level == AMD_DPM_FORCED_LEVEL_MANUAL) { in aldebaran_set_soft_freq_limited_range() 1341 if (smu_dpm->dpm_level == AMD_DPM_FORCED_LEVEL_PERF_DETERMINISM) { in aldebaran_set_soft_freq_limited_range() 1382 if ((smu_dpm->dpm_level != AMD_DPM_FORCED_LEVEL_MANUAL) in aldebaran_usr_edit_dpm_table() 1383 && (smu_dpm->dpm_level != AMD_DPM_FORCED_LEVEL_PERF_DETERMINISM)) in aldebaran_usr_edit_dpm_table()
|
/linux/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn30/ |
A D | dcn30_clk_mgr_smu_msg.c | 249 …t dcn30_smu_get_dpm_freq_by_index(struct clk_mgr_internal *clk_mgr, PPCLK_e clk, uint8_t dpm_level) in dcn30_smu_get_dpm_freq_by_index() argument 254 uint32_t param = (clk << 16) | dpm_level; in dcn30_smu_get_dpm_freq_by_index() 256 smu_print("SMU Get dpm freq by index: clk = %d, dpm_level = %d\n", clk, dpm_level); in dcn30_smu_get_dpm_freq_by_index()
|
A D | dcn30_clk_mgr_smu_msg.h | 102 … dcn30_smu_get_dpm_freq_by_index(struct clk_mgr_internal *clk_mgr, PPCLK_e clk, uint8_t dpm_level);
|
/linux/drivers/gpu/drm/amd/pm/swsmu/smu11/ |
A D | vangogh_ppt.c | 534 uint32_t dpm_level, uint32_t *freq) in vangogh_get_dpm_clk_limited() argument 543 if (dpm_level >= clk_table->NumSocClkLevelsEnabled) in vangogh_get_dpm_clk_limited() 545 *freq = clk_table->SocClocks[dpm_level]; in vangogh_get_dpm_clk_limited() 548 if (dpm_level >= clk_table->VcnClkLevelsEnabled) in vangogh_get_dpm_clk_limited() 550 *freq = clk_table->VcnClocks[dpm_level].vclk; in vangogh_get_dpm_clk_limited() 553 if (dpm_level >= clk_table->VcnClkLevelsEnabled) in vangogh_get_dpm_clk_limited() 555 *freq = clk_table->VcnClocks[dpm_level].dclk; in vangogh_get_dpm_clk_limited() 559 if (dpm_level >= clk_table->NumDfPstatesEnabled) in vangogh_get_dpm_clk_limited() 561 *freq = clk_table->DfPstateTable[dpm_level].memclk; in vangogh_get_dpm_clk_limited() 565 if (dpm_level >= clk_table->NumDfPstatesEnabled) in vangogh_get_dpm_clk_limited() [all …]
|
/linux/drivers/gpu/drm/amd/pm/powerplay/hwmgr/ |
A D | smu_helper.c | 356 dpm_table->dpm_level[i].enabled = false; in phm_reset_single_dpm_table() 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() 380 if (dpm_table->dpm_level[i - 1].enabled) in phm_get_dpm_level_enable_mask_value() 451 if (value == dpm_table->dpm_level[i].value) { in phm_find_boot_level()
|
A D | pp_psm.c | 290 hwmgr->dpm_level = hwmgr->request_dpm_level; in psm_adjust_power_state_dynamic() 292 if (hwmgr->dpm_level != AMD_DPM_FORCED_LEVEL_MANUAL) { in psm_adjust_power_state_dynamic()
|
A D | vega12_hwmgr.c | 2353 if (hwmgr->dpm_level == AMD_DPM_FORCED_LEVEL_PROFILE_MIN_SCLK) { in vega12_apply_clocks_adjust_rules() 2358 if (hwmgr->dpm_level == AMD_DPM_FORCED_LEVEL_PROFILE_PEAK) { in vega12_apply_clocks_adjust_rules() 2377 if (hwmgr->dpm_level == AMD_DPM_FORCED_LEVEL_PROFILE_MIN_MCLK) { in vega12_apply_clocks_adjust_rules() 2382 if (hwmgr->dpm_level == AMD_DPM_FORCED_LEVEL_PROFILE_PEAK) { in vega12_apply_clocks_adjust_rules() 2421 if (hwmgr->dpm_level == AMD_DPM_FORCED_LEVEL_PROFILE_PEAK) { in vega12_apply_clocks_adjust_rules() 2440 if (hwmgr->dpm_level == AMD_DPM_FORCED_LEVEL_PROFILE_PEAK) { in vega12_apply_clocks_adjust_rules() 2459 if (hwmgr->dpm_level == AMD_DPM_FORCED_LEVEL_PROFILE_PEAK) { in vega12_apply_clocks_adjust_rules() 2478 if (hwmgr->dpm_level == AMD_DPM_FORCED_LEVEL_PROFILE_PEAK) { in vega12_apply_clocks_adjust_rules()
|
A D | ppatomctrl.h | 322 uint32_t sclk, uint16_t virtual_voltage_Id, uint16_t *voltage, uint16_t dpm_level, bool debug);
|
A D | vega20_hwmgr.c | 3753 if (hwmgr->dpm_level == AMD_DPM_FORCED_LEVEL_PROFILE_MIN_SCLK) { in vega20_apply_clocks_adjust_rules() 3758 if (hwmgr->dpm_level == AMD_DPM_FORCED_LEVEL_PROFILE_PEAK) { in vega20_apply_clocks_adjust_rules() 3777 if (hwmgr->dpm_level == AMD_DPM_FORCED_LEVEL_PROFILE_MIN_MCLK) { in vega20_apply_clocks_adjust_rules() 3782 if (hwmgr->dpm_level == AMD_DPM_FORCED_LEVEL_PROFILE_PEAK) { in vega20_apply_clocks_adjust_rules() 3837 if (hwmgr->dpm_level == AMD_DPM_FORCED_LEVEL_PROFILE_PEAK) { in vega20_apply_clocks_adjust_rules() 3856 if (hwmgr->dpm_level == AMD_DPM_FORCED_LEVEL_PROFILE_PEAK) { in vega20_apply_clocks_adjust_rules() 3875 if (hwmgr->dpm_level == AMD_DPM_FORCED_LEVEL_PROFILE_PEAK) { in vega20_apply_clocks_adjust_rules() 3894 if (hwmgr->dpm_level == AMD_DPM_FORCED_LEVEL_PROFILE_PEAK) { in vega20_apply_clocks_adjust_rules()
|
A D | hwmgr.c | 87 hwmgr->dpm_level = AMD_DPM_FORCED_LEVEL_AUTO; in hwmgr_early_init()
|
A D | ppatomctrl.c | 685 uint16_t dpm_level, in atomctrl_calculate_voltage_evv_on_sclk() argument 734 switch (dpm_level) { in atomctrl_calculate_voltage_evv_on_sclk()
|
A D | vega10_hwmgr.c | 4317 …if (level == AMD_DPM_FORCED_LEVEL_PROFILE_PEAK && hwmgr->dpm_level != AMD_DPM_FORCED_LEVEL_PROFILE… in vega10_dpm_force_dpm_level() 4319 …else if (level != AMD_DPM_FORCED_LEVEL_PROFILE_PEAK && hwmgr->dpm_level == AMD_DPM_FORCED_LEVEL_PR… in vega10_dpm_force_dpm_level() 4650 (hwmgr->dpm_level == AMD_DPM_FORCED_LEVEL_PROFILE_PEAK)) in vega10_print_clock_levels()
|
A D | smu7_hwmgr.c | 3229 …if (level == AMD_DPM_FORCED_LEVEL_PROFILE_PEAK && hwmgr->dpm_level != AMD_DPM_FORCED_LEVEL_PROFILE… in smu7_force_dpm_level() 3231 …else if (level != AMD_DPM_FORCED_LEVEL_PROFILE_PEAK && hwmgr->dpm_level == AMD_DPM_FORCED_LEVEL_PR… in smu7_force_dpm_level()
|
/linux/drivers/gpu/drm/amd/pm/swsmu/ |
A D | amdgpu_smu.c | 386 if (smu_dpm_ctx->dpm_level == AMD_DPM_FORCED_LEVEL_MANUAL) { in smu_restore_dpm_user_profile() 736 smu->smu_dpm.dpm_level, in smu_late_init() 1069 smu->smu_dpm.dpm_level = AMD_DPM_FORCED_LEVEL_AUTO; in smu_sw_init() 1673 if (!(smu_dpm_ctx->dpm_level & profile_mode_mask)) { in smu_enable_umd_pstate() 1676 smu_dpm_ctx->saved_dpm_level = smu_dpm_ctx->dpm_level; in smu_enable_umd_pstate() 1754 if (smu_dpm_ctx->dpm_level != level) { in smu_adjust_power_state_dynamic() 1762 smu_dpm_ctx->dpm_level = level; in smu_adjust_power_state_dynamic() 1765 if (smu_dpm_ctx->dpm_level != AMD_DPM_FORCED_LEVEL_MANUAL && in smu_adjust_power_state_dynamic() 1853 if (smu_dpm_ctx->dpm_level != AMD_DPM_FORCED_LEVEL_MANUAL && in smu_switch_power_profile() 1875 level = smu_dpm_ctx->dpm_level; in smu_get_performance_level() [all …]
|
/linux/drivers/gpu/drm/amd/pm/powerplay/ |
A D | amd_powerplay.c | 320 if (!(hwmgr->dpm_level & profile_mode_mask)) { in pp_dpm_en_umd_pstate() 323 hwmgr->saved_dpm_level = hwmgr->dpm_level; in pp_dpm_en_umd_pstate() 356 if (level == hwmgr->dpm_level) in pp_dpm_force_performance_level() 378 level = hwmgr->dpm_level; in pp_dpm_get_performance_level() 729 if (hwmgr->dpm_level != AMD_DPM_FORCED_LEVEL_MANUAL) { in pp_dpm_force_clock_level() 899 if (hwmgr->dpm_level != AMD_DPM_FORCED_LEVEL_MANUAL) { in pp_set_power_profile_mode() 994 if (hwmgr->dpm_level != AMD_DPM_FORCED_LEVEL_MANUAL) in pp_dpm_switch_power_profile()
|
/linux/drivers/gpu/drm/amd/pm/inc/ |
A D | hwmgr.h | 63 struct vi_dpm_level dpm_level[]; member 768 enum amd_dpm_forced_level dpm_level; member
|
A D | amdgpu_smu.h | 370 enum amd_dpm_forced_level dpm_level; member
|
/linux/drivers/gpu/drm/amd/pm/powerplay/smumgr/ |
A D | ci_smumgr.c | 2882 if (hwmgr->dpm_level & profile_mode_mask || !PP_CAP(PHM_PlatformCaps_UVDDPM)) in ci_update_uvd_smc_table() 2914 if (hwmgr->dpm_level & profile_mode_mask || !PP_CAP(PHM_PlatformCaps_VCEDPM)) in ci_update_vce_smc_table()
|