/netbsd/sys/external/bsd/drm2/dist/drm/radeon/ |
H A D | radeon_rv740_dpm.c | 99 u32 rv740_get_dll_speed(bool is_gddr5, u32 memory_clock) in rv740_get_dll_speed() argument 110 data_rate = (u16)(memory_clock * factor / 1000); in rv740_get_dll_speed() 192 u32 engine_clock, u32 memory_clock, in rv740_populate_mclk_value() argument 210 memory_clock, false, ÷rs); in rv740_populate_mclk_value() 252 u32 vco_freq = memory_clock * dividers.post_div; in rv740_populate_mclk_value() 271 memory_clock); in rv740_populate_mclk_value() 276 mclk->mclk770.mclk_value = cpu_to_be32(memory_clock); in rv740_populate_mclk_value() 410 u8 rv740_get_mclk_frequency_ratio(u32 memory_clock) in rv740_get_mclk_frequency_ratio() argument 414 if ((memory_clock < 10000) || (memory_clock > 47500)) in rv740_get_mclk_frequency_ratio() 417 mc_para_index = (u8)((memory_clock - 10000) / 2500); in rv740_get_mclk_frequency_ratio()
|
H A D | rv770_dpm.h | 186 u32 engine_clock, u32 memory_clock, 207 u32 engine_clock, u32 memory_clock, 214 u8 rv740_get_mclk_frequency_ratio(u32 memory_clock); 215 u32 rv740_get_dll_speed(bool is_gddr5, u32 memory_clock);
|
H A D | radeon_cypress_dpm.c | 580 memory_clock); in cypress_populate_mclk_value() 617 u32 memory_clock, bool strobe_mode) in cypress_get_mclk_frequency_ratio() argument 623 if (memory_clock < 10000) in cypress_get_mclk_frequency_ratio() 625 else if (memory_clock > 47500) in cypress_get_mclk_frequency_ratio() 630 if (memory_clock < 65000) in cypress_get_mclk_frequency_ratio() 632 else if (memory_clock > 135000) in cypress_get_mclk_frequency_ratio() 639 if (memory_clock < 10000) in cypress_get_mclk_frequency_ratio() 641 else if (memory_clock > 47500) in cypress_get_mclk_frequency_ratio() 646 if (memory_clock < 40000) in cypress_get_mclk_frequency_ratio() 648 else if (memory_clock > 115000) in cypress_get_mclk_frequency_ratio() [all …]
|
H A D | cypress_dpm.h | 127 u32 engine_clock, u32 memory_clock); 159 u32 memory_clock, bool strobe_mode);
|
H A D | radeon_rv730_dpm.c | 124 u32 engine_clock, u32 memory_clock, in rv730_populate_mclk_value() argument 140 memory_clock, false, ÷rs); in rv730_populate_mclk_value() 172 u32 vco_freq = memory_clock * post_divider; in rv730_populate_mclk_value() 192 mclk->mclk730.mclk_value = cpu_to_be32(memory_clock); in rv730_populate_mclk_value()
|
H A D | radeon_ci_dpm.c | 2503 const u32 memory_clock, in ci_register_patching_mc_arb() argument 2515 if ((memory_clock > 100000) && (memory_clock <= 125000)) { in ci_register_patching_mc_arb() 2519 } else if ((memory_clock > 125000) && (memory_clock <= 137500)) { in ci_register_patching_mc_arb() 2795 u32 memory_clock, in ci_calculate_mclk_params() argument 2867 mclk->MclkFrequency = memory_clock; in ci_calculate_mclk_params() 2882 u32 memory_clock, in ci_populate_single_memory_level() argument 2892 memory_clock, &memory_level->MinVddc); in ci_populate_single_memory_level() 2900 memory_clock, &memory_level->MinVddci); in ci_populate_single_memory_level() 2908 memory_clock, &memory_level->MinMvdd); in ci_populate_single_memory_level() 2918 memory_clock, in ci_populate_single_memory_level() [all …]
|
H A D | radeon_rv770_dpm.c | 322 static void rv770_calculate_fractional_mpll_feedback_divider(u32 memory_clock, in rv770_calculate_fractional_mpll_feedback_divider() argument 333 fyclk = (memory_clock * 8) / 2; in rv770_calculate_fractional_mpll_feedback_divider() 335 fyclk = (memory_clock * 4) / 2; in rv770_calculate_fractional_mpll_feedback_divider() 391 u32 engine_clock, u32 memory_clock, in rv770_populate_mclk_value() argument 415 memory_clock, false, ÷rs); in rv770_populate_mclk_value() 422 rv770_calculate_fractional_mpll_feedback_divider(memory_clock, reference_clock, in rv770_populate_mclk_value() 449 rv770_calculate_fractional_mpll_feedback_divider(memory_clock, in rv770_populate_mclk_value() 477 mclk->mclk770.mclk_value = cpu_to_be32(memory_clock); in rv770_populate_mclk_value()
|
H A D | radeon_si_dpm.c | 3828 u8 si_get_ddr3_mclk_frequency_ratio(u32 memory_clock) in si_get_ddr3_mclk_frequency_ratio() argument 3832 if (memory_clock < 10000) in si_get_ddr3_mclk_frequency_ratio() 3834 else if (memory_clock >= 80000) in si_get_ddr3_mclk_frequency_ratio() 3846 if (memory_clock < 12500) in si_get_mclk_frequency_ratio() 3848 else if (memory_clock > 47500) in si_get_mclk_frequency_ratio() 3853 if (memory_clock < 65000) in si_get_mclk_frequency_ratio() 3855 else if (memory_clock > 135000) in si_get_mclk_frequency_ratio() 4878 u32 memory_clock, in si_populate_mclk_value() argument 4924 freq_nom = memory_clock * 4; in si_populate_mclk_value() 4926 freq_nom = memory_clock * 2; in si_populate_mclk_value() [all …]
|
H A D | radeon_ni_dpm.c | 2166 u32 memory_clock, in ni_populate_mclk_value() argument 2188 memory_clock, strobe_mode, ÷rs); in ni_populate_mclk_value() 2242 u32 vco_freq = memory_clock * dividers.post_div; in ni_populate_mclk_value() 2261 memory_clock); in ni_populate_mclk_value() 2285 mclk->mclk_value = cpu_to_be32(memory_clock); in ni_populate_mclk_value()
|
/netbsd/sys/external/bsd/drm2/dist/drm/amd/powerplay/smumgr/ |
H A D | amdgpu_iceland_smumgr.c | 1051 uint32_t memory_clock, in iceland_calculate_mclk_params() argument 1180 if (memory_clock < 12500) { in iceland_get_mclk_frequency_ratio() 1182 } else if (memory_clock > 47500) { in iceland_get_mclk_frequency_ratio() 1188 if (memory_clock < 65000) { in iceland_get_mclk_frequency_ratio() 1204 if (memory_clock < 10000) { in iceland_get_ddr3_mclk_frequency_ratio() 1234 uint32_t memory_clock, in iceland_populate_single_memory_level() argument 1257 memory_clock, in iceland_populate_single_memory_level() 1590 uint32_t memory_clock, in iceland_populate_memory_timing_parameters() argument 1600 engine_clock, memory_clock); in iceland_populate_memory_timing_parameters() 1734 const uint32_t memory_clock, in iceland_convert_mc_reg_table_entry_to_smc() argument [all …]
|
H A D | amdgpu_ci_smumgr.c | 1028 uint32_t memory_clock, in ci_calculate_mclk_params() argument 1128 if (memory_clock < 12500) in ci_get_mclk_frequency_ratio() 1130 else if (memory_clock > 47500) in ci_get_mclk_frequency_ratio() 1135 if (memory_clock < 65000) in ci_get_mclk_frequency_ratio() 1150 if (memory_clock < 10000) in ci_get_ddr3_mclk_frequency_ratio() 1179 uint32_t memory_clock, in ci_populate_single_memory_level() argument 1200 memory_clock, in ci_populate_single_memory_level() 1209 memory_clock, in ci_populate_single_memory_level() 1627 uint32_t memory_clock, in ci_populate_memory_timing_parameters() argument 1767 const uint32_t memory_clock, in ci_convert_mc_reg_table_entry_to_smc() argument [all …]
|
H A D | amdgpu_tonga_smumgr.c | 794 uint32_t memory_clock, in tonga_calculate_mclk_params() argument 931 if (memory_clock < 12500) in tonga_get_mclk_frequency_ratio() 933 else if (memory_clock > 47500) in tonga_get_mclk_frequency_ratio() 938 if (memory_clock < 65000) in tonga_get_mclk_frequency_ratio() 953 if (memory_clock < 10000) in tonga_get_ddr3_mclk_frequency_ratio() 955 else if (memory_clock >= 80000) in tonga_get_ddr3_mclk_frequency_ratio() 966 uint32_t memory_clock, in tonga_populate_single_memory_level() argument 990 memory_clock, in tonga_populate_single_memory_level() 1465 uint32_t memory_clock, in tonga_populate_memory_timing_parameters() argument 2113 const uint32_t memory_clock, in tonga_convert_mc_reg_table_entry_to_smc() argument [all …]
|
/netbsd/sys/external/bsd/drm2/dist/drm/amd/powerplay/hwmgr/ |
H A D | ppatomctrl.h | 296 …t_memory_clock_spread_spectrum(struct pp_hwmgr *hwmgr, const uint32_t memory_clock, pp_atomctrl_in… 299 …et_engine_dram_timings_rv770(struct pp_hwmgr *hwmgr, uint32_t engine_clock, uint32_t memory_clock); 318 extern int atomctrl_set_ac_timing_ai(struct pp_hwmgr *hwmgr, uint32_t memory_clock,
|
H A D | amdgpu_smu7_hwmgr.c | 2971 mclk = smu7_ps->performance_levels[0].memory_clock; in smu7_apply_state_adjust_rules() 3001 if (smu7_ps->performance_levels[1].memory_clock < in smu7_apply_state_adjust_rules() 3002 smu7_ps->performance_levels[0].memory_clock) in smu7_apply_state_adjust_rules() 3003 smu7_ps->performance_levels[1].memory_clock = in smu7_apply_state_adjust_rules() 3004 smu7_ps->performance_levels[0].memory_clock; in smu7_apply_state_adjust_rules() 3332 uint32_t engine_clock, memory_clock; in smu7_get_pp_table_entry_callback_func_v0() local 3339 data->highest_mclk = memory_clock; in smu7_get_pp_table_entry_callback_func_v0() 3356 performance_level->memory_clock = memory_clock; in smu7_get_pp_table_entry_callback_func_v0() 3845 smu7_ps->performance_levels[0].memory_clock, in smu7_trim_dpm_states() 4198 return ((pl1->memory_clock == pl2->memory_clock) && in smu7_are_power_levels_equal() [all …]
|
H A D | amdgpu_ppatomctrl.c | 180 uint32_t memory_clock) in atomctrl_set_engine_dram_timings_rv770() argument 193 cpu_to_le32(memory_clock & SET_CLOCK_FREQ_MASK); in atomctrl_set_engine_dram_timings_rv770() 1284 const uint32_t memory_clock, in atomctrl_get_memory_clock_spread_spectrum() argument 1288 ASIC_INTERNAL_MEMORY_SS, memory_clock, ssInfo); in atomctrl_get_memory_clock_spread_spectrum() 1323 int atomctrl_set_ac_timing_ai(struct pp_hwmgr *hwmgr, uint32_t memory_clock, in atomctrl_set_ac_timing_ai() argument 1331 memory_clock & SET_CLOCK_FREQ_MASK; in atomctrl_set_ac_timing_ai()
|
H A D | amdgpu_hardwaremanager.c | 399 pclock_info->min_mem_clk = performance_level.memory_clock; in phm_get_clock_info() 409 pclock_info->max_mem_clk = performance_level.memory_clock; in phm_get_clock_info()
|
H A D | smu7_hwmgr.h | 57 uint32_t memory_clock; member
|
H A D | amdgpu_smu10_hwmgr.c | 949 level->memory_clock = data->clock_vol_info.vdd_dep_on_fclk->entries[0].clk; in smu10_get_performance_level() 952 level->memory_clock = data->clock_vol_info.vdd_dep_on_fclk->entries[ in smu10_get_performance_level()
|
H A D | amdgpu_smu8_hwmgr.c | 1586 level->memory_clock = data->sys_info.nbp_memory_clock[SMU8_NUM_NBPMEMORYCLOCK - 1]; in smu8_get_performance_level() 1588 level->memory_clock = data->sys_info.nbp_memory_clock[0]; in smu8_get_performance_level()
|
/netbsd/sys/external/bsd/drm2/dist/drm/amd/powerplay/inc/ |
H A D | amdgpu_smu.h | 195 uint32_t memory_clock; member 320 uint32_t memory_clock; member
|
H A D | hardwaremanager.h | 275 uint32_t memory_clock; member
|
/netbsd/sys/external/bsd/drm2/dist/drm/amd/amdgpu/ |
H A D | amdgpu_si_dpm.c | 4299 if (memory_clock < 10000) in si_get_ddr3_mclk_frequency_ratio() 4301 else if (memory_clock >= 80000) in si_get_ddr3_mclk_frequency_ratio() 4313 if (memory_clock < 12500) in si_get_mclk_frequency_ratio() 4315 else if (memory_clock > 47500) in si_get_mclk_frequency_ratio() 4318 mc_para_index = (u8)((memory_clock - 10000) / 2500); in si_get_mclk_frequency_ratio() 4320 if (memory_clock < 65000) in si_get_mclk_frequency_ratio() 4322 else if (memory_clock > 135000) in si_get_mclk_frequency_ratio() 5342 u32 memory_clock, in si_populate_mclk_value() argument 5388 freq_nom = memory_clock * 4; in si_populate_mclk_value() 5390 freq_nom = memory_clock * 2; in si_populate_mclk_value() [all …]
|
/netbsd/sys/external/bsd/drm2/dist/drm/amd/powerplay/ |
H A D | amdgpu_smu.c | 1596 clk_info->min_mem_clk = level.memory_clock; in smu_get_clock_info() 1604 clk_info->min_mem_clk = level.memory_clock; in smu_get_clock_info()
|
H A D | amdgpu_navi10_ppt.c | 1466 min_clocks.memory_clock = smu->display_config->min_mem_set_clock; in navi10_notify_smc_display_config() 1489 ret = smu_set_hard_freq_range(smu, SMU_UCLK, min_clocks.memory_clock/100, 0); in navi10_notify_smc_display_config()
|
H A D | amdgpu_vega20_ppt.c | 2248 min_clocks.memory_clock = smu->display_config->min_mem_set_clock; in vega20_notify_smc_display_config() 2269 memtable->dpm_state.hard_min_level = min_clocks.memory_clock/100; in vega20_notify_smc_display_config()
|