[tulip] Weird Info w/tulip driver + mii-diag + tulip-diag

Anthony Mendoza anthony@embracenetworks.com
Thu Aug 15 03:25:02 2002


Below is alot of input from my system, basically output from:

tulip-diag
mii-diag eth1, eth2, eth3
mii-tool

each showing me different information.  I'm also receiving errors on 
eth3 which I've been told is not normal on a Full Duplex 100Mbs switched 
network.

Perhaps someone on this list can tell me what's not right.  Environment is:

OS: RedHat Linux 7.0
Kernel 2.2.16-22 (stock)
Stock tulip driver
DLink Quad DFE-570tx cards
Cisco switches configured to force 100Mbs-FD on the interfaces that I'm 
plugged into...

I'm actually in the middle of trying to debug bandwidth issues and 
wanted to be able to verify that my linux box is indeed running at 
100Mb/s Full Duplex, which tulip-diag shows, but the other 2 tools do 
not..  and I don't know if this is what I'm supposed to be seeing or not...

thanks for any help...let me know if anyone needs to see anything else..

modules.conf:

alias eth1 tulip
alias eth2 tulip
alias eth3 tulip
alias eth4 tulip
alias eth5 tulip
alias eth6 tulip
alias eth7 tulip
alias eth8 tulip
options tulip debug=3 options=5,5,5,5,5,5,5,5

ifconfig output:
eth3      Link encap:Ethernet  HWaddr 00:80:C8:B9:6A:1B
           inet addr:10.7.1.2  Bcast:10.7.1.255  Mask:255.255.255.0
           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
           RX packets:280 errors:0 dropped:0 overruns:0 frame:0
           TX packets:0 errors:242 dropped:0 overruns:0 carrier:242
           collisions:0 txqueuelen:100
           Interrupt:15 Base address:0x2400

all debug output:

tulip-diag.c:v2.03 7/31/2000 Donald Becker (becker@scyld.com)
  http://www.scyld.com/diag/index.html
Index #1: Found a Digital DS21143 Tulip adapter at 0x2000.
  Port selection is MII, full-duplex.
  Transmit started, Receive started, full-duplex.
   The Rx process state is 'Waiting for packets'.
   The Tx process state is 'Idle'.
   The transmit threshold is 128.
   The NWay status register is 000000c6.
   Internal autonegotiation state is 'Autonegotiation disabled'.
Index #2: Found a Digital DS21143 Tulip adapter at 0x2080.
  Port selection is MII, full-duplex.
  Transmit started, Receive started, full-duplex.
   The Rx process state is 'Waiting for packets'.
   The Tx process state is 'Idle'.
   The transmit threshold is 128.
   The NWay status register is 000000c6.
   Internal autonegotiation state is 'Autonegotiation disabled'.
Index #3: Found a Digital DS21143 Tulip adapter at 0x2400.
  Port selection is MII, full-duplex.
  Transmit started, Receive started, full-duplex.
   The Rx process state is 'Waiting for packets'.
   The Tx process state is 'Idle'.
   The transmit threshold is 128.
   The NWay status register is 000000c6.
   Internal autonegotiation state is 'Autonegotiation disabled'.
Index #4: Found a Digital DS21143 Tulip adapter at 0x2480.
  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'.
Index #5: Found a Digital DS21143 Tulip adapter at 0x1000.
  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'.
Index #6: Found a Digital DS21143 Tulip adapter at 0x1080.
  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'.
Index #7: Found a Digital DS21143 Tulip adapter at 0x1400.
  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'.
Index #8: Found a Digital DS21143 Tulip adapter at 0x1480.
  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'.
  Use '-a' or '-aa' to show device registers,
      '-e' to show EEPROM contents, -ee for parsed contents,
   or '-m' or '-mm' to show MII management registers.
[root@hyde /root]# dmesg
d new driver usbdevfs
usb.c: registered new driver hub
usb-ohci.c: USB OHCI at membase 0xd4862000, IRQ 5
usb.c: new USB bus registered, assigned bus number 1
usb.c: USB new device connect, assigned device number 1
hub.c: USB hub found
hub.c: 4 ports detected
eepro100.c:v1.09j-t 9/29/99 Donald Becker 
http://cesdis.gsfc.nasa.gov/linux/driver
s/eepro100.html
eepro100.c: $Revision: 1.20.2.10 $ 2000/05/31 Modified by Andrey V. 
Savochkin <saw
@saw.sw.com.sg> and others
eth0: OEM i82557/i82558 10/100 Ethernet, 00:50:8B:EC:90:B6, I/O at 
0x3800, IRQ 15.
   Receiver lock-up bug exists -- enabling work-around.
   Board assembly 010101-034, Physical connectors present: RJ45
   Primary interface chip i82555 PHY #1.
   General self-test: passed.
   Serial sub-system self-test: passed.
   Internal registers self-test: passed.
   ROM checksum self-test: passed (0x04f4518b).
