From 5fcfe5ea7a3b0f70a54dc512e057e493b7aa1399 Mon Sep 17 00:00:00 2001 From: Anton Blanchard Date: Thu, 2 Sep 2004 20:22:43 -0700 Subject: [PATCH] [PATCH] ppc64: print backtrace in EEH code We should print a stack backtrace when we get EEH errors, it makes debugging the cause of the fail easier. Signed-off-by: Anton Blanchard Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- arch/ppc64/kernel/eeh.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/ppc64/kernel/eeh.c b/arch/ppc64/kernel/eeh.c index ee8136b9b5279..acb620060126e 100644 --- a/arch/ppc64/kernel/eeh.c +++ b/arch/ppc64/kernel/eeh.c @@ -434,6 +434,10 @@ int eeh_dn_check_failure(struct device_node *dn, struct pci_dev *dev) spin_unlock_irqrestore(&slot_errbuf_lock, flags); + printk(KERN_ERR "EEH: MMIO failure (%d) on device:%s %s\n", + rets[0], pci_name(dev), pci_pretty_name(dev)); + WARN_ON(1); + /* * XXX We should create a separate sysctl for this. * -- 2.53.0