kernel_optimize_test/include/acpi
Maximilian Luz 66a55fafe3 ACPICA: Fix exception code class checks
[ Upstream commit 3dfaea3811f8b6a89a347e8da9ab862cdf3e30fe ]

ACPICA commit 1a3a549286ea9db07d7ec700e7a70dd8bcc4354e

The macros to classify different AML exception codes are broken. For
instance,

  ACPI_ENV_EXCEPTION(Status)

will always evaluate to zero due to

  #define AE_CODE_ENVIRONMENTAL      0x0000
  #define ACPI_ENV_EXCEPTION(Status) (Status & AE_CODE_ENVIRONMENTAL)

Similarly, ACPI_AML_EXCEPTION(Status) will evaluate to a non-zero
value for error codes of type AE_CODE_PROGRAMMER, AE_CODE_ACPI_TABLES,
as well as AE_CODE_AML, and not just AE_CODE_AML as the name suggests.

This commit fixes those checks.

Fixes: d46b6537f0 ("ACPICA: AML Parser: ignore all exceptions resulting from incorrect AML during table load")
Link: https://github.com/acpica/acpica/commit/1a3a5492
Signed-off-by: Maximilian Luz <luzmaximilian@gmail.com>
Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Erik Kaneda <erik.kaneda@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-03-04 11:37:24 +01:00
..
platform Merge back earlier ACPICA-related changes for 5.10. 2020-10-08 18:04:04 +02:00
acbuffer.h
acconfig.h ACPICA: Tree-wide: fix various typos and spelling mistakes 2020-10-08 18:03:55 +02:00
acexcep.h ACPICA: Fix exception code class checks 2021-03-04 11:37:24 +01:00
acnames.h
acoutput.h
acpi_bus.h PM: ACPI: PCI: Drop acpi_pm_set_bridge_wakeup() 2020-12-30 11:54:05 +01:00
acpi_drivers.h
acpi_io.h ACPI: OSL: Change the type of acpi_os_map_generic_address() return value 2020-09-11 16:45:00 +02:00
acpi_lpat.h
acpi_numa.h ACPI updates for 5.10-rc1 2020-10-14 11:42:04 -07:00
acpi.h
acpiosxf.h
acpixf.h ACPICA: Update version to 20200925 Version 20200925 2020-10-08 18:03:56 +02:00
acrestyp.h
actbl.h
actbl1.h
actbl2.h
actbl3.h
actypes.h ACPICA: Drop the repeated word "an" in a comment 2020-10-08 18:03:55 +02:00
acuuid.h ACPICA: acpi_help: Update UUID list 2020-10-08 18:03:55 +02:00
apei.h
battery.h ACPI: battery: include linux/power_supply.h 2020-09-25 18:31:19 +02:00
button.h
cppc_acpi.h
ghes.h ACPI / APEI: Add a notifier chain for unknown (vendor) CPER records 2020-09-16 10:30:42 +01:00
hed.h
nfit.h
pcc.h
pdc_intel.h
processor.h
reboot.h
video.h