summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorChristian Loehle <christian.loehle@arm.com>2026-11-13 13:04:11 +0000
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2026-11-13 15:52:40 +0100
commit7aca8e31a8fbf2ceffb487cec67ae300b95fa8b1 (patch)
treecaad7fe87ae01c0488345ffaeb08b6ef4b779a5d /kernel
parent7475ea8b58616b33c04afb976cf0fbaad9dd63fb (diff)
ACPI: CPPC: Reject EPP registers narrower than 8 bits
The EPP interfaces use an 8-bit preference, but ACPI permits narrower fields. With a 4- or 6-bit SystemMemory field, writing 128 succeeds but stores zero, requesting maximum performance instead. Reject a present EPP register narrower than eight bits during _CPC probe. Use the existing error path to release previously acquired resources and leave the CPU's CPPC descriptor unpublished. Keep absent EPP entries and registers at least eight bits wide on their existing paths. Fail the whole probe instead of disabling only EPP. This also makes amd-pstate's acpi_cpc_valid() check reject the platform before registering its MSR or shared-memory driver. No affected hardware is known or expected and the specification is expected to no longer permit these in the future [1]. Fixes: 922607a2b462 ("cpufreq: CPPC: Add support for autonomous selection") Link: https://github.com/tianocore/edk2/issues/10838 [1] Signed-off-by: Christian Loehle <christian.loehle@arm.com> Reviewed-by: Mario Limonciello (AMD) <superm1@kernel.org> Cc: All applicable <stable@vger.kernel.org> [ rjw: Changelog tweak ] Link: https://patch.msgid.link/20261113130411.1433174-1-christian.loehle@arm.com Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions