[Cbe-oss-dev] [PATCH] Ignore memory listed in PS3 device tree

Benjamin Herrenschmidt benh at kernel.crashing.org
Wed Apr 4 11:28:42 EST 2007


On Tue, 2007-04-03 at 14:18 -0700, Geoff Levand wrote:

> I'm in the middle of implementing the zImage and kexec support for the
> 2.6.21 kernel, but haven't pushed all of it out to ps3-linux.git yet.
> Once that is done, there is little need for a 2.6.16 based bootloader,
> since it would be just as well to use a recent kernel.
> 
> In the interim, for compatibility with the legacy 2.6.16 based bootloader,
> I have the hack ps3-no-bootwrapper-hack.diff.  Ben Collins did his
> hack for Ubuntu (follows) which tries to use the DT passed from
> the bootloader.  I planed to add it, or similar hack to ps3-linux.git
> sometime soon.  As I mentioned in another mail, the proper way is to
> just grab the command line passed from the bootloader and use it with
> the built-in DT.  Ben's patch does effectively the same thing.

I think that "hack" should be done differently and merged because we
should really support booting off 2.6.16.

The way to do so is to reset the LMB's from ps3_mm_init() before
starting adding to them... or more specifically, reset the LMB's
available region (NOT the reserved ranages !)

We also want to "Fixup" the device tree memory node to make sure that
what is exposed to userspace contains only the RMO as the first region
in there (exposing the rest of memory in a second region or not is
unimportant).

Ben.





More information about the Linuxppc-dev mailing list