Skip to contentSkip to conversation

PCI device issues between Blade 100 and Blade 100

DISCUSSION Jason Wever 2 participants 6 messages Sep 4, 2005 – Sep 6, 2005 Char and misc drivers

lore
Share & tools
lore
#0 lore raw

Hi All,

I've been noticing some differences using PCI devices in 2.6 kernels between a Blade 100 and Blade 1000.

On a Blade 100, I've gotten a PCI USB2 controller (NEC chipset) to work using the ehci driver with no problems as well as a PCI cs46xx sound card (Hercules GameTheater XP). However, when I try to use the same cards in the Blade 1000, the drivers appear to have issues getting IRQs when the drivers load. Below is sample output from the 2.6.13 kernel of what happens when the drivers attempt to load;

USB controller;
ehci_hcd 0001:00:01.2: NEC Corporation USB 2.0
ehci_hcd 0001:00:01.2: reset hcs_params 0x2385 dbg=0 cc=2 pcc=3 !ppc ports=5 ehci_hcd 0001:00:01.2: reset portroute 1 0 1 0 0 ehci_hcd 0001:00:01.2: reset hcc_params 0002 thresh 0 uframes 256/512/1024 ehci_hcd 0001:00:01.2: new USB bus registered, assigned bus number 1 ehci_hcd 0001:00:01.2: request interrupt 10,20e failed ehci_hcd 0001:00:01.2: USB bus 1 deregistered
ehci_hcd 0001:00:01.2: init 0001:00:01.2 fail, -16
ehci_hcd: probe of 0001:00:01.2 failed with error -16
ohci_hcd: 2005 April 22 USB 1.1 'Open' Host Controller (OHCI) Driver (PCI) ohci_hcd: block sizes: ed 80 td 96
ohci_hcd 0001:00:01.0: NEC Corporation USB
ohci_hcd 0001:00:01.0: new USB bus registered, assigned bus number 1 ohci_hcd 0001:00:01.0: request interrupt 10,20c failed ohci_hcd 0001:00:01.0: USB bus 1 deregistered
ohci_hcd 0001:00:01.0: init 0001:00:01.0 fail, -16
ohci_hcd: probe of 0001:00:01.0 failed with error -16 ohci_hcd 0001:00:01.1: NEC Corporation USB (#2)
ohci_hcd 0001:00:01.1: new USB bus registered, assigned bus number 1 ohci_hcd 0001:00:01.1: request interrupt 10,20d failed ohci_hcd 0001:00:01.1: USB bus 1 deregistered
ohci_hcd 0001:00:01.1: init 0001:00:01.1 fail, -16
ohci_hcd: probe of 0001:00:01.1 failed with error -16

Sound controller;
unable to grab IRQ 8752768
Sound Fusion CS46xx: probe of 0001:00:02.0 failed with error -16

At first I was thinking that maybe there was an issue with the PCI bus on the Blade 1000, but I have a r8169 chipset based Gigabit Ethernet card in there and that works just fine. The IRQ it shows its using when the driver loads seems a bit high, but doesn't seem to affect performance. Kernel output from the driver loading for that is;

r8169 Gigabit Ethernet driver 2.2LK-NAPI loaded
eth0: Identified chip type is 'RTL8169s/8110s'.
eth0: RTL8169 at 0x7fe00134000, 00:c0:49:fa:1d:71, IRQ 8752896

I've also tried rotating the location of the PCI cards around a bit based on the 33MHz and 66MHz PCI slots, but no noticeable difference in behaviors.

For reference, I've included the lspci output from the Sun Blade 100 and Sun Blade 1000.

Sun Blade 100;

0000:00:00.0 Host bridge: Sun Microsystems Computer Corp. Ultra IIe 0000:00:03.0 Non-VGA unclassified device: ALi Corporation M7101 Power Management Controller [PMU]
0000:00:05.0 PCI bridge: Digital Equipment Corporation DECchip 21152 (rev 03)
0000:00:07.0 ISA bridge: ALi Corporation M1533 PCI to ISA Bridge [Aladdin IV]
0000:00:08.0 Multimedia audio controller: ALi Corporation M5451 PCI AC-Link Controller Audio Device (rev 01)
0000:00:0c.0 Bridge: Sun Microsystems Computer Corp. RIO EBUS (rev 01) 0000:00:0c.1 Ethernet controller: Sun Microsystems Computer Corp. RIO GEM (rev 01)
0000:00:0c.2 FireWire (IEEE 1394): Sun Microsystems Computer Corp. RIO 1394 (rev 01)
0000:00:0c.3 USB Controller: Sun Microsystems Computer Corp. RIO USB (rev 01)
0000:00:0d.0 IDE interface: ALi Corporation M5229 IDE (rev c3) 0000:00:13.0 VGA compatible controller: ATI Technologies Inc Rage XL (rev 27)
0000:01:00.0 USB Controller: NEC Corporation USB (rev 43) 0000:01:00.1 USB Controller: NEC Corporation USB (rev 43) 0000:01:00.2 USB Controller: NEC Corporation USB 2.0 (rev 04) 0000:01:01.0 Multimedia audio controller: Aureal Semiconductor Vortex 2 (rev fe)
0000:01:02.0 SCSI storage controller: LSI Logic / Symbios Logic 53c875 (rev 26)

Sun Blade 1000;

0000:00:00.0 Host bridge: Sun Microsystems Computer Corp. Schizo PCI Bus Module
0000:00:01.0 VGA compatible controller: ATI Technologies Inc Radeon RV100 QY [Radeon 7000/VE]
0000:00:04.0 SCSI storage controller: QLogic Corp. QLA2200 64-bit Fibre Channel Adapter (rev 05)
0001:00:00.0 Host bridge: Sun Microsystems Computer Corp. Schizo PCI Bus Module
0001:00:01.0 USB Controller: NEC Corporation USB (rev 41) 0001:00:01.1 USB Controller: NEC Corporation USB (rev 41) 0001:00:01.2 USB Controller: NEC Corporation USB 2.0 (rev 02) 0001:00:02.0 Multimedia audio controller: Cirrus Logic CS 4614/22/24 [CrystalClear SoundFusion Audio Accelerator] (rev 01) 0001:00:03.0 Ethernet controller: U.S. Robotics USR997902 10/100/1000 Mbps PCI Network Card (rev 10)
0001:00:05.0 Bridge: Sun Microsystems Computer Corp. RIO EBUS (rev 01) 0001:00:05.1 Ethernet controller: Sun Microsystems Computer Corp. RIO GEM (rev 01)
0001:00:05.2 FireWire (IEEE 1394): Sun Microsystems Computer Corp. RIO 1394 (rev 01)
0001:00:05.3 USB Controller: Sun Microsystems Computer Corp. RIO USB (rev 01)
0001:00:06.0 SCSI storage controller: LSI Logic / Symbios Logic 53c875 (rev 37)
0001:00:06.1 SCSI storage controller: LSI Logic / Symbios Logic 53c875 (rev 37)

If anyone has any ideas or suggestions or would like any more information, please let me know.

Cheers,

Signature · 2 lines
Jason Wever
Gentoo/Sparc Team Co-Lead
#1 lore raw

From: Jason Wever <[email protected]>
Date: Sun, 4 Sep 2005 15:30:24 -0600

Quoted 2 lines

The IRQ it shows its using when the driver loads seems a bit high, but doesn't seem to affect performance.

The IRQ "numbers" the sparc64 port uses internally are actually pointers to entries in the ivector_table[] in arch/sparc64/kernel/irq.c

The kernel prints out an enormous amount of debugging information at bootup time, stating the routing of each and every single PCI interrupt in the system. On my box it looks like:

PCI-IRQ: Routing bus[ 0] slot[ 2] map[0] to INO[1c]
PCI-IRQ: Routing bus[ 0] slot[ 3] map[0] to INO[14]
...

and on and on. This info might help you diagnose the problem.

Error -16 from request_irq() means EBUSY, ie. another device has registered a handler for that interrupt number already. This usually means some driver has failed to specify SA_SHIRQ in it's request_irq() call. It's either the EHCI driver (not very likely) or whatever other device has already registered with that IRQ, you can figure that out using /proc/interrupts output.

#2 lore raw
In reply to Jason Wever
Quoted 7 lines · On Sun, 04 Sep 2005 21:14:17 -0700 (PDT) "David S. Miller"…

Error -16 from request_irq() means EBUSY, ie. another device has registered a handler for that interrupt number already. This usually means some driver has failed to specify SA_SHIRQ in it's request_irq() call. It's either the EHCI driver (not very likely) or whatever other device has already registered with that IRQ, you can figure that out using /proc/interrupts output.

Thanks for the info. Looking into this a bit more, it appears that the RTC on ebus0 loaded via the bbc_i2c driver is already using the same interrupt.

Looking at the ehci driver messages, it shows (among other things); ehci_hcd 0001:00:01.2: request interrupt 10,20e failed

Then looking for interrupt 10 in /proc/interrupts shows;
10: 0 0 rtc:224

Signature · 2 lines
Jason Wever
Gentoo/Sparc Team Co-Lead
#3 lore raw
In reply to Jason Wever

From: Jason Wever <[email protected]>
Date: Mon, 5 Sep 2005 09:41:31 -0600

Quoted 5 lines

Looking at the ehci driver messages, it shows (among other things); ehci_hcd 0001:00:01.2: request interrupt 10,20e failed

Then looking for interrupt 10 in /proc/interrupts shows;
10: 0 0 rtc:224

Give this a spin:

drivers/char/rtc.c +1 -1
@@ -941,7 +941,7 @@ found:
 	 * PCI Slot 2 INTA# (and some INTx# in Slot 1). SA_INTERRUPT here
 	 * is asking for trouble with add-on boards. Change to SA_SHIRQ.
 	 */
-	if (request_irq(rtc_irq, rtc_interrupt, SA_INTERRUPT, "rtc", (void *)&rtc_port)) {
+	if (request_irq(rtc_irq, rtc_interrupt, SA_SHIRQ, "rtc", (void *)&rtc_port)) {
 		/*
 		 * Standard way for sparc to print irq's is to use
 		 * __irq_itoa(). I think for EBus it's ok to use %d.
#4 lore raw
In reply to Jason Wever

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Quoted 10 lines · David S. Miller

From: Jason Wever <[email protected]>
Date: Mon, 5 Sep 2005 09:41:31 -0600

Quoted 5 lines

Looking at the ehci driver messages, it shows (among other things); ehci_hcd 0001:00:01.2: request interrupt 10,20e failed

Then looking for interrupt 10 in /proc/interrupts shows;
10: 0 0 rtc:224

Give this a spin:

This appears to have done the trick, both the USB 2.0 controller and the sound card driver load correctly now.

Thanks!
- --
Jason Wever
Gentoo/Sparc Co-Team Lead
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFDHchWdKvgdVioq28RAp20AKC5pIunf8VLEtHq+GP7OQ2N28FKegCfY99W OUqq2a9NjpsIbNtc3C+ArrMvq
-----END PGP SIGNATURE-----

#5 lore raw
In reply to Jason Wever

From: Jason Wever <[email protected]>
Date: Tue, 6 Sep 2005 10:48:20 -0600 (MDT)

Quoted 2 lines

This appears to have done the trick, both the USB 2.0 controller and the sound card driver load correctly now.

Thanks for testing. That fix is upstream in Linus's 2.6.x tree now. I'll push it into 2.6.13-stable as well.