[tulip] Problem with smc 1255 card -- netdev watchdog timed o ut

erik.ostlyngen@telelogic.com erik.ostlyngen@telelogic.com
Wed Jul 17 15:28:02 2002


> On Wed, 17 Jul 2002 erik.ostlyngen@telelogic.com wrote:
> 
> > I have problems getting my smc 1255 card to work on my intel linux box.
The
> > tulip driver recognizes my card as Accton EN1217/EN2242, and everything
> > seems to be ok until it receives an nfs mount request. The nfs mounting
> > works, but shortly afterwards, the network becomes extremely slow. I
want to
> > debug the problem, but I don't know how to. I'm currently using kernel
> > 2.4.18,
> 
> Please include the driver version number, along with the rest of the
> driver detection message.

I've downloaded the new driver. This is what dmesg says about eth0 during
startup:

tulip.c:v0.95a 6/27/2002  Written by Donald Becker <becker@scyld.com>
  http://www.scyld.com/network/tulip.html
eth0: Accton EN1217/EN2242 (ADMtek Comet) rev 17 at 0xd0912000,
00:04:E2:33:0A:D9, IRQ 11.
eth0:  MII transceiver #1 config 1100 status 7849 advertising 05e1.
eth0:  MII transceiver #2 config 1100 status 7849 advertising 05e1.
eth0:  MII transceiver #3 config 1100 status 7849 advertising 05e1.
eth0:  MII transceiver #4 config 1100 status 7849 advertising 05e1.
eth0: MII link partner 0000, negotiated 0000.
eth0: No link beat on the MII interface, status 7849.
eth0: Comet link status 7849 partner capability 0000.
eth0: MII link partner 0000, negotiated 0000.
eth0: No link beat on the MII interface, status 7849.

The chip on SMC 1255 is called SMC-EN-5251-BE. The behavour is the same as
with the 
2.4.18 driver, but now the dmesg trace is different:

eth0: Comet link status 7849 partner capability 0000.
eth0: MII link partner 0000, negotiated 0000.
eth0: No link beat on the MII interface, status 7849.
eth0: Comet link status 7849 partner capability 0000.
eth0: MII link partner 0000, negotiated 0000.
eth0: No link beat on the MII interface, status 7849.
eth0: Comet link status 786d partner capability 4081.
eth0: MII link partner 4081, negotiated 0081.
eth0: Comet link status 7869 partner capability 41e1.
eth0: MII link partner 41e1, negotiated 01e1.
eth0: Setting full-duplex based on MII #1 link partner capability of 41e1.
eth0: The transmitter stopped.  CSR5 is fc67c016, CSR6 ff972113, new CSR6
40200.
eth0: Comet link status 786d partner capability 41e1.
eth0: MII link partner 41e1, negotiated 01e1.
eth0: Comet link status 786d partner capability 41e1.
eth0: MII link partner 41e1, negotiated 01e1.
eth0: Comet link status 786d partner capability 41e1.
...

The transmitter is stopped, but no watchdog timeout anymore. Here is what
tulip-diag 
says before the failure:

tulip-diag.c:v2.11 6/17/2002 Donald Becker (becker@scyld.com)
 http://www.scyld.com/diag/index.html
Index #1: Found a Accton EN1217/EN2242 (ADMtek Comet) adapter at 0xe000.
Accton EN1217/EN2242 (ADMtek Comet) chip registers at 0xe000:
 0x00: fff98000 ffffffff ffffffff 0efa1800 0efa1a00 fc664010 ff972113
ffffffff
 0x40: fffe0000 fff0dff8 00000000 fffe0000 00000000 00000200 00000000
00000008
 Extended registers:
 0x80: 00664010 03fe7fff a4dc0005 0312ff68 00000100 0efa1a40 0efa1810
ffe0f000
 0xa0: f0000000 33e20400 ffffd90a 00000000 40000000 00000000 00000000
00000000
 0xc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000
 0xe0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000
10000027
 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 33e20400 ffffd90a
  Comet multicast filter 0000000040000000.

EEPROM 64 words, 6 address bits.
  Ethernet MAC Station Address 00:04:e2:33:0a:d9.
  Default connection type 'Autosense'.
  PCI IDs Vendor 1113 Device 1216  Subsystem 10b8 1255
  PCI min_grant 255 max_latency 255.
  CSR18 power-up setting 0xa4dc****.
