From: Philippe De Muyter <phdm@macqel.be>
To: Greg KH <greg@kroah.com>
Cc: 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: Intel ICH9M bug : sata unusable with usbserial
Date: Tue, 1 Mar 2011 13:34:52 +0100 [thread overview]
Message-ID: <20110301123452.GA1954@frolo.macqel> (raw)
In-Reply-To: <20110228192700.GA3305@kroah.com>
On Mon, Feb 28, 2011 at 11:27:01AM -0800, Greg KH wrote:
> On Mon, Feb 28, 2011 at 06:36:34PM +0100, Tejun Heo wrote:
> > On Mon, Feb 28, 2011 at 06:05:56PM +0100, Philippe De Muyter wrote:
> > > 5: 17183 XT-PIC-XT-PIC ata_piix, ata_piix, ehci_hcd:usb1, ehci_hcd:usb2, uhci_hcd:usb3, uhci_hcd:usb5, uhci_hcd:usb6, uhci_hcd:usb7, uhci_hcd:usb8
> >
> > So, usb7 and ata_piix share the same IRQ line.
> >
> > > [ 1.517781] usb 7-1: New USB device found, idVendor=067b, idProduct=2303
> > > [ 1.517837] usb 7-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
> > > [ 1.517883] usb 7-1: Product: USB-Serial Controller
> > > [ 1.517928] usb 7-1: Manufacturer: Prolific Technology Inc.
> > ...
> > > [ 4.327431] usbcore: registered new interface driver usbserial
> > > [ 4.327585] USB Serial support registered for generic
> > > [ 4.327747] usbcore: registered new interface driver usbserial_generic
> > > [ 4.327774] usbserial: USB Serial Driver core
> > ...
> > > [ 4.419657] USB Serial support registered for pl2303
> > ...
> > > [ 4.431805] usb 7-1: pl2303 converter now attached to ttyUSB0
> > > [ 4.431846] usbcore: registered new interface driver pl2303
> > > [ 4.431875] pl2303: Prolific PL2303 USB to serial adaptor driver
> >
> > I believe this is the GPS thingie?
> >
> > ...
> > > [ 175.706014] ata1: lost interrupt (Status 0x50)
> > > [ 175.706040] ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen
> > > [ 175.706050] ata1.00: failed command: READ DMA
> > > [ 175.706062] ata1.00: cmd c8/00:08:28:41:01/00:00:00:00:00/e1 tag 0 dma 4096 in
> > > [ 175.706064] res 40/00:00:01:4f:c2/00:00:00:00:00/00 Emask 0x4 (timeout)
> > > [ 175.706079] ata1.00: status: { DRDY }
> >
> > There was no screaming IRQ but it definitely looks like IRQ delivery
> > is gone at this point.
> >
> > > [ 175.706091] ata1: hard resetting link
> > > [ 176.162049] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
> > > [ 181.165024] ata1.00: qc timeout (cmd 0x27)
> > > [ 181.165034] ata1.00: failed to read native max address (err_mask=0x4)
> > > [ 181.165043] ata1.00: revalidation failed (errno=-5)
> >
> > Hardreset and IDENTIFY are executed by polling on ata_piix and
> > READ_NATIVE_MAX is the first command executed using IRQ and that's the
> > first thing in the recovery sequence which fails.
> >
> > > [ 181.165054] ata1: hard resetting link
> > > [ 181.621053] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
> > > [ 191.624025] ata1.00: qc timeout (cmd 0x27)
> > > [ 191.624036] ata1.00: failed to read native max address (err_mask=0x4)
> > > [ 191.624045] ata1.00: revalidation failed (errno=-5)
> > > [ 191.624053] ata1: limiting SATA link speed to 1.5 Gbps
> > > [ 191.624065] ata1: hard resetting link
> > > [ 192.080046] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
> > > [ 202.083023] ata1.00: qc timeout (cmd 0x27)
> > > [ 202.083033] ata1.00: failed to read native max address (err_mask=0x4)
> > > [ 202.083042] ata1.00: revalidation failed (errno=-5)
> > > [ 202.083049] ata1.00: disabled
> > > [ 202.083066] ata1: hard resetting link
> >
> > And it never comes back. Specifying kernel parameter 'irqpoll' might
> > help but it looks like somehow the GPS thingie kills the IRQ line
> > completely.
> >
> > cc'ing Greg and linux-usb. Hey, USB folks, it seems accessing a USB
> > GPS device kills IRQ delivery to ata_piix sharing the same IRQ line as
> > the USB host. Any ideas on what's going on? The original messages
> > can be read from...
> >
> > http://www.spinics.net/lists/linux-ide/msg40425.html
> > http://www.spinics.net/lists/linux-ide/msg40428.html
>
> That really sounds like an interrupt issue that is higher up than the
> USB host driver, or the ata drivers.
>
> ACPI perhaps?
I restarted this machine with acpi=off, but the problem remained exactly
the same.
But Greg, you had the letters right, but the order wrong : it turned out that
APIC (not ACPI) was disabled in the BIOS. When I enable APIC in the BIOS,
I cannot reproduce the problem anymore.
Of course, with APIC enabled, the interrupts are assigned differently :
tmp199:~ # cat /proc/interrupts
CPU0 CPU1
0: 130 5 IO-APIC-edge timer
1: 419 434 IO-APIC-edge i8042
7: 0 0 IO-APIC-edge parport0
8: 20 19 IO-APIC-edge rtc0
9: 0 0 IO-APIC-fasteoi acpi
12: 6775 6680 IO-APIC-edge i8042
16: 0 0 IO-APIC-fasteoi uhci_hcd:usb3
17: 83 84 IO-APIC-fasteoi firewire_ohci
18: 0 0 IO-APIC-fasteoi ehci_hcd:usb1, uhci_hcd:usb8
19: 299043 298696 IO-APIC-fasteoi ata_piix, ata_piix, uhci_hcd:usb5, uhci_hcd:usb7
21: 0 0 IO-APIC-fasteoi uhci_hcd:usb4
23: 2 0 IO-APIC-fasteoi ehci_hcd:usb2, uhci_hcd:usb6
40: 10242 10530 PCI-MSI-edge i915
41: 43710 44108 PCI-MSI-edge eth0
44: 158 151 PCI-MSI-edge hda_intel
NMI: 107 105 Non-maskable interrupts
LOC: 718805 681028 Local timer interrupts
SPU: 0 0 Spurious interrupts
PMI: 107 105 Performance monitoring interrupts
IWI: 0 0 IRQ work interrupts
RES: 2754 2700 Rescheduling interrupts
CAL: 119 91 Function call interrupts
TLB: 1528 1463 TLB shootdowns
TRM: 0 0 Thermal event interrupts
THR: 0 0 Threshold APIC interrupts
MCE: 0 0 Machine check exceptions
MCP: 12 12 Machine check polls
ERR: 1
MIS: 0
tmp199:~ #
previously we had all but one usb interrupts on the same line as ata_piix :
5: 17183 XT-PIC-XT-PIC ata_piix, ata_piix, ehci_hcd:usb1, ehci_hcd:usb2, uhci_hcd:usb3, uhci_hcd:usb5, uhci_hcd:usb6, uhci_hcd:usb7, uhci_hcd:usb8
while now they are spread on different lines : 16, 18, 19, 21 and 22
So I wonder if there is still a bug, but that it is not triggered anymore.
Is there a way to tell which interrupt line the USB GPS receiver is connected
to ?
Thanks
Philippe
--
Philippe De Muyter +32 2 6101532 Macq SA rue de l'Aeronef 2 B-1140 Bruxelles
next prev parent reply other threads:[~2011-03-01 12:35 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 [this message]
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
[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=20110301123452.GA1954@frolo.macqel \
--to=phdm@macqel.be \
--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=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