Driver for DEC 21142/3 linux kernel 2.0.34: More info

A James Lewis james@vrtx.net
Fri Apr 23 21:10:07 1999


I noticed recently that v0.89H at least does not work with (at least some 
of) the later cards with the 21143 chips... I upgraded the tulip.c in
drivers/net to 0.90 from the web site and it worked again....

On Fri, 23 Apr 1999, MJ Watson wrote:

> 
> While the possibility of purchasing a new Linux distribution on CDROM
> is under consideration in order to try and get something to run on this
> system, we've also been trying to figure out why no tulip drivers will
> work with the current kernel.
> 
> We've pretty much eliminated network config errors, so it would seem 
> that the problem is that something isn't getting the tx working.  Ifconfig
> shows plenty of packets being read, but the number of transmits is only
> one or two after trying to ping outside the box.
> 
> I've tried reading the code, and that would take a lot longer than
> ordering and installing a new kernel :^)
> 
> Syslog output (options=0 debug=4):
> 
> Apr 23 15:06:15 celebris33 kernel: tulip.c:v0.91 4/14/99 becker@cesdis.gsfc.nasa.gov 
> Apr 23 15:06:15 celebris33 kernel: eth0: Digital DS21143 Tulip rev 48 at 0xec00, 00:00:F8:78:DC:F5, IRQ 9. 
> Apr 23 15:06:15 celebris33 kernel: eth0:  EEPROM default media type Autosense. 
> Apr 23 15:06:15 celebris33 kernel: eth0:  Index #0 - Media 10baseT (#0) described by a 21142 Serial PHY (2) block. 
> Apr 23 15:06:15 celebris33 kernel: eth0:  Index #1 - Media 10baseT-FD (#4) described by a 21142 Serial PHY (2) block. 
> Apr 23 15:06:15 celebris33 kernel: eth0:  Index #2 - Media 10base2 (#1) described by a 21142 Serial PHY (2) block. 
> Apr 23 15:06:15 celebris33 kernel: eth0:  Index #3 - Media AUI (#2) described by a 21142 Serial PHY (2) block. 
> Apr 23 15:06:15 celebris33 kernel: eth0:  MII interface PHY 0, setup/reset sequences 2/0 long, capabilities 00 f0. 
> Apr 23 15:06:15 celebris33 kernel: eth0:  Index #4 - Media MII (#11) described by a 21142 MII PHY (3) block. 
> Apr 23 15:06:15 celebris33 kernel: eth0:  Advertising 01e1 on PHY 0 (0). 
> Apr 23 15:06:15 celebris33 kernel: eth0: Using media type MII, CSR12 is c6. 
> Apr 23 15:06:15 celebris33 kernel: eth0:  MII transceiver #5 config 1000 status 786d advertising 01e1. 
> Apr 23 15:06:41 celebris33 kernel: eth0: tulip_open() irq 9. 
> Apr 23 15:06:41 celebris33 kernel: eth0:  Advertising 01e1 on PHY 0 (5). 
> Apr 23 15:06:41 celebris33 kernel: eth0: Using media type MII, CSR12 is c6. 
> Apr 23 15:06:41 celebris33 kernel: eth0: Using MII transceiver 5, status 786d. 
> Apr 23 15:06:41 celebris33 kernel: eth0: exiting interrupt, csr5=0xf0660000. 
> Apr 23 15:06:41 celebris33 kernel: eth0: Done tulip_open(), CSR0 ffa08000, CSR5 f0670004 CSR6 b20e2002. 
> Apr 23 15:06:41 celebris33 kernel: eth0: exiting interrupt, csr5=0xf0660000. 
> Apr 23 15:06:46 celebris33 last message repeated 48 times
> Apr 23 15:06:46 celebris33 kernel: eth0: 21143 negotiation status 000000c6, MII. 
> Apr 23 15:06:46 celebris33 kernel: eth0: MII status 786d, Link partner report 0021. 
> Apr 23 15:06:46 celebris33 kernel: eth0: exiting interrupt, csr5=0xf0660000. 
> Apr 23 15:07:17 celebris33 last message repeated 352 times
> Apr 23 15:07:46 celebris33 last message repeated 232 times
> Apr 23 15:07:46 celebris33 kernel: eth0: 21143 negotiation status 000000c6, MII. 
> Apr 23 15:07:46 celebris33 kernel: eth0: MII status 786d, Link partner report 0021. 
> Apr 23 15:07:46 celebris33 kernel: eth0: exiting interrupt, csr5=0xf0660000. 
> Apr 23 15:08:00 celebris33 last message repeated 145 times
> Apr 23 15:08:00 celebris33 kernel: eth0: exiting interrupt, csr5=0xf0660000. 
> Apr 23 15:08:31 celebris33 last message repeated 264 times
> Apr 23 15:08:46 celebris33 last message repeated 150 times
> Apr 23 15:08:46 celebris33 kernel: eth0: 21143 negotiation status 000000c6, MII. 
> Apr 23 15:08:46 celebris33 kernel: eth0: MII status 786d, Link partner report 0021. 
> Apr 23 15:08:46 celebris33 kernel: eth0: exiting interrupt, csr5=0xf0660000. 
> Apr 23 15:08:55 celebris33 last message repeated 99 times
> Apr 23 15:08:55 celebris33 kernel: eth0: exiting interrupt, csr5=0xf06e0000. 
> Apr 23 15:08:55 celebris33 kernel: eth0: exiting interrupt, csr5=0xf0660000. 
> Apr 23 15:09:27 celebris33 last message repeated 304 times
> Apr 23 15:09:46 celebris33 last message repeated 175 times
> Apr 23 15:09:46 celebris33 kernel: eth0: 21143 negotiation status 000000c6, MII. 
> Apr 23 15:09:46 celebris33 kernel: eth0: MII status 786d, Link partner report 0021. 
> Apr 23 15:09:46 celebris33 kernel: eth0: exiting interrupt, csr5=0xf0660000. 
> Apr 23 15:10:00 celebris33 last message repeated 132 times
> Apr 23 15:10:00 celebris33 kernel: eth0: exiting interrupt, csr5=0xf0660000. 
> Apr 23 15:10:31 celebris33 last message repeated 301 times
> Apr 23 15:10:46 celebris33 last message repeated 153 times
> Apr 23 15:10:46 celebris33 kernel: eth0: 21143 negotiation status 000000c6, MII. 
> Apr 23 15:10:46 celebris33 kernel: eth0: MII status 786d, Link partner report 0021. 
> Apr 23 15:10:46 celebris33 kernel: eth0: exiting interrupt, csr5=0xf0660000. 
> Apr 23 15:11:17 celebris33 last message repeated 378 times
> Apr 23 15:11:46 celebris33 last message repeated 283 times
> Apr 23 15:11:46 celebris33 kernel: eth0: 21143 negotiation status 000000c6, MII. 
> Apr 23 15:11:46 celebris33 kernel: eth0: MII status 786d, Link partner report 0021. 
> Apr 23 15:11:46 celebris33 kernel: eth0: exiting interrupt, csr5=0xf0660000. 
> Apr 23 15:12:00 celebris33 last message repeated 156 times
> Apr 23 15:12:00 celebris33 kernel: eth0: exiting interrupt, csr5=0xf0660000. 
> Apr 23 15:12:31 celebris33 last message repeated 309 times
> Apr 23 15:12:45 celebris33 last message repeated 131 times
> Apr 23 15:12:46 celebris33 kernel: eth0: 21143 negotiation status 000000c6, MII. 
> Apr 23 15:12:46 celebris33 kernel: eth0: MII status 786d, Link partner report 0021. 
> Apr 23 15:12:46 celebris33 kernel: eth0: exiting interrupt, csr5=0xf0660000. 
> Apr 23 15:13:17 celebris33 last message repeated 280 times
> Apr 23 15:13:46 celebris33 last message repeated 257 times
> Apr 23 15:13:46 celebris33 kernel: eth0: 21143 negotiation status 000000c6, MII. 
> Apr 23 15:13:46 celebris33 kernel: eth0: MII status 786d, Link partner report 0021. 
> Apr 23 15:13:46 celebris33 kernel: eth0: exiting interrupt, csr5=0xf0660000. 
> 
> ===================================================
> 
> tulip-diag output (not simultaneous with the above, shortly before):
> (NOTE:  Hub is 10Mb half-duplex only)
> 
> tulip-diag.c:v1.10 4/12/99 Donald Becker (becker@cesdis.gsfc.nasa.gov)
> Index #1: Found a Digital DS21143 Tulip adapter at 0xec00.
> Digital DS21143 Tulip chip registers at 0xec00:
>   ffa08000 ffffffff ffffffff 00008028 00008228 f0660000 b20e2002 fbfffbff
>   e0000000 fffd83ff ffffffff fffe0000 000000c6 ffff0000 fff80000 8ff00000
>  Port selection is MII, 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.
> EEPROM contents:
>   0000 0000 0000 0000 0000 0000 0000 0000
>   0000 0103 0000 78f8 f5dc 1e00 0000 0800
>   8605 0002 08ff 00f0 0286 ff04 f008 8600
>   0102 08ff 00f0 0286 ff02 f008 9100 0003
>   ff02 f008 0000 7800 01e0 5000 1800 0000
>   0000 0000 0000 0000 0000 0000 0000 0000
>   0000 0000 0000 0000 0000 0000 0000 0000
>   0000 0000 0000 0000 0000 0000 0000 a8d0
>  ID CRC 0xe3 (vs. 00), complete CRC f4ea39bb.
> Ethernet MAC Station Address 00:00:F8:78:DC:F5.
> EEPROM transceiver/media description for the Digital DS21143 Tulip chip.
> Leaf node at offset 30, default media type 0800 (Autosense).
>  5 transceiver description blocks:
>   Media 10baseT, block type 2, length 6.
>    Serial transceiver for 10baseT (media type 0).
>     GP pin direction 08ff  GP pin data 00f0.
>   Media 10baseT-Full Duplex, block type 2, length 6.
>    Serial transceiver for 10baseT-Full Duplex (media type 4).
>     GP pin direction 08ff  GP pin data 00f0.
>   Media 10base2, block type 2, length 6.
>    Serial transceiver for 10base2 (media type 1).
>     GP pin direction 08ff  GP pin data 00f0.
>   Media AUI, block type 2, length 6.
>    Serial transceiver for AUI (media type 2).
>     GP pin direction 08ff  GP pin data 00f0.
>   Media MII, block type 3, length 17.
>    MII interface PHY 0 (media type 11).
>    21143 MII initialization sequence is 2 words: 08ff 00f0.
>    21143 MII reset sequence is 0 words:.
>     Media capabilities are 7800, advertising 01e1.
>     Full-duplex map 5000, Threshold map 1800.
>     No MII interrupt.
>   21140 Non-MII transceiver with media 0 (10baseT).
>    CSR12 control port setting 00, command 00 00.
>    Media detection by looking for a 1 on bit 0 of the CSR12 control port.
>   21140 Non-MII transceiver with media 0 (10baseT).
>    CSR12 control port setting 00, command 00 00.
>    Media detection by looking for a 1 on bit 0 of the CSR12 control port.
>   21140 Non-MII transceiver with media 0 (10baseT).
>    CSR12 control port setting 00, command 00 00.
>    Media detection by looking for a 1 on bit 0 of the CSR12 control port.
>   21140 Non-MII transceiver with media 0 (10baseT).
>    CSR12 control port setting 00, command 00 00.
>    Media detection by looking for a 1 on bit 0 of the CSR12 control port.
>  MII PHY found at address 5, status 0x786d.
>  MII PHY #5 transceiver registers:
>    3100 786d 2000 5c01 01e1 0021 0000 0000
>    0000 0000 0000 0000 0000 0000 0000 0000
>    0000 0000 0000 0000 0000 0000 0001 8060
>    8020 0c65 0000 3000 a3b9 0089 8105 001b.
>   Internal autonegotiation state is 'Autonegotiation disabled'.
> ===================================================
> Michael Watson           Unix Systems Administrator
> U.S. Coast Guard Aircraft Repair and Support Center
> CGAS Elizabeth City, NC                252.334.5269
> n6wav@yahoo.com                mjwatson@livenet.net
> ===================================================
> 

James (james@linuxrocks.co.uk)
It doesn't run on an open source platform,
therefore it, by definition, does not matter.