]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ACPI: CPPC: Fix missing PCC check for guaranteed_perf
authorPengjie Zhang <zhangpengjie2@huawei.com>
Wed, 10 Dec 2025 13:22:27 +0000 (21:22 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 19 Jan 2026 12:09:45 +0000 (13:09 +0100)
commitb5e70e7fa904520cd20ad7d158e45b4cb72d74a6
tree6737cd75d2abed080b47d4e61cf275f2d4be4779
parentd16cc7a2b3edc91e9d6f3ca6129afec5ef3b5438
ACPI: CPPC: Fix missing PCC check for guaranteed_perf

commit 6ea3a44cef28add2d93b1ef119d84886cb1e3c9b upstream.

The current implementation overlooks the 'guaranteed_perf'
register in this check.

If the Guaranteed Performance register is located in the PCC
subspace, the function currently attempts to read it without
acquiring the lock and without sending the CMD_READ doorbell
to the firmware. This can result in reading stale data.

Fixes: 29523f095397 ("ACPI / CPPC: Add support for guaranteed performance")
Signed-off-by: Pengjie Zhang <zhangpengjie2@huawei.com>
Cc: 4.20+ <stable@vger.kernel.org> # 4.20+
[ rjw: Subject and changelog edits ]
Link: https://patch.msgid.link/20251210132227.1988380-1-zhangpengjie2@huawei.com
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/acpi/cppc_acpi.c