Allnet 8832 almost working with v0.92 tulip driver

Tobias Abt tabt@gmx.de
Wed May 10 06:49:56 2000


Sorry for the long mail, but I tried to supply all necessary information.

I own an Allnet 8832 ethernet card which uses a 21143 tulip chip set. It
can use 100base-Tx (TP), 10base-T (TP) and 10base-2 (BNC).


It identifies itself as:
------------------------
´lspci -vv´ output:
-------------------
00:0b.0 Ethernet controller: Digital Equipment Corporation DECchip 21142/43 (rev
30)
        Subsystem: Cogent Data Technologies, Inc. ANA-6911A/TXC Fast Ethernet
        Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV+ VGASnoop- ParErr-
Stepping- SERR- FastB2B-
        Status: Cap- 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort-
<TAbort- <MAbort- >SERR- <PERR-
        Latency: 20 min, 40 max, 32 set, cache line size 08
        Interrupt: pin A routed to IRQ 10
        Region 0: I/O ports at b800
        Region 1: Memory at da800000 (32-bit, non-prefetchable)
(Note: IRQ 10 is not shared with other hardware. Seems like Allnet did not
 care to use an own PCI ID as it is identified as a Cogent product)


tulip driver output:
--------------------
tulip.c:v0.92 4/17/2000  Written by Donald Becker <becker@scyld.com>
eth0: Digital DS21143 Tulip rev 48 at 0xc884c000, 00:E0:7D:70:05:1E, IRQ 10.
eth0:  EEPROM default media type Autosense.
eth0:  MII interface PHY 0, setup/reset sequences 2/3 long, capabilities 01 00.
eth0:  Index #0 - Media MII (#11) described by a 21142 MII PHY (3) block.
eth0:  Index #1 - Media 10base2 (#1) described by a 21142 Serial PHY (2) block.
eth0: Using media type MII, CSR12 is c6.
eth0: ***WARNING***: No MII transceiver found!
eth0: Restarting internal NWay autonegotiation, 0000ffbf.
(Note: no MII tranceiver found, but it still works!?)

tulip-diag -aa:
---------------
tulip-diag.c:v2.00 4/19/2000 Donald Becker (becker@scyld.com)
 http://www.scyld.com/diag/index.html
Index #1: Found a Digital DS21143 Tulip adapter at 0xb800.
Digital DS21143 Tulip chip registers at 0xb800:
  ffa08000 ffffffff ffffffff 03a2b800 03a2ba00 f0000102 320e0000 f3fe0000
  e0000000 ffffcbf8 ffffffff fffe0000 000000c6 ffff0000 fff80000 8ff10000
 Port selection is MII, half-duplex.
 Transmit stopped, Receive stopped, half-duplex.
  The Rx process state is 'Stopped'.
  The Tx process state is 'Stopped'.
  The transmit threshold is 128.
  The NWay status register is 000000c6.
  Internal autonegotiation state is 'Autonegotiation disabled'.

tulip-diag -mm:
---------------
tulip-diag.c:v2.00 4/19/2000 Donald Becker (becker@scyld.com)
 http://www.scyld.com/diag/index.html
Index #1: Found a Digital DS21143 Tulip adapter at 0xb800.
 Port selection is MII, half-duplex.
 Transmit stopped, Receive stopped, half-duplex.
  The Rx process state is 'Stopped'.
  The Tx process state is 'Stopped'.
  The transmit threshold is 128.
  The NWay status register is 000000c6.
 MII PHY found at address 1, status 0x782d.
 MII PHY #1 transceiver registers:
   1000 782d 7810 0001 01e1 0081 0000 0000
   0000 0000 0000 0000 0000 0000 0000 0000
   0000 0000 4000 0000 28c8 0010 0000 0002
   0001 0000 0000 0000 0000 0000 0000 0000.
  Internal autonegotiation state is 'Autonegotiation disabled'.

tulip-diag -ee:
---------------
tulip-diag.c:v2.00 4/19/2000 Donald Becker (becker@scyld.com)
 http://www.scyld.com/diag/index.html
Index #1: Found a Digital DS21143 Tulip adapter at 0xb800.
 Port selection is MII, half-duplex.
 Transmit stopped, Receive stopped, half-duplex.
  The Rx process state is 'Stopped'.
  The Tx process state is 'Stopped'.
  The transmit threshold is 128.
  The NWay status register is 000000c6.
