]> git.baikalelectronics.ru Git - kernel.git/commit
ACPI: CPPC: Don't require _OSC if X86_FEATURE_CPPC is supported
authorMario Limonciello <mario.limonciello@amd.com>
Tue, 5 Jul 2022 18:29:15 +0000 (13:29 -0500)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 5 Jul 2022 18:36:11 +0000 (20:36 +0200)
commitf17f2c10da1801a68aa9d3d5f5fdb26da2d7a6f5
treed94dad9bd21c339a808f95f19da24175ea79049b
parent750083e3d256687879f0cd62bb9a02fdc7a4e9f5
ACPI: CPPC: Don't require _OSC if X86_FEATURE_CPPC is supported

commit 67339319b1b6 ("ACPI: bus: Set CPPC _OSC bits for all and
when CPPC_LIB is supported") added support for claiming to
support CPPC in _OSC on non-Intel platforms.

This unfortunately caused a regression on a vartiety of AMD
platforms in the field because a number of AMD platforms don't set
the `_OSC` bit 5 or 6 to indicate CPPC or CPPC v2 support.

As these AMD platforms already claim CPPC support via a dedicated
MSR from `X86_FEATURE_CPPC`, use this enable this feature rather
than requiring the `_OSC` on platforms with a dedicated MSR.

If there is additional breakage on the shared memory designs also
missing this _OSC, additional follow up changes may be needed.

Fixes: 67339319b1b6 ("Set CPPC _OSC bits for all and when CPPC_LIB is supported")
Reported-by: Perry Yuan <perry.yuan@amd.com>
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
arch/x86/kernel/acpi/cppc.c
drivers/acpi/cppc_acpi.c
include/acpi/cppc_acpi.h