Subject: port-alpha/6807: if_de is broken on the alpha
To: None <gnats-bugs@gnats.netbsd.org, bernd@arresum.inka.de>
From: Bernd Ernesti <bernd@arresum.inka.de>
List: netbsd-bugs
Date: 01/14/1999 13:41:05
>Number:         6807
>Category:       port-alpha
>Synopsis:       Strange behaiours of the if_de driver on the alpha
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    port-alpha-maintainer (NetBSD/alpha Portmaster)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jan 14 04:50:01 1999
>Last-Modified:
>Originator:     Bernd Ernesti
>Organization:
	
>Release:        NetBSD-current 14-Jan-99 0800 GMT
>Environment:
	
System: NetBSD druuf.inka.de 1.3I NetBSD 1.3I (DRUUF) #24: Thu Jan 14 09:49:38 MET 1999     bernd@druuf.inka.de:/obj_alpha/src.alpha/sys/arch/alpha/compile/DRUUF alpha


>Description:
The if_de driver behaves somehow strange in an 164LX/533MHz machine.
There is no supported autoselect media available and the fullduplex mode
doesn't work correctly. I can manualy set the fdx bit but get pore transfer
rates with it.

The same card works fine in an i386.

Fullduplex works fine with an 3C905.

de0 at pci0 dev 5 function 0
de0: interrupting at eb164 irq 2
de0: 21140A [10-100Mb/s] pass 2.2
de0: address 00:80:c8:e2:7e:74
de0: enabling 100baseTX port
ex0 at pci0 dev 6 function 0: 3Com 3c905-TX Ethernet
ex0: interrupting at eb164 irq 0
ex0: MAC address 00:60:97:b5:0e:56
nsphy0 at ex0 phy 24: DP83840 10/100 media interface, rev. 1
nsphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto

>How-To-Repeat:
Place a DLink DFE-500TX in a fast Alpha and notice that the driver knows
nothing about the autoselect mode:
de0: flags=8822<BROADCAST,NOTRAILERS,SIMPLEX,MULTICAST> mtu 1500
        address: 00:80:c8:e2:7e:74
        media: Ethernet 100baseTX
        status: active
        supported Ethernet media:
                media 100baseTX mediaopt full-duplex
                media 100baseTX
                media 10baseT mediaopt full-duplex
                media 10baseT

The same card works fine in an i386:
de0: flags=8863<UP,BROADCAST,NOTRAILERS,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        address: 00:80:c8:e2:7e:74
        media: Ethernet autoselect (100baseTX full-duplex)
        status: active
        supported Ethernet media:
                media autoselect
                media 100baseTX mediaopt full-duplex
                media 100baseTX
                media 10baseT mediaopt full-duplex
                media 10baseT

The Dlink has an 21140-AF and an Level1 ST10040QC mii chip on it,
but I get the same problem with a different DLink card which has an
21140-AE and a different mii chip.

Oh, and the driver is completly broken for a 21143-PA and a ML6694 chip,
which does only work in 10MBit (that also happens on the i386 port).
>Fix:
Unknown, maybe rewrite the driver so it uses the mii layer.
>Audit-Trail:
>Unformatted: