* IO-APIC, beaten with stick, routes USB
@ 2001-06-04 11:41 Rico Tudor
0 siblings, 0 replies; 2+ messages in thread
From: Rico Tudor @ 2001-06-04 11:41 UTC (permalink / raw)
To: linux-kernel
I'm another victim of the IOAPIC routing USB IRQs to the nearest
black hole. Running 2.4.4, dual CPU, ServerWorks HE chipset. IRQ 16
was wrongly assumed for the OHCI controller. This generated the usual
sign of interrupt servicing gone AWOL:
usb_control/bulk_msg: timeout
usb-ohci.c: unlink URB timeout
usb.c: USB device not accepting new address=2 (error=-110)
hub.c: port 1, portstatus 100, change 3, 12 Mb/s
hub.c: port 1 of hub 1 not enabled, trying reset again...
hub.c: port 1, portstatus 100, change 3, 12 Mb/s
hub.c: port 1 of hub 1 not enabled, trying reset again...
hub.c: port 1, portstatus 100, change 3, 12 Mb/s
hub.c: port 1 of hub 1 not enabled, trying reset again...
hub.c: port 1, portstatus 100, change 3, 12 Mb/s
hub.c: port 1 of hub 1 not enabled, trying reset again...
hub.c: port 1, portstatus 101, change 3, 12 Mb/s
hub.c: port 1 of hub 1 not enabled, trying reset again...
hub.c: Cannot enable port 1 of hub 1, disabling port.
hub.c: Maybe the USB cable is bad?
The problem can be side-stepped with "noapic", but that's wimping out.
After mucking fruitlessly with boot params like "pirq", I simply took a
hatchet to usb-ohci.c, and installed its interrupt handler at all IRQs.
Viola! USB services now appear on IRQ 12. After some CompactFlash
reading, /proc/interrupts looks like this:
CPU0 CPU1
0: 29204 31652 IO-APIC-edge timer
1: 27 41 IO-APIC-edge keyboard
2: 0 0 XT-PIC cascade
3: 0 0 IO-APIC-edge usb-ohci
4: 0 0 IO-APIC-edge usb-ohci
5: 0 0 IO-APIC-edge usb-ohci
6: 2 1 IO-APIC-edge usb-ohci
7: 0 0 IO-APIC-edge usb-ohci
8: 0 0 IO-APIC-edge usb-ohci
9: 0 0 IO-APIC-level usb-ohci
10: 0 0 IO-APIC-edge usb-ohci
11: 0 0 IO-APIC-edge usb-ohci
12: 1537 1558 IO-APIC-edge usb-ohci
13: 0 0 IO-APIC-edge usb-ohci
14: 33 40 IO-APIC-edge ide0, usb-ohci
15: 0 0 IO-APIC-edge usb-ohci
16: 0 0 IO-APIC-level usb-ohci, usb-ohci
17: 0 0 IO-APIC-level usb-ohci
18: 0 0 none usb-ohci
19: 0 0 none usb-ohci
20: 0 0 IO-APIC-level usb-ohci
21: 0 0 none usb-ohci
22: 3 6 IO-APIC-level eth1, usb-ohci
23: 1039 709 IO-APIC-level eth0, usb-ohci
24: 0 0 none usb-ohci
25: 0 0 none usb-ohci
26: 0 0 none usb-ohci
27: 0 0 none usb-ohci
28: 0 0 IO-APIC-level sym53c8xx, usb-ohci
29: 693 673 IO-APIC-level sym53c8xx, usb-ohci
30: 0 0 IO-APIC-level usb-ohci
31: 0 0 none usb-ohci
NMI: 0 0
LOC: 60727 60726
ERR: 0
Mucho elegant. :-)
This method of IRQ determination is used by `setserial' with the
"autoconfig" option, and should be adopted within the kernel, at least
for PCI. BIOS writers' adherence to MPS seems eternally lacking, and
the NDA cloud over chipset-land won't be going away soon.
Some mention of stray interrupts on the console might be helpful, too.
P.S. `setserial' actually fails to determine IRQ with IO-APIC active.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: IO-APIC, beaten with stick, routes USB
[not found] <3B1BBDCF.B8F49B11@mandrakesoft.com>
@ 2001-06-04 22:10 ` Rico Tudor
0 siblings, 0 replies; 2+ messages in thread
From: Rico Tudor @ 2001-06-04 22:10 UTC (permalink / raw)
To: Jeff Garzik; +Cc: linux-kernel
> Any chance you can try Alan Cox's patch against 2.4.5? It has a number
> of IO-APIC fixes.
>
patch-2.4.5-ac7.bz2 behaves the same as 2.4.4. Whatever is happening in
IO-APIC setup, USB interrupts actually arrive on IRQ 12. I can include
the usual pile of config info and boot messages, but they look the same
as previous l-k postings.
Since IRQ 12 is a popular destination for USB, the following patch may
work for people with this problem:
--- usb-ohci.c Sun May 6 08:42:51 2001
+++ usb-ohci.c.rico Mon Jun 4 20:49:56 2001
@@ -2524,3 +2524,3 @@
- return hc_found_ohci (dev, dev->irq, mem_base, id);
+ return hc_found_ohci (dev, 12, mem_base, id);
}
If 12 fails, they can look for the stray interrupt in /proc/stat.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2001-06-04 22:10 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-06-04 11:41 IO-APIC, beaten with stick, routes USB Rico Tudor
[not found] <3B1BBDCF.B8F49B11@mandrakesoft.com>
2001-06-04 22:10 ` Rico Tudor
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®