powerpc/powernv: Improve kexec reliability
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Fri, 10 May 2013 06:59:18 +0000 (16:59 +1000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Fri, 10 May 2013 06:59:18 +0000 (16:59 +1000)
commit73ed148aea9dc0508be7e30e7a447f55c1b2f378
tree2571b5d1851a9f2bef62e92def3608f738748251
parent1de1455f33709a8afd8d41d26d09739a1148105b
powerpc/powernv: Improve kexec reliability

We add a machine_shutdown hook that frees the OPAL interrupts
(so they get masked at the source and don't fire while kexec'ing)
and which triggers an IODA reset on all the PCIe host bridges
which will have the effect of blocking all DMAs and subsequent
PCIs interrupts.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/include/asm/opal.h
arch/powerpc/platforms/powernv/opal.c
arch/powerpc/platforms/powernv/pci-ioda.c
arch/powerpc/platforms/powernv/pci.c
arch/powerpc/platforms/powernv/pci.h
arch/powerpc/platforms/powernv/powernv.h
arch/powerpc/platforms/powernv/setup.c