]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
cpufreq: intel_pstate: Enable HWP without EPP if DEC is enabled
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 11 Sep 2025 12:02:33 +0000 (14:02 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 19 Sep 2025 21:05:54 +0000 (23:05 +0200)
commit46c435cbaf5591a349c339e080ac2a228aa99649
tree9e7ddf95a94ebeefc76a03313b34e7081ca88112
parent995694ef91da7076ce235f028680fb31ad0b5c04
cpufreq: intel_pstate: Enable HWP without EPP if DEC is enabled

So far, HWP has never been enabled without EPP (Energy-Performance
Preference) interface support, since the lack of the latter indicates an
incomplete implementation of HWP, which was the case on early development
vehicle platforms.  However, HWP can be expected to work if DEC (Dynamic
Efficiency Control) is enabled as indicated by setting bit 27 in
MSR_IA32_POWER_CTL (DEC enable bit).

Accordingly, allow HWP to be enabled if the EPP interface is not
supported so long as DEC is enabled in the processor.

Still, the EPP control sysfs interface is useless when EPP is not
supported, so do not expose it in that case.

Link: https://lore.kernel.org/linux-pm/20250904000608.260817-2-srinivas.pandruvada@linux.intel.com/
Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Co-developed-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/intel_pstate.c