WSL2-Linux-Kernel/include/acpi
Rafael J. Wysocki 0eeb7037a4 ACPI: CPPC: Do not prevent CPPC from working in the future
[ Upstream commit 4f4179fcf4 ]

There is a problem with the current revision checks in
is_cppc_supported() that they essentially prevent the CPPC support
from working if a new _CPC package format revision being a proper
superset of the v3 and only causing _CPC to return a package with more
entries (while retaining the types and meaning of the entries defined by
the v3) is introduced in the future and used by the platform firmware.

In that case, as long as the number of entries in the _CPC return
package is at least CPPC_V3_NUM_ENT, it should be perfectly fine to
use the v3 support code and disregard the additional package entries
added by the new package format revision.

For this reason, drop is_cppc_supported() altogether, put the revision
checks directly into acpi_cppc_processor_probe() so they are easier to
follow and rework them to take the case mentioned above into account.

Fixes: 4773e77cdc ("ACPI / CPPC: Add support for CPPC v3")
Cc: 4.18+ <stable@vger.kernel.org> # 4.18+
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-08-17 14:24:25 +02:00
..
platform ACPI: tools: fix compilation error 2021-10-07 19:18:19 +02:00
acbuffer.h
acconfig.h
acexcep.h
acnames.h ACPICA: Add method name "_DIS" For use with aslmethod.c 2021-08-16 16:47:02 +02:00
acoutput.h ACPICA: Macros should not use a trailing semicolon 2021-08-16 16:47:02 +02:00
acpi.h
acpi_bus.h ACPI: Change acpi_device_always_present() into acpi_device_override_status() 2022-01-27 11:04:33 +01:00
acpi_drivers.h
acpi_io.h Revert "ACPI: Add memory semantics to acpi_os_map_memory()" 2021-09-23 20:39:36 +02:00
acpi_lpat.h
acpi_numa.h
acpiosxf.h
acpixf.h ACPICA: Update version to 20210730 2021-08-16 16:47:02 +02:00
acrestyp.h
actbl.h
actbl1.h ACPICA: Headers: Add new DBG2 Serial Port Subtypes 2021-08-16 16:47:02 +02:00
actbl2.h ACPICA: iASL: Add support for the AEST table (data compiler) 2021-08-16 16:47:01 +02:00
actbl3.h ACPICA: iASL: Fix for WPBT table with no command-line arguments 2021-08-16 16:47:02 +02:00
actypes.h ACPICA: actypes.h: Expand the ACPI_ACCESS_ definitions 2022-01-27 11:04:49 +01:00
acuuid.h
apei.h ACPI: APEI: explicit init of HEST and GHES in apci_init() 2022-08-17 14:23:11 +02:00
battery.h
button.h
cppc_acpi.h ACPI: CPPC: Do not prevent CPPC from working in the future 2022-08-17 14:24:25 +02:00
ghes.h
hed.h
nfit.h
pcc.h
pdc_intel.h
processor.h
reboot.h
video.h