Linux Media Controller development
 help / color / mirror / Atom feed
From: Brandon Philips <brandon@ifup.org>
To: Alan Stern <stern@rowland.harvard.edu>
Cc: Greg KH <gregkh@suse.de>,
	laurent.pinchart@skynet.be, linux-media@vger.kernel.org,
	linux-usb@vger.kernel.org
Subject: Re: S4 hang with uvcvideo causing "Unlink after no-IRQ? Controller is probably using the wrong IRQ."
Date: Mon, 16 Mar 2009 09:44:35 -0700	[thread overview]
Message-ID: <20090316164435.GA5310@jenkins.ifup.org> (raw)
In-Reply-To: <Pine.LNX.4.44L0.0903131647500.5149-100000@iolanthe.rowland.org>

On 16:50 Fri 13 Mar 2009, Alan Stern wrote:
> On Fri, 13 Mar 2009, Brandon Philips wrote:
> 
> > On 14:03 Fri 13 Mar 2009, Alan Stern wrote:
> > > On Fri, 13 Mar 2009, Brandon Philips wrote:
> > > 
> > > > > Okay, not much information there but it's a start.  Here's a more 
> > > > > informative patch to try instead.
> > > > 
> > > > Here is the log:
> > > >  http://ifup.org/~philips/467317/pearl-alan-debug-2.log
> > > 
> > > I still can't tell what's happening.  Here's yet another patch.
> > 
> > http://ifup.org/~philips/467317/pearl-alan-debug-3.log
> 
> I think I see the problem; the patch below is an attempted fix.
> Hopefully it will get your system working.

That fixes it, thanks. This was originally found in a 2.6.27 based
Kernel so the fix can go off to stable@ too.

Tested-by: Brandon Philips <bphilips@suse.de>

> Index: usb-2.6/drivers/usb/host/ehci-q.c
> ===================================================================
> --- usb-2.6.orig/drivers/usb/host/ehci-q.c
> +++ usb-2.6/drivers/usb/host/ehci-q.c
> @@ -1127,7 +1127,7 @@ static void start_unlink_async (struct e
>  	prev->qh_next = qh->qh_next;
>  	wmb ();
>  
> -	if (unlikely (ehci_to_hcd(ehci)->state == HC_STATE_HALT)) {
> +	if (unlikely(!HC_IS_RUNNING(ehci_to_hcd(ehci)->state))) {
>  		/* if (unlikely (qh->reclaim != 0))
>  		 *	this will recurse, probably not much
>  		 */
> 

  reply	other threads:[~2009-03-16 16:44 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-06 19:11 S4 hang with uvcvideo causing "Unlink after no-IRQ? Controller is probably using the wrong IRQ." Brandon Philips
2009-03-07  5:26 ` Greg KH
2009-03-07  8:42   ` Brandon Philips
2009-03-07 17:37     ` Alan Stern
2009-03-08  7:55       ` Brandon Philips
2009-03-08 16:43         ` Alan Stern
2009-03-10 19:38           ` Brandon Philips
2009-03-11 15:30             ` Alan Stern
2009-03-11 17:20               ` Brandon Philips
2009-03-11 19:46                 ` Alan Stern
2009-03-11 22:15                   ` Brandon Philips
2009-03-13 14:35                     ` Alan Stern
2009-03-13 15:40                       ` Brandon Philips
2009-03-13 18:03                         ` Alan Stern
2009-03-13 19:46                           ` Brandon Philips
2009-03-13 20:50                             ` Alan Stern
2009-03-16 16:44                               ` Brandon Philips [this message]
2009-03-07 17:40   ` Alan Stern

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=20090316164435.GA5310@jenkins.ifup.org \
    --to=brandon@ifup.org \
    --cc=gregkh@suse.de \
    --cc=laurent.pinchart@skynet.be \
    --cc=linux-media@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=stern@rowland.harvard.edu \
    /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