2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-25 05:34:00 +08:00
linux-next/drivers/acpi/apei
gengdongjiu c4335fdd38 ACPI: APEI: fix the wrong iteration of generic error status block
The revision 0x300 generic error data entry is different
from the old version, but currently iterating through the
GHES estatus blocks does not take into account this difference.
This will lead to failure to get the right data entry if GHES
has revision 0x300 error data entry.

Update the GHES estatus iteration macro to properly increment using
acpi_hest_get_next(), and correct the iteration termination condition
because the status block data length only includes error data
length.

Convert the CPER estatus checking and printing iteration logic
to use same macro.

Signed-off-by: Dongjiu Geng <gengdongjiu@huawei.com>
Tested-by: Tyler Baicar <tbaicar@codeaurora.org>
Reviewed-by: Borislav Petkov <bp@suse.de>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
2017-08-24 03:29:46 +02:00
..
apei-base.c ACPI / APEI: Fix leaked resources 2016-03-11 00:13:25 +01:00
apei-internal.h ACPI: APEI: fix the wrong iteration of generic error status block 2017-08-24 03:29:46 +02:00
bert.c ACPI: APEI: Fix BERT resources conflict with ACPI NVS area 2017-02-27 22:53:11 +01:00
einj.c ACPI, APEI, EINJ: fix malformed newline escape 2017-01-31 22:39:54 +01:00
erst-dbg.c ACPI: Remove FSF mailing addresses 2015-07-08 02:27:32 +02:00
erst.c treewide: use kv[mz]alloc* rather than opencoded variants 2017-05-08 17:15:13 -07:00
ghes.c ACPI: APEI: Enable APEI multiple GHES source to share a single external IRQ 2017-07-31 13:09:39 +02:00
hest.c acpi: apei: read ack upon ghes record consumption 2017-06-22 15:43:47 +01:00
Kconfig acpi: apei: handle SEA notification type for ARMv8 2017-06-22 18:22:03 +01:00
Makefile ACPI / APEI: Add Boot Error Record Table (BERT) support 2016-06-29 23:35:05 +02:00