[tulip] DECchip 21142/43 (rev 30)

Chris Johns cjohns@cybertec.com.au
Tue, 28 Nov 2000 00:43:38 +1100


Hi all,

I have starting playing with a Tulip card and 100M/10M switches and I am
experiencing problems. The tulip cards is reported as (lspci) :

 Ethernet controller: Digital Equipment Corporation DECchip 21142/43
(rev 30) 

I think it is an Accton card. The EEPROM details are later on. The
machine is :

$ uname -a
Linux kiwi.objectivedesign.com.au 2.2.17 #3 SMP Mon Nov 20 19:59:07 EST
2000 i686 unknown

The driver is :

tulip.c:v0.92 4/17/2000  Written by Donald Becker <becker@scyld.com>
  http://www.scyld.com/network/tulip.html
eth0: Digital DS21143 Tulip rev 48 at 0xd0048000, 00:C0:CA:10:A4:40, IRQ
11.
eth0:  EEPROM default media type Autosense.
eth0:  Index #0 - Media 10baseT (#0) described by a 21142 Serial PHY (2)
block.
eth0:  Index #1 - Media 10baseT-FDX (#4) described by a 21142 Serial PHY
(2) block.
eth0:  Index #2 - Media 100baseTx (#3) described by a 21143 SYM PHY (4)
block.
eth0:  Index #3 - Media 100baseTx-FDX (#5) described by a 21143 SYM PHY
(4) block.

My understanding is this is the lastest version of the driver.

I have a few other machines connected including an `rtl8139' Linux RH7.0
box. The `rtl8139' is:

rtl8139.c:v1.12 9/14/2000 Donald Becker, becker@scyld.com.
 http://www.scyld.com/network/rtl8139.html
eth0: RealTek RTL8139 Fast Ethernet at 0xe800, IRQ 5, 00:00:21:f8:c7:c4.

Also the latest version. I think this is working ok.

The default setting for the tulip card (options=0) gives a ttcp figure
of about 200KB/sec. The /proc/net/dev stats show 5 errors, plenty of
colls, and about 10 carrier errors. The switch shows the link as 100M,
FD. The tulip diag shows :

# ./tulip-diag -m
tulip-diag.c:v2.04 9/26/2000 Donald Becker (becker@scyld.com)
 http://www.scyld.com/diag/index.html
Index #1: Found a Digital DS21143 Tulip adapter at 0xa400.
 Port selection is 100mbps-SYM/PCS 100baseTx scrambler, full-duplex.
 Transmit started, Receive started, full-duplex.
  The Rx process state is 'Waiting for packets'.
  The Tx process state is 'Idle'.
  The transmit threshold is 128.
  The NWay status register is 45e1d0cd.
   No MII transceivers found!
  Internal autonegotiation state is 'Negotiation complete'.

Playing with the media type I found `6', or 100baseT4 gave the best
result. The ttcp performance went up to 7836.77 KB/sec (RX) and 9778.02
KB/sec (TX). The switch shows the link as half duplex.

# ./tulip-diag -m
tulip-diag.c:v2.04 9/26/2000 Donald Becker (becker@scyld.com)
 http://www.scyld.com/diag/index.html
Index #1: Found a Digital DS21143 Tulip adapter at 0xa400.
 Port selection is 100mbps-SYM/PCS 100baseTx scrambler, half-duplex.
 Transmit started, Receive started, half-duplex.
  The Rx process state is 'Waiting for packets'.
  The Tx process state is 'Idle'.
  The transmit threshold is 128.
  The NWay status register is 000000c4.
   No MII transceivers found!
  Internal autonegotiation state is 'Autonegotiation disabled'.


I am confused. Why does the setting this value make the card/driver work
?

I also have no idea what 100baseT4 means.

Thanks




Here is the EEPROM dump.

# ./tulip-diag -ee
tulip-diag.c:v2.04 9/26/2000 Donald Becker (becker@scyld.com)
 http://www.scyld.com/diag/index.html
Index #1: Found a Digital DS21143 Tulip adapter at 0xa400.
 Port selection is 100mbps-SYM/PCS 100baseTx scrambler, half-duplex.
 Transmit started, Receive started, half-duplex.
  The Rx process state is 'Waiting for packets'.
  The Tx process state is 'Idle'.
  The transmit threshold is 128.
  The NWay status register is 000000c4.
EEPROM size is 6.
PCI Subsystem IDs, vendor 1113, device 1207.
CardBus Information Structure at offset 00000000.
Ethernet MAC Station Address 00:C0:CA:10:A4:40.
EEPROM transceiver/media description for the Digital DS21143 Tulip chip.
Leaf node at offset 30, default media type 0800 (Autosense).
 4 transceiver description blocks:
  Media 10baseT, block type 2, length 6.
   Serial transceiver for 10baseT (media type 0).
    GP pin direction 08af  GP pin data 00a5.
  Media 10baseT-Full Duplex, block type 2, length 6.
   Serial transceiver for 10baseT-Full Duplex (media type 4).
    GP pin direction 08af  GP pin data 00a5.
  Media 100baseTx, block type 4, length 8.
   SYM transceiver for 100baseTx (media type 3).
    GP pin direction 08af  GP pin data 00a5.
    No media detection indication (command 80 61).
  Media 100baseTx Full Duplex, block type 4, length 8.
   SYM transceiver for 100baseTx Full Duplex (media type 5).
    GP pin direction 08af  GP pin data 00a5.
    No media detection indication (command 80 61).
EEPROM contents:
  1113 1207 0000 0000 0000 0000 0000 0000
  0090 0104 c000 10ca 40a4 1e00 0000 0800
  8604 0002 08af 00a5 0286 af04 a508 8800
  0304 08af 00a5 8061 0488 af05 a508 6100
  0080 0000 0000 0000 0000 0000 0000 0000
  0000 0000 0000 0000 0000 0000 0000 0000
  0000 0000 0000 0000 0000 0000 0000 0000
  0000 0000 0000 0000 0000 0000 0000 04d5
 ID block CRC 0x90 (vs. 0x90).
  Full contents CRC 0x04d5 (read as 0x04d5).
  Internal autonegotiation state is 'Autonegotiation disabled'. 


-- 
 Chris Johns, mailto:cjohns@cybertec.com.au mailto:ccj@acm.org