Found Digital DS21143 Tulip at PCI I/O address 0x2000.
tulip.c:v0.91g-ppc 7/16/99 becker@cesdis.gsfc.nasa.gov
eth1: Digital DS21143 Tulip rev 65 at 0x2000, 00:80:C8:B9:6A:19, IRQ 15.
eth1:  EEPROM default media type Autosense.
eth1:  MII interface PHY 0, setup/reset sequences 0/0 long, capabilities 
e0 78.
eth1:  Index #0 - Media MII (#11) described by a 21142 MII PHY (3) block.
eth1:  Advertising 01e1 on PHY 0 (0).
eth1: Using media type MII, CSR12 is c6.
eth1:  MII transceiver #1 config 3100 status 7869 advertising 01e1.
Found Digital DS21143 Tulip at PCI I/O address 0x2080.
eth2: Digital DS21143 Tulip rev 65 at 0x2080, 00:80:C8:B9:6A:1A, IRQ 15.
eth2:  EEPROM default media type Autosense.
eth2:  MII interface PHY 0, setup/reset sequences 0/0 long, capabilities 
e0 78.
eth2:  Index #0 - Media MII (#11) described by a 21142 MII PHY (3) block.
eth2:  Advertising 01e1 on PHY 0 (0).
eth2: Using media type MII, CSR12 is c6.
eth2:  MII transceiver #1 config 3100 status 7869 advertising 01e1.
Found Digital DS21143 Tulip at PCI I/O address 0x2400.
eth3: Digital DS21143 Tulip rev 65 at 0x2400, 00:80:C8:B9:6A:1B, IRQ 15.
eth3:  EEPROM default media type Autosense.
eth3:  MII interface PHY 0, setup/reset sequences 0/0 long, capabilities 
e0 78.
eth3:  Index #0 - Media MII (#11) described by a 21142 MII PHY (3) block.
eth3:  Advertising 01e1 on PHY 0 (0).
eth3: Using media type MII, CSR12 is c6.
eth3:  MII transceiver #1 config 3100 status 7869 advertising 01e1.
Found Digital DS21143 Tulip at PCI I/O address 0x2480.
eth4: Digital DS21143 Tulip rev 65 at 0x2480, 00:80:C8:B9:6A:1C, IRQ 15.
eth4:  EEPROM default media type Autosense.
eth4:  MII interface PHY 0, setup/reset sequences 0/0 long, capabilities 
e0 78.
eth4:  Index #0 - Media MII (#11) described by a 21142 MII PHY (3) block.
eth4:  Advertising 01e1 on PHY 0 (0).
eth4: Using media type MII, CSR12 is c6.
eth4:  MII transceiver #1 config 3100 status 7849 advertising 01e1.
Found Digital DS21143 Tulip at PCI I/O address 0x1000.
eth5: Digital DS21143 Tulip rev 65 at 0x1000, 00:80:C8:B9:69:B1, IRQ 15.
eth5:  EEPROM default media type Autosense.
eth5:  MII interface PHY 0, setup/reset sequences 0/0 long, capabilities 
e0 78.
eth5:  Index #0 - Media MII (#11) described by a 21142 MII PHY (3) block.
eth5:  Advertising 01e1 on PHY 0 (0).
eth5: Using media type MII, CSR12 is c6.
eth5:  MII transceiver #1 config 3100 status 7849 advertising 01e1.
Found Digital DS21143 Tulip at PCI I/O address 0x1080.
eth6: Digital DS21143 Tulip rev 65 at 0x1080, 00:80:C8:B9:69:B2, IRQ 15.
eth6:  EEPROM default media type Autosense.
eth6:  MII interface PHY 0, setup/reset sequences 0/0 long, capabilities 
e0 78.
eth6:  Index #0 - Media MII (#11) described by a 21142 MII PHY (3) block.
eth6:  Advertising 01e1 on PHY 0 (0).
eth6: Using media type MII, CSR12 is c6.
eth6:  MII transceiver #1 config 3100 status 7849 advertising 01e1.
Found Digital DS21143 Tulip at PCI I/O address 0x1400.
eth7: Digital DS21143 Tulip rev 65 at 0x1400, 00:80:C8:B9:69:B3, IRQ 15.
eth7:  EEPROM default media type Autosense.
eth7:  MII interface PHY 0, setup/reset sequences 0/0 long, capabilities 
e0 78.
eth7:  Index #0 - Media MII (#11) described by a 21142 MII PHY (3) block.
eth7:  Advertising 01e1 on PHY 0 (0).
eth7: Using media type MII, CSR12 is c6.
eth7:  MII transceiver #1 config 3100 status 7849 advertising 01e1.
Found Digital DS21143 Tulip at PCI I/O address 0x1480.
eth8: Digital DS21143 Tulip rev 65 at 0x1480, 00:80:C8:B9:69:B4, IRQ 15.
eth8:  EEPROM default media type Autosense.
eth8:  MII interface PHY 0, setup/reset sequences 0/0 long, capabilities 
e0 78.
eth8:  Index #0 - Media MII (#11) described by a 21142 MII PHY (3) block.
eth8:  Advertising 01e1 on PHY 0 (0).
eth8: Using media type MII, CSR12 is c6.
eth8:  MII transceiver #1 config 3100 status 7849 advertising 01e1.
eth1: tulip_open() irq 15.
eth1:  Advertising 01e1 on PHY 0 (1).
eth1: Using media type MII, CSR12 is c6.
eth1: Done tulip_open(), CSR0 f8a08000, CSR5 f0360000 CSR6 320e2202.
eth2: tulip_open() irq 15.
eth2:  Advertising 01e1 on PHY 0 (1).
eth2: Using media type MII, CSR12 is c6.
eth2: Done tulip_open(), CSR0 f8a08000, CSR5 f0360000 CSR6 320e2202.
eth3: tulip_open() irq 15.
eth3:  Advertising 01e1 on PHY 0 (1).
eth3: Using media type MII, CSR12 is c6.
eth3: Done tulip_open(), CSR0 f8a08000, CSR5 f0360000 CSR6 320e2202.
eth1: 21143 negotiation status 000000c6, MII.
eth2: 21143 negotiation status 000000c6, MII.
eth3: 21143 negotiation status 000000c6, MII.
FW-1: only 50 internal hosts allowed
FW-1: only 50 internal hosts allowed
FW-1: setting external interface to eth0
eth3: Transmit error, Tx status 7fffbc00.
eth3: Transmit error, Tx status 7fffbc00.
FW-1: last packet seen 43676 seconds ago, assuming clock change.
eth3: Transmit error, Tx status 7fffbc00.
eth3: Transmit error, Tx status 7fffbc00.
eth1: 21143 negotiation status 000000c6, MII.
eth2: 21143 negotiation status 000000c6, MII.
eth3: 21143 negotiation status 000000c6, MII.
eth3: Transmit error, Tx status 7fffbc00.
eth3: Transmit error, Tx status 7fffbc00.
eth3: Transmit error, Tx status 7fffbc00.
eth3: Transmit error, Tx status 7fffbc00.
eth1: 21143 negotiation status 000000c6, MII.
eth2: 21143 negotiation status 000000c6, MII.
eth3: 21143 negotiation status 000000c6, MII.
eth3: Transmit error, Tx status 7fffbc00.
eth3: Transmit error, Tx status 7fffbc00.
eth1: 21143 negotiation status 000000c6, MII.
eth2: 21143 negotiation status 000000c6, MII.
eth3: 21143 negotiation status 000000c6, MII.
eth3: Transmit error, Tx status 7fffbc00.
eth3: Transmit error, Tx status 7fffbc00.
eth3: Transmit error, Tx status 7fffbc00.
eth3: Transmit error, Tx status 7fffbc00.
eth3: Transmit error, Tx status 7fffbc00.
eth1: 21143 negotiation status 000000c6, MII.
eth2: 21143 negotiation status 000000c6, MII.
eth3: 21143 negotiation status 000000c6, MII.
eth1: 21143 negotiation status 000000c6, MII.
eth2: 21143 negotiation status 000000c6, MII.
eth3: 21143 negotiation status 000000c6, MII.
[root@hyde /root]# cat /rp  proc/pci
PCI devices found:
   Bus  0, device   0, function  0:
     Host bridge: Unknown vendor CNB30LE PCI Bridge (rev 5).
       Medium devsel.  Master Capable.  Latency=64.
   Bus  0, device   0, function  1:
     Host bridge: Unknown vendor CNB30LE PCI Bridge (rev 5).
       Medium devsel.  Master Capable.  Latency=64.
   Bus  0, device   1, function  0:
     PCI bridge: DEC DC21152 (rev 3).
       Medium devsel.  Fast back-to-back capable.  Master Capable. 
