aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/include/asm
diff options
context:
space:
mode:
authorGavin Shan <gwshan@linux.vnet.ibm.com>2014-04-24 04:00:16 -0400
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2014-04-28 03:34:19 -0400
commit2a18dfc6ee2ea00bba767f6968f1a107fdd8e687 (patch)
treebe399609ba6b1940566259db47a2655b29df5699 /arch/powerpc/include/asm
parent2d86c385a15452bdc5b7d09d6881c35746af0ee6 (diff)
powerpc/eeh: Use cached capability for log dump
When calling into eeh_gather_pci_data() on pSeries platform, we possiblly don't have pci_dev instance yet, but eeh_dev is always ready. So we use cached capability from eeh_dev instead of pci_dev for log dump there. In order to keep things unified, we also cache PCI capability positions to eeh_dev for PowerNV as well. Signed-off-by: Gavin Shan <gwshan@linux.vnet.ibm.com> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/include/asm')
-rw-r--r--arch/powerpc/include/asm/eeh.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/powerpc/include/asm/eeh.h b/arch/powerpc/include/asm/eeh.h
index fa32d8dbf1cd..f0183e36f610 100644
--- a/arch/powerpc/include/asm/eeh.h
+++ b/arch/powerpc/include/asm/eeh.h
@@ -99,7 +99,9 @@ struct eeh_dev {
99 int config_addr; /* Config address */ 99 int config_addr; /* Config address */
100 int pe_config_addr; /* PE config address */ 100 int pe_config_addr; /* PE config address */
101 u32 config_space[16]; /* Saved PCI config space */ 101 u32 config_space[16]; /* Saved PCI config space */
102 u8 pcie_cap; /* Saved PCIe capability */ 102 int pcix_cap; /* Saved PCIx capability */
103 int pcie_cap; /* Saved PCIe capability */
104 int aer_cap; /* Saved AER capability */
103 struct eeh_pe *pe; /* Associated PE */ 105 struct eeh_pe *pe; /* Associated PE */
104 struct list_head list; /* Form link list in the PE */ 106 struct list_head list; /* Form link list in the PE */
105 struct pci_controller *phb; /* Associated PHB */ 107 struct pci_controller *phb; /* Associated PHB */