Thread (3 messages) 3 messages, 3 authors, 2005-05-07

Re: Mapping the framebuffer into kernel space

From: Antonino A. Daplas <hidden>
Date: 2005-05-07 03:14:30

On Friday 29 April 2005 11:55, Jon Smirl wrote:
I looked at a few fbdev drivers and they are mapping the framebuffer
into kernel space.

Example from radeonfb:
  rinfo->mapped_vram = min_t(unsigned long, MAX_MAPPED_VRAM,
rinfo->video_ram); do {
     rinfo->fb_base = ioremap (rinfo->fb_base_phys,
                                       rinfo->mapped_vram);

Isn't the only consumer of this kernel mapping fbconsole? If so
shouldn't fbconsole be doing the mapping instead of doing it in the
drivers? Doing it in fbconsole would let us map exactly the amount of
VRAM needed for the console. Right now the driver has to guess the
maximum consumption.  This would minimize the amount of kernel address
space consumed by fbdev. It could also remove a bunch of redundant
code.
It can be done but not without difficulty.  A few drivers use sections of
the framebuffer space for the cursor, DMA buffer and whatever.  So
when fbcon starts mapping the framebuffer space, it must make sure
that it does not overlap with the driver's, or the space left to the driver
is of the correct size and alignment.

Tony




-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help