Latency=128.  M
in Gnt=11.
   Bus  0, device   3, function  0:
     PCI bridge: DEC DC21152 (rev 3).
       Medium devsel.  Fast back-to-back capable.  Master Capable. 
Latency=66.  Mi
n Gnt=7.
   Bus  0, device   4, function  0:
     PCI bridge: DEC DC21152 (rev 3).
       Medium devsel.  Fast back-to-back capable.  Master Capable. 
Latency=66.  Mi
n Gnt=7.
   Bus  0, device  15, function  0:
     ISA bridge: Unknown vendor Unknown device (rev 81).
       Vendor id=1166. Device id=200.
       Medium devsel.  Master Capable.  No bursts.
   Bus  0, device  15, function  1:
     IDE interface: Unknown vendor Unknown device (rev 0).
       Vendor id=1166. Device id=211.
       Medium devsel.  Master Capable.  Latency=66.
       I/O at 0x4000 [0x4001].
   Bus  0, device  15, function  2:
     USB Controller: Unknown vendor Unknown device (rev 4).
       Vendor id=1166. Device id=220.
       Medium devsel.  Fast back-to-back capable.  IRQ 5.  Master 
Capable.  Latency
=64.  Max Lat=80.
       Non-prefetchable 32 bit memory at 0xb2000000 [0xb2000000].
   Bus  1, device   5, function  0:
     Ethernet controller: Intel 82557 (rev 8).
       Medium devsel.  Fast back-to-back capable.  IRQ 15.  Master 
