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>
Showing
- arch/powerpc/include/asm/eeh.h 1 addition, 0 deletionsarch/powerpc/include/asm/eeh.h
- arch/powerpc/kernel/eeh.c 8 additions, 5 deletionsarch/powerpc/kernel/eeh.c
- arch/powerpc/kernel/eeh_pe.c 60 additions, 0 deletionsarch/powerpc/kernel/eeh_pe.c
- arch/powerpc/platforms/powernv/eeh-ioda.c 15 additions, 6 deletionsarch/powerpc/platforms/powernv/eeh-ioda.c
Loading
Please register or sign in to comment