Thread (5 messages) flat view 5 messages, 2 authors, 2008-06-06

deferred IO

From: Christian Schoenebeck <hidden>
Date: 2008-06-06 09:35:17

Hi!

Is it possible that the deferred IO implementation in kernel 2.6.22 is buggy? 
Or do I probably misunderstand the overall concept of the FB deferred IO 
mechanism?

I wrote a framebuffer driver for a LCD which is connected via USB. As the 
video memory of the LCD is not physically available to the system (thus not 
IO memory mapped) I registered a FB deferred IO calllback function which 
performs the job of sending the new screen information via USB to the LCD 
whenever someone modified the framebuffer memory.

Unfortunately this deferred IO callback function is only called once per 
process lifetime and not (as I expected it to be) each time the framebuffer 
is actually modified.

I implemented a proc file where I could actually see the framebuffer content 
at any time and placed a:

	printk(KERN_INFO "cuselcdfb_display_update %d\n", ++i);

line in the deferred io callback to see when and how often the deferred IO 
callback function is called. So I could check that a process actually wrote 
to the framebuffer, but the callback would only be triggered once.

Any clues?

Thanks for any comments!

CU
Christian

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help