From: "Rico Tudor" <rico-linux-kernel@patrec.com>
To: linux-kernel@vger.kernel.org
Subject: IO-APIC, beaten with stick, routes USB
Date: 4 Jun 2001 11:41:51 -0000 [thread overview]
Message-ID: <20010604114151.21903.qmail@pc7.prs.nunet.net> (raw)
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.
next reply other threads:[~2001-06-04 11:42 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-06-04 11:41 Rico Tudor [this message]
[not found] <3B1BBDCF.B8F49B11@mandrakesoft.com>
2001-06-04 22:10 ` Rico Tudor
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=20010604114151.21903.qmail@pc7.prs.nunet.net \
--to=rico-linux-kernel@patrec.com \
--cc=linux-kernel@vger.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
all inboxes | Powered by JetHome®