Thread (25 messages) 25 messages, 4 authors, 2011-02-14

[PATCH 2/2 v2] dma: ipu_idmac: do not lose valid received data in the irq handler

From: Guennadi Liakhovetski <hidden>
Date: 2011-02-07 11:09:26
Also in: linux-media

On Sat, 5 Feb 2011, Anatolij Gustschin wrote:
On Sat, 5 Feb 2011 17:36:37 +0100 (CET)
Guennadi Liakhovetski [off-list ref] wrote:
...
quoted
quoted
quoted
Verified with both capture.c and mplayer. Could you, please, verify 
whether you get the same behaviour and what the problem could be?
Now I did some further testing with idmac patch applied and with
added debug print in the IDMAC interrupt handler. There is no problem.
Testing with capture.c (4 buffers used as default) shows that buffer
numbers toggle correctly for all 100 captured frames:
Hm, interesting, I'll have to look at my testing in more detail then 
(once back from FOSDEM). Could you maybe try mplayer too?
I can't try mplayer since I don't have mplayer setup for this.
But looking at the mplayer source I don't see why it should
behave differently. Depending on mode mplayer queues 2 or 6
buffers. Testing with my test app with 6 queued buffers shows
no issues, here the buffer numbers toggle correctly, too.
Ok, I've done a couple more tests. With larger frames, and, therefore 
lower fps - yes, with your patch buffers toggle correctly. Whereas in my 
tests with smaller frames and higher fps either only one buffer is used, 
or one is used much more often, than the other, e.g., 0 0 0 1 0 0 0 1 0... 
Could you try to verify? Without your patch with any fps buffers toggle 
consistently.

Thanks
Guennadi
---
Guennadi Liakhovetski, Ph.D.
Freelance Open-Source Software Developer
http://www.open-technology.de/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help