[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <87poh3dmkc.fsf@concordia.ellerman.id.au>
Date: Mon, 27 Mar 2017 21:46:27 +1100
From: Michael Ellerman <mpe@...erman.id.au>
To: Hari Bathini <hbathini@...ux.vnet.ibm.com>
Cc: fenghua.yu@...el.com, tony.luck@...el.com,
linux-ia64@...r.kernel.org,
Mahesh J Salgaonkar <mahesh@...ux.vnet.ibm.com>,
dyoung@...hat.com, kexec@...ts.infradead.org,
linux-kernel@...r.kernel.org, ebiederm@...ssion.com,
akpm@...ux-foundation.org, linuxppc-dev@...ts.ozlabs.org,
vgoyal@...hat.com
Subject: Re: [RESEND PATCH v4 4/5] powerpc/fadump: reuse crashkernel parameter for fadump memory reservation
Hari Bathini <hbathini@...ux.vnet.ibm.com> writes:
> fadump supports specifying memory to reserve for fadump's crash kernel
> with fadump_reserve_mem kernel parameter. This parameter currently
> supports passing a fixed memory size, like fadump_reserve_mem=<size>
> only. This patch aims to add support for other syntaxes like range-based
> memory size <range1>:<size1>[,<range2>:<size2>,<range3>:<size3>,...]
> which allows using the same parameter to boot the kernel with different
> system RAM sizes.
>
> As crashkernel parameter already supports the above mentioned syntaxes,
> this patch deprecates fadump_reserve_mem parameter and reuses crashkernel
> parameter instead, to specify memory for fadump's crash kernel memory
> reservation as well. If any offset is provided in crashkernel parameter,
> it will be ignored in case of fadump, as fadump reserves memory at end
> of RAM.
>
> Advantages using crashkernel parameter instead of fadump_reserve_mem
> parameter are one less kernel parameter overall, code reuse and support
> for multiple syntaxes to specify memory.
>
> Suggested-by: Dave Young <dyoung@...hat.com>
> Signed-off-by: Hari Bathini <hbathini@...ux.vnet.ibm.com>
> Reviewed-by: Mahesh Salgaonkar <mahesh@...ux.vnet.ibm.com>
> ---
> arch/powerpc/kernel/fadump.c | 23 ++++++++++-------------
> 1 file changed, 10 insertions(+), 13 deletions(-)
Acked-by: Michael Ellerman <mpe@...erman.id.au>
cheers
Powered by blists - more mailing lists