]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ACPI: CPPC: Warn on missing mandatory DESIRED_PERF register
authorSumit Gupta <sumitg@nvidia.com>
Fri, 6 Feb 2026 14:26:53 +0000 (19:56 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 27 Feb 2026 19:50:41 +0000 (20:50 +0100)
commitb3e45fb2db9d8a733e94b315f1272e2c4468ed4b
tree7d6f62299337a9d82932c808ad99f517f33a9bd7
parent658fa7b1c47a857af484c5c5dff8d0164b7c7bfb
ACPI: CPPC: Warn on missing mandatory DESIRED_PERF register

Add a warning during CPPC processor probe if the Desired Performance
register is not supported when it should be.

As per 8.4.6.1.2.3 section of ACPI 6.6 specification,
"The Desired Performance Register is optional only when OSPM indicates
support for CPPC2 in the platform-wide _OSC capabilities and the
Autonomous Selection Enable field is encoded as an Integer with a
value of 1."

In other words:
- In CPPC v1, DESIRED_PERF is mandatory
- In CPPC v2, it becomes optional only when AUTO_SEL_ENABLE is supported

This helps detect firmware configuration issues early during boot.

Link: https://lore.kernel.org/lkml/9fa21599-004a-4af8-acc2-190fd0404e35@nvidia.com/
Suggested-by: Pierre Gondois <pierre.gondois@arm.com>
Signed-off-by: Sumit Gupta <sumitg@nvidia.com>
Reviewed-by: Pierre Gondois <pierre.gondois@arm.com>
Reviewed-by: Lifeng Zheng <zhenglifeng1@huawei.com>
Link: https://patch.msgid.link/20260206142658.72583-3-sumitg@nvidia.com
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/cppc_acpi.c