]> git.hungrycats.org Git - linux/commitdiff
[PATCH] ppc64: print backtrace in EEH code
authorAnton Blanchard <anton@samba.org>
Fri, 3 Sep 2004 03:22:43 +0000 (20:22 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Fri, 3 Sep 2004 03:22:43 +0000 (20:22 -0700)
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 <anton@samba.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/ppc64/kernel/eeh.c

index ee8136b9b527936b109ca8c65e23da90f1d943f7..acb620060126e1f9fbdec856fbe828e988634cff 100644 (file)
@@ -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.
                 *