| /linux-6.15/drivers/cpufreq/ |
| H A D | amd-pstate-ut.c | 114 u32 highest_perf = 0, nominal_perf = 0, lowest_nonlinear_perf = 0, lowest_perf = 0; in amd_pstate_ut_check_perf() local 135 highest_perf = cppc_perf.highest_perf; in amd_pstate_ut_check_perf() 146 highest_perf = FIELD_GET(AMD_CPPC_HIGHEST_PERF_MASK, cap1); in amd_pstate_ut_check_perf() 153 if (highest_perf != cur_perf.highest_perf && !cpudata->hw_prefcore) { in amd_pstate_ut_check_perf() 155 __func__, cpu, highest_perf, cur_perf.highest_perf); in amd_pstate_ut_check_perf() 168 if (!((highest_perf >= nominal_perf) && in amd_pstate_ut_check_perf() 173 __func__, cpu, highest_perf, nominal_perf, in amd_pstate_ut_check_perf()
|
| H A D | amd-pstate-trace.h | 89 u8 highest_perf, 98 highest_perf, 107 __field(u8, highest_perf) 117 __entry->highest_perf = highest_perf; 129 (u8)__entry->highest_perf,
|
| H A D | cppc_cpufreq.c | 376 perf_caps->highest_perf); in get_perf_level_count() 412 perf_caps->highest_perf); in cppc_get_cpu_power() 426 perf = perf_caps->highest_perf; in cppc_get_cpu_power() 433 perf = perf_caps->highest_perf; in cppc_get_cpu_power() 483 perf_step = CPPC_EM_CAP_STEP * perf_caps->highest_perf / max_cap; in cppc_get_cpu_cost() 613 caps->highest_perf : caps->nominal_perf); in cppc_cpufreq_cpu_init() 653 if (caps->highest_perf > caps->nominal_perf) in cppc_cpufreq_cpu_init() 657 policy->cur = cppc_perf_to_khz(caps, caps->highest_perf); in cppc_cpufreq_cpu_init() 658 cpu_data->perf_ctrls.desired_perf = caps->highest_perf; in cppc_cpufreq_cpu_init() 663 caps->highest_perf, cpu, ret); in cppc_cpufreq_cpu_init() [all …]
|
| H A D | amd-pstate.c | 143 return (u8)clamp(perf_val, perf.lowest_perf, perf.highest_perf); in freq_to_perf() 249 perf.highest_perf, in msr_update_perf() 299 trace_amd_pstate_epp_perf(cpudata->cpu, perf.highest_perf, in msr_set_epp() 344 trace_amd_pstate_epp_perf(cpudata->cpu, perf.highest_perf, in shmem_set_epp() 403 perf.highest_perf = numerator; in msr_init_perf() 429 perf.highest_perf = numerator; in shmem_init_perf() 491 perf.highest_perf, in shmem_update_perf() 696 cap_perf = perf.highest_perf; in amd_pstate_adjust_perf() 981 perf.highest_perf); in amd_pstate_cpu_init() 1078 return sysfs_emit(buf, "%u\n", cpudata->perf.highest_perf); in show_amd_pstate_highest_perf() [all …]
|
| H A D | acpi-cpufreq.c | 636 u64 highest_perf, nominal_perf; in get_max_boost_ratio() local 650 ret = amd_get_boost_ratio_numerator(cpu, &highest_perf); in get_max_boost_ratio() 657 highest_perf = perf_caps.highest_perf; in get_max_boost_ratio() 665 if (!highest_perf || !nominal_perf) { in get_max_boost_ratio() 670 if (highest_perf < nominal_perf) { in get_max_boost_ratio() 675 return div_u64(highest_perf << SCHED_CAPACITY_SHIFT, nominal_perf); in get_max_boost_ratio()
|
| H A D | amd-pstate.h | 36 u8 highest_perf; member
|
| H A D | intel_pstate.c | 371 if (ret || cppc_perf.highest_perf == CPPC_MAX_PERF) in intel_pstate_set_itmt_prio() 372 cppc_perf.highest_perf = HWP_HIGHEST_PERF(READ_ONCE(all_cpu_data[cpu]->hwp_cap_cached)); in intel_pstate_set_itmt_prio() 379 sched_set_itmt_core_prio(cppc_perf.highest_perf, cpu); in intel_pstate_set_itmt_prio() 382 if (cppc_perf.highest_perf > max_highest_perf) in intel_pstate_set_itmt_prio() 383 max_highest_perf = cppc_perf.highest_perf; in intel_pstate_set_itmt_prio() 385 if (cppc_perf.highest_perf < min_highest_perf) in intel_pstate_set_itmt_prio() 386 min_highest_perf = cppc_perf.highest_perf; in intel_pstate_set_itmt_prio()
|
| /linux-6.15/arch/x86/kernel/acpi/ |
| H A D | cppc.c | 144 int amd_get_highest_perf(unsigned int cpu, u32 *highest_perf) in amd_get_highest_perf() argument 161 WRITE_ONCE(*highest_perf, (u32)val); in amd_get_highest_perf() 183 u64 highest_perf[2] = {0}; in amd_detect_prefcore() local 207 if (!count || (count == 1 && tmp != highest_perf[0])) in amd_detect_prefcore() 208 highest_perf[count++] = tmp; in amd_detect_prefcore() 215 boost_numerator = highest_perf[0]; in amd_detect_prefcore() 221 *detected ? "" : "un", highest_perf[0]); in amd_detect_prefcore()
|
| /linux-6.15/include/acpi/ |
| H A D | cppc_acpi.h | 107 u32 highest_perf; member 144 extern int cppc_get_highest_perf(int cpunum, u64 *highest_perf); 164 extern int amd_get_highest_perf(unsigned int cpu, u32 *highest_perf); 176 static inline int cppc_get_highest_perf(int cpunum, u64 *highest_perf) in cppc_get_highest_perf() argument 240 static inline int amd_get_highest_perf(unsigned int cpu, u32 *highest_perf) in amd_get_highest_perf() argument
|
| /linux-6.15/tools/power/cpupower/utils/helpers/ |
| H A D | amd.c | 204 unsigned long highest_perf, nominal_perf, cpuinfo_min, in amd_pstate_boost_init() local 207 highest_perf = amd_pstate_get_data(cpu, AMD_PSTATE_HIGHEST_PERF); in amd_pstate_boost_init() 210 *support = highest_perf > nominal_perf ? 1 : 0; in amd_pstate_boost_init()
|
| /linux-6.15/Documentation/admin-guide/acpi/ |
| H A D | cppc_sysfs.rst | 31 -r--r--r-- 1 root root 65536 Mar 5 19:38 highest_perf 40 * highest_perf : Highest performance of this processor (abstract scale).
|
| /linux-6.15/drivers/acpi/ |
| H A D | cppc_acpi.c | 164 show_cppc_data(cppc_get_perf_caps, cppc_perf_caps, highest_perf); 205 &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()
|
| /linux-6.15/drivers/base/ |
| H A D | arch_topology.c | 388 (perf_caps.highest_perf >= perf_caps.nominal_perf) && in topology_init_cpu_capacity_cppc() 389 (perf_caps.highest_perf >= perf_caps.lowest_perf)) { in topology_init_cpu_capacity_cppc() 390 raw_capacity[cpu] = perf_caps.highest_perf; in topology_init_cpu_capacity_cppc()
|
| /linux-6.15/Documentation/admin-guide/pm/ |
| H A D | amd-pstate.rst | 596 …| | || highest_perf >= nominal_perf > lowest_nonlinear_perf…
|