Discuss: Adding OF Flat Dev Tree to ppc32

Jon Loeliger jdl at freescale.com
Thu Jun 16 05:00:46 EST 2005


On Tue, 2005-06-07 at 22:06, Benjamin Herrenschmidt wrote:

> It's basically used to extract some infos directly from the flattened
> tree in order to construct the LMB list (list of memory blocks,
> equivalent of ppc32's mem_pieces), 


OK.  So the unflattenting process requires a small amount
of memory allocation which is currently implemented using
the lmb mechanism in PPC64 land.

As you indicate, there is also the mem_pieces implementation
over in ppc32 land.  I think it is currently only used by
arch/ppc/platforms/pmac_setup.c.


In porting this code over to PPC32 land, there are roughly
three choices:

   1) Copy the LMB implementation from ppc64 over to PPC32 land,

   2) Change the unflattening code in PPC32 to use mem_pieces,
      or rewrite it to allow a configurable choice between
      LMB and mem_pieces,
or
   3) Make up something new, yet very similar to LMB and
      mem_pieces.

Does anyone have suggestions or advice on route 1) or 2)?
Anyone?  Kumar?  Ben?  Bueller?

Thanks,
jdl





More information about the Linuxppc-embedded mailing list