* Request clarification on videobuf irqlock and vb_lock usage
@ 2011-02-26 18:57 Ben Collins
2011-02-27 4:08 ` Andy Walls
0 siblings, 1 reply; 2+ messages in thread
From: Ben Collins @ 2011-02-26 18:57 UTC (permalink / raw)
To: linux-media
I'm trying to cleanup some deadlocks and random crashed in my v4l2 driver (solo6x10) and I cannot find definitive documentation on that clear usage of irqlock and vb_lock in a driver that uses videobuf.
When and where should I be using either of these to ensure I work synchronously with the videobuf-core?
--
Bluecherry: http://www.bluecherrydvr.com/
SwissDisk : http://www.swissdisk.com/
Ubuntu : http://www.ubuntu.com/
My Blog : http://ben-collins.blogspot.com/
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Request clarification on videobuf irqlock and vb_lock usage
2011-02-26 18:57 Request clarification on videobuf irqlock and vb_lock usage Ben Collins
@ 2011-02-27 4:08 ` Andy Walls
0 siblings, 0 replies; 2+ messages in thread
From: Andy Walls @ 2011-02-27 4:08 UTC (permalink / raw)
To: Ben Collins; +Cc: linux-media
On Sat, 2011-02-26 at 13:57 -0500, Ben Collins wrote:
> I'm trying to cleanup some deadlocks and random crashed in my v4l2
> driver (solo6x10) and I cannot find definitive documentation on that
> clear usage of irqlock and vb_lock in a driver that uses videobuf.
Here is the best documentation on videobuf(1) that I ever saw:
http://git.linuxtv.org/media_tree.git?a=blob;f=Documentation/video4linux/videobuf;h=17a1f9abf260f39a44dee35bf7b72a0c66fd71fc;hb=df37e8479875c486d668fdf5bf65dba41422dd76
And here is the bad news about videobuf(1):
http://linuxtv.org/downloads/presentations/summit_jun_2010/20100614-v4l2_summit-videobuf.pdf
Since videobuf2 in now in the bleeding edge kernel, you should look at
using it:
http://lwn.net/Articles/420512/
http://linuxtv.org/downloads/presentations/summit_jun_2010/Videobuf_Helsinki_June2010.pdf
Tonight, I've actually been xamining using videobuf2 for cx18 myself.
> When and where should I be using either of these to ensure I work synchronously with the videobuf-core?
Maybe the above briefs, that detail some of the problems with
videobuf(1), can provide some details on the semantics of them. IIRC,
Pawel's brief highlighted that iolock was really overloaded.
Regards,
Andy
> --
> Bluecherry: http://www.bluecherrydvr.com/
> SwissDisk : http://www.swissdisk.com/
> Ubuntu : http://www.ubuntu.com/
> My Blog : http://ben-collins.blogspot.com/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-02-27 4:07 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-26 18:57 Request clarification on videobuf irqlock and vb_lock usage Ben Collins
2011-02-27 4:08 ` Andy Walls
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).