[PATCH 5/9] ps3: Preallocate bootmem memory for ps3fb
Michael Ellerman
michael at ellerman.id.au
Tue Jan 30 13:29:17 EST 2007
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?
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/20070130/11609b3e/attachment.pgp>
More information about the Linuxppc-dev
mailing list