Thread (4 messages) 4 messages, 3 authors, 2004-09-09

Re: Re: Virtual framebuffer driver - mmap problem

From: Antonino A. Daplas <hidden>
Date: 2004-09-09 10:15:55

On Thursday 09 September 2004 16:31, Geert Uytterhoeven wrote:
quoted
So if PAGE_SIZE is 4096, to allocate 8192 bytes, use order = 1. Note that
there is an upper limit to order, so keep videomemorysize small.
And the upper limit is 128 kiB on most platforms. Hence even 640x480 in 8
bpp won't fit...

Probably you can make a fb_mmap() hook that's compatible with the
vmalloc()'ed frame buffer and thus doesn't suffer from this limitation, but
it will require more code and more knowledge of memory management
internals.
Actually, I discovered that MAX_ORDER in 2.4 is 10 (4MiB) and 11 in 2.6 
(8MiB), so it's probably not as limiting as it seems. However, the 
probability of __get_free_pages() failing at such a high order is very high.

Tony




-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help