Port-hp700 archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

elroy(4) interrupt mapping issue



Hi,

I recently tried booting -current on my C3600. Overally it
works really well, almost everything seems to be supported(1)!

Then I tried to plug in a 3rd party PCI card and found a problem
with interrupt mapping:

elroy1 at astro0 hpa 0xfed32000 path 10/1: Elroy TR4.0 APIC ver 20,
7 pins
pci1 at elroy1 bus 0
wm0 at pci1 dev 4 function 0: Intel i82540EM 1000BASE-T Ethernet, rev. 2
wm0: interrupting at line 255 irq 31

The bogus line 255 turns out to be that hp700_intr_allocate_bit()
returns -1 and apic_intr_map() does not check the return value for an
error condition.

My current solution to this problem is to disable the onboard esiop
SCSI controllers in the kernel config, which seems to free up an
interrupt bit for the NIC.

Any suggestion as to how to fix this so the PCI slots can be used?

Kind regards,
-Tobias

(1):

Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
    2006, 2007, 2008, 2009, 2010, 2011
    The NetBSD Foundation, Inc.  All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
    The Regents of the University of California.  All rights reserved.

NetBSD 5.99.43 (GENERIC) #7: Thu Jan 20 00:28:32 CET 2011
        
tnn%ixp.nygren.pp.se@localhost:/work/hp700/obj/sys/arch/hp700/compile/GENERIC
HP9000/785/C3600 (Allegro)
real mem = 3072 MB (73728 reserved for PROM, 3058 MB used by NetBSD)
avail mem = 2977 MB
timecounter: Timecounters tick every 10.000 msec
mainbus0 (root) [flex fff80000]
pdc0 at mainbus0
power0 at mainbus0
cpu0 at mainbus0 hpa 0xfffa0000 path 32 irq 31 ipl 0: PA8500 (Barra'Cuda) rev 0
cpu0: PCXW, PA-RISC 2.0, lev 1, cat A, 552 MHz clk
cpu0: shadows, 1024K/512K D/I caches, 160 shared TLB, 0/0 D/I BTLBs
cpu0: PCXW floating point, rev 1
mem0 at mainbus0 hpa 0xfed10200 path 49: size 3840MB
astro0 at mainbus0 hpa 0xfed00000 path 10: Astro rev 2.1
elroy0 at astro0 hpa 0xfed30000 path 10/0: Elroy TR4.0 APIC ver 20, 7 pins
pci0 at elroy0 bus 0
pci0: i/o space, memory space enabled
tlp0 at pci0 dev 12 function 0: DECchip 21143 Ethernet, pass 4.1
tlp0: interrupting at line 2 irq 28
tlp0: Ethernet address 00:30:6e:1b:8b:65
lxtphy0 at tlp0 phy 1: LXT970 10/100 media interface, rev. 3
lxtphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
Analog Devices product 0x1889 (audio multimedia) at pci0 dev 13 function 0 not 
configured
nside0 at pci0 dev 14 function 0: National Semiconductor PC87415 IDE Controller 
(rev. 0x03)
nside0: bus-master DMA support present
nside0: primary channel configured to native-PCI mode
nside0: using line 0 irq 27 for native-PCI interrupt
atabus0 at nside0 channel 0
nside0: secondary channel configured to native-PCI mode
atabus1 at nside0 channel 1
ssio0 at pci0 dev 14 function 1: National Semiconductor 87560 Legacy I/O (rev. 
0x01)
ssio0: interrupting at line 0 irq 27
com0 at ssio0 offset 3f8 irq 4: ns16550a, working fifo
com0: console
com1 at ssio0 offset 2f8 irq 3: ns16550a, working fifo
lpt0 at ssio0 offset 378 irq 7
ohci0 at pci0 dev 14 function 2: National Semiconductor USB (rev. 0x02)
ohci0: interrupting at line 0 irq 27
ohci0: OHCI version 1.0, legacy support
usb0 at ohci0: USB revision 1.0
Symbios Logic 53c896 (SCSI mass storage, revision 0x07) at pci0 dev 15 function 
0 not configured
Symbios Logic 53c896 (SCSI mass storage, revision 0x07) at pci0 dev 15 function 
1 not configured
elroy1 at astro0 hpa 0xfed32000 path 10/1: Elroy TR4.0 APIC ver 20, 7 pins
pci1 at elroy1 bus 0
pci1: i/o space, memory space enabled
wm0 at pci1 dev 4 function 0: Intel i82540EM 1000BASE-T Ethernet, rev. 2
wm0: interrupting at line 2 irq 26
wm0: 32-bit 33MHz PCI bus
wm0: 64 word (6 address bits) MicroWire EEPROM
wm0: Ethernet address 00:07:e9:15:63:68
makphy0 at wm0 phy 1: Marvell 88E1011 Gigabit PHY, rev. 3
makphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 
1000baseT-FDX, auto
elroy2 at astro0 hpa 0xfed38000 path 10/4: Elroy TR4.0 APIC ver 20, 7 pins
pci2 at elroy2 bus 0
pci2: i/o space, memory space enabled
elroy3 at astro0 hpa 0xfed3c000 path 10/6: Elroy TR4.0 APIC ver 20, 7 pins
pci3 at elroy3 bus 0
pci3: i/o space, memory space enabled
sti0 at pci3 dev 2 function 0
sti0: rev 8.13;9, ID 0x35ACDA3009A02587
sti0: A1262A, 1280x1024 frame buffer, 1280x1024x32 display
sti0: 10x20 font type 1, 40 bpc, charset 0-255
vmmask 0000000e schedmask 0000000f highmask 0000000f
timecounter: Timecounter "clockinterrupt" frequency 100 Hz quality 0
timecounter: Timecounter "itimer" frequency 552000000 Hz quality 100
wsdisplay0 at sti0 kbdmux 1
wsmux1: connecting to wsdisplay0
uhub0 at usb0: National Semiconductor OHCI root hub, class 9/0, rev 1.00/1.00, 
addr 1
uhub0: 3 ports with 3 removable, self powered
Kernelized RAIDframe activated
boot device: tlp0
root on wm0
nfs_boot: trying DHCP/BOOTP
nfs_boot: DHCP next-server: 172.18.129.1
nfs_boot: my_addr=172.18.129.49
nfs_boot: my_mask=255.255.255.0
nfs_boot: gateway=172.18.129.1
root on 172.18.129.1:/work/hp700/diskless


Home | Main Index | Thread Index | Old Index