From: Tyler Baicar Date: Wed, 21 Jun 2017 18:17:15 +0000 (-0600) Subject: acpi: apei: check for pending errors when probing GHES entries X-Git-Tag: Ubuntu-4.10.0-33.37~86 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=cbf845795049aec5649cb595048ced1f3e3cb971;p=mirror_ubuntu-zesty-kernel.git acpi: apei: check for pending errors when probing GHES entries 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 Signed-off-by: Will Deacon (cherry picked from commit 77b246b32b2c4bc21e352dcb8b53a8aba81ee5a4) Signed-off-by: Manoj Iyer Acked-by: Stefan Bader Acked-by: Seth Forshee Signed-off-by: Thadeu Lima de Souza Cascardo --- diff --git a/drivers/acpi/apei/ghes.c b/drivers/acpi/apei/ghes.c index 70ea44968ace..f4257268da97 100644 --- a/drivers/acpi/apei/ghes.c +++ b/drivers/acpi/apei/ghes.c @@ -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);