Subject: kern/7567: fxp fails (device timeout) in 1.4 at > 10bT/half-duplex
To: None <gnats-bugs@gnats.netbsd.org>
From: None <John.P.Darrow@wheaton.edu>
List: netbsd-bugs
Date: 05/12/1999 13:36:26
>Number:         7567
>Category:       kern
>Synopsis:       fxp fails (device timeout) in 1.4 at > 10bT/half-duplex
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    kern-bug-people (Kernel Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed May 12 13:35:00 1999
>Last-Modified:
>Originator:     John Darrow
>Organization:
Computing Services
Wheaton College, Wheaton, IL
>Release:        netbsd 1.4 release
>Environment:
dmesg-1.3.3:	NetBSD 1.3.3 (INSTALL) #0: Fri Dec 11 16:37:36 PST 1998
dmesg-1.3.3:	    root@struis:/usr/src/sys/arch/i386/compile/INSTALL
dmesg-1.4:	NetBSD 1.4 (INSTALL) #0: Fri May  7 12:49:05 PDT 1999
dmesg-1.4:	    perry@cynic.cynic.net:/usr/src/sys/arch/i386/compile/INSTALL

>Description:
	While installing a new machine, I found that I could not get the
	network card to respond properly using the default settings.  After
	experimenting with the media settings, I found that the card would
	only talk properly using 10baseT/half-duplex - setting full-duplex
	or 100baseTX (or both) would cause it to fail with a 'device timeout'.

	Watching the other end of the link, the link signal would show up
	at the (forced) speed and duplex until I tried to do anything with
	the network (e.g. ping another host).  Then, the link signal would
	go down for a few seconds, and then the machine would return
	'fxp0: device timeout'.

	I tried both the stock 1.4 INSTALL kernel and a modified version.

	Booting a 1.3.3 INSTALL kernel, though the card only autonegotiated
	10baseT/HDX, I was able to set both ends to 100baseTX/FDX and
	the network Just Worked.

	(In case it's relevant, the device on the other end of the link
	is a Cabletron SmartSwitch 6000, and I tried ports on both the
	6H122-08 and 6H202-24 (10/100 UTP) and 6E132-25 (10 UTP) modules.)
	
	dmesg follows (failing 1.4 first, then working 1.3.3):

NetBSD 1.4 (INSTALL) #0: Fri May  7 12:49:05 PDT 1999
    perry@cynic.cynic.net:/usr/src/sys/arch/i386/compile/INSTALL
cpu0: family 6 model 1 step 9
cpu0: Intel Pentium Pro (686-class)
real mem  = 133824512
avail mem = 120598528
using 1659 buffers containing 6795264 bytes of memory
mainbus0 (root)
pci0 at mainbus0 bus 0: configuration mode 1
pci0: i/o enabled, memory enabled
pceb0 at pci0 dev 2 function 0
pceb0: vendor 0x8086 product 0x0482 (rev. 0x15)
pciide0 at pci0 dev 3 function 0: vendor 0x10ad product 0x0105 (rev. 0x06)
pciide0: bus-master DMA support present, but unused (no driver support)
pciide0: primary channel configured to compatibility mode
pciide0: primary channel ignored (not responding; disabled or no drives?)
pciide0: secondary channel configured to compatibility mode
pciide0: secondary channel ignored (not responding; disabled or no drives?)
vendor 0x1013 product 0x00b8 (VGA display) at pci0 dev 12 function 0 not configured
fxp0 at pci0 dev 13 function 0: Intel EtherExpress Pro 10+/100B Ethernet
fxp0: interrupting at irq 9
fxp0: Ethernet address 00:a0:c9:3e:d1:67
nsphy0 at fxp0 phy 1: DP83840 10/100 media interface, rev. 1
nsphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
vendor 0x8086 product 0x84c5 (RAM memory, revision 0x05) at pci0 dev 20 function 0 not configured
pchb0 at pci0 dev 25 function 0
pchb0: vendor 0x8086 product 0x84c4 (rev. 0x06)
pchb0: Compatibility PB (bus 0)
pchb1 at pci0 dev 26 function 0
pchb1: vendor 0x8086 product 0x84c4 (rev. 0x06)
pchb1: Auxiliary PB (bus 1)
pci1 at pchb1 bus 1
pci1: i/o enabled, memory enabled
ahc1 at pci1 dev 11 function 0
ahc1: interrupting at irq 11
ahc1: aic7880 Wide Channel, SCSI Id=7, 16 SCBs
scsibus0 at ahc1 channel 0: 16 targets, 8 luns per target
ahc1: target 0 using 16Bit transfers
ahc1: target 0 synchronous at 20.0MHz, offset = 0x8
sd0 at scsibus0 targ 0 lun 0: <QUANTUM, VIKING II 9.1WLS, 4110> SCSI2 0/direct fixed
sd0: 8709MB, 8338 cyl, 10 head, 213 sec, 512 bytes/sect x 17836668 sectors
ahc1: target 1 using 16Bit transfers
ahc1: target 1 synchronous at 20.0MHz, offset = 0x8
sd1 at scsibus0 targ 1 lun 0: <QUANTUM, VIKING II 9.1WLS, 4110> SCSI2 0/direct fixed
sd1: 8709MB, 8338 cyl, 10 head, 213 sec, 512 bytes/sect x 17836668 sectors
ahc1: target 5 synchronous at 4.0MHz, offset = 0xf
cd0 at scsibus0 targ 5 lun 0: <TOSHIBA, CD-ROM XM-5401TA, 3605> SCSI2 5/cdrom removable
fxp1 at pci1 dev 12 function 0: Intel EtherExpress Pro 10+/100B Ethernet
fxp1: interrupting at irq 11
fxp1: Ethernet address 00:a0:c9:25:a5:c0
nsphy1 at fxp1 phy 1: DP83840 10/100 media interface, rev. 0
nsphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
eisa0 at pceb0
eisa0: can't map I/O space for slot 15
isa0 at pceb0
com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
com1 at isa0 port 0x2f8-0x2ff irq 3: 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 840 netmask a40 ttymask a42
md0: internal 1587K image area
warning: double match for boot device (sd0, sd1)
boot device: sd0
root on md0a dumps on md0b
root file system type: ffs
fxp0: device timeout
fxp0: device timeout
fxp0: device timeout
fxp0: device timeout

NetBSD 1.3.3 (INSTALL) #0: Fri Dec 11 16:37:36 PST 1998
    root@struis:/usr/src/sys/arch/i386/compile/INSTALL
cpu0: family 6 model 1 step 9
cpu0: Intel Pentium Pro (686-class)
real mem  = 133820416
avail mem = 128413696
using 1659 buffers containing 6795264 bytes of memory
mainbus0 (root)
pci0 at mainbus0 bus 0: configuration mode 1
vendor 0x8086 product 0x0482 (miscellaneous prehistoric, revision 0x15) at pci0 dev 2 function 0 not configured
vendor 0x10ad product 0x0105 (IDE mass storage, interface 0x8a, revision 0x06) at pci0 dev 3 function 0 not configured
vendor 0x1013 product 0x00b8 (VGA display) at pci0 dev 12 function 0 not configured
fxp0 at pci0 dev 13 function 0: Intel EtherExpress Pro 10+/100B Ethernet
fxp0: interrupting at irq 9
fxp0: Ethernet address 00:a0:c9:3e:d1:67
pchb0 at pci0 dev 20 function 0
pchb0: vendor 0x8086 product 0x84c5 (rev. 0x05)
pchb1 at pci0 dev 25 function 0
pchb1: vendor 0x8086 product 0x84c4 (rev. 0x06)
pchb1: Compatibility PB (bus 0)
pchb2 at pci0 dev 26 function 0
pchb2: vendor 0x8086 product 0x84c4 (rev. 0x06)
pchb2: Auxiliary PB (bus 1)
pci1 at pchb2 bus 1
ahc1 at pci1 dev 11 function 0
ahc1: interrupting at irq 11
ahc1: aic7880 Wide Channel, SCSI Id=7, 16 SCBs
scsibus0 at ahc1 channel 0: 16 targets
ahc1: target 0 using 16Bit transfers
ahc1: target 0 synchronous at 20.0MHz, offset = 0x8
sd0 at scsibus0 targ 0 lun 0: <QUANTUM, VIKING II 9.1WLS, 4110> SCSI2 0/direct fixed
sd0: 8709MB, 8338 cyl, 10 head, 213 sec, 512 bytes/sect x 17836668 sectors
ahc1: target 1 using 16Bit transfers
ahc1: target 1 synchronous at 20.0MHz, offset = 0x8
sd1 at scsibus0 targ 1 lun 0: <QUANTUM, VIKING II 9.1WLS, 4110> SCSI2 0/direct fixed
sd1: 8709MB, 8338 cyl, 10 head, 213 sec, 512 bytes/sect x 17836668 sectors
ahc1: target 5 synchronous at 4.0MHz, offset = 0xf
cd0 at scsibus0 targ 5 lun 0: <TOSHIBA, CD-ROM XM-5401TA, 3605> SCSI2 5/cdrom removable
fxp1 at pci1 dev 12 function 0: Intel EtherExpress Pro 10+/100B Ethernet
fxp1: interrupting at irq 11
fxp1: Ethernet address 00:a0:c9:25:a5:c0
eisa0 at mainbus0
eisa0: can't map I/O space for slot 15
isa0 at mainbus0
com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
com1 at isa0 port 0x2f8-0x2ff irq 3: ns16550a, working fifo
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
biomask 840 netmask a40 ttymask a42
md0: internal 1537K image area
warning: double match for boot device (sd0, sd1)
boot device: sd0
root on md0a dumps on md0b
root file system type: ffs
>How-To-Repeat:
	boot install floppy, try to configure network, fail.
>Fix:
	Unknown.  Workarounds: run at 10baseT/half-duplex (undesirable),
	 fall back to NetBSD 1.3.3
>Audit-Trail:
>Unformatted: