Subject: kern/7216: i82559 receive hang with fxp driver
To: None <gnats-bugs@gnats.netbsd.org>
From: tls <tls@rek.tjls.com>
List: netbsd-bugs
Date: 03/23/1999 14:17:23
>Number:         7216
>Category:       kern
>Synopsis:       i82559 hangs after one packet on receive with fxp driver
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    kern-bug-people (Kernel Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Mar 23 11:20:01 1999
>Last-Modified:
>Originator:     tls
>Organization:
	very little
>Release:        19990323
>Environment:
	Flytech "NetPC3", with onboard 82558 and 82559 on add-in PCI card.
	NetBSD/i386 from 19980323 sources.
System: NetBSD rekusant.rivage.tjls.com 1.3K NetBSD 1.3K (REKUSANT) #9: Mon Mar 22 13:46:18 EST 1999 root@rekusant.rivage.tjls.com:/lfs/kobj/REKUSANT i386


>Description:
The only differences between the 82558 and 82559, according to Intel's
"preview datasheet" (the only documentation available online AFAICT) are
the removal of external PHY support (which we don't use) and a change of
the version identifier on the onboard 82555 PHY, from version 0 to version
4.  In fact, the 82559 probes, attaches, and appears to work, for things like 
ping and telnet.  Unfortunately, there's some problem with bulk data transfers.
Trying to FTP a new kernel across a 100baseTX full-duplex link gets the first
packet (about 1500 bytes) and then the TCP connection appears to hang.  Oddly,
the device is still "usable" -- I can still ping the other host, etc.  But
the FTP session will happily sit there all day and stay hung.

I'd suspect a media selection problem, but ifconfig shows "autoselect
(100baseTX full-duplex)" which is what the switch thinks, too.

The onboard 82558 on the same machine Works Just Fine; other devices on the
same PCI bus as the 82559 appear to, too.  I don't have another Ethernet
card that'll fit in the NetPC's oddly physically constrained slot to see
if it's a problem with the riser card, but that seems very unlikely.

The 82558 has evidently been cancelled (in fact, two retailers have told
me that Intel actually reps had pulled their "EtherExpress Pro 100+" (82558)
cards off their shelves and replaced them with "EtherExpress Pro 100+
Management Adapter" (82559) cards!), so this is probably a serious issue for
1.4.

>How-To-Repeat:

Get an "EtherExpress Pro 100+ Management Adapter" or equivalent 82559
card; connect it via 100baseTX full-duplex to another host; ftp a large
file.

I suspect the problem exists with the other media selections but since my
switch doesn't reliably negotiate half-duplex modes it's a bit hard to
test. :-(

>Fix:
Beats me.
>Audit-Trail:
>Unformatted: