From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from e28smtp07.in.ibm.com (e28smtp07.in.ibm.com [122.248.162.7]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "e28smtp07.in.ibm.com", Issuer "GeoTrust SSL CA" (verified OK)) by ozlabs.org (Postfix) with ESMTPS id 93152B6F76 for ; Tue, 15 Mar 2011 05:13:25 +1100 (EST) Received: from d28relay01.in.ibm.com (d28relay01.in.ibm.com [9.184.220.58]) by e28smtp07.in.ibm.com (8.14.4/8.13.1) with ESMTP id p2EIDKZe006044 for ; Mon, 14 Mar 2011 23:43:20 +0530 Received: from d28av04.in.ibm.com (d28av04.in.ibm.com [9.184.220.66]) by d28relay01.in.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id p2EIDJPB4059266 for ; Mon, 14 Mar 2011 23:43:20 +0530 Received: from d28av04.in.ibm.com (loopback [127.0.0.1]) by d28av04.in.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id p2EIDJ4u006104 for ; Tue, 15 Mar 2011 05:13:19 +1100 Date: Mon, 14 Mar 2011 23:43:15 +0530 From: Mahesh J Salgaonkar To: =?iso-8859-1?Q?Am=E9rico?= Wang Subject: Re: [PATCH 1/2] kdump: Allow shrinking of kdump region to be overridden Message-ID: <20110314181315.GA16075@in.ibm.com> References: <20100825002258.GD28360@kryten> <4D771EE6.5050404@linux.vnet.ibm.com> <20110309122046.GC16951@cr0.redhat.com> <20110309234657.264d3080@kryten> <20110309142108.GD16951@cr0.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 In-Reply-To: <20110309142108.GD16951@cr0.redhat.com> Cc: kexec@lists.infradead.org, linux-kernel@vger.kernel.org, linuxppc-dev@ozlabs.org, "Eric W. Biederman" , akpm@linux-foundation.org, Anton Blanchard Reply-To: mahesh@linux.vnet.ibm.com List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Wed, Mar 09, 2011 at 10:21:08PM +0800, Américo Wang wrote: > On Wed, Mar 09, 2011 at 11:46:57PM +1100, Anton Blanchard wrote: > > > >Hi, > > > >> The crashkernel region is specified via kernel cmdline, so why > >> not just drop a failure when it overlaps with RMO region? > >> Am I missing something? > > > >Unfortunately a ppc64 kernel requires a chunk of RMO memory. We would > >need the ability to specify multiple crashkernel regions - about 32MB > >in the RMO and the rest can be anywhere. That sounds pretty fragile for > >a user to configure successfully on the cmdline. > > > >Thats why the ppc64 crashkernel region begins mid way through the RMO > >region. It means both kernels get a chunk of RMO and we only have to > >deal with one crashkernel reservation in all the tools and > >documentation. > > > > So, when I specify 128M in cmdline, 32M of them are RMO, and the > rest 96M are normal memory? And when I want to free all of them, > actually the 32M RMO will never be freed? In ppc64 implementation the crashkernel region begins mid way through the RMO and spans across into the normal memory. For e.g. on power system with 128M RMO size, when user specifies 128M in cmdline, the crashkernel starts from default offset 64M through 192M. Which means 64M in RMO region and rest beyond RMO. <-------------------RMO---------------> <---rtas--> 0 64M 128M End |=====================|=================|===========|============| Crash_start|<------------128M----------->| Crash End During free we do free all of them including RMO region. But since the rtas region is always on top of RMO, crashkernel memory overlaps rtas region and we endup freeing that even, which is causing the crash. > > > _______________________________________________ > kexec mailing list > kexec@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/kexec -- Signed-off-by: Mahesh Salgaonkar