Subject: Re: Where are logical memory block regions setup?

From: Benjamin Herrenschmidt <[email-masked]>
Date: Tue, 27 Jul 2010 19:28:58 +1000

On Mon, 2010-07-26 at 22:52 -0400, Rick Ramstetter wrote:
> Hi all,
> 
> Where can I find the code that sets values in lmb.reserved.region[i]? 
> This is in reference to 2.6.27's arch/powerpc/mm/mem.c and
> include/linux/lmb.h
> 
> I'm looking specifically for code that sets lmb_region's region.size
> and region.base.

They come from the reserve map in the device-tree, plus possible
additional calls to lmb_reserve. Do a grep -r lmb_reserve arch/powerpc
and you should find it all.

Cheers,
Ben.