EEPROM size is 6.
PCI Subsystem IDs, vendor 1109, device 2b00.
CardBus Information Structure at offset 00000000.
Ethernet MAC Station Address 00:E0:7D:70:05:1E.
EEPROM transceiver/media description for the Digital DS21143 Tulip chip.
Leaf node at offset 40, default media type 0800 (Autosense).
 2 transceiver description blocks:
  Media MII, block type 3, length 23.
   MII interface PHY 0 (media type 11).
   21143 MII initialization sequence is 2 words: 0821 0001.
   21143 MII reset sequence is 3 words: 0821 0001 0001.
    Media capabilities are 7800, advertising 01e1.
    Full-duplex map 5000, Threshold map 1800.
    No MII interrupt.
  Media 10base2, block type 2, length 12.
   Serial transceiver for 10base2 (media type 65).
    CSR13 0009  CSR14 0705  CSR15 0003.
    GP pin direction 0821  GP pin data 0005.
EEPROM contents:
  1109 2b00 0000 0000 0000 0000 0000 0000
  00b4 0103 e000 707d 1e05 2800 0000 0000
  0000 0000 0000 0000 0800 9702 0003 2102
  0108 0300 0821 0001 0001 7800 01e0 5000
  1800 8c00 4102 0009 0705 0003 0821 0005
  0000 0000 0000 0000 0000 0000 0000 0000
  0000 0000 0000 0000 0000 0000 0000 0000
  0000 0000 0000 0000 0000 0000 042b 6117
 ID block CRC 0xb4 (vs. 0xb4).
  Full contents CRC 0x6117 (read as 0x6117).
 MII PHY found at address 1, status 0x782d.
 MII PHY #1 transceiver registers:
   1000 782d 7810 0001 01e1 0081 0000 0000
   0000 0000 0000 0000 0000 0000 0000 0000
   0000 0000 4000 0000 28c8 0010 0000 0002
   0001 0000 0000 0000 0000 0000 0000 0000.
  Internal autonegotiation state is 'Autonegotiation disabled'.


Short status:
-------------
driver version  |        100base-Tx         10base-T         10base-2
----------------+--------------------------------------------------------
v0.89           |      does not work      does not work    does not work
v0.91g-ppc      |      does not work      does not work      works well
v0.92           |      works, but (1)     works, but (1)   works, but (1)
0.9.4.3         |      does not work      does not work      works well
     And just for a reference that the opposite host works fine:
Win98SE driver  |       works well          works well       works well
(std. "Intel 21143/2-based 10/100mbps Ethernet Controller" driver that
 comes with Windows98 second edition - prior to that second edition it
 was called "DEC...").

(The opposite host was a linux-2.3.99-pre6 box with another tulip based
 card for 100base-Tx or a NE2k-pci based card for 10base-T and 10base-2;
 cable used for TP was a CAT5 crossover TP).


Problem description:
--------------------
(1): ´Tx hung´ and ´Transmit timeout´ problems regardless of interface used.
  symptoms:
   - FTP works in short fast bursts (one or two seconds at the most), then
     stops for a few (five or so) seconds, then the next burst; once I could
     transfer a 3 MB MP3 file in 0.3 seconds, but most times the transfer
     rate averaged about 200 kB/s for ~3-4 MB files using 100base-Tx.
   - NFS suffers more badly and only transfers about 40 kByte/s regardless
     of interface used.
  BTW, autodetection of interface does not work at all. I have to supply
  options=1 or 11 to get it working. Would be nicer though if it worked
  without as I often change the configuration for tests. :-)

  log file (example using MII interface with 100base-Tx with 2.2.15 kernel,
  debug level=3):
