Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752487AbdC0Kqu (ORCPT ); Mon, 27 Mar 2017 06:46:50 -0400 Received: from ozlabs.org ([103.22.144.67]:59669 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751782AbdC0Kqp (ORCPT ); Mon, 27 Mar 2017 06:46:45 -0400 From: Michael Ellerman To: Hari Bathini Cc: fenghua.yu@intel.com, tony.luck@intel.com, linux-ia64@vger.kernel.org, Mahesh J Salgaonkar , dyoung@redhat.com, kexec@lists.infradead.org, linux-kernel@vger.kernel.org, ebiederm@xmission.com, akpm@linux-foundation.org, linuxppc-dev@lists.ozlabs.org, vgoyal@redhat.com Subject: Re: [RESEND PATCH v4 4/5] powerpc/fadump: reuse crashkernel parameter for fadump memory reservation In-Reply-To: <149035346749.6881.911095631212975718.stgit@hbathini.in.ibm.com> References: <149035332237.6881.9486330442785822384.stgit@hbathini.in.ibm.com> <149035346749.6881.911095631212975718.stgit@hbathini.in.ibm.com> User-Agent: Notmuch/0.21 (https://notmuchmail.org) Date: Mon, 27 Mar 2017 21:46:27 +1100 Message-ID: <87poh3dmkc.fsf@concordia.ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1426 Lines: 31 Hari Bathini 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= > only. This patch aims to add support for other syntaxes like range-based > memory size :[,:,:,...] > 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 > Signed-off-by: Hari Bathini > Reviewed-by: Mahesh Salgaonkar > --- > arch/powerpc/kernel/fadump.c | 23 ++++++++++------------- > 1 file changed, 10 insertions(+), 13 deletions(-) Acked-by: Michael Ellerman cheers