Lines Matching +full:turbo +full:- +full:mode

1 // SPDX-License-Identifier: GPL-2.0-only
35 #include <asm/intel-family.h>
53 #define ONE_EIGHTH_FP ((int64_t)1 << (FRAC_BITS - 3))
75 mask = (1 << FRAC_BITS) - 1; in ceiling_fp()
92 * struct sample - Store performance sample
119 * struct pstate_data - Store P state data
126 * @perf_ctl_scaling: PERF_CTL P-state to frequency scaling factor
128 * @turbo_pstate: Max Turbo P state possible for this platform
149 * struct vid_data - Stores voltage information data
153 * @turbo: VID data for turbo P state
154 * @ratio: Ratio of (vid max - vid min) /
155 * (max P state - Min P State)
164 int turbo; member
169 * struct global_params - Global parameters, mostly tunable via sysfs.
170 * @no_turbo: Whether or not to use turbo P-states.
171 * @turbo_disabled: Whether or not turbo P-states are available at all,
173 * not the maximum reported turbo P-state is different from
174 * the maximum reported non-turbo one.
176 * @min_perf_pct: Minimum capacity limit in percent of the maximum turbo
177 * P-state capacity.
178 * @max_perf_pct: Maximum capacity limit in percent of the maximum turbo
179 * P-state capacity.
190 * struct cpudata - Per CPU instance data storage
195 * @iowait_boost: iowait-related boost fraction
217 * @epp_cached Cached HWP energy-performance preference value
269 * struct pstate_funcs - Per CPU model specific callbacks
270 * @get_max: Callback to get maximum non turbo effective P state
271 * @get_max_physical: Callback to get maximum non turbo physical P state
273 * @get_turbo: Callback to get turbo P state
360 cppc_perf.highest_perf = HWP_HIGHEST_PERF(READ_ONCE(all_cpu_data[cpu]->hwp_cap_cached)); in intel_pstate_set_itmt_prio()
415 intel_pstate_set_itmt_prio(policy->cpu); in intel_pstate_init_acpi_perf_limits()
422 cpu = all_cpu_data[policy->cpu]; in intel_pstate_init_acpi_perf_limits()
424 ret = acpi_processor_register_performance(&cpu->acpi_perf_data, in intel_pstate_init_acpi_perf_limits()
425 policy->cpu); in intel_pstate_init_acpi_perf_limits()
434 if (cpu->acpi_perf_data.control_register.space_id != in intel_pstate_init_acpi_perf_limits()
442 if (cpu->acpi_perf_data.state_count < 2) in intel_pstate_init_acpi_perf_limits()
445 pr_debug("CPU%u - ACPI _PSS perf data\n", policy->cpu); in intel_pstate_init_acpi_perf_limits()
446 for (i = 0; i < cpu->acpi_perf_data.state_count; i++) { in intel_pstate_init_acpi_perf_limits()
448 (i == cpu->acpi_perf_data.state ? '*' : ' '), i, in intel_pstate_init_acpi_perf_limits()
449 (u32) cpu->acpi_perf_data.states[i].core_frequency, in intel_pstate_init_acpi_perf_limits()
450 (u32) cpu->acpi_perf_data.states[i].power, in intel_pstate_init_acpi_perf_limits()
451 (u32) cpu->acpi_perf_data.states[i].control); in intel_pstate_init_acpi_perf_limits()
455 * The _PSS table doesn't contain whole turbo frequency range. in intel_pstate_init_acpi_perf_limits()
456 * This just contains +1 MHZ above the max non turbo frequency, in intel_pstate_init_acpi_perf_limits()
457 * with control value corresponding to max turbo ratio. But in intel_pstate_init_acpi_perf_limits()
460 * this driver uses real max turbo frequency as the max in intel_pstate_init_acpi_perf_limits()
462 * correct max turbo frequency based on the turbo state. in intel_pstate_init_acpi_perf_limits()
466 cpu->acpi_perf_data.states[0].core_frequency = in intel_pstate_init_acpi_perf_limits()
467 policy->cpuinfo.max_freq / 1000; in intel_pstate_init_acpi_perf_limits()
468 cpu->valid_pss_table = true; in intel_pstate_init_acpi_perf_limits()
474 cpu->valid_pss_table = false; in intel_pstate_init_acpi_perf_limits()
475 acpi_processor_unregister_performance(policy->cpu); in intel_pstate_init_acpi_perf_limits()
482 cpu = all_cpu_data[policy->cpu]; in intel_pstate_exit_perf_limits()
483 if (!cpu->valid_pss_table) in intel_pstate_exit_perf_limits()
486 acpi_processor_unregister_performance(policy->cpu); in intel_pstate_exit_perf_limits()
506 return -ENOTSUPP; in intel_pstate_get_cppc_guaranteed()
511 * intel_pstate_hybrid_hwp_adjust - Calibrate HWP performance levels.
515 * P-states accessible through the PERF_CTL interface. If that happens, the
517 * than the scaling factor between P-state values and CPU frequency.
523 int perf_ctl_max_phys = cpu->pstate.max_pstate_physical; in intel_pstate_hybrid_hwp_adjust()
524 int perf_ctl_scaling = cpu->pstate.perf_ctl_scaling; in intel_pstate_hybrid_hwp_adjust()
525 int perf_ctl_turbo = pstate_funcs.get_turbo(cpu->cpu); in intel_pstate_hybrid_hwp_adjust()
526 int scaling = cpu->pstate.scaling; in intel_pstate_hybrid_hwp_adjust()
528 pr_debug("CPU%d: perf_ctl_max_phys = %d\n", cpu->cpu, perf_ctl_max_phys); in intel_pstate_hybrid_hwp_adjust()
529 pr_debug("CPU%d: perf_ctl_turbo = %d\n", cpu->cpu, perf_ctl_turbo); in intel_pstate_hybrid_hwp_adjust()
530 pr_debug("CPU%d: perf_ctl_scaling = %d\n", cpu->cpu, perf_ctl_scaling); in intel_pstate_hybrid_hwp_adjust()
531 pr_debug("CPU%d: HWP_CAP guaranteed = %d\n", cpu->cpu, cpu->pstate.max_pstate); in intel_pstate_hybrid_hwp_adjust()
532 pr_debug("CPU%d: HWP_CAP highest = %d\n", cpu->cpu, cpu->pstate.turbo_pstate); in intel_pstate_hybrid_hwp_adjust()
533 pr_debug("CPU%d: HWP-to-frequency scaling factor: %d\n", cpu->cpu, scaling); in intel_pstate_hybrid_hwp_adjust()
535 cpu->pstate.turbo_freq = rounddown(cpu->pstate.turbo_pstate * scaling, in intel_pstate_hybrid_hwp_adjust()
537 cpu->pstate.max_freq = rounddown(cpu->pstate.max_pstate * scaling, in intel_pstate_hybrid_hwp_adjust()
540 cpu->pstate.max_pstate_physical = in intel_pstate_hybrid_hwp_adjust()
544 cpu->pstate.min_freq = cpu->pstate.min_pstate * perf_ctl_scaling; in intel_pstate_hybrid_hwp_adjust()
546 * Cast the min P-state value retrieved via pstate_funcs.get_min() to in intel_pstate_hybrid_hwp_adjust()
549 cpu->pstate.min_pstate = DIV_ROUND_UP(cpu->pstate.min_freq, scaling); in intel_pstate_hybrid_hwp_adjust()
561 cpu->pstate.max_pstate == cpu->pstate.turbo_pstate); in update_turbo_state()
567 int turbo_pstate = cpu->pstate.turbo_pstate; in min_perf_pct_min()
570 (cpu->pstate.min_pstate * 100 / turbo_pstate) : 0; in min_perf_pct_min()
579 return -ENXIO; in intel_pstate_get_epb()
581 ret = rdmsrl_on_cpu(cpu_data->cpu, MSR_IA32_ENERGY_PERF_BIAS, &epb); in intel_pstate_get_epb()
598 epp = rdmsrl_on_cpu(cpu_data->cpu, MSR_HWP_REQUEST, in intel_pstate_get_epp()
618 return -ENXIO; in intel_pstate_set_epb()
634 *-------------------------------------
669 int index = -EINVAL; in intel_pstate_get_energy_pref_index()
690 * 0x00-0x03 : Performance in intel_pstate_get_energy_pref_index()
691 * 0x04-0x07 : Balance performance in intel_pstate_get_energy_pref_index()
692 * 0x08-0x0B : Balance power in intel_pstate_get_energy_pref_index()
693 * 0x0C-0x0F : Power in intel_pstate_get_energy_pref_index()
709 * Use the cached HWP Request MSR value, because in the active mode the in intel_pstate_set_epp()
713 u64 value = READ_ONCE(cpu->hwp_req_cached); in intel_pstate_set_epp()
718 * The only other updater of hwp_req_cached in the active mode, in intel_pstate_set_epp()
722 WRITE_ONCE(cpu->hwp_req_cached, value); in intel_pstate_set_epp()
723 ret = wrmsrl_on_cpu(cpu->cpu, MSR_HWP_REQUEST, value); in intel_pstate_set_epp()
725 cpu->epp_cached = epp; in intel_pstate_set_epp()
734 int epp = -EINVAL; in intel_pstate_set_energy_pref_index()
738 epp = cpu_data->epp_default; in intel_pstate_set_energy_pref_index()
743 else if (epp == -EINVAL) in intel_pstate_set_energy_pref_index()
751 if (epp > 0 && cpu_data->policy == CPUFREQ_POLICY_PERFORMANCE) in intel_pstate_set_energy_pref_index()
752 return -EBUSY; in intel_pstate_set_energy_pref_index()
756 if (epp == -EINVAL) in intel_pstate_set_energy_pref_index()
757 epp = (pref_index - 1) << 2; in intel_pstate_set_energy_pref_index()
758 ret = intel_pstate_set_epb(cpu_data->cpu, epp); in intel_pstate_set_energy_pref_index()
785 struct cpudata *cpu = all_cpu_data[policy->cpu]; in store_energy_performance_preference()
793 return -EINVAL; in store_energy_performance_preference()
795 ret = match_string(energy_perf_strings, -1, str_preference); in store_energy_performance_preference()
805 return -EINVAL; in store_energy_performance_preference()
816 return -EAGAIN; in store_energy_performance_preference()
824 * In the passive mode the governor needs to be stopped on the in store_energy_performance_preference()
826 * which is super-heavy-weight, so make sure it is worth doing in store_energy_performance_preference()
830 epp = ret ? epp_values[ret] : cpu->epp_default; in store_energy_performance_preference()
832 if (cpu->epp_cached != epp) { in store_energy_performance_preference()
851 struct cpudata *cpu_data = all_cpu_data[policy->cpu]; in show_energy_performance_preference()
868 struct cpudata *cpu = all_cpu_data[policy->cpu]; in show_base_frequency()
871 ratio = intel_pstate_get_cppc_guaranteed(policy->cpu); in show_base_frequency()
875 rdmsrl_on_cpu(policy->cpu, MSR_HWP_CAPABILITIES, &cap); in show_base_frequency()
879 freq = ratio * cpu->pstate.scaling; in show_base_frequency()
880 if (cpu->pstate.scaling != cpu->pstate.perf_ctl_scaling) in show_base_frequency()
881 freq = rounddown(freq, cpu->pstate.perf_ctl_scaling); in show_base_frequency()
899 rdmsrl_on_cpu(cpu->cpu, MSR_HWP_CAPABILITIES, &cap); in __intel_pstate_get_hwp_cap()
900 WRITE_ONCE(cpu->hwp_cap_cached, cap); in __intel_pstate_get_hwp_cap()
901 cpu->pstate.max_pstate = HWP_GUARANTEED_PERF(cap); in __intel_pstate_get_hwp_cap()
902 cpu->pstate.turbo_pstate = HWP_HIGHEST_PERF(cap); in __intel_pstate_get_hwp_cap()
907 int scaling = cpu->pstate.scaling; in intel_pstate_get_hwp_cap()
911 cpu->pstate.max_freq = cpu->pstate.max_pstate * scaling; in intel_pstate_get_hwp_cap()
912 cpu->pstate.turbo_freq = cpu->pstate.turbo_pstate * scaling; in intel_pstate_get_hwp_cap()
913 if (scaling != cpu->pstate.perf_ctl_scaling) { in intel_pstate_get_hwp_cap()
914 int perf_ctl_scaling = cpu->pstate.perf_ctl_scaling; in intel_pstate_get_hwp_cap()
916 cpu->pstate.max_freq = rounddown(cpu->pstate.max_freq, in intel_pstate_get_hwp_cap()
918 cpu->pstate.turbo_freq = rounddown(cpu->pstate.turbo_freq, in intel_pstate_get_hwp_cap()
930 max = cpu_data->max_perf_ratio; in intel_pstate_hwp_set()
931 min = cpu_data->min_perf_ratio; in intel_pstate_hwp_set()
933 if (cpu_data->policy == CPUFREQ_POLICY_PERFORMANCE) in intel_pstate_hwp_set()
944 if (cpu_data->epp_policy == cpu_data->policy) in intel_pstate_hwp_set()
947 cpu_data->epp_policy = cpu_data->policy; in intel_pstate_hwp_set()
949 if (cpu_data->policy == CPUFREQ_POLICY_PERFORMANCE) { in intel_pstate_hwp_set()
951 cpu_data->epp_powersave = epp; in intel_pstate_hwp_set()
959 if (cpu_data->epp_powersave < 0) in intel_pstate_hwp_set()
965 * - Policy is not changed in intel_pstate_hwp_set()
966 * - user has manually changed in intel_pstate_hwp_set()
967 * - Error reading EPB in intel_pstate_hwp_set()
973 epp = cpu_data->epp_powersave; in intel_pstate_hwp_set()
982 WRITE_ONCE(cpu_data->hwp_req_cached, value); in intel_pstate_hwp_set()
990 u64 value = READ_ONCE(cpu->hwp_req_cached); in intel_pstate_hwp_offline()
998 * active mode "performance" scaling algorithm, replace that in intel_pstate_hwp_offline()
1002 value |= HWP_ENERGY_PERF_PREFERENCE(cpu->epp_cached); in intel_pstate_hwp_offline()
1008 cpu->epp_policy = CPUFREQ_POLICY_UNKNOWN; in intel_pstate_hwp_offline()
1014 * mode. in intel_pstate_hwp_offline()
1017 WRITE_ONCE(cpu->hwp_req_cached, value); in intel_pstate_hwp_offline()
1020 min_perf = HWP_LOWEST_PERF(READ_ONCE(cpu->hwp_cap_cached)); in intel_pstate_hwp_offline()
1030 wrmsrl_on_cpu(cpu->cpu, MSR_HWP_REQUEST, value); in intel_pstate_hwp_offline()
1060 wrmsrl_on_cpu(cpu->cpu, MSR_HWP_REQUEST, READ_ONCE(cpu->hwp_req_cached)); in intel_pstate_hwp_reenable()
1065 struct cpudata *cpu = all_cpu_data[policy->cpu]; in intel_pstate_suspend()
1067 pr_debug("CPU %d suspending\n", cpu->cpu); in intel_pstate_suspend()
1069 cpu->suspended = true; in intel_pstate_suspend()
1079 struct cpudata *cpu = all_cpu_data[policy->cpu]; in intel_pstate_resume()
1081 pr_debug("CPU %d resuming\n", cpu->cpu); in intel_pstate_resume()
1089 if (cpu->suspended && hwp_active) { in intel_pstate_resume()
1092 /* Re-enable HWP, because "online" has not done that. */ in intel_pstate_resume()
1098 cpu->suspended = false; in intel_pstate_resume()
1114 policy->cpuinfo.max_freq = global.turbo_disabled_mf ? in __intel_pstate_update_max_freq()
1115 cpudata->pstate.max_freq : cpudata->pstate.turbo_freq; in __intel_pstate_update_max_freq()
1137 * If turbo has been turned on or off globally, policy limits for in intel_pstate_update_limits()
1182 ret = intel_pstate_update_status(buf, p ? p - buf : count); in store_status()
1199 return -EAGAIN; in show_turbo_pct()
1204 total = cpu->pstate.turbo_pstate - cpu->pstate.min_pstate + 1; in show_turbo_pct()
1205 no_turbo = cpu->pstate.max_pstate - cpu->pstate.min_pstate + 1; in show_turbo_pct()
1207 turbo_pct = 100 - fp_toint(mul_fp(turbo_fp, int_tofp(100))); in show_turbo_pct()
1224 return -EAGAIN; in show_num_pstates()
1228 total = cpu->pstate.turbo_pstate - cpu->pstate.min_pstate + 1; in show_num_pstates()
1244 return -EAGAIN; in show_no_turbo()
1266 return -EINVAL; in store_no_turbo()
1272 return -EAGAIN; in store_no_turbo()
1279 pr_notice_once("Turbo disabled by BIOS or unavailable on processor\n"); in store_no_turbo()
1282 return -EPERM; in store_no_turbo()
1289 int pct = cpu->pstate.max_pstate * 100 / cpu->pstate.turbo_pstate; in store_no_turbo()
1320 req = policy->driver_data; in update_qos_request()
1336 freq = DIV_ROUND_UP(cpu->pstate.turbo_freq * perf_pct, 100); in update_qos_request()
1351 return -EINVAL; in store_max_perf_pct()
1357 return -EAGAIN; in store_max_perf_pct()
1384 return -EINVAL; in store_min_perf_pct()
1390 return -EAGAIN; in store_min_perf_pct()
1492 &cpu_subsys.dev_root->kobj); in intel_pstate_sysfs_expose_params()
1575 struct cpufreq_policy *policy = cpufreq_cpu_acquire(cpudata->cpu); in intel_pstate_notify_work()
1584 wrmsrl_on_cpu(cpudata->cpu, MSR_HWP_STATUS, 0); in intel_pstate_notify_work()
1626 schedule_delayed_work(&cpudata->hwp_notify_work, msecs_to_jiffies(10)); in notify_hwp_interrupt()
1645 wrmsrl_on_cpu(cpudata->cpu, MSR_HWP_INTERRUPT, 0x00); in intel_pstate_disable_hwp_interrupt()
1648 if (cpumask_test_and_clear_cpu(cpudata->cpu, &hwp_intr_enable_mask)) in intel_pstate_disable_hwp_interrupt()
1649 cancel_delayed_work(&cpudata->hwp_notify_work); in intel_pstate_disable_hwp_interrupt()
1660 INIT_DELAYED_WORK(&cpudata->hwp_notify_work, intel_pstate_notify_work); in intel_pstate_enable_hwp_interrupt()
1661 cpumask_set_cpu(cpudata->cpu, &hwp_intr_enable_mask); in intel_pstate_enable_hwp_interrupt()
1665 wrmsrl_on_cpu(cpudata->cpu, MSR_HWP_INTERRUPT, 0x01); in intel_pstate_enable_hwp_interrupt()
1666 wrmsrl_on_cpu(cpudata->cpu, MSR_HWP_STATUS, 0); in intel_pstate_enable_hwp_interrupt()
1672 cpudata->epp_default = intel_pstate_get_epp(cpudata, 0); in intel_pstate_update_epp_defaults()
1683 * - is more performance oriented than 0x80 (default balance_perf EPP) in intel_pstate_update_epp_defaults()
1684 * - But less performance oriented than performance EPP in intel_pstate_update_epp_defaults()
1687 if (cpudata->epp_default < HWP_EPP_BALANCE_PERFORMANCE && in intel_pstate_update_epp_defaults()
1688 cpudata->epp_default > HWP_EPP_PERFORMANCE) { in intel_pstate_update_epp_defaults()
1689 epp_values[EPP_INDEX_BALANCE_PERFORMANCE] = cpudata->epp_default; in intel_pstate_update_epp_defaults()
1697 cpudata->epp_default = epp_values[EPP_INDEX_BALANCE_PERFORMANCE]; in intel_pstate_update_epp_defaults()
1698 intel_pstate_set_epp(cpudata, cpudata->epp_default); in intel_pstate_update_epp_defaults()
1705 wrmsrl_on_cpu(cpudata->cpu, MSR_HWP_INTERRUPT, 0x00); in intel_pstate_hwp_enable()
1707 wrmsrl_on_cpu(cpudata->cpu, MSR_PM_ENABLE, 0x1); in intel_pstate_hwp_enable()
1711 if (cpudata->epp_default >= 0) in intel_pstate_hwp_enable()
1751 vid_fp = cpudata->vid.min + mul_fp( in atom_get_val()
1752 int_tofp(pstate - cpudata->pstate.min_pstate), in atom_get_val()
1753 cpudata->vid.ratio); in atom_get_val()
1755 vid_fp = clamp_t(int32_t, vid_fp, cpudata->vid.min, cpudata->vid.max); in atom_get_val()
1758 if (pstate > cpudata->pstate.max_pstate) in atom_get_val()
1759 vid = cpudata->vid.turbo; in atom_get_val()
1768 /* Defined in Table 35-6 from SDM (Sept 2015) */ in silvermont_get_scaling()
1783 /* Defined in Table 35-10 from SDM (Sept 2015) */ in airmont_get_scaling()
1800 cpudata->vid.min = int_tofp((value >> 8) & 0x7f); in atom_get_vid()
1801 cpudata->vid.max = int_tofp((value >> 16) & 0x7f); in atom_get_vid()
1802 cpudata->vid.ratio = div_fp( in atom_get_vid()
1803 cpudata->vid.max - cpudata->vid.min, in atom_get_vid()
1804 int_tofp(cpudata->pstate.max_pstate - in atom_get_vid()
1805 cpudata->pstate.min_pstate)); in atom_get_vid()
1808 cpudata->vid.turbo = value & 0x7f; in atom_get_vid()
1857 return -ENXIO; in core_get_tdp_ratio()
1876 /* Turbo activation ratio is not used on HWP platforms */ in core_get_max_pstate()
1886 if (tdp_ratio - 1 == tar_levels) { in core_get_max_pstate()
1954 /* P-cores have a smaller perf level-to-freqency scaling factor. */ in hybrid_get_cpu_scaling()
1963 trace_cpu_frequency(pstate * cpu->pstate.scaling, cpu->cpu); in intel_pstate_set_pstate()
1964 cpu->pstate.current_pstate = pstate; in intel_pstate_set_pstate()
1970 wrmsrl_on_cpu(cpu->cpu, MSR_IA32_PERF_CTL, in intel_pstate_set_pstate()
1976 intel_pstate_set_pstate(cpu, cpu->pstate.min_pstate); in intel_pstate_set_min_pstate()
1981 int pstate = max(cpu->pstate.min_pstate, cpu->max_perf_ratio); in intel_pstate_max_within_limits()
1989 int perf_ctl_max_phys = pstate_funcs.get_max_physical(cpu->cpu); in intel_pstate_get_cpu_pstates()
1992 cpu->pstate.min_pstate = pstate_funcs.get_min(cpu->cpu); in intel_pstate_get_cpu_pstates()
1993 cpu->pstate.max_pstate_physical = perf_ctl_max_phys; in intel_pstate_get_cpu_pstates()
1994 cpu->pstate.perf_ctl_scaling = perf_ctl_scaling; in intel_pstate_get_cpu_pstates()
2000 cpu->pstate.scaling = pstate_funcs.get_cpu_scaling(cpu->cpu); in intel_pstate_get_cpu_pstates()
2001 if (cpu->pstate.scaling != perf_ctl_scaling) in intel_pstate_get_cpu_pstates()
2004 cpu->pstate.scaling = perf_ctl_scaling; in intel_pstate_get_cpu_pstates()
2007 cpu->pstate.scaling = perf_ctl_scaling; in intel_pstate_get_cpu_pstates()
2008 cpu->pstate.max_pstate = pstate_funcs.get_max(cpu->cpu); in intel_pstate_get_cpu_pstates()
2009 cpu->pstate.turbo_pstate = pstate_funcs.get_turbo(cpu->cpu); in intel_pstate_get_cpu_pstates()
2012 if (cpu->pstate.scaling == perf_ctl_scaling) { in intel_pstate_get_cpu_pstates()
2013 cpu->pstate.min_freq = cpu->pstate.min_pstate * perf_ctl_scaling; in intel_pstate_get_cpu_pstates()
2014 cpu->pstate.max_freq = cpu->pstate.max_pstate * perf_ctl_scaling; in intel_pstate_get_cpu_pstates()
2015 cpu->pstate.turbo_freq = cpu->pstate.turbo_pstate * perf_ctl_scaling; in intel_pstate_get_cpu_pstates()
2019 cpu->aperf_mperf_shift = pstate_funcs.get_aperf_mperf_shift(); in intel_pstate_get_cpu_pstates()
2037 u64 hwp_req = READ_ONCE(cpu->hwp_req_cached); in intel_pstate_hwp_boost_up()
2038 u64 hwp_cap = READ_ONCE(cpu->hwp_cap_cached); in intel_pstate_hwp_boost_up()
2045 * If, P0 (Turbo max) = P1 (Guaranteed max) = min: in intel_pstate_hwp_boost_up()
2047 * If, P0 (Turbo max) > P1 (Guaranteed max) = min: in intel_pstate_hwp_boost_up()
2049 * If, P0 (Turbo max) = P1 (Guaranteed max) > min: in intel_pstate_hwp_boost_up()
2052 * If, P0 (Turbo max) > P1 (Guaranteed max) > min: in intel_pstate_hwp_boost_up()
2058 if (max_limit == min_limit || cpu->hwp_boost_min >= max_limit) in intel_pstate_hwp_boost_up()
2061 if (!cpu->hwp_boost_min) in intel_pstate_hwp_boost_up()
2062 cpu->hwp_boost_min = min_limit; in intel_pstate_hwp_boost_up()
2067 if (cpu->hwp_boost_min < boost_level1) in intel_pstate_hwp_boost_up()
2068 cpu->hwp_boost_min = boost_level1; in intel_pstate_hwp_boost_up()
2069 else if (cpu->hwp_boost_min < HWP_GUARANTEED_PERF(hwp_cap)) in intel_pstate_hwp_boost_up()
2070 cpu->hwp_boost_min = HWP_GUARANTEED_PERF(hwp_cap); in intel_pstate_hwp_boost_up()
2071 else if (cpu->hwp_boost_min == HWP_GUARANTEED_PERF(hwp_cap) && in intel_pstate_hwp_boost_up()
2073 cpu->hwp_boost_min = max_limit; in intel_pstate_hwp_boost_up()
2077 hwp_req = (hwp_req & ~GENMASK_ULL(7, 0)) | cpu->hwp_boost_min; in intel_pstate_hwp_boost_up()
2079 cpu->last_update = cpu->sample.time; in intel_pstate_hwp_boost_up()
2084 if (cpu->hwp_boost_min) { in intel_pstate_hwp_boost_down()
2088 expired = time_after64(cpu->sample.time, cpu->last_update + in intel_pstate_hwp_boost_down()
2091 wrmsrl(MSR_HWP_REQUEST, cpu->hwp_req_cached); in intel_pstate_hwp_boost_down()
2092 cpu->hwp_boost_min = 0; in intel_pstate_hwp_boost_down()
2095 cpu->last_update = cpu->sample.time; in intel_pstate_hwp_boost_down()
2101 cpu->sample.time = time; in intel_pstate_update_util_hwp_local()
2103 if (cpu->sched_flags & SCHED_CPUFREQ_IOWAIT) { in intel_pstate_update_util_hwp_local()
2106 cpu->sched_flags = 0; in intel_pstate_update_util_hwp_local()
2114 if (time_before64(time, cpu->last_io_update + 2 * TICK_NSEC)) in intel_pstate_update_util_hwp_local()
2117 cpu->last_io_update = time; in intel_pstate_update_util_hwp_local()
2132 cpu->sched_flags |= flags; in intel_pstate_update_util_hwp()
2134 if (smp_processor_id() == cpu->cpu) in intel_pstate_update_util_hwp()
2140 struct sample *sample = &cpu->sample; in intel_pstate_calc_avg_perf()
2142 sample->core_avg_perf = div_ext_fp(sample->aperf, sample->mperf); in intel_pstate_calc_avg_perf()
2155 if (cpu->prev_mperf == mperf || cpu->prev_tsc == tsc) { in intel_pstate_sample()
2161 cpu->last_sample_time = cpu->sample.time; in intel_pstate_sample()
2162 cpu->sample.time = time; in intel_pstate_sample()
2163 cpu->sample.aperf = aperf; in intel_pstate_sample()
2164 cpu->sample.mperf = mperf; in intel_pstate_sample()
2165 cpu->sample.tsc = tsc; in intel_pstate_sample()
2166 cpu->sample.aperf -= cpu->prev_aperf; in intel_pstate_sample()
2167 cpu->sample.mperf -= cpu->prev_mperf; in intel_pstate_sample()
2168 cpu->sample.tsc -= cpu->prev_tsc; in intel_pstate_sample()
2170 cpu->prev_aperf = aperf; in intel_pstate_sample()
2171 cpu->prev_mperf = mperf; in intel_pstate_sample()
2172 cpu->prev_tsc = tsc; in intel_pstate_sample()
2180 if (cpu->last_sample_time) { in intel_pstate_sample()
2189 return mul_ext_fp(cpu->sample.core_avg_perf, cpu_khz); in get_avg_frequency()
2194 return mul_ext_fp(cpu->pstate.max_pstate_physical, in get_avg_pstate()
2195 cpu->sample.core_avg_perf); in get_avg_pstate()
2200 struct sample *sample = &cpu->sample; in get_target_pstate()
2204 busy_frac = div_fp(sample->mperf << cpu->aperf_mperf_shift, in get_target_pstate()
2205 sample->tsc); in get_target_pstate()
2207 if (busy_frac < cpu->iowait_boost) in get_target_pstate()
2208 busy_frac = cpu->iowait_boost; in get_target_pstate()
2210 sample->busy_scaled = busy_frac * 100; in get_target_pstate()
2213 cpu->pstate.max_pstate : cpu->pstate.turbo_pstate; in get_target_pstate()
2216 if (target < cpu->pstate.min_pstate) in get_target_pstate()
2217 target = cpu->pstate.min_pstate; in get_target_pstate()
2220 * If the average P-state during the previous cycle was higher than the in get_target_pstate()
2228 target += (avg_pstate - target) >> 1; in get_target_pstate()
2235 int min_pstate = max(cpu->pstate.min_pstate, cpu->min_perf_ratio); in intel_pstate_prepare_request()
2236 int max_pstate = max(min_pstate, cpu->max_perf_ratio); in intel_pstate_prepare_request()
2243 if (pstate == cpu->pstate.current_pstate) in intel_pstate_update_pstate()
2246 cpu->pstate.current_pstate = pstate; in intel_pstate_update_pstate()
2252 int from = cpu->pstate.current_pstate; in intel_pstate_adjust_pstate()
2260 trace_cpu_frequency(target_pstate * cpu->pstate.scaling, cpu->cpu); in intel_pstate_adjust_pstate()
2263 sample = &cpu->sample; in intel_pstate_adjust_pstate()
2264 trace_pstate_sample(mul_ext_fp(100, sample->core_avg_perf), in intel_pstate_adjust_pstate()
2265 fp_toint(sample->busy_scaled), in intel_pstate_adjust_pstate()
2267 cpu->pstate.current_pstate, in intel_pstate_adjust_pstate()
2268 sample->mperf, in intel_pstate_adjust_pstate()
2269 sample->aperf, in intel_pstate_adjust_pstate()
2270 sample->tsc, in intel_pstate_adjust_pstate()
2272 fp_toint(cpu->iowait_boost * 100)); in intel_pstate_adjust_pstate()
2282 if (smp_processor_id() != cpu->cpu) in intel_pstate_update_util()
2285 delta_ns = time - cpu->last_update; in intel_pstate_update_util()
2289 cpu->iowait_boost = ONE_EIGHTH_FP; in intel_pstate_update_util()
2290 } else if (cpu->iowait_boost >= ONE_EIGHTH_FP) { in intel_pstate_update_util()
2291 cpu->iowait_boost <<= 1; in intel_pstate_update_util()
2292 if (cpu->iowait_boost > int_tofp(1)) in intel_pstate_update_util()
2293 cpu->iowait_boost = int_tofp(1); in intel_pstate_update_util()
2295 cpu->iowait_boost = ONE_EIGHTH_FP; in intel_pstate_update_util()
2297 } else if (cpu->iowait_boost) { in intel_pstate_update_util()
2300 cpu->iowait_boost = 0; in intel_pstate_update_util()
2302 cpu->iowait_boost >>= 1; in intel_pstate_update_util()
2304 cpu->last_update = time; in intel_pstate_update_util()
2305 delta_ns = time - cpu->sample.time; in intel_pstate_update_util()
2414 return -ENOMEM; in intel_pstate_init_cpu()
2418 cpu->cpu = cpunum; in intel_pstate_init_cpu()
2420 cpu->epp_default = -EINVAL; in intel_pstate_init_cpu()
2433 * Re-enable HWP in case this happens after a resume from ACPI in intel_pstate_init_cpu()
2440 cpu->epp_powersave = -EINVAL; in intel_pstate_init_cpu()
2441 cpu->epp_policy = 0; in intel_pstate_init_cpu()
2457 if (cpu->update_util_set) in intel_pstate_set_update_util_hook()
2461 cpu->sample.time = 0; in intel_pstate_set_update_util_hook()
2462 cpufreq_add_update_util_hook(cpu_num, &cpu->update_util, in intel_pstate_set_update_util_hook()
2466 cpu->update_util_set = true; in intel_pstate_set_update_util_hook()
2473 if (!cpu_data->update_util_set) in intel_pstate_clear_update_util_hook()
2477 cpu_data->update_util_set = false; in intel_pstate_clear_update_util_hook()
2484 cpu->pstate.max_freq : cpu->pstate.turbo_freq; in intel_pstate_get_max_freq()
2491 int perf_ctl_scaling = cpu->pstate.perf_ctl_scaling; in intel_pstate_update_perf_limits()
2507 if (hwp_active && cpu->pstate.scaling != perf_ctl_scaling) { in intel_pstate_update_perf_limits()
2508 int scaling = cpu->pstate.scaling; in intel_pstate_update_perf_limits()
2518 cpu->cpu, min_policy_perf, max_policy_perf); in intel_pstate_update_perf_limits()
2522 cpu->min_perf_ratio = min_policy_perf; in intel_pstate_update_perf_limits()
2523 cpu->max_perf_ratio = max_policy_perf; in intel_pstate_update_perf_limits()
2525 int turbo_max = cpu->pstate.turbo_pstate; in intel_pstate_update_perf_limits()
2528 /* Global limits are in percent of the maximum turbo P-state. */ in intel_pstate_update_perf_limits()
2533 pr_debug("cpu:%d global_min:%d global_max:%d\n", cpu->cpu, in intel_pstate_update_perf_limits()
2536 cpu->min_perf_ratio = max(min_policy_perf, global_min); in intel_pstate_update_perf_limits()
2537 cpu->min_perf_ratio = min(cpu->min_perf_ratio, max_policy_perf); in intel_pstate_update_perf_limits()
2538 cpu->max_perf_ratio = min(max_policy_perf, global_max); in intel_pstate_update_perf_limits()
2539 cpu->max_perf_ratio = max(min_policy_perf, cpu->max_perf_ratio); in intel_pstate_update_perf_limits()
2542 cpu->min_perf_ratio = min(cpu->min_perf_ratio, in intel_pstate_update_perf_limits()
2543 cpu->max_perf_ratio); in intel_pstate_update_perf_limits()
2546 pr_debug("cpu:%d max_perf_ratio:%d min_perf_ratio:%d\n", cpu->cpu, in intel_pstate_update_perf_limits()
2547 cpu->max_perf_ratio, in intel_pstate_update_perf_limits()
2548 cpu->min_perf_ratio); in intel_pstate_update_perf_limits()
2555 if (!policy->cpuinfo.max_freq) in intel_pstate_set_policy()
2556 return -ENODEV; in intel_pstate_set_policy()
2558 pr_debug("set_policy cpuinfo.max %u policy->max %u\n", in intel_pstate_set_policy()
2559 policy->cpuinfo.max_freq, policy->max); in intel_pstate_set_policy()
2561 cpu = all_cpu_data[policy->cpu]; in intel_pstate_set_policy()
2562 cpu->policy = policy->policy; in intel_pstate_set_policy()
2566 intel_pstate_update_perf_limits(cpu, policy->min, policy->max); in intel_pstate_set_policy()
2568 if (cpu->policy == CPUFREQ_POLICY_PERFORMANCE) { in intel_pstate_set_policy()
2573 intel_pstate_clear_update_util_hook(policy->cpu); in intel_pstate_set_policy()
2576 intel_pstate_set_update_util_hook(policy->cpu); in intel_pstate_set_policy()
2586 intel_pstate_clear_update_util_hook(policy->cpu); in intel_pstate_set_policy()
2587 intel_pstate_hwp_set(policy->cpu); in intel_pstate_set_policy()
2599 cpu->pstate.max_pstate_physical > cpu->pstate.max_pstate && in intel_pstate_adjust_policy_max()
2600 policy->max < policy->cpuinfo.max_freq && in intel_pstate_adjust_policy_max()
2601 policy->max > cpu->pstate.max_freq) { in intel_pstate_adjust_policy_max()
2602 pr_debug("policy->max > max non turbo frequency\n"); in intel_pstate_adjust_policy_max()
2603 policy->max = policy->cpuinfo.max_freq; in intel_pstate_adjust_policy_max()
2616 cpu->pstate.max_freq : cpu->pstate.turbo_freq; in intel_pstate_verify_cpu_policy()
2620 cpufreq_verify_within_limits(policy, policy->cpuinfo.min_freq, max_freq); in intel_pstate_verify_cpu_policy()
2627 intel_pstate_verify_cpu_policy(all_cpu_data[policy->cpu], policy); in intel_pstate_verify_policy()
2634 struct cpudata *cpu = all_cpu_data[policy->cpu]; in intel_cpufreq_cpu_offline()
2636 pr_debug("CPU %d going offline\n", cpu->cpu); in intel_cpufreq_cpu_offline()
2638 if (cpu->suspended) in intel_cpufreq_cpu_offline()
2659 struct cpudata *cpu = all_cpu_data[policy->cpu]; in intel_pstate_cpu_online()
2661 pr_debug("CPU %d going online\n", cpu->cpu); in intel_pstate_cpu_online()
2667 * Re-enable HWP and clear the "suspended" flag to let "resume" in intel_pstate_cpu_online()
2671 cpu->suspended = false; in intel_pstate_cpu_online()
2679 intel_pstate_clear_update_util_hook(policy->cpu); in intel_pstate_cpu_offline()
2686 pr_debug("CPU %d exiting\n", policy->cpu); in intel_pstate_cpu_exit()
2688 policy->fast_switch_possible = false; in intel_pstate_cpu_exit()
2698 rc = intel_pstate_init_cpu(policy->cpu); in __intel_pstate_cpu_init()
2702 cpu = all_cpu_data[policy->cpu]; in __intel_pstate_cpu_init()
2704 cpu->max_perf_ratio = 0xFF; in __intel_pstate_cpu_init()
2705 cpu->min_perf_ratio = 0; in __intel_pstate_cpu_init()
2708 policy->cpuinfo.min_freq = cpu->pstate.min_freq; in __intel_pstate_cpu_init()
2711 policy->cpuinfo.max_freq = global.turbo_disabled ? in __intel_pstate_cpu_init()
2712 cpu->pstate.max_freq : cpu->pstate.turbo_freq; in __intel_pstate_cpu_init()
2714 policy->min = policy->cpuinfo.min_freq; in __intel_pstate_cpu_init()
2715 policy->max = policy->cpuinfo.max_freq; in __intel_pstate_cpu_init()
2719 policy->fast_switch_possible = true; in __intel_pstate_cpu_init()
2735 policy->policy = CPUFREQ_POLICY_POWERSAVE; in intel_pstate_cpu_init()
2738 struct cpudata *cpu = all_cpu_data[policy->cpu]; in intel_pstate_cpu_init()
2740 cpu->epp_cached = intel_pstate_get_epp(cpu, 0); in intel_pstate_cpu_init()
2762 struct cpudata *cpu = all_cpu_data[policy->cpu]; in intel_cpufreq_verify_policy()
2765 intel_pstate_update_perf_limits(cpu, policy->min, policy->max); in intel_cpufreq_verify_policy()
2770 /* Use of trace in passive mode:
2772 * In passive mode the trace core_busy field (also known as the
2774 * core_avg_perf) is not needed and so is re-assigned to indicate if the
2777 * (or performance or core_avg_perf) have a fixed y-axis from 0 to 100%,
2796 sample = &cpu->sample; in intel_cpufreq_trace()
2800 cpu->pstate.current_pstate, in intel_cpufreq_trace()
2801 sample->mperf, in intel_cpufreq_trace()
2802 sample->aperf, in intel_cpufreq_trace()
2803 sample->tsc, in intel_cpufreq_trace()
2805 fp_toint(cpu->iowait_boost * 100)); in intel_cpufreq_trace()
2811 u64 prev = READ_ONCE(cpu->hwp_req_cached), value = prev; in intel_cpufreq_hwp_update()
2825 WRITE_ONCE(cpu->hwp_req_cached, value); in intel_cpufreq_hwp_update()
2829 wrmsrl_on_cpu(cpu->cpu, MSR_HWP_REQUEST, value); in intel_cpufreq_hwp_update()
2839 wrmsrl_on_cpu(cpu->cpu, MSR_IA32_PERF_CTL, in intel_cpufreq_perf_ctl_update()
2846 struct cpudata *cpu = all_cpu_data[policy->cpu]; in intel_cpufreq_update_pstate()
2847 int old_pstate = cpu->pstate.current_pstate; in intel_cpufreq_update_pstate()
2851 int max_pstate = policy->strict_target ? in intel_cpufreq_update_pstate()
2852 target_pstate : cpu->max_perf_ratio; in intel_cpufreq_update_pstate()
2860 cpu->pstate.current_pstate = target_pstate; in intel_cpufreq_update_pstate()
2872 struct cpudata *cpu = all_cpu_data[policy->cpu]; in intel_cpufreq_target()
2878 freqs.old = policy->cur; in intel_cpufreq_target()
2885 target_pstate = DIV_ROUND_UP(freqs.new, cpu->pstate.scaling); in intel_cpufreq_target()
2888 target_pstate = freqs.new / cpu->pstate.scaling; in intel_cpufreq_target()
2891 target_pstate = DIV_ROUND_CLOSEST(freqs.new, cpu->pstate.scaling); in intel_cpufreq_target()
2897 freqs.new = target_pstate * cpu->pstate.scaling; in intel_cpufreq_target()
2907 struct cpudata *cpu = all_cpu_data[policy->cpu]; in intel_cpufreq_fast_switch()
2912 target_pstate = DIV_ROUND_UP(target_freq, cpu->pstate.scaling); in intel_cpufreq_fast_switch()
2916 return target_pstate * cpu->pstate.scaling; in intel_cpufreq_fast_switch()
2925 u64 hwp_cap = READ_ONCE(cpu->hwp_cap_cached); in intel_cpufreq_adjust_perf()
2926 int old_pstate = cpu->pstate.current_pstate; in intel_cpufreq_adjust_perf()
2943 if (min_pstate < cpu->pstate.min_pstate) in intel_cpufreq_adjust_perf()
2944 min_pstate = cpu->pstate.min_pstate; in intel_cpufreq_adjust_perf()
2946 if (min_pstate < cpu->min_perf_ratio) in intel_cpufreq_adjust_perf()
2947 min_pstate = cpu->min_perf_ratio; in intel_cpufreq_adjust_perf()
2949 max_pstate = min(cap_pstate, cpu->max_perf_ratio); in intel_cpufreq_adjust_perf()
2957 cpu->pstate.current_pstate = target_pstate; in intel_cpufreq_adjust_perf()
2968 dev = get_cpu_device(policy->cpu); in intel_cpufreq_cpu_init()
2970 return -ENODEV; in intel_cpufreq_cpu_init()
2976 policy->cpuinfo.transition_latency = INTEL_CPUFREQ_TRANSITION_LATENCY; in intel_cpufreq_cpu_init()
2978 policy->cur = policy->cpuinfo.min_freq; in intel_cpufreq_cpu_init()
2982 ret = -ENOMEM; in intel_cpufreq_cpu_init()
2986 cpu = all_cpu_data[policy->cpu]; in intel_cpufreq_cpu_init()
2991 policy->transition_delay_us = INTEL_CPUFREQ_TRANSITION_DELAY_HWP; in intel_cpufreq_cpu_init()
2995 rdmsrl_on_cpu(cpu->cpu, MSR_HWP_REQUEST, &value); in intel_cpufreq_cpu_init()
2996 WRITE_ONCE(cpu->hwp_req_cached, value); in intel_cpufreq_cpu_init()
2998 cpu->epp_cached = intel_pstate_get_epp(cpu, value); in intel_cpufreq_cpu_init()
3000 policy->transition_delay_us = INTEL_CPUFREQ_TRANSITION_DELAY; in intel_cpufreq_cpu_init()
3003 freq = DIV_ROUND_UP(cpu->pstate.turbo_freq * global.min_perf_pct, 100); in intel_cpufreq_cpu_init()
3005 ret = freq_qos_add_request(&policy->constraints, req, FREQ_QOS_MIN, in intel_cpufreq_cpu_init()
3008 dev_err(dev, "Failed to add min-freq constraint (%d)\n", ret); in intel_cpufreq_cpu_init()
3012 freq = DIV_ROUND_UP(cpu->pstate.turbo_freq * global.max_perf_pct, 100); in intel_cpufreq_cpu_init()
3014 ret = freq_qos_add_request(&policy->constraints, req + 1, FREQ_QOS_MAX, in intel_cpufreq_cpu_init()
3017 dev_err(dev, "Failed to add max-freq constraint (%d)\n", ret); in intel_cpufreq_cpu_init()
3021 policy->driver_data = req; in intel_cpufreq_cpu_init()
3039 req = policy->driver_data; in intel_cpufreq_cpu_exit()
3053 struct cpudata *cpu = all_cpu_data[policy->cpu]; in intel_cpufreq_suspend()
3054 u64 value = READ_ONCE(cpu->hwp_req_cached); in intel_cpufreq_suspend()
3062 wrmsrl_on_cpu(cpu->cpu, MSR_HWP_REQUEST, value); in intel_cpufreq_suspend()
3063 WRITE_ONCE(cpu->hwp_req_cached, value); in intel_cpufreq_suspend()
3142 return -EINVAL; in intel_pstate_update_status()
3145 return -EBUSY; in intel_pstate_update_status()
3175 return -EINVAL; in intel_pstate_update_status()
3188 return -ENODEV; in intel_pstate_msrs_not_valid()
3195 pstate_funcs.get_max = funcs->get_max; in copy_cpu_funcs()
3196 pstate_funcs.get_max_physical = funcs->get_max_physical; in copy_cpu_funcs()
3197 pstate_funcs.get_min = funcs->get_min; in copy_cpu_funcs()
3198 pstate_funcs.get_turbo = funcs->get_turbo; in copy_cpu_funcs()
3199 pstate_funcs.get_scaling = funcs->get_scaling; in copy_cpu_funcs()
3200 pstate_funcs.get_val = funcs->get_val; in copy_cpu_funcs()
3201 pstate_funcs.get_vid = funcs->get_vid; in copy_cpu_funcs()
3202 pstate_funcs.get_aperf_mperf_shift = funcs->get_aperf_mperf_shift; in copy_cpu_funcs()
3220 status = acpi_evaluate_object(pr->handle, "_PSS", NULL, &buffer); in intel_pstate_no_acpi_pss()
3225 if (pss && pss->type == ACPI_TYPE_PACKAGE) { in intel_pstate_no_acpi_pss()
3263 if (acpi_has_method(pr->handle, "_PPC")) in intel_pstate_has_acpi_ppc()
3275 /* Hardware vendor-specific info that has its own power management modes */
3278 {"ORACLE", "X4-2 ", 0, ACPI_SIG_FADT, all_versions, NULL, PPC},
3279 {"ORACLE", "X4-2L ", 0, ACPI_SIG_FADT, all_versions, NULL, PPC},
3280 {"ORACLE", "X4-2B ", 0, ACPI_SIG_FADT, all_versions, NULL, PPC},
3281 {"ORACLE", "X3-2 ", 0, ACPI_SIG_FADT, all_versions, NULL, PPC},
3282 {"ORACLE", "X3-2L ", 0, ACPI_SIG_FADT, all_versions, NULL, PPC},
3283 {"ORACLE", "X3-2B ", 0, ACPI_SIG_FADT, all_versions, NULL, PPC},
3290 {"ORACLE", "X6-2 ", 0, ACPI_SIG_FADT, all_versions, NULL, PPC},
3308 pr_debug("P states are controlled in Out of Band mode by the firmware/hardware\n"); in intel_pstate_platform_pwr_mgmt_exists()
3333 * It may be unsafe to request P-states control from SMM if _PPC support in intel_pstate_request_control_from_smm()
3369 * which can result in one core turbo frequency for
3383 return -ENODEV; in intel_pstate_init()
3392 return -ENODEV; in intel_pstate_init()
3405 hwp_mode_bdw = id->driver_data; in intel_pstate_init()
3421 return -ENODEV; in intel_pstate_init()
3426 return -ENODEV; in intel_pstate_init()
3429 copy_cpu_funcs((struct pstate_funcs *)id->driver_data); in intel_pstate_init()
3434 return -ENODEV; in intel_pstate_init()
3436 /* Without HWP start in the passive mode. */ in intel_pstate_init()
3446 pr_info("P-states controlled by the platform\n"); in intel_pstate_init()
3447 return -ENODEV; in intel_pstate_init()
3451 return -ENOTSUPP; in intel_pstate_init()
3453 pr_info("Intel P-state driver initializing\n"); in intel_pstate_init()
3457 return -ENOMEM; in intel_pstate_init()
3469 epp_values[EPP_INDEX_BALANCE_PERFORMANCE] = id->driver_data; in intel_pstate_init()
3501 return -EINVAL; in intel_pstate_setup()
3530 MODULE_DESCRIPTION("'intel_pstate' - P state driver Intel Core processors");