summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/platforms/powernv/powernv.h
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2013-05-10 16:59:18 +1000
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2013-05-10 16:59:18 +1000
commit73ed148aea9dc0508be7e30e7a447f55c1b2f378 (patch)
tree2571b5d1851a9f2bef62e92def3608f738748251 /arch/powerpc/platforms/powernv/powernv.h
parent1de1455f33709a8afd8d41d26d09739a1148105b (diff)
downloadlinux-0-day-73ed148aea9dc0508be7e30e7a447f55c1b2f378.tar.gz
linux-0-day-73ed148aea9dc0508be7e30e7a447f55c1b2f378.tar.xz
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>
Diffstat (limited to 'arch/powerpc/platforms/powernv/powernv.h')
-rw-r--r--arch/powerpc/platforms/powernv/powernv.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/powerpc/platforms/powernv/powernv.h b/arch/powerpc/platforms/powernv/powernv.h
index 8a9df7f9667ed..a1c6f83fc3916 100644
--- a/arch/powerpc/platforms/powernv/powernv.h
+++ b/arch/powerpc/platforms/powernv/powernv.h
@@ -9,8 +9,10 @@ static inline void pnv_smp_init(void) { }
#ifdef CONFIG_PCI
extern void pnv_pci_init(void);
+extern void pnv_pci_shutdown(void);
#else
static inline void pnv_pci_init(void) { }
+static inline void pnv_pci_shutdown(void) { }
#endif
#endif /* _POWERNV_H */