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

Geert Uytterhoeven Geert.Uytterhoeven at sonycom.com
Tue Jan 30 19:36:09 EST 2007


On Tue, 30 Jan 2007, Arnd Bergmann wrote:
> On Tuesday 30 January 2007 09:16, Geert Uytterhoeven wrote:
> > We have a similar problem with the storage driver, which needs a block of 256
> > KiB of contiguous memory.
> 
> I guess at least that one should be solveable. If the 256kb is only
> internal flash access, it is should not be part of the storage driver
> but of whatever else is used to drive this.

If we convert the FLASH part to a character device driver, the 256 KiB will be
internal to the character device driver.

> Assuming the module gets loaded shortly after boot, you can still allocate
> 256kb practically always, using get_free_pages().

I'm afraid that assumption is usually false, as you only need to access the
FLASH when you want to change boot flags or update the boot loader.

Gr{oetje,eeting}s,

						Geert

--
Geert Uytterhoeven -- Sony Network and Software Technology Center Europe (NSCE)
Geert.Uytterhoeven at sonycom.com ------- The Corporate Village, Da Vincilaan 7-D1
Voice +32-2-7008453 Fax +32-2-7008622 ---------------- B-1935 Zaventem, Belgium



More information about the Linuxppc-dev mailing list