Where are logical memory block regions setup?

Benjamin Herrenschmidt benh at kernel.crashing.org
Tue Jul 27 19:28:58 EST 2010


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.




More information about the Linuxppc-dev mailing list