Subject: interrupt probe fails on quad tulip pci card
To: None <port-sparc64@netbsd.org>
From: Tobias Nygren <tnn+nbsd@nygren.pp.se>
List: port-sparc64
Date: 12/03/2006 14:54:37
Hi,

I'm trying to run a quad tulip card in an Enterprise 450.
I believe the card was pulled from an hp superdome server.
Anyway, only 3 of the 4 ports work correctly.

In the dmesg below, notice the weird interrupt assignment on
tlp3.

tlp0: interrupting at ivec 118
tlp1: interrupting at ivec 119
tlp2: interrupting at ivec 11a
tlp3: interrupting at ivec 4

If I bring the tlp3 interface up I get on the console:

interrupt_vector: spurious vector 11b at pil 6.

So it looks like the interface interrupts at 0x11b and
probably works correctly except that the kernel thinks that
it's at interrupt 4.

I'm at a complete loss when it comes to sparc64 interrupt
assignment code. Any hints on where to start searching
or what debug output might be useful for a PR?

-T
--

Relevant part of dmesg:

psycho2 at mainbus0 addr 0xfff5e000
SUNW,psycho: impl 0, version 4: ign 100 bus range 0 to 1; PCI bus 0
DVMA map: fe000000 to ffffe000
IOTSB: 221e000 to 2226000
pci2 at psycho2
pci2: i/o space, memory space enabled
ppb0 at pci2 dev 4 function 0: Intel S21152BA,S21154AE/BE PCI-PCI Bridge 
(rev. 0x00)
pci3 at ppb0 bus 1
pci3: i/o space, memory space enabled
tlp0 at pci3 dev 4 function 0: DECchip 21143 Ethernet, pass 4.1
OF_mapintr failed
tlp0: interrupting at ivec 118
tlp0: Ethernet address 00:30:6e:5e:7d:ac
lxtphy0 at tlp0 phy 0: LXT970 10/100 media interface, rev. 3
lxtphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
tlp1 at pci3 dev 5 function 0: DECchip 21143 Ethernet, pass 4.1
OF_mapintr failed
tlp1: interrupting at ivec 119
tlp1: Ethernet address 00:30:6e:5e:7d:ad
lxtphy1 at tlp1 phy 0: LXT970 10/100 media interface, rev. 3
lxtphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
tlp2 at pci3 dev 6 function 0: DECchip 21143 Ethernet, pass 4.1
OF_mapintr failed
tlp2: interrupting at ivec 11a
tlp2: Ethernet address 00:30:6e:5e:7d:ae
lxtphy2 at tlp2 phy 0: LXT970 10/100 media interface, rev. 3
lxtphy2: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
tlp3 at pci3 dev 7 function 0: DECchip 21143 Ethernet, pass 4.1
OF_mapintr failed
tlp3: interrupting at ivec 4
tlp3: Ethernet address 00:30:6e:5e:7d:af
lxtphy3 at tlp3 phy 0: LXT970 10/100 media interface, rev. 3
lxtphy3: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto