diff options
author | Gavin Shan <gwshan@linux.vnet.ibm.com> | 2014-06-11 04:26:44 -0400 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2014-06-11 05:12:23 -0400 |
commit | 357b2f3dd9b7e220ddbaef5bcc108f0359dc0fcf (patch) | |
tree | 722fdbf7ec1406f437f5f4bb2c7073c4fb629642 /arch/powerpc/include/asm | |
parent | d4e58e5928f8c6c49228451dd03e0714cbab299a (diff) |
powerpc/eeh: Dump PE location code
As Ben suggested, it's meaningful to dump PE's location code
for site engineers when hitting EEH errors. The patch introduces
function eeh_pe_loc_get() to retireve the location code from
dev-tree so that we can output it when hitting EEH errors.
If primary PE bus is root bus, the PHB's dev-node would be tried
prior to root port's dev-node. Otherwise, the upstream bridge's
dev-node of the primary PE bus will be check for the location code
directly.
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.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/eeh.h b/arch/powerpc/include/asm/eeh.h index b76f58c124ca..fab7743c2640 100644 --- a/arch/powerpc/include/asm/eeh.h +++ b/arch/powerpc/include/asm/eeh.h | |||
@@ -254,6 +254,7 @@ void *eeh_pe_traverse(struct eeh_pe *root, | |||
254 | void *eeh_pe_dev_traverse(struct eeh_pe *root, | 254 | void *eeh_pe_dev_traverse(struct eeh_pe *root, |
255 | eeh_traverse_func fn, void *flag); | 255 | eeh_traverse_func fn, void *flag); |
256 | void eeh_pe_restore_bars(struct eeh_pe *pe); | 256 | void eeh_pe_restore_bars(struct eeh_pe *pe); |
257 | const char *eeh_pe_loc_get(struct eeh_pe *pe); | ||
257 | struct pci_bus *eeh_pe_bus_get(struct eeh_pe *pe); | 258 | struct pci_bus *eeh_pe_bus_get(struct eeh_pe *pe); |
258 | 259 | ||
259 | void *eeh_dev_init(struct device_node *dn, void *data); | 260 | void *eeh_dev_init(struct device_node *dn, void *data); |