From mboxrd@z Thu Jan 1 00:00:00 1970 From: Benjamin Herrenschmidt Subject: Re: [PATCH 06/20] early_res: seperate common memmap func from e820.c to fw_memmap.cy Date: Wed, 24 Mar 2010 15:24:46 +1100 Message-ID: <1269404686.8599.144.camel@pasglop> References: <20100322193720.GA2844@elte.hu> <4BA7CE1B.9070109@kernel.org> <4BA7EE72.7000507@kernel.org> <4BA80019.5000900@kernel.org> <4BA813A4.1010704@kernel.org> <4BA8594F.8090205@kernel.org> <20100323080252.GA4848@elte.hu> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Return-path: Received: from gate.crashing.org ([63.228.1.57]:50017 "EHLO gate.crashing.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750874Ab0CXE0v (ORCPT ); Wed, 24 Mar 2010 00:26:51 -0400 In-Reply-To: <20100323080252.GA4848@elte.hu> Sender: linux-arch-owner@vger.kernel.org List-ID: To: Ingo Molnar Cc: Yinghai Lu , Thomas Gleixner , David Miller , Andrew Morton , Linus Torvalds , hpa@zytor.com, jbarnes@virtuousgeek.org, ebiederm@xmission.com, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org On Tue, 2010-03-23 at 09:02 +0100, Ingo Molnar wrote: > > -u64 find_fw_memmap_area(u64 start, u64 end, u64 size, u64 align); > > +u64 find_lmb_area(u64 start, u64 end, u64 size, u64 align); > > +u64 find_lmb_area_size(u64 start, u64 *sizep, u64 align); > > +u64 find_lmb_area_node(int nid, u64 start, u64 end, u64 size, u64 > align); > > +void lmb_register_active_regions(int nid, unsigned long start_pfn, > > + unsigned long last_pfn); > > +u64 lmb_hole_size(u64 start, u64 end); > > u64 get_max_mapped(void); > > #include > > int get_free_all_memory_range(struct range **rangep, int nodeid); > > those new lmb_*() APIs should go into lmb.h. And while at it properly documented :-) I wouldn't mind also a reasonably clear explanation in the changeset comment as to why they are necessary for x86. To be honest, that's my #1 grief so far with this entire patch set, it Yinghai apparent inability to write anything ressembling remotely like an explanation. All we get is key words, bullet points and half sentences, and I admit have a very very hard time extracting a meaning out of anything he's been writing so far. Cheers, Ben.