]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
x86_64: grab PLSSR too when a DMA error occurs
authorMuli Ben-Yehuda <muli@il.ibm.com>
Sat, 21 Jul 2007 15:10:57 +0000 (17:10 +0200)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Sun, 22 Jul 2007 01:37:11 +0000 (18:37 -0700)
Signed-off-by: Muli Ben-Yehuda <muli@il.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/x86_64/kernel/pci-calgary.c

index f5828db15220aab13e4a5ba7c8c698d08f659a61..ed16a107d2d4a45c740bb56a6885c842f5b22ea4 100644 (file)
@@ -900,15 +900,18 @@ static void __init calgary_free_bus(struct pci_dev *dev)
 static void calgary_dump_error_regs(struct iommu_table *tbl)
 {
        void __iomem *bbar = tbl->bbar;
-       u32 val32;
        void __iomem *target;
+       u32 csr, plssr;
 
        target = calgary_reg(bbar, phb_offset(tbl->it_busno) | PHB_CSR_OFFSET);
-       val32 = be32_to_cpu(readl(target));
+       csr = be32_to_cpu(readl(target));
+
+       target = calgary_reg(bbar, phb_offset(tbl->it_busno) | PHB_PLSSR_OFFSET);
+       plssr = be32_to_cpu(readl(target));
 
        /* If no error, the agent ID in the CSR is not valid */
        printk(KERN_EMERG "Calgary: DMA error on Calgary PHB 0x%x, "
-              "CSR = 0x%08x\n", tbl->it_busno, val32);
+              "0x%08x@CSR 0x%08x@PLSSR\n", tbl->it_busno, csr, plssr);
 }
 
 static void calioc2_dump_error_regs(struct iommu_table *tbl)