]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/eeh: Dump PE location code
authorGavin Shan <gwshan@linux.vnet.ibm.com>
Wed, 11 Jun 2014 08:26:44 +0000 (18:26 +1000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 11 Jun 2014 09:12:23 +0000 (19:12 +1000)
commit72862d1a54871b4eb7ae91955b6c0142ba904cbb
tree722fdbf7ec1406f437f5f4bb2c7073c4fb629642
parent5dc553e10bd2043eadf000bf73ee4718ba2e2d0f
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>
arch/powerpc/include/asm/eeh.h
arch/powerpc/kernel/eeh.c
arch/powerpc/kernel/eeh_pe.c
arch/powerpc/platforms/powernv/eeh-ioda.c