fadump: Reserve the memory for firmware assisted dump.
Mahesh Salgaonkar authored

Reserve the memory during early boot to preserve CPU state data, HPTE region
and RMA (real mode area) region data in case of kernel crash. At the time of
crash, powerpc firmware will store CPU state data, HPTE region data and move
RMA region data to the reserved memory area.

If the firmware-assisted dump fails to reserve the memory, then fallback
to existing kexec-based kdump.

Most of the code implementation to reserve memory has been
adapted from phyp assisted dump implementation written by Linas Vepstas
and Manish Ahuja

This patch also introduces a config option CONFIG_FA_DUMP for firmware
assisted dump feature on Powerpc (ppc64) architecture.
Signed-off-by: default avatarMahesh Salgaonkar <mahesh@linux.vnet.ibm.com>
Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
eb39c880
Name Last commit Last update
..
alpha Merge branch 'linux-next' of git://git.kernel.org/pub/scm/linux/kernel/git/jbarnes/pci
arm Merge tag 'fixes-3.3-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc
avr32 avr32: select generic atomic64_t support
blackfin Merge branch 'linux-next' of git://git.kernel.org/pub/scm/linux/kernel/git/jbarnes/pci
c6x C6X: replace tick_nohz_stop/restart_sched_tick calls
cris Merge tag 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost
frv Merge branch 'for-next' of git://git.infradead.org/users/dhowells/linux-headers
h8300 Merge branch 'linux-next' of git://git.kernel.org/pub/scm/linux/kernel/git/jbarnes/pci
hexagon lib: move GENERIC_IOMAP to lib/Kconfig
ia64 Merge branch 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux
m32r Merge branch 'for-next' of git://git.infradead.org/users/dhowells/linux-headers
m68k Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/geert/linux-m68k
microblaze Revert "microblaze: Add topology init"
mips mips: use the the PCI controller's io_map_base
mn10300 Merge branch 'for-next' of git://git.infradead.org/users/dhowells/linux-headers
openrisc Merge branch 'kbuild' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild
parisc parisc, exec: remove redundant set_fs(USER_DS)
powerpc fadump: Reserve the memory for firmware assisted dump.
s390 [S390] correct ktime to tod clock comparator conversion
score score: fix off-by-one index into syscall table
sh sh: use the the PCI channels's io_map_base
sparc lib: Fix multiple definitions of clz_tab
tile Merge branch 'for-next' of git://git.infradead.org/users/dhowells/linux-headers
um Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/audit
unicore32 Merge branch 'linux-next' of git://git.kernel.org/pub/scm/linux/kernel/git/jbarnes/pci
x86
xtensa
.gitignore
Kconfig