EEPROM contents (64 words):
0x00:  0985 0002 0000 0000 0400 33e2 d90a 0000
0x08:  0000 0400 0001 0000 0000 0000 0000 0100
0x10:  1216 1113 1255 10b8 ffff 0000 0000 a4dc
0x18:  0000 0000 0000 0000 0000 0000 0000 0000
0x20:  0000 0000 0000 0000 0000 0000 0000 0000
0x28:  0000 0000 0000 0000 0000 0000 0000 0000
0x30:  0000 0000 0000 0000 0000 0000 0000 0000
0x38:  0000 0000 0000 0000 0000 0000 0000 3426
 ID block CRC 0xd3 (vs. 00).
  Full contents CRC 0x3426 (read as 0x3426).

 MII PHY found at address 1, status 0x7849.
 MII PHY found at address 2, status 0x7849.
 MII PHY found at address 3, status 0x7849.
 MII PHY found at address 4, status 0x7849.
 MII PHY #1 transceiver registers:
   1100 7849 001d 2411 05e1 0000 0004 2001
   0000 0000 0000 0000 0000 0000 0000 0000
   1001 0000 1899 205f 0000 000f 7490 0000
   9080 6946 2c58 1326 8911 0444 0230 0000.
 MII PHY #2 transceiver registers:
   1100 7849 001d 2411 05e1 0000 0004 2001
   0000 0000 0000 0000 0000 0000 0000 0000
   1001 0000 0099 205f 0000 000f 7490 0000
   9080 6946 2c58 1326 8911 0444 0230 0000.
 MII PHY #3 transceiver registers:
   1100 7849 001d 2411 05e1 0000 0004 2001
   0000 0000 0000 0000 0000 0000 0000 0000
   1001 0000 0099 205f 0000 000f 7490 0000
   9080 6946 2c58 1326 8911 0444 0230 0000.
 MII PHY #4 transceiver registers:
   1100 7849 001d 2411 05e1 0000 0004 2001
   0000 0000 0000 0000 0000 0000 0000 0000
   1001 0000 0099 205f 0000 000f 7490 0000
   9080 6946 2c58 1326 8911 0444 0230 0000.


And after:

tulip-diag.c:v2.11 6/17/2002 Donald Becker (becker@scyld.com)
 http://www.scyld.com/diag/index.html
Index #1: Found a Accton EN1217/EN2242 (ADMtek Comet) adapter at 0xe000.
Accton EN1217/EN2242 (ADMtek Comet) chip registers at 0xe000:
 0x00: fff98000 ffffffff ffffffff 0eee2800 0eee2a00 fc664010 ff976113
ffffffff
 0x40: fffe0000 fff597f8 00000000 fffe0000 00000000 00000200 00000000
00000008
 Extended registers:
 0x80: 2066c010 03fe7fff a4dc0005 ffffffff 00000100 0eee2a00 0eee2980
ffe0f000
 0xa0: f0000000 33e20400 ffffd90a 00000000 40000000 00000000 00000000
00000000
 0xc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000
 0xe0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000
f0000027
 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 256.
  Comet MAC address registers 33e20400 ffffd90a
  Comet multicast filter 0000000040000000.

EEPROM 64 words, 6 address bits.
  Ethernet MAC Station Address 00:04:e2:33:0a:d9.
  Default connection type 'Autosense'.
  PCI IDs Vendor 1113 Device 1216  Subsystem 10b8 1255
  PCI min_grant 255 max_latency 255.
  CSR18 power-up setting 0xa4dc****.
EEPROM contents (64 words):
0x00:  0985 0002 0000 0000 0400 33e2 d90a 0000
0x08:  0000 0400 0001 0000 0000 0000 0000 0100
0x10:  1216 1113 1255 10b8 ffff 0000 0000 a4dc
0x18:  0000 0000 0000 0000 0000 0000 0000 0000
0x20:  0000 0000 0000 0000 0000 0000 0000 0000
0x28:  0000 0000 0000 0000 0000 0000 0000 0000
0x30:  0000 0000 0000 0000 0000 0000 0000 0000
0x38:  0000 0000 0000 0000 0000 0000 0000 3426
 ID block CRC 0xd3 (vs. 00).
  Full contents CRC 0x3426 (read as 0x3426).

 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.
 MII PHY #1 transceiver registers:
   1100 786d 001d 2411 05e1 41e1 0007 2001
   0000 0000 0000 0000 0000 0000 0000 0000
   1001 0000 189b 021a 0000 0000 7490 0c08
   b68f 7017 2f5d 1327 8a11 0444 0230 0000.
 MII PHY #2 transceiver registers:
   1100 786d 001d 2411 05e1 41e1 0007 2001
   0000 0000 0000 0000 0000 0000 0000 0000
   1001 0000 0099 021a 0000 000f 7490 0000
   b68f 7216 305c 1428 9a12 0444 0230 0000.
 MII PHY #3 transceiver registers:
   1100 786d 001d 2411 05e1 41e1 0007 2001
   0000 0000 0000 0000 0000 0000 0000 0000
   1001 0000 009c 011a 0000 017f 7490 0000
   b68f 7217 2f5d 1428 9a11 0444 0230 0000.
 MII PHY #4 transceiver registers:
   1100 786d 001d 2411 05e1 41e1 0007 2001
   0000 0000 0000 0000 0000 0000 0000 0000
   1001 0000 0099 011a 0000 000f 7490 0000
   b68f 7117 305d 1428 8a11 0444 0230 0000.


> >   The transmit threshold is 1024.
> > EEPROM 64 words, 6 address bits.
> >   PCI IDs Vendor 1113 Device 1216  Subsystem 10b8 1255
> >   PCI min_grant 255 max_latency 255.
>
> Likely unrelated:
> That's a curious setting for the PCI parameters.  That might be what
> caused the Tx threshold to increase.

How are these parameters set? Can they be configured?

/ Erik P. Østlyngen