]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commitdiff
acpi: apei: check for pending errors when probing GHES entries
authorTyler Baicar <tbaicar@codeaurora.org>
Wed, 21 Jun 2017 18:17:15 +0000 (12:17 -0600)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Wed, 9 Aug 2017 14:23:27 +0000 (16:23 +0200)
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/1696570
Signed-off-by: Tyler Baicar <tbaicar@codeaurora.org>
Signed-off-by: Will Deacon <will.deacon@arm.com>
(cherry picked from commit 77b246b32b2c4bc21e352dcb8b53a8aba81ee5a4)
Signed-off-by: Manoj Iyer <manoj.iyer@canonical.com>
Acked-by: Stefan Bader <stefan.bader@canonical.com>
Acked-by: Seth Forshee <seth.forshee@canonical.com>
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
drivers/acpi/apei/ghes.c

index 70ea44968ace2ed888c73ae2a5dae18fb806ab77..f4257268da97e7bb7bc721509c6359b64b3b5010 100644 (file)
@@ -1182,6 +1182,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;
 err_edac_unreg:
        ghes_edac_unregister(ghes);