On Mon, 2010-09-20 at 21:05 +0200, Florian Tobias Schandinat wrote: > > Bruno PrÃmont schrieb: > > > > On Sun, 19 September 2010 Florian Tobias Schandinat <FlorianSchandinat@xxxxxx> wrote: > >> > >> Bruno PrÃmont schrieb: > >>> For USB-attached (or other hot-(un)pluggable) framebuffers the current > >>> fbdev infrastructure is not very helpful. Each such driver currently > >>> needs to perform the ref-counting on its own in .fbops.fb_open and > >>> .fbops.fb_release callbacks. > >> I agree. This is a great idea even for non-hot-(un)pluggable framebuffers. > > > > Yes, things like drmfb and drivers of multi-head capable framebuffer > > drivers would certainly appreciate as well, but they will probably also > > want to care about users (of fb_info.screen_base). > > I don't see any special users of fb_info.screen_base. It's only used for > software fallbacks of acceleration functions and fb_read/fb_write (which I'd > consider rare to fb_mmap). The bad thing of screen_base is that it can make > viafb try to map up to 512MB on 32 bit systems... > Much more painful IMHO are the mmaped areas in userspace which essentially > prevent moving around of the screen framebuffer inside the video ram. Actually, FWIW, when I tried to fix the framebuffer being pinned at a fixed location in VRAM all the time in radeondrmfb, the userspace mappings didn't seem to be any particular problem thanks to TTM. The problem was the framebuffer CPU access by fbcon, as it can happen from pretty much any context. The only possible solution at this point seems to be to prevent fbcon CPU access completely by providing accelerated versions of all its relevant hooks. -- Earthling Michel DÃnzer | http://www.vmware.com Libre software enthusiast | Debian, X and DRI developer -- To unsubscribe from this list: send the line "unsubscribe linux-fbdev" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html