summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel/eeh.c
diff options
context:
space:
mode:
authorGavin Shan2014-11-22 11:58:09 +0100
committerBenjamin Herrenschmidt2014-12-02 01:03:26 +0100
commita450e8f55a57d049ac3afe218f06567e12d6b4f5 (patch)
tree5d3dbf3db60f86f9cb737bf9cbd41d507720b9a8 /arch/powerpc/kernel/eeh.c
parentpowerpc/eeh: Recover EEH error on ownership change for BCM5719 (diff)
downloadkernel-qcow2-linux-a450e8f55a57d049ac3afe218f06567e12d6b4f5.tar.gz
kernel-qcow2-linux-a450e8f55a57d049ac3afe218f06567e12d6b4f5.tar.xz
kernel-qcow2-linux-a450e8f55a57d049ac3afe218f06567e12d6b4f5.zip
powerpc/eeh: Dump PHB diag-data early
On PowerNV platform, PHB diag-data is dumped after stopping device drivers. In case of recursive EEH errors, the kernel is usually crashed before dumping PHB diag-data for the second EEH error. It's hard to locate the root cause of the second EEH error without PHB diag-data. The patch adds one more EEH option "eeh=early_log", which helps dumping PHB diag-data immediately once frozen PE is detected, in order to get the PHB diag-data for the second EEH error. Signed-off-by: Gavin Shan <gwshan@linux.vnet.ibm.com> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/kernel/eeh.c')
-rw-r--r--arch/powerpc/kernel/eeh.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/powerpc/kernel/eeh.c b/arch/powerpc/kernel/eeh.c
index f1c6b115cb37..05be77d9ea0e 100644
--- a/arch/powerpc/kernel/eeh.c
+++ b/arch/powerpc/kernel/eeh.c
@@ -143,6 +143,8 @@ static int __init eeh_setup(char *str)
{
if (!strcmp(str, "off"))
eeh_add_flag(EEH_FORCE_DISABLED);
+ else if (!strcmp(str, "early_log"))
+ eeh_add_flag(EEH_EARLY_DUMP_LOG);
return 1;
}