]> Git Repo - linux.git/commit
ACPI: bus: Avoid using CPPC if not supported by firmware
authorRafael J. Wysocki <[email protected]>
Wed, 16 Mar 2022 12:39:03 +0000 (13:39 +0100)
committerRafael J. Wysocki <[email protected]>
Thu, 17 Mar 2022 13:51:53 +0000 (14:51 +0100)
commitc42fa24b44751c62c86e98430ef915c0609a2ab8
tree18abd2aa653a3b5443236f6eb1a12586785a0e8a
parent2ca8e6285250c07a2e5a22ecbfd59b5a4ef73484
ACPI: bus: Avoid using CPPC if not supported by firmware

If the platform firmware indicates that it does not support CPPC by
clearing the OSC_SB_CPC_SUPPORT and OSC_SB_CPCV2_SUPPORT bits in the
platform _OSC capabilities mask, avoid attempting to evaluate _CPC
which may fail in that case.

Because the OSC_SB_CPC_SUPPORT and OSC_SB_CPCV2_SUPPORT bits are only
added to the supported platform capabilities mask on x86, when
X86_FEATURE_HWP is supported, allow _CPC to be evaluated regardless
in the other cases.

Link: https://lore.kernel.org/linux-acpi/CAJZ5v0i=ecAksq0TV+iLVObm-=fUfdqPABzzkgm9K6KxO1ZCcg@mail.gmail.com
Signed-off-by: Rafael J. Wysocki <[email protected]>
Tested-by: Mario Limonciello <[email protected]>
Acked-by: Huang Rui <[email protected]>
Reviewed-by: Mika Westerberg <[email protected]>
drivers/acpi/bus.c
drivers/acpi/cppc_acpi.c
include/linux/acpi.h
This page took 0.055869 seconds and 4 git commands to generate.