linux-stable/include/acpi
Rafael J. Wysocki 8544433aea ACPI: CPPC: Do not prevent CPPC from working in the future
commit 4f4179fcf4 upstream.

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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-08-25 11:15:30 +02:00
..
platform
acbuffer.h
acconfig.h ACPICA: Reference Counts: increase max to 0x4000 for large servers 2018-08-14 23:49:13 +02:00
acexcep.h ACPICA: Fix exception code class checks 2021-03-04 09:39:33 +01:00
acnames.h
acoutput.h
acpi.h
acpi_bus.h ACPI: scan: Use unique number for instance_no 2021-03-30 14:37:02 +02:00
acpi_drivers.h
acpi_io.h
acpi_lpat.h
acpi_numa.h
acpiosxf.h
acpixf.h ACPICA: Update version to 20180810 2018-08-14 23:49:13 +02:00
acrestyp.h
actbl.h
actbl1.h
actbl2.h ACPICA: ACPI 6.3: PPTT add additional fields in Processor Structure Flags 2019-10-17 13:45:33 -07:00
actbl3.h
actypes.h ACPICA: actypes.h: Expand the ACPI_ACCESS_ definitions 2022-01-27 09:04:27 +01:00
acuuid.h
apei.h
battery.h
button.h
cppc_acpi.h ACPI: CPPC: Do not prevent CPPC from working in the future 2022-08-25 11:15:30 +02:00
ghes.h
hed.h
nfit.h
pcc.h
pdc_intel.h
processor.h x86: ACPI: fix CPU hotplug deadlock 2020-04-23 10:30:20 +02:00
reboot.h
video.h