[tulip] problems with ADMtek device

Gero Zylka gero@zylka.de
Mon, 5 Feb 2001 11:34:29 +0100


Hi,

since upgrading from a 10Mbps to a 100Mbps hup I've got problems
with my network device under Linux. I guess the problem is caused
by an incompatibility between network device (still running at
10 Mbps/half_duplex) and the hup (running at 100Mbps, full_duplex).

Here are the facts:
The network device of my linux box hangs once a day with a transmitter
timeout problem:

Feb  4 22:53:06 scream kernel: eth0: Transmit timed out, status fc264010, CSR12
00000000, resetting...
Feb  4 22:53:41 scream last message repeated 7 times
Feb  4 22:54:46 scream last message repeated 13 times
Feb  4 22:55:51 scream last message repeated 13 times
Feb  4 22:56:56 scream last message repeated 13 times
Feb  4 22:57:31 scream last message repeated 7 times


Also, I detected a lot of carrier problems and network collisions:

eth0      Link encap:Ethernet  HWaddr 00:03:6D:1A:54:C8
          inet addr:64.14.244.136  Bcast:64.14.244.143  Mask:255.255.255.240
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:256152 errors:0 dropped:0 overruns:0 frame:0
          TX packets:248160 errors:1508 dropped:0 overruns:0 carrier:1508
          collisions:5626 txqueuelen:100
          Interrupt:7 Base address:0x2000


The problem is that I dont know how to switch my network card to
100Mbps full_duplex.

Using the mii_diag tool I get the following output:

[root@scream PACKAGES]# ./mii-diag -vfA 100baseTx-FD
mii-diag.c:v2.00 4/19/2000  Donald Becker (becker@scyld.com)
 http://www.scyld.com/diag/index.html
Using the default interface 'eth0'.
 Setting the media capability advertisement register of PHY #1 to 0x0101.
 MII PHY #1 transceiver registers:
   0000 0000 0000 0000 0000 0000 0000 ffff
   ffff ffff ffff ffff ffff ffff ffff ffff
   ffff 0000 ffff ffff ffff ffff ffff ffff
   ffff ffff ffff ffff ffff 0000 0000 0000.
 Basic mode control register 0x0000: Auto-negotiation disabled, with
 Speed fixed at 10 mbps, half-duplex.
 Basic mode status register 0x0000 ... 0000.
   Link status: not established.
   This transceiver is capable of <Warning! No media capabilities>.
   Unable to perform Auto-negotiation, negotiation not complete.
 Link partner information information is not exchanged when in fixed speed mode.


For the case that this info helps too:

[root@scream ~/tulip]# ./tulip-diag -afmmevwA 100baseTx-FD
tulip-diag.c:v2.06 1/8/2001 Donald Becker (becker@scyld.com)
 http://www.scyld.com/diag/index.html
Index #1: Found a ADMtek AL985 Centaur-P adapter at 0x1400.
ADMtek AL985 Centaur-P chip registers at 0x1400:
 0x00: fff98000 ffffffff ffffffff 0e8b5800 0e8b5a00 fc664010 ff972117 ffffebff
 0x40: fffe0000 fff597f8 00000000 fffe0000 00000000 00000200 00000000 c40ffec8
 Extended registers:
 80: 00664010 03fe6bff 804c0004 ffffffff 00000000 0e8b5a40 0e8b5990 ffe0f000
 a0: f0000000 1a6d0300 ffffc854 80000000 00000000 00000000 00000000 00000000
 c0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
 e0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 a0000027
 Comet duplex is reported in the MII status registers.
 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.
  Comet MAC address registers 1a6d0300 ffffc854
  Comet multicast filter 8000000000000000.
EEPROM 256 words, 8 address bits.
  Ethernet MAC Station Address 00:03:6d:1a:54:c8.
  Default connection type 'Autosense'.
  PCI IDs Vendor 1317 Device 0985  Subsystem 1317 0574
  PCI min_grant 255 max_latency 255.
  CSR18 power-up setting 0x804c****.
 MII PHY found at address 1, status 0x786d.
 MII PHY found at address 2, status 0x786d.
 MII PHY found at address 3, status 0x786d.
 MII PHY found at address 4, status 0x786d.
 Setting the media capability advertisement register of PHY #1 to 0x0101.
 MII PHY #1 transceiver registers:
   3000 786d 0022 5410 0101 0081 0004 2001
   ffff ffff ffff ffff ffff ffff ffff ffff
   01c0 0000 0699 8020 4f02 0304 0026 0000
   0000 cfbf 0000 ffff ffff ffff ffff ffff.
 MII PHY #2 transceiver registers:
   ffff ffff ffff ffff ffff ffff ffff ffff
   ffff ffff ffff ffff ffff ffff ffff ffff
   ffff ffff ffff ffff ffff ffff ffff ffff
   ffff ffff ffff ffff ffff ffff ffff ffff.
 MII PHY #3 transceiver registers:
   ffff ffff ffff ffff ffff ffff ffff ffff
   ffff ffff ffff ffff ffff ffff ffff ffff
   ffff ffff ffff ffff ffff ffff ffff ffff
   ffff ffff ffff ffff ffff ffff ffff ffff.
 MII PHY #4 transceiver registers:
   ffff ffff ffff ffff ffff ffff ffff ffff
   ffff ffff ffff ffff ffff ffff ffff ffff
   ffff ffff ffff ffff ffff ffff ffff ffff
   ffff ffff ffff ffff ffff ffff ffff ffff.

Any help is highly appreciated.
Please cc my private email account for any response too.
Thanks in advance!!

Gero.