Subject: port-i386/16295: Problems in pci routing table and ex0 (3c575c-tx) networking
To: None <gnats-bugs@gnats.netbsd.org>
From: None <mipam@ibb.net>
List: netbsd-bugs
Date: 04/11/2002 01:12:14
>Number:         16295
>Category:       port-i386
>Synopsis:       Problems in pci routing table and ex0 (3c575c-tx) networking
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    port-i386-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Apr 10 16:13:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Mipam
>Release:        1.5.3_RC1
>Organization:
Mipam
>Environment:
	
NetBSD 1.5.3_RC1 (INSTALL_LAPTOP) #15: Fri Mar 15 22:42:49 CET 2002
    he@hamster.urc.uninett.no:/usr/src/sys/arch/i386/compile/INSTALL_LAPTOP

>Description:
	In this snapshot there are still problems on my compaq armada E500
	with the pci routing table:
	PCI IRQ Routing Table rev. 1.0 found at 0xf0970, 
	size 0 bytes (-2 entries)
	pcibios_pir_init: bad IRQ table size

	After this it reports:

	PCI IRQ Routing Table rev. 1.0 found at 0xf9c70, 
	size 224 bytes (12 entries)
	PCI Interrupt Router at 000:07:0 (vendor 0x8086 product 0x7110)
	PCI Exclusive IRQs: 11

	Secondly: there are problems when using
	the 3Com 3C575C-TX network card in this laptop.
	When i configure it with ifconfig, i hear a loud click
	and see ex0 interrupting at 11
	Imidiatly after i see: ex0: device timeout (N times, N>3) 
	Here follows the dmesg output:

	NetBSD 1.5.3_RC1 (INSTALL_LAPTOP) #15: Fri Mar 15 22:42:49 CET 2002
	he@hamster.urc.uninett.no:/usr/src/sys/arch/i386/compile/INSTALL_LAPTOP
	    cpu0: Intel Pentium III (Coppermine) (686-class), 596.98 MHz
	    total memory = 127 MB
	    avail memory = 114 MB 
	    using 1658 buffers containing 6632 KB of memory
	    BIOS32 rev. 0 found at 0xf0000 
	    PCI BIOS rev. 2.1 found at 0xf0478
	    PCI IRQ Routing Table rev. 1.0 found at 0xf0970, size 0 bytes 
	    (-2 entries)
	    pcibios_pir_init: bad IRQ table size
	    PCI IRQ Routing Table rev. 1.0 found at 0xf9c70, size 224 bytes 
	    (12 entries) 
	    PCI Interrupt Router at 000:07:0 (vendor 0x8086 product 0x7110)
	    PCI Exclusive IRQs: 11
	    mainbus0 (root)
	    pci0 at mainbus0 bus 0: configuration mode 1
	    pci0: i/o space, memory space enabled
	    pchb0 at pci0 dev 0 function 0
	    pchb0: vendor 0x8086 product 0x7190 (rev. 0x03)
	    ppb0 at pci0 dev 1 function 0: vendor 0x8086 product 0x7191 
	    (rev. 0x03)
	    pci1 at ppb0 bus 1
	    pci1: i/o space, memory space enabled
	    vendor 0x1002 product 0x4c4d (VGA display, revision 0x64) 
	    at pci1 dev 0 function
	    0 not configured
	    cbb0 at pci0 dev 4 function 0: vendor 0x104c product 0xac1c 
	    (rev. 0x01)
	    cbb1 at pci0 dev 4 function 1: vendor 0x104c product 0xac1c 
	    (rev. 0x01)
	    pcib0 at pci0 dev 7 function 0
	    pcib0: vendor 0x8086 product 0x7110 (rev. 0x02)
	    pciide0 at pci0 dev 7 function 1: Intel 82371AB IDE controller 
	    (PIIX4) (rev. 0x01)
	    pciide0: bus-master DMA support present
	    pciide0: primary channel wired to compatibility mode
	    atapibus0 at pciide0 channel 0
	    cd0 at atapibus0 drive 1: <Compaq  CRN-8241B, 1999/11/13, 2.23> 
	    type 5 cdrom removale
	    cd0: 32-bit data port
	    cd0: drive supports PIO mode 4, DMA mode 2
	    wd0 at pciide0 channel 0 drive 0: <TOSHIBA MK6015MAP>
	    wd0: drive supports 16-sector pio transfers, lba addressing
	    wd0: 5729 MB, 12416 cyl, 15 head, 63 sec, 512 bytes/sect x 
	    11733120 sectors
	    wd0: 32-bit data port
	    wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 4
	    pciide0: primary channel interrupting at irq 14
	    wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2 
	    (using DMA data transfers)
	    cd0(pciide0:0:1): using PIO mode 4, DMA mode 2 
	    (using DMA data transfers)
	    pciide0: secondary channel wired to compatibility mode
	    pciide0: secondary channel ignored (disabled)
	    uhci0 at pci0 dev 7 function 2: vendor 0x8086 product 0x7112 
	    (rev. 0x01)
	    uhci0: interrupting at irq 11
	    usb0 at uhci0: USB revision 1.0
	    uhub0 at usb0
	    uhub0: vendor 0x8086 UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
	    uhub0: 2 ports with 2 removable, self powered
	    vendor 0x8086 product 0x7113 
	    (miscellaneous bridge, revision 0x03) at pci0 dev 7
	     function 3 not configured
	     vendor 0x125d product 0x1978 (audio multimedia, revision 0x10) 
	     at pci0 dev 8 function 0 not configured
	     vendor 0x11c1 product 0x0449 
	     (miscellaneous communications, revision 0x01) 
	     at pci0 dev 9 function 0 not configured
	     cbb0: interrupting at irq 11
	     cbb0: cacheline 0x8 lattimer 0x20
	     cbb0: bhlc 0x824208 lscp 0x20020200
	     cardslot0 at cbb0 slot 0 flags 0
	     cardbus0 at cardslot0: bus 2 device 0 cacheline 0x8, lattimer 0x20
	     pcmcia0 at cardslot0
	     cbb1: interrupting at irq 11
	     cbb1: cacheline 0x8 lattimer 0x20
	     cbb1: bhlc 0x824208 lscp 0x20030300
	     cardslot1 at cbb1 slot 1 flags 0
	     cardbus1 at cardslot1: bus 3 device 0 cacheline 0x8, lattimer 0x20
	     pcmcia1 at cardslot1
	     isa0 at pcib0
	     com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
	     isapnp0 at isa0 port 0x279: ISA Plug 'n Play device support
	     npx0 at isa0 port 0xf0-0xff: using exception 16
	     pc0 at isa0 port 0x60-0x6f irq 1: color
	     pc0: console
	     fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
	     fd0 at fdc0 drive 0: 1.44MB, 80 cyl, 2 head, 18 sec
	     isapnp0: no ISA Plug 'n Play devices found
	     biomask ffed netmask ffed ttymask ffef
	     md0: internal 2048K image area
	     ex0 at cardbus0 dev 0 function 0: 3Com 3c575CT Ethernet
	     ex0: MAC address 00:04:75:77:f1:0e
	     tqphy0 at ex0 phy 0: 78Q2120 10/100 media interface, rev. 11
	     tqphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
	     wd0: no disk label
	     boot device: fd0
	     root on md0a dumps on md0b
	     root file system type: ffs

	     i typed in the prompt:

	     ifconfig ex0 10.1.1.109 netmask 255.255.255.252 media autoselect

	     Result:

	     a loud click and there was echoed: ex0 interrupting at 11

	     then:
	     ex0: device timeout
	     and so on, in dmesg:
		  
	     <3>ex0: device timeout
>How-To-Repeat:
	Boot netbsd-1.5.2 or 1.5.3_RC1 on a compaq armada E500
	with 3c575c-tx network card.
>Fix:
	Dont know, however, i tried a dos config program to
	configure the card from dos.
	It reported that only irq 5 was free.
	irq 11 is shared with build in sound card and usb.

>Release-Note:
>Audit-Trail:
>Unformatted:
 		card in NetBSD-1.5.3_RC1