Capable.  Latenc
y=66.  Min Gnt=8.Max Lat=56.
       Non-prefetchable 32 bit memory at 0xb0900000 [0xb0900000].
       I/O at 0x3800 [0x3801].
       Non-prefetchable 32 bit memory at 0xb0800000 [0xb0800000].
   Bus  1, device   6, function  0:
     VGA compatible controller: ATI Unknown device (rev 39).
       Vendor id=1002. Device id=4752.
       Medium devsel.  Fast back-to-back capable.  IRQ 5.  Master 
Capable.  Latency
=66.  Min Gnt=8.
       Non-prefetchable 32 bit memory at 0xb1000000 [0xb1000000].
       I/O at 0x3000 [0x3001].
       Non-prefetchable 32 bit memory at 0xb0a00000 [0xb0a00000].
   Bus  1, device   7, function  0:
     System peripheral: Compaq Unknown device (rev 0).
       Vendor id=e11. Device id=a0f0.
       Medium devsel.  IRQ 10.
       I/O at 0x3400 [0x3401].
       Non-prefetchable 32 bit memory at 0xb0b00000 [0xb0b00000].
   Bus  1, device   8, function  0:
     IDE interface: CMD Unknown device (rev 2).
       Vendor id=1095. Device id=649.
       Medium devsel.  Fast back-to-back capable.  IRQ 11.  Master 
Capable.  Latenc
y=64.  Min Gnt=2.Max Lat=4.
       I/O at 0x3850 [0x3851].
       I/O at 0x3860 [0x3861].
       I/O at 0x3858 [0x3859].
       I/O at 0x3864 [0x3865].
       I/O at 0x3840 [0x3841].
   Bus  2, device   4, function  0:
     Ethernet controller: DEC DC21142 (rev 65).
       Medium devsel.  Fast back-to-back capable.  IRQ 15.  Master 
Capable.  Latenc
y=66.  Min Gnt=20.Max Lat=40.
       I/O at 0x2000 [0x2001].
       Non-prefetchable 32 bit memory at 0xb0400000 [0xb0400000].
   Bus  2, device   5, function  0:
     Ethernet controller: DEC DC21142 (rev 65).
       Medium devsel.  Fast back-to-back capable.  IRQ 15.  Master 
Capable.  Latenc
y=66.  Min Gnt=20.Max Lat=40.
       I/O at 0x2080 [0x2081].
       Non-prefetchable 32 bit memory at 0xb0500000 [0xb0500000].
   Bus  2, device   6, function  0:
     Ethernet controller: DEC DC21142 (rev 65).
       Medium devsel.  Fast back-to-back capable.  IRQ 15.  Master 
