mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
ACPI, APEI: Fixup incorrect 64-bit access width firmware bug
The bit width check was introduced by15afae60(ACPI, APEI: Fix incorrect APEI register bit width check and usage), and a fixup for incorrect 32-bit width memory address was given byf712c71(ACPI, APEI: Fixup common access width firmware bug). Now there is a similar symptom: [Firmware Bug]: APEI: Invalid bit width + offset in GAR [0x12345000/64/0/3/0] Another bogus BIOS reports an incorrect 64-bit width in trigger table. Thus, apply to a similar workaround for 64-bit width memory address. Signed-off-by: Lans Zhang <[email protected]> Acked-by: Gary Hade <[email protected]> Acked-by: Myron Stowe <[email protected]> Acked-by: Jean Delvare <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
This commit is contained in:
parent
f427e5f1cf
commit
2521686539
1 changed files with 3 additions and 0 deletions
|
|
@ -590,6 +590,9 @@ static int apei_check_gar(struct acpi_generic_address *reg, u64 *paddr,
|
|||
if (bit_width == 32 && bit_offset == 0 && (*paddr & 0x03) == 0 &&
|
||||
*access_bit_width < 32)
|
||||
*access_bit_width = 32;
|
||||
else if (bit_width == 64 && bit_offset == 0 && (*paddr & 0x07) == 0 &&
|
||||
*access_bit_width < 64)
|
||||
*access_bit_width = 64;
|
||||
|
||||
if ((bit_width + bit_offset) > *access_bit_width) {
|
||||
pr_warning(FW_BUG APEI_PFX
|
||||
|
|
|
|||
Loading…
Reference in a new issue