]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
ACPI: APEI: fix the wrong iteration of generic error status block
authorgengdongjiu <gengdongjiu@huawei.com>
Tue, 16 Jan 2018 23:14:47 +0000 (17:14 -0600)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Tue, 6 Feb 2018 12:15:28 +0000 (13:15 +0100)
commit69df5b67d0e931df8ffd0a48da15f341b5f228ef
treea42abc3fc513bf1aaa773ce02d93400af017805a
parent52ecd913c9169195da9f4c0ef37a5f679907199a
ACPI: APEI: fix the wrong iteration of generic error status block

BugLink: https://launchpad.net/bugs/1732990
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>
(cherry picked from commit c4335fdd38227788178953c101b77180504d7ea0)
Signed-off-by: Manoj Iyer <manoj.iyer@canonical.com>
Acked-by: Paolo Pisati <paolo.pisati@canonical.com>
Acked-by: Khalid Elmously <khalid.elmously@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/acpi/apei/apei-internal.h
drivers/firmware/efi/cper.c
include/acpi/ghes.h