Linux ATA/IDE development
 help / color / mirror / Atom feed
From: Greg KH <greg@kroah.com>
To: Mark Lord <kernel@teksavvy.com>
Cc: Philippe De Muyter <phdm@macqel.be>, Tejun Heo <tj@kernel.org>,
	Alan Cox <alan@lxorguk.ukuu.org.uk>,
	linux-ide@vger.kernel.org, Greg Kroah-Hartman <gregkh@suse.de>,
	linux-usb@vger.kernel.org
Subject: Re: XT-PIC interrupts blocked by usbserial ? [Was Re: Intel ICH9M bug	: sata unusable with usbserial]
Date: Thu, 3 Mar 2011 10:20:47 -0800	[thread overview]
Message-ID: <20110303182047.GA28936@kroah.com> (raw)
In-Reply-To: <4D6FD982.2050308@teksavvy.com>

On Thu, Mar 03, 2011 at 01:10:10PM -0500, Mark Lord wrote:
> What is most likely happening here, is that the USB interrupt handler
> is returning IRQ_HANDLED under some condition where IRQ_NONE is required.
> 
> In other words, USB thought it got an interrupt, but didn't really,
> but since it returns IRQ_HANDLED regardless, then other
> device drivers sharing that IRQ don't necessarily get called.
> If this happens repeatedly, then it could disrupt the other devices.

I doubt this is the issue, as we would have seen it long before now.

> Now, that's not overly likely, but then again it's probably not
> well tested with everyone using APICs nowadays.
> 
> Or, perhaps the PL2303 driver leaves an interrupt active/pending
> without clearing it in hardware, so the interrupt keeps recurring
> over and over.  This (unlikely) is easy to check for, by watching
> the /proc/interrupts count for the USB on your APIC-enabled kernel.

A usb driver has no interrupt handling at all, so it just flat out can
not do this.  It's up to the usb host controller driver, that is what
handles interrupts.

> If the numbers increase at a phenomenal rate, then there might
> be an issue.  With an active GPS, one would expect the numbers to
> be incrementing steadily, say a few dozen or a hundred or so per second.

It all depends on the traffic to the USB device and how well behaved it
is, as to how many interrupts it generates.

thanks,

greg k-h

  reply	other threads:[~2011-03-03 18:24 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-28 14:01 Intel ICH9M bug : sata unusable with usbserial Philippe De Muyter
2011-02-28 15:05 ` Alan Cox
2011-02-28 15:16   ` Tejun Heo
2011-02-28 17:05     ` Philippe De Muyter
2011-02-28 17:36       ` Tejun Heo
2011-02-28 19:21         ` Philippe De Muyter
     [not found]         ` <20110228173634.GA23008-Gd/HAXX7CRxy/B6EtB590w@public.gmane.org>
2011-02-28 19:27           ` Greg KH
2011-03-01 12:34             ` Philippe De Muyter
2011-03-01 14:16               ` Greg KH
     [not found]                 ` <20110301141627.GB12881-U8xfFu+wG4EAvxtiuMwx3w@public.gmane.org>
2011-03-01 15:00                   ` Philippe De Muyter
     [not found]                     ` <20110301150018.GA17827-NqYOdiUDesgPnqCj3zZnUQ@public.gmane.org>
2011-03-02 13:34                       ` Mark Lord
     [not found]                         ` <4D6E477A.9020401-R6A+fiHC8nRWk0Htik3J/w@public.gmane.org>
2011-03-03 14:58                           ` XT-PIC interrupts blocked by usbserial ? [Was Re: Intel ICH9M bug : sata unusable with usbserial] Philippe De Muyter
2011-03-03 15:23                             ` Sergei Shtylyov
     [not found]                               ` <4D6FB260.6010402-hkdhdckH98+B+jHODAdFcQ@public.gmane.org>
2011-03-04 14:24                                 ` Philippe De Muyter
2011-03-03 18:10                             ` Mark Lord
2011-03-03 18:20                               ` Greg KH [this message]
2011-03-04 14:29                               ` Philippe De Muyter
     [not found]                               ` <4D6FD982.2050308-R6A+fiHC8nRWk0Htik3J/w@public.gmane.org>
2011-03-04 14:56                                 ` Philippe De Muyter
2011-03-03 18:20                             ` Mark Lord
2011-03-03 19:06                               ` Alan Stern
2011-03-03 19:39                                 ` Mark Lord
     [not found]                                   ` <4D6FEE56.4080006-R6A+fiHC8nRWk0Htik3J/w@public.gmane.org>
2011-03-03 19:51                                     ` Mark Lord
2011-03-03 20:11                                       ` Alan Stern
2011-03-03 21:48                                         ` Mark Lord
2011-03-03 21:56                                           ` Alan Stern
2011-03-04  1:53                                       ` Robert Hancock

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=20110303182047.GA28936@kroah.com \
    --to=greg@kroah.com \
    --cc=alan@lxorguk.ukuu.org.uk \
    --cc=gregkh@suse.de \
    --cc=kernel@teksavvy.com \
    --cc=linux-ide@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=phdm@macqel.be \
    --cc=tj@kernel.org \
    /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