[PATCH] acpi: apei: check for pending errors when probing GHES entries

Manoj Iyer manoj.iyer at canonical.com
Tue Jun 20 03:50:15 UTC 2017

From: Tyler Baicar <tbaicar at codeaurora.org>

Check for pending errors when probing GHES entries. It is possible
that a fatal error is already pending at this point, so we should
handle it as soon as the driver is probed. This also avoids a
potential issue if there was an interrupt that was already
cleared for an error since the GHES driver wasn't present.

BugLink: https://launchpad.net/bugs/1698448

Signed-off-by: Tyler Baicar <tbaicar at codeaurora.org>
Reviewed-by: Borislav Petkov <bp at suse.de>
Signed-off-by: Will Deacon <will.deacon at arm.com>
(cherry picked from commit f561618d9b8019d3590950f19e2f75f9e20ed0c7)
Signed-off-by: Manoj Iyer <manoj.iyer at canonical.com>
 drivers/acpi/apei/ghes.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/acpi/apei/ghes.c b/drivers/acpi/apei/ghes.c
index e53bef6cf53c..b640fb6e2fb3 100644
--- a/drivers/acpi/apei/ghes.c
+++ b/drivers/acpi/apei/ghes.c
@@ -1039,6 +1039,9 @@ static int ghes_probe(struct platform_device *ghes_dev)
 	platform_set_drvdata(ghes_dev, ghes);
+	/* Handle any pending errors right away */
+	ghes_proc(ghes);
 	return 0;

More information about the kernel-team mailing list