Capable.  Latenc
y=66.  Min Gnt=20.Max Lat=40.
       I/O at 0x2400 [0x2401].
       Non-prefetchable 32 bit memory at 0xb0600000 [0xb0600000].

warning: page-size limit reached!
[root@hyde /root]# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:50:8B:EC:90:B6
           inet addr:12.37.26.33  Bcast:12.37.26.47  Mask:255.255.255.240
           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
           RX packets:2575 errors:0 dropped:0 overruns:0 frame:0
           TX packets:2475 errors:0 dropped:0 overruns:0 carrier:0
           collisions:0 txqueuelen:100
           Interrupt:15 Base address:0x3800

eth1      Link encap:Ethernet  HWaddr 00:80:C8:B9:6A:19
           inet addr:10.4.0.2  Bcast:10.4.0.255  Mask:255.255.255.0
           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
           RX packets:1845 errors:0 dropped:0 overruns:0 frame:0
           TX packets:1648 errors:0 dropped:0 overruns:0 carrier:0
           collisions:0 txqueuelen:100
           Interrupt:15 Base address:0x2000

eth2      Link encap:Ethernet  HWaddr 00:80:C8:B9:6A:1A
           inet addr:12.37.26.49  Bcast:12.37.26.63  Mask:255.255.255.240
           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
           RX packets:213 errors:0 dropped:0 overruns:0 frame:0
           TX packets:11 errors:0 dropped:0 overruns:0 carrier:0
           collisions:0 txqueuelen:100
           Interrupt:15 Base address:0x2080

eth3      Link encap:Ethernet  HWaddr 00:80:C8:B9:6A:1B
           inet addr:10.7.1.2  Bcast:10.7.1.255  Mask:255.255.255.0
           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
           RX packets:241 errors:0 dropped:0 overruns:0 frame:0
           TX packets:0 errors:208 dropped:0 overruns:0 carrier:208
           collisions:0 txqueuelen:100
           Interrupt:15 Base address:0x2400

lo        Link encap:Local Loopback
           inet addr:127.0.0.1  Mask:255.0.0.0
           UP LOOPBACK RUNNING  MTU:3924  Metric:1
           RX packets:34 errors:0 dropped:0 overruns:0 frame:0
           TX packets:34 errors:0 dropped:0 overruns:0 carrier:0
           collisions:0 txqueuelen:0

[root@hyde /root]# mii-diag
Using the default interface 'eth0'.
Basic registers of MII PHY #1:  3000 782d 02a8 0154 05e1 41e1 0003 0000.
  Basic mode control register 0x3000: Auto-negotiation enabled.
  You have link beat, and everything is working OK.
  Your link partner advertised 41e1: 100baseTx-FD 100baseTx 10baseT-FD 
10baseT.
[root@hyde /root]# mii-diag   eth1
Basic registers of MII PHY #1:  3100 786d 2000 5c10 01e1 0081 0004 2001.
  Basic mode control register 0x3100: Auto-negotiation enabled.
  You have link beat, and everything is working OK.
  Your link partner is generating 100baseTx link beat  (no autonegotiation).
[root@hyde /root]# mii-diag eth1 2
Basic registers of MII PHY #1:  3100 786d 2000 5c10 01e1 40a1 0007 2801.
  Basic mode control register 0x3100: Auto-negotiation enabled.
  You have link beat, and everything is working OK.
  Your link partner advertised 40a1: 100baseTx 10baseT.
[root@hyde /root]# mii-diag eth2 3
Basic registers of MII PHY #1:  3100 786d 2000 5c10 01e1 41e1 0007 2801.
  Basic mode control register 0x3100: Auto-negotiation enabled.
  You have link beat, and everything is working OK.
  Your link partner advertised 41e1: 100baseTx-FD 100baseTx 10baseT-FD 
10baseT.
[root@hyde /root]# /tmp/mii-tool/mii-tool
eth0: negotiated 100baseTx-FD, link ok
eth1: no autonegotiation, 100baseTx-HD, link ok
eth2: negotiated 100baseTx-HD, link ok
eth3: negotiated 100baseTx-FD, link ok
eth4: no link
eth5: no link
eth6: no link
eth7: no link
[root@hyde /root]#
-- 
Anthony Mendoza
IT & Customer Support
anthony@embracenetworks.com
t: 408-585-5612 / c: 408-314-5038
p: 888-886-7205 / f: 208-247-5501