linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] powerpc/kexec: automatically allocating mem for crashkernel=Y
@ 2018-08-31  7:30 Pingfan Liu
  2018-08-31  7:30 ` [PATCH 1/2] powerpc/prom: move mmu_early_init_devtree() before early_init_dt_scan_cpus() Pingfan Liu
  2018-08-31  7:30 ` [PATCH 2/2] powerpc/kexec: avoid hard coding when automatically allocating mem for crashkernel Pingfan Liu
  0 siblings, 2 replies; 4+ messages in thread
From: Pingfan Liu @ 2018-08-31  7:30 UTC (permalink / raw)
  To: linuxppc-dev
  Cc: Pingfan Liu, Benjamin Herrenschmidt, Michael Ellerman,
	Hari Bathini, Mahesh Salgaonkar, Anton Blanchard

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 <benh@kernel.crashing.org>
Cc: Michael Ellerman <mpe@ellerman.id.au>
Cc: Hari Bathini <hbathini@linux.ibm.com>
Cc: Mahesh Salgaonkar <mahesh@linux.vnet.ibm.com>
Cc: Anton Blanchard <anton@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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-07-07  9:42 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-08-31  7:30 [PATCH 0/2] powerpc/kexec: automatically allocating mem for crashkernel=Y Pingfan Liu
2018-08-31  7:30 ` [PATCH 1/2] powerpc/prom: move mmu_early_init_devtree() before early_init_dt_scan_cpus() Pingfan Liu
2018-08-31  7:30 ` [PATCH 2/2] powerpc/kexec: avoid hard coding when automatically allocating mem for crashkernel Pingfan Liu
2022-07-07  9:42   ` Christophe Leroy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).