From: Hans Verkuil <hverkuil@xs4all.nl>
To: Devin Heitmueller <dheitmueller@kernellabs.com>
Cc: Sander Eikelenboom <linux@eikelenboom.it>, linux-media@vger.kernel.org
Subject: Re: [media] cx25821 regression from 3.9: BUG: bad unlock balance detected!
Date: Mon, 15 Jul 2013 00:56:17 +0200 [thread overview]
Message-ID: <3450029.Clt96MKhHs@wyst> (raw)
In-Reply-To: <CAGoCfiwhC7EZHY0KQ-MF+NcSJDkhsaT_SP_MQCY7fGvp4C4Svw@mail.gmail.com>
On Sunday, July 14, 2013 18:44:13 Devin Heitmueller wrote:
> On Sun, Jul 14, 2013 at 5:39 PM, Hans Verkuil <hverkuil@xs4all.nl> wrote:
> >> > If you can get cx25821-video.c to work with vb2, then we can take a look at the alsa
> >> > code.
>
> If I can make a suggestion: fix the lock problem first.
That's why I propose to move to vb2 :-)
I looked at it for a bit and what makes locking a problem is videobuf in the
first place. It's the cause of the locking problems and the solution is to get
rid of it. In vb2 I understand at least who is locking what, whereas videobuf
is locking and unlocking at the weirdest places. From what I remember it
was not really solvable without hacking videobuf, which is something you
really don't want to do. Don't ask me the details, it's been a while ago that
I looked at this particular issue.
I did similar vb2 conversions for go7007 and solo6x10 for pretty much the
same reasons: fixing an unmaintainable locking spaghetti.
In general I agree with you, but in this particular case moving to vb2 *is* the
solution for the problem.
Regards,
Hans
> The last
> thing you want to do is simultaneously debug a known buffer management
> problem at the same time you're trying to port to VB2. I panic'd my
> system enough times during the em28xx conversion where you really want
> to know whether the source is the VB2 work in progress or some other
> issue with buffer management.
>
> I'm not saying to not do the VB2 port -- just that you would be well
> served to have a reasonable stable driver before attempting to do the
> port.
>
> That said, I guess it's possible that digging into the code enough to
> understand what specifically has to be done for a VB2 port might
> reveal the source of the locking problem, but that's not how I would
> do it.
>
> Devin
>
>
prev parent reply other threads:[~2013-07-14 22:56 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-16 17:41 [media] cx25821 regression from 3.9: BUG: bad unlock balance detected! Sander Eikelenboom
2013-05-17 8:25 ` Hans Verkuil
2013-05-17 9:04 ` Sander Eikelenboom
2013-05-17 9:52 ` Hans Verkuil
2013-05-17 15:52 ` Sander Eikelenboom
2013-07-12 20:56 ` Sander Eikelenboom
2013-07-14 9:41 ` Hans Verkuil
2013-07-14 21:18 ` Sander Eikelenboom
2013-07-14 21:39 ` Hans Verkuil
2013-07-14 22:44 ` Devin Heitmueller
2013-07-14 22:56 ` Hans Verkuil [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3450029.Clt96MKhHs@wyst \
--to=hverkuil@xs4all.nl \
--cc=dheitmueller@kernellabs.com \
--cc=linux-media@vger.kernel.org \
--cc=linux@eikelenboom.it \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox