Home
last modified time | relevance | path

Searched refs:highest_perf (Results 1 – 13 of 13) sorted by relevance

/openbmc/linux/drivers/cpufreq/
H A Damd-pstate-ut.c124 u32 highest_perf = 0, nominal_perf = 0, lowest_nonlinear_perf = 0, lowest_perf = 0; in amd_pstate_ut_check_perf() local
144 highest_perf = cppc_perf.highest_perf; in amd_pstate_ut_check_perf()
156 highest_perf = AMD_CPPC_HIGHEST_PERF(cap1); in amd_pstate_ut_check_perf()
162 if ((highest_perf != READ_ONCE(cpudata->highest_perf)) || in amd_pstate_ut_check_perf()
168 __func__, cpu, highest_perf, cpudata->highest_perf, in amd_pstate_ut_check_perf()
175 if (!((highest_perf >= nominal_perf) && in amd_pstate_ut_check_perf()
181 __func__, cpu, highest_perf, nominal_perf, in amd_pstate_ut_check_perf()
H A Damd-pstate.c335 u32 highest_perf; in pstate_init_perf() local
348 highest_perf = amd_pstate_highest_perf_set(cpudata); in pstate_init_perf()
350 highest_perf = AMD_CPPC_HIGHEST_PERF(cap1); in pstate_init_perf()
352 WRITE_ONCE(cpudata->highest_perf, highest_perf); in pstate_init_perf()
353 WRITE_ONCE(cpudata->max_limit_perf, highest_perf); in pstate_init_perf()
364 u32 highest_perf; in cppc_init_perf() local
371 highest_perf = amd_pstate_highest_perf_set(cpudata); in cppc_init_perf()
373 highest_perf = cppc_perf.highest_perf; in cppc_init_perf()
375 WRITE_ONCE(cpudata->highest_perf, highest_perf); in cppc_init_perf()
376 WRITE_ONCE(cpudata->max_limit_perf, highest_perf); in cppc_init_perf()
[all …]
H A Dcppc_cpufreq.c127 local_freq_scale = div64_u64(perf, cpu_data->perf_caps.highest_perf); in cppc_scale_freq_workfn()
402 perf_caps->highest_perf); in get_perf_level_count()
438 perf_caps->highest_perf); in cppc_get_cpu_power()
439 perf_step = div_u64((u64)CPPC_EM_CAP_STEP * perf_caps->highest_perf, in cppc_get_cpu_power()
452 perf = perf_caps->highest_perf; in cppc_get_cpu_power()
459 perf = perf_caps->highest_perf; in cppc_get_cpu_power()
509 perf_step = CPPC_EM_CAP_STEP * perf_caps->highest_perf / max_cap; in cppc_get_cpu_cost()
678 if (caps->highest_perf > caps->nominal_perf) in cppc_cpufreq_cpu_init()
682 policy->cur = cppc_perf_to_khz(caps, caps->highest_perf); in cppc_cpufreq_cpu_init()
683 cpu_data->perf_ctrls.desired_perf = caps->highest_perf; in cppc_cpufreq_cpu_init()
[all …]
H A Dacpi-cpufreq.c634 u64 highest_perf, nominal_perf; in get_max_boost_ratio() local
648 highest_perf = amd_get_highest_perf(); in get_max_boost_ratio()
650 highest_perf = perf_caps.highest_perf; in get_max_boost_ratio()
654 if (!highest_perf || !nominal_perf) { in get_max_boost_ratio()
659 if (highest_perf < nominal_perf) { in get_max_boost_ratio()
664 return div_u64(highest_perf << SCHED_CAPACITY_SHIFT, nominal_perf); in get_max_boost_ratio()
H A Dintel_pstate.c366 if (ret || cppc_perf.highest_perf == CPPC_MAX_PERF) in intel_pstate_set_itmt_prio()
367 cppc_perf.highest_perf = HWP_HIGHEST_PERF(READ_ONCE(all_cpu_data[cpu]->hwp_cap_cached)); in intel_pstate_set_itmt_prio()
374 sched_set_itmt_core_prio(cppc_perf.highest_perf, cpu); in intel_pstate_set_itmt_prio()
377 if (cppc_perf.highest_perf > max_highest_perf) in intel_pstate_set_itmt_prio()
378 max_highest_perf = cppc_perf.highest_perf; in intel_pstate_set_itmt_prio()
380 if (cppc_perf.highest_perf < min_highest_perf) in intel_pstate_set_itmt_prio()
381 min_highest_perf = cppc_perf.highest_perf; in intel_pstate_set_itmt_prio()
/openbmc/linux/arch/x86/kernel/acpi/
H A Dcppc.c72 u64 highest_perf, nominal_perf; in amd_set_max_freq_ratio() local
82 highest_perf = amd_get_highest_perf(); in amd_set_max_freq_ratio()
85 if (!highest_perf || !nominal_perf) { in amd_set_max_freq_ratio()
90 perf_ratio = div_u64(highest_perf * SCHED_CAPACITY_SCALE, nominal_perf); in amd_set_max_freq_ratio()
/openbmc/linux/tools/power/cpupower/utils/helpers/
H A Damd.c200 unsigned long highest_perf, nominal_perf, cpuinfo_min, in amd_pstate_boost_init() local
203 highest_perf = amd_pstate_get_data(cpu, AMD_PSTATE_HIGHEST_PERF); in amd_pstate_boost_init()
206 *support = highest_perf > nominal_perf ? 1 : 0; in amd_pstate_boost_init()
/openbmc/linux/include/acpi/
H A Dcppc_acpi.h107 u32 highest_perf; member
144 extern int cppc_get_highest_perf(int cpunum, u64 *highest_perf);
173 static inline int cppc_get_highest_perf(int cpunum, u64 *highest_perf) in cppc_get_highest_perf() argument
/openbmc/linux/Documentation/admin-guide/acpi/
H A Dcppc_sysfs.rst31 -r--r--r-- 1 root root 65536 Mar 5 19:38 highest_perf
40 * highest_perf : Highest performance of this processor (abstract scale).
/openbmc/linux/include/linux/
H A Damd-pstate.h72 u32 highest_perf; member
/openbmc/linux/drivers/acpi/
H A Dcppc_acpi.c164 show_cppc_data(cppc_get_perf_caps, cppc_perf_caps, highest_perf);
204 &highest_perf.attr,
1249 int cppc_get_highest_perf(int cpunum, u64 *highest_perf) in cppc_get_highest_perf() argument
1251 return cppc_get_perf(cpunum, HIGHEST_PERF, highest_perf); in cppc_get_highest_perf()
1318 perf_caps->highest_perf = high; in cppc_get_perf_caps()
1930 div = caps->highest_perf; in cppc_perf_to_khz()
1967 mul = caps->highest_perf; in cppc_khz_to_perf()
/openbmc/linux/drivers/base/
H A Darch_topology.c366 (perf_caps.highest_perf >= perf_caps.nominal_perf) && in topology_init_cpu_capacity_cppc()
367 (perf_caps.highest_perf >= perf_caps.lowest_perf)) { in topology_init_cpu_capacity_cppc()
368 raw_capacity[cpu] = perf_caps.highest_perf; in topology_init_cpu_capacity_cppc()
/openbmc/linux/Documentation/admin-guide/pm/
H A Damd-pstate.rst514 …| | || highest_perf >= nominal_perf > lowest_nonlinear_perf…