powerpc/powernv: Add an option to wipe PCI bridges on shutdown
PATCH 1/1 powerpc/powernv: Add an option to wipe PCI bridges on shutdown
Older kernels such as 3.6 used by Fedora 18 have a problem with the way more recent kernels configure the PCI bridge windows due to my crappy old resource allocation code (we now use the generic code which is way better).
In order to be able to safely kexec into those earlier kernels (which we may need to do in some circumstances to launch distro installers), we need to cleanup the bridges to avoid tripping that bug.
This adds an option to do that, which is expected to be enabled on kernels used as kexec-based bootloaders.
Signed-off-by Benjamin Herrenschmidt <[email protected]>
--- arch/powerpc/platforms/powernv/Kconfig | 5 ++++ arch/powerpc/platforms/powernv/pci-ioda.c | 42 +++++++++++++++++++++++++++++ 2 files changed, 47 insertions(+)
arch/powerpc/platforms/powernv/Kconfig +5 -0
@@ -19,3 +19,8 @@ config PPC_POWERNV_RTAS default y select PPC_ICS_RTAS select PPC_RTAS + +config PPC_POWERNV_PCI_CLEANUP + depends on KEXEC && PCI && PPC_POWERNV + bool "Wipe PCI bridges on shutdown for safer kexec to earlier kernels" + default y
arch/powerpc/platforms/powernv/pci-ioda.c +42 -0
48 lines not on this page · raw message