From: Mark Lord <kernel@teksavvy.com>
To: Alan Stern <stern@rowland.harvard.edu>
Cc: Philippe De Muyter <phdm@macqel.be>, Greg KH <greg@kroah.com>,
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, 03 Mar 2011 14:39:02 -0500 [thread overview]
Message-ID: <4D6FEE56.4080006@teksavvy.com> (raw)
In-Reply-To: <Pine.LNX.4.44L0.1103031405110.1669-100000@iolanthe.rowland.org>
On 11-03-03 02:06 PM, Alan Stern wrote:
> On Thu, 3 Mar 2011, Mark Lord wrote:
>
>> Mmm.. I missed that part. Very curious, that.
>> I wonder if it could be some issue with how the interrupt controller is set up.
>>
>> Oh the other hand, this USB-GPS is probably a "full-speed" (slow) device,
>> using the UHCI interface rather than EHCI.
>>
>> The uhci_irq() handler (in uhci-hcd.c) appears to always return IRQ_HANDLED,
>> even when it didn't actually handle an IRQ. If I'm reading the code correctly,
>> then that's a bug, and could cause this issue given the "right" peripheral
>> (eg. your USB-GPS).
>>
>> I wonder if uhci_irq() can be a bit more clever and only set IRQ_HANDLED
>> for interrupts that it actually had to handle? Or am I reading it wrong?
>
> Evidently you didn't see these lines near the start of the routine:
>
> status = inw(uhci->io_addr + USBSTS);
> if (!(status & ~USBSTS_HCH)) /* shared interrupt, not mine */
> return IRQ_NONE;
No, I saw those. But I don't blindly trust comments. :)
To me, those lines say, "if nothing is active on our bus, then return IRQ_NONE".
With the USB-GPS, the bus probably always as "something active",
even if no URBs have been received at that instant in time.
But I don't have the UHCI spec handy to check right now.
Remember.. there IS a bug here somewhere, so old assumptions
do need to be reexamined to find the darned thing.
Cheers
next prev parent reply other threads:[~2011-03-03 19:39 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
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 [this message]
[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=4D6FEE56.4080006@teksavvy.com \
--to=kernel@teksavvy.com \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=greg@kroah.com \
--cc=gregkh@suse.de \
--cc=linux-ide@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=phdm@macqel.be \
--cc=stern@rowland.harvard.edu \
--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