public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
From: Mark Lord <kernel@teksavvy.com>
To: Devin Heitmueller <dheitmueller@kernellabs.com>
Cc: Mauro Carvalho Chehab <mchehab@redhat.com>,
	Eddi De Pieri <eddi@depieri.net>,
	linux-media@vger.kernel.org
Subject: Re: [PATCH 5/8] [media] em28xx: initial support for HAUPPAUGE HVR-930C again
Date: Tue, 06 Dec 2011 10:28:55 -0500	[thread overview]
Message-ID: <4EDE34B7.9030609@teksavvy.com> (raw)
In-Reply-To: <CAGoCfizuMQMz3_ihh1AB2uRUn5-1DkCVju1VFMzOnUkqA+tJJQ@mail.gmail.com>

On 11-12-06 08:56 AM, Devin Heitmueller wrote:
> On Tue, Dec 6, 2011 at 8:43 AM, Mauro Carvalho Chehab
> <mchehab@redhat.com> wrote:
>> The driver who binds everything is the bridge driver. In your case, it is
>> the au0828 driver.
>>
>> What you're experiencing seems to be some race issue inside it, and not at
>> xc5000.
>>
>> On a quick look on it, I'm noticing that there's no lock at
>> au0828_usb_probe().
>>
>> Also, it uses a separate lock for analog and for digital:
>>
>>        mutex_init(&dev->mutex);
>>        mutex_init(&dev->dvb.lock);
>>
>> Probably, the right thing to do would be to use just one lock for both
>> rising
>> it at usb_probe, lowering it just before return 0. This will avoid any open
>> operations while the device is not fully initialized. Btw, newer udev's open
>> the analog part of the driver just after V4L register, in order to get the
>> device capabilities. This is known to cause race conditions, if the locking
>> schema is not working properly.
> 
> Just to be clear, we're now talking about a completely different race
> condition that has nothing to do with the subject at hand, and this
> discussion should probably be moved to a new thread.

If this discussion does change threads, could you folks please copy me
on it?  I'm already subscribed to several other kernel mailing lists
in my roles as developer and maintainer of various bits, but I would
like to avoid having yet another daily deluge added to my inbox.  :)

That said, I can test possible fixes for this stuff,
and am rather interested to see it resolved.
..
> The notion that this is something that has been there for over a year
> is something I only learned of in the last couple of days.  All the
> complaints I had seen thus far were from existing users who were
> perfectly happy until they upgraded their kernel a couple of months
> ago and then started seeing the problem.
..

It's always exhibited races for me here.  I have long since worked around
the issue(s), so my own systems currently behave.   But with the newer
HVR-950Q revision (B4F0), the issue is far more prevalent than before.

I may try Mauro's locking suggestion -- more detail or a patch would be useful.

Mauro?

  reply	other threads:[~2011-12-06 15:28 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-20 14:56 [PATCH 1/8] [media] dvb: Allow select between DVB-C Annex A and Annex C Mauro Carvalho Chehab
2011-11-20 14:56 ` [PATCH 2/8] [media] Properly implement ITU-T J.88 Annex C support Mauro Carvalho Chehab
2011-11-20 14:56   ` [PATCH 3/8] [media] em28xx: Fix some Terratec entries (H5 and XS) Mauro Carvalho Chehab
2011-11-20 14:56     ` [PATCH 4/8] [media] xc5000: Add support for get_if_frequency Mauro Carvalho Chehab
2011-11-20 14:56       ` [PATCH 5/8] [media] em28xx: initial support for HAUPPAUGE HVR-930C again Mauro Carvalho Chehab
2011-11-20 14:56         ` [PATCH 6/8] [media] em28xx: Fix CodingStyle issues introduced by changeset 82e7dbb Mauro Carvalho Chehab
2011-11-20 14:56           ` [PATCH 7/8] [media] em28xx: Add IR support for em2884 Mauro Carvalho Chehab
2011-11-20 14:56             ` [PATCH 8/8] [media] em28xx: Add IR support for HVR-930C Mauro Carvalho Chehab
2011-12-05 18:23         ` [PATCH 5/8] [media] em28xx: initial support for HAUPPAUGE HVR-930C again Devin Heitmueller
2011-12-05 18:35           ` Mauro Carvalho Chehab
2011-12-05 18:46             ` Devin Heitmueller
2011-12-05 20:01               ` Devin Heitmueller
2011-12-05 23:32                 ` Eddi De Pieri
2011-12-05 23:47                   ` Devin Heitmueller
2011-12-06 12:51                     ` Mark Lord
2011-12-06 13:43                       ` Mauro Carvalho Chehab
2011-12-06 13:56                         ` Devin Heitmueller
2011-12-06 15:28                           ` Mark Lord [this message]
2011-12-06 15:35                             ` Devin Heitmueller
2011-12-06 15:44                             ` Mauro Carvalho Chehab
2011-12-07  9:59                     ` Mauro Carvalho Chehab
2011-11-20 20:27 ` [PATCH 1/8] [media] dvb: Allow select between DVB-C Annex A and Annex C Rémi Denis-Courmont

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=4EDE34B7.9030609@teksavvy.com \
    --to=kernel@teksavvy.com \
    --cc=dheitmueller@kernellabs.com \
    --cc=eddi@depieri.net \
    --cc=linux-media@vger.kernel.org \
    --cc=mchehab@redhat.com \
    /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