]> git.baikalelectronics.ru Git - kernel.git/commit
acpi/arm64: ignore 5.1 FADTs that are reported as 5.0
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Wed, 19 Jun 2019 12:18:31 +0000 (14:18 +0200)
committerCatalin Marinas <catalin.marinas@arm.com>
Mon, 24 Jun 2019 17:10:38 +0000 (18:10 +0100)
commit2119c56bbf11ecf9f4239e8461626312b4d9d3e7
treec3c22ddd49ba6574286ef420b88fc55368e132ee
parent77ab6a0443ed4de57af553f3d293a998711aeecb
acpi/arm64: ignore 5.1 FADTs that are reported as 5.0

Some Qualcomm Snapdragon based laptops built to run Microsoft Windows
are clearly ACPI 5.1 based, given that that is the first ACPI revision
that supports ARM, and introduced the FADT 'arm_boot_flags' field,
which has a non-zero field on those systems.

So in these cases, infer from the ARM boot flags that the FADT must be
5.1 or later, and treat it as 5.1.

Acked-by: Sudeep Holla <sudeep.holla@arm.com>
Tested-by: Lee Jones <lee.jones@linaro.org>
Reviewed-by: Graeme Gregory <graeme.gregory@linaro.org>
Acked-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Acked-by: Hanjun Guo <guohanjun@huawei.com>
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/kernel/acpi.c