-------------------------------------
May 10 07:02:40 banshee kernel: tulip.c:v0.92 4/17/2000  Written by Donald
Becker <becker@scyld.com>
May 10 07:02:40 banshee kernel:   http://www.scyld.com/network/tulip.html
May 10 07:02:40 banshee kernel: eth0: Digital DS21143 Tulip rev 48 at
0xc8858000, 00:E0:7D:70:05:1E, IRQ 10.
May 10 07:02:40 banshee kernel: eth0:  EEPROM default media type Autosense.
May 10 07:02:40 banshee kernel: eth0:  MII interface PHY 0, setup/reset
sequences 2/3 long, capabilities 01 00.
May 10 07:02:40 banshee kernel: eth0:  Index #0 - Media MII (#11) described by a
21142 MII PHY (3) block.
May 10 07:02:40 banshee kernel: eth0:  Index #1 - Media 10base2 (#1) described
by a 21142 Serial PHY (2) block.
May 10 07:02:40 banshee kernel: eth0: Using media type MII, CSR12 is c6.
May 10 07:02:40 banshee kernel: eth0: ***WARNING***: No MII transceiver found!
May 10 07:02:40 banshee kernel: eth0: Restarting internal NWay autonegotiation,
0000ffbf.
May 10 07:02:40 banshee named[126]: XX+/127.0.0.1/banshee.tabtnet.de/PTR/IN
May 10 07:02:40 banshee named[126]: XX+/127.0.0.1/banshee/PTR/IN
May 10 07:02:40 banshee kernel: eth0: tulip_open() irq 10.
May 10 07:02:40 banshee kernel: eth0: Using user-specified media MII.
May 10 07:02:40 banshee kernel: eth0:  Advertising 03e0 on MII 1.
May 10 07:02:40 banshee kernel: eth0: Using media type MII, CSR12 is c6.
May 10 07:02:40 banshee kernel: eth0: MII link partner ffff, negotiated 03e0.
May 10 07:02:40 banshee kernel: eth0: Done tulip_open(), CSR0 ffa08000, CSR5
f0320000 CSR6 320e2002.
May 10 07:02:43 banshee kernel: eth0: N-Way autonegotiation status 000000c6,
MII.
May 10 07:02:43 banshee kernel: eth0: MII link partner 0081, negotiated 0080.
May 10 07:03:27 banshee kernel: eth0: Transmit timeout using MII device.
May 10 07:03:27 banshee kernel: eth0: The transmitter stopped.  CSR5 is
f0368002, CSR6 320e2002, new CSR6 20e0000.
May 10 07:03:37 banshee kernel: eth0: Transmit timeout using MII device.
May 10 07:03:37 banshee kernel: eth0: The transmitter stopped.  CSR5 is
f0368002, CSR6 320e2002, new CSR6 20e0000.
May 10 07:03:43 banshee kernel: eth0: N-Way autonegotiation status 000000c6,
MII.
May 10 07:03:43 banshee kernel: eth0: MII link partner 0081, negotiated 0080.
May 10 07:03:43 banshee kernel: eth0: Tx hung, 14485 vs. 14475.
May 10 07:03:43 banshee kernel: eth0: Transmit timeout using MII device.
May 10 07:03:43 banshee kernel: eth0: The transmitter stopped.  CSR5 is
f0368002, CSR6 320e2002, new CSR6 20e0000.
May 10 07:03:52 banshee kernel: eth0: Transmit timeout using MII device.
May 10 07:03:52 banshee kernel: eth0: The transmitter stopped.  CSR5 is
f0368002, CSR6 320e2002, new CSR6 20e0000.
May 10 07:04:02 banshee kernel: eth0: Transmit timeout using MII device.
May 10 07:04:02 banshee kernel: eth0: The transmitter stopped.  CSR5 is
f0368002, CSR6 320e2002, new CSR6 20e0000.
May 10 07:04:12 banshee kernel: eth0: Transmit timeout using MII device.
May 10 07:04:12 banshee kernel: eth0: The transmitter stopped.  CSR5 is
f0368002, CSR6 320e2002, new CSR6 20e0000.
May 10 07:04:22 banshee kernel: eth0: Transmit timeout using MII device.
May 10 07:04:22 banshee kernel: eth0: The transmitter stopped.  CSR5 is
f0368002, CSR6 320e2002, new CSR6 20e0000.
May 10 07:04:32 banshee kernel: eth0: Transmit timeout using MII device.
May 10 07:04:32 banshee kernel: eth0: The transmitter stopped.  CSR5 is
f0368002, CSR6 320e2002, new CSR6 20e0000.
May 10 07:04:43 banshee kernel: eth0: N-Way autonegotiation status 000000c6,
MII.
May 10 07:04:43 banshee kernel: eth0: MII link partner 0081, negotiated 0080.
May 10 07:05:43 banshee kernel: eth0: N-Way autonegotiation status 000000c6,
MII.
May 10 07:05:43 banshee kernel: eth0: MII link partner 0081, negotiated 0080.
May 10 07:06:43 banshee kernel: eth0: N-Way autonegotiation status 000000c6,
MII.
May 10 07:06:43 banshee kernel: eth0: MII link partner 0081, negotiated 0080.
May 10 07:07:43 banshee kernel: eth0: N-Way autonegotiation status 000000c6,
MII.
May 10 07:07:43 banshee kernel: eth0: MII link partner 0081, negotiated 0080.
May 10 07:08:43 banshee kernel: eth0: N-Way autonegotiation status 000000c6,
MII.
May 10 07:08:43 banshee kernel: eth0: MII link partner 0081, negotiated 0080.
May 10 07:09:04 banshee kernel: eth0: Shutting down ethercard, status was
f0660000.
-------------------------------------

If you need anything else or want me to debug new driver versions, just
tell me. Thank you!

Bye,                 \|/
  Tobias             @ @
+----------------oOO-(_)-OOo-----------+
| Tobias Abt                           |
| email: tabt@gmx.de                   |
+--------------------------------------+

-------------------------------------------------------------------
To unsubscribe send a message body containing "unsubscribe"
to linux-tulip-request@beowulf.org