From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from sunset.davemloft.net (unknown [74.93.104.97]) by ozlabs.org (Postfix) with ESMTP id 8E8EADDF7A for ; Thu, 14 Feb 2008 09:33:28 +1100 (EST) Date: Wed, 13 Feb 2008 14:33:59 -0800 (PST) Message-Id: <20080213.143359.258873954.davem@davemloft.net> To: galak@kernel.crashing.org Subject: Re: [PATCH] [POWERPC] Fix initial lmb add region with a non-zero base From: David Miller In-Reply-To: References: Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Cc: sparclinux@vger.kernel.org, linuxppc-dev@ozlabs.org, linux-kernel@vger.kernel.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Kumar Gala Date: Wed, 13 Feb 2008 07:37:27 -0600 (CST) > If we add to an empty lmb region with a non-zero base we will not coalesce > the number of regions done to one. This causes problems on ppc32 for the > memory region as its assumed to only have one region. > > We can fix this be easily specially casing the initial add to just replace > the dummy region. > > --- > > Posting this since Dave's looking a pulling the lmb code out into lib/ and > sharing it between powerpc and sparc. > > (this is my git tree git.kernel.org:/pub/scm/linux/kernel/git/galak/powerpc.git) I noticed this issue when I use lmb on sparc64 and I intended to bring it up eventually. Thanks for fixing it!