Thread (9 messages) flat view 9 messages, 2 authors, 2025-11-04

Re: [PATCH v5] powerpc/kdump: Add support for crashkernel CMA reservation

From: Sourabh Jain <hidden>
Date: 2025-11-04 10:36:06
Also in: kexec


On 04/11/25 15:48, Ritesh Harjani (IBM) wrote:
Sourabh Jain [off-list ref] writes:

quoted
I would like to keep kdump_cma_reserve() as is it because of two reasons:

- It keeps setup_arch() free from kdump #ifdefs
Not really.

Instead of kdump_cma_reserve(crashk_cma_size), one could call

reserve_crashkernel_cma(crashk_cma_size) directly in setup_arch().

reserve_crashkernel_cma() is not available unless the kernel is built 
with CONFIG_CRASH_RESERVE.
So, wouldn’t calling reserve_crashkernel_cma() directly from 
setup_arch() lead to a build failure? Or
am I missing something?


quoted
- In case if we want to add some condition on this reservation it would
straight forward.
Make sense.
quoted
So lets keep kdump_cma_reserve as is, unless you have strong opinion on
not to.
No strong opinion, as I said it was a minor nit. Feel free to keep the
function kdump_cma_reserve() as is then.

-ritesh
  
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help