If no start address is specified for crashkernel, the current program hard
code as: crashk_res.start = min(0x8000000ULL, (ppc64_rma_size / 2));
This limits the candidate memory region, and may cause failure while there
is enough mem for crashkernel. This patch suggests to find a suitable mem
chunk by memblock_find_in_range()

Cc: Benjamin Herrenschmidt <b...@kernel.crashing.org>
Cc: Michael Ellerman <m...@ellerman.id.au>
Cc: Hari Bathini <hbath...@linux.ibm.com>
Cc: Mahesh Salgaonkar <mah...@linux.vnet.ibm.com>
Cc: Anton Blanchard <an...@samba.org>

Pingfan Liu (2):
  powerpc/prom: move mmu_early_init_devtree() before    
    early_init_dt_scan_cpus()
  powerpc/kexec: avoid hard coding when automatically allocating mem for
        crashkernel

 arch/powerpc/kernel/machine_kexec.c | 24 +++++++++++++++---------
 arch/powerpc/kernel/prom.c          | 10 ++++++----
 2 files changed, 21 insertions(+), 13 deletions(-)

-- 
2.7.4

Reply via email to