From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yinghai Lu Subject: Re: [PATCH -v9 00/31] use lmb with x86 Date: Mon, 29 Mar 2010 15:41:19 -0700 Message-ID: <4BB12C8F.30802@kernel.org> References: <1269830604-26214-1-git-send-email-yinghai@kernel.org> <1269865331.24620.44.camel@concordia> <4BB0DAC2.3000805@kernel.org> <1269900605.2286.2.camel@concordia> <4BB126F6.8020805@kernel.org> <1269901944.2286.18.camel@concordia> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Return-path: Received: from hera.kernel.org ([140.211.167.34]:59224 "EHLO hera.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752272Ab0C2WnU (ORCPT ); Mon, 29 Mar 2010 18:43:20 -0400 In-Reply-To: <1269901944.2286.18.camel@concordia> Sender: linux-arch-owner@vger.kernel.org List-ID: To: michael@ellerman.id.au Cc: Ingo Molnar , Thomas Gleixner , "H. Peter Anvin" , Andrew Morton , David Miller , Benjamin Herrenschmidt , Linus Torvalds , Johannes Weiner , linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org On 03/29/2010 03:32 PM, Michael Ellerman wrote: >> >> I want to keep the affects to other lmb users to minium at first. > > That's a good plan, but I don't think this is the nicest way to do it. > Too much to be test. so better to keep less impact to current lmb users. >> and we can merge those functions later. >> >> or you insist on merging them in this patchset? > > No I don't insist. > > I _suggest_ that if we want to avoid affecting existing lmb users, then > the checking logic should go into the existing API, but be #ifdef'ed for > now - eg. CONFIG_DYNAMIC_LMB or something. That way you avoid affecting > existing users (more or less), but you don't add a new API that you then > have to remove later. > > Having said that I don't think it really does affect existing users that > much. We still have the statically defined region arrays, and they're > still the same size, so sparc and powerpc should never need to resize, > except on machines where we currently run out of space in the array > anyway. dynamic region array for lmb.memory and lmb.reserved, actually is only need when plan to use lmb to replace bootmem code. Thanks Yinghai