[PATCH 5/9] ps3: Preallocate bootmem memory for ps3fb

Michael Ellerman michael at ellerman.id.au
Wed Jan 31 09:37:24 EST 2007


On Tue, 2007-01-30 at 09:16 +0100, Geert Uytterhoeven wrote:
> On Tue, 30 Jan 2007, Michael Ellerman wrote:
> > On Thu, 2007-01-25 at 18:50 +0100, Geert Uytterhoeven wrote:
> > > Preallocate bootmem memory for the PS3 frame buffer device, which needs a
> > > large block of physically-contiguous memory. The size of this memory block is
> > > configurable:
> > >   - The config option CONFIG_FB_PS3_DEFAULT_SIZE_M allows to specify the
> > >     default amount of memory (in MiB) allocated to the virtual frame buffer.
> > >   - The early boot parameter `ps3fb=xxx' allows to override the default value.
> > >     It will be rounded up to a multiple of 1 MiB, if needed.
> > > 
> > > Signed-off-by: Geert Uytterhoeven <Geert.Uytterhoeven at sonycom.com>
> > > Signed-off-by: Geoff Levand <geoffrey.levand at am.sony.com>
> > 
> > Rather than doing the alloc in setup.c, defining a structure to the hold
> > the params, and then exporting the structure - why don't you just do the
> > alloc in the ps3 fb driver code, and have it all private in there?
> 
> Because at that time it's no longer possible to allocate such a big block of
> memory.

When it's built as a module, yeah I thought you'd say that. Oh well.

cheers

-- 
Michael Ellerman
OzLabs, IBM Australia Development Lab

wwweb: http://michael.ellerman.id.au
phone: +61 2 6212 1183 (tie line 70 21183)

We do not inherit the earth from our ancestors,
we borrow it from our children. - S.M.A.R.T Person
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://lists.ozlabs.org/pipermail/linuxppc-dev/attachments/20070131/d69d084e/attachment.pgp>


More information about the Linuxppc-dev mailing list