[vortex] [CFT] 3c59x.c for 2.2.18-pre

Koos van den Hout koos@kzdoos.xs4all.nl
Thu, 19 Oct 2000 19:04:11 +0200


Quoting Andrew Morton who wrote on Fri, Oct 20, 2000 at 12:48:00AM +1100:

> could you please test a proposed update of the 2.2.18 kernel's
> 3c59x.c driver?
> 
> It is at http://www.uow.edu.au/~andrewm/linux/3c59x-2.2.18-pre16-1.gz .
> You don't need to upgrade your 2.2 kernel to test this - it should
> just drop into 2.2.anything.

Ok, since I had some troubles before, I torture tested it, and it failed.
So now you are going to be very intested in 'how' :)

- The situation: Transfer a *laaaarge* file from a Sparc20 with a hme0
  (100 mbit) card to a Linux machine with a 3c595, storing it in
  /dev/null.

- First of all, my switch at home (a 'lantech mini-switch') does not
  recognize full duplex on the 3com cards. So I let them at half-duplex in
  order to avoid frame errors. When I force the card into full-duplex the
  switch still sees this as half-duplex. The switch does recognize the
  full duplex on the Sun hme card without any forcing, they just
  autonegotiate it.

- The ftp transfer above hangs the 3c595 completely. I get the following
  messages:

3c59x.c 19Oct00 Donald Becker and others
http://www.scyld.com/network/vortex.html
eth0: 3Com 3c595 Vortex 100baseTx at 0xd000,  00:a0:24:0b:2e:41, IRQ 5
  64K word-wide RAM 3:1 Rx:Tx split, autoselect/10baseT interface.
eth0: Transmit error, Tx status register 90.
eth0: Transmit error, Tx status register 90.
eth0: Transmit error, Tx status register 90.
eth0: Transmit error, Tx status register 90.
eth0: Transmit error, Tx status register c0.
eth0: Transmit error, Tx status register c0.
eth0: Transmit error, Tx status register 90.

(with nfs messages in between, but that's another list)

Info on the card:

vortex-diag.c:v1.09 7/28/99 Donald Becker (becker@cesdis.gsfc.nasa.gov)
Index #1: Found a 3Com 3c595 Vortex 10/100baseTx adapter at 0xd000.
The Vortex chip may be active, so FIFO registers will not be read.
To see all register values use the '-f' flag.
Initial window 7, registers values by window:
  Window 0: 0000 0000 0000 0000 0000 00bf 0000 0000.
  Window 1: FIFO FIFO 0000 2000 8000 00ff 3ffc 2000.
  Window 2: a000 0b24 412e 0000 0000 0000 00de 4000.
  Window 3: 001b 0141 0000 0000 e10a bfff 3fff 6000.
  Window 4: 0000 02d6 0000 0c80 0000 8882 0000 8000.
  Window 5: 1ffc 1ffc 00de 1ffc 0005 02de 00de a000.
  Window 6: 0000 0000 0000 1500 0000 5c32 015e c000.
  Window 7: 0000 0000 0000 0000 8000 00ff 0000 e000.
Vortex chip registers at 0xd000
  0xD010: **FIFO** 00000000 00008000 *STATUS*
  0xD020: ffffffff ffffffff ffffffff ffffffff
  0xD030: ffffffff ffffffff ffffffff ffffffff
 Indication enable is 00de, interrupt enable is 02de.
 No interrupt sources are pending.
 Transceiver/media interfaces available:  100baseTx 10baseT.
Transceiver type in use:  100baseTX.
 MAC settings: half-duplex.
Maximum packet size is 0.
 Station address set to 00:a0:24:0b:2e:41.
 Configuration options 4000.

vortex-diag.c:v1.09 7/28/99 Donald Becker (becker@cesdis.gsfc.nasa.gov)
Index #1: Found a 3Com 3c595 Vortex 10/100baseTx adapter at 0xd000.
Parsing the EEPROM of a 3Com Vortex/Boomerang:
 3Com Node Address 00:A0:24:0B:2E:41 (used as a unique ID only).
 OEM Station address 00:A0:24:0B:2E:41 (used as the ethernet address).
 Manufacture date (MM/DD/YYYY) 9/12/1995, division 6, product BU.
Options: none.
  Vortex format checksum is correct (0079 vs. 0079).
  Cyclone format checksum is correct (00 vs. 00).
  Hurricane format checksum is correct (00 vs. 00).

If you have other tests you would like me to try let me know.

                                           Koos

-- 
Koos van den Hout,           PGP keyid RSA/1024 0xCA845CB5 via keyservers
koos@kzdoos.xs4all.nl        or DSS/1024 0xF0D7C263                        -?)
Fax +31-30-2817051               Visit my site about books with reviews    /\\
http://idefix.net/~koos/                http://www.virtualbookcase.com/   _\_V