3c905b initialization problems

Brian Wong bdwong-net@home.com
Sat Jan 2 20:11:35 1999


This is a multi-part message in MIME format.
--------------34F7FC2BA1882BA42EC72573
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

I'm having problems configuring the 3c905b Cyclone card for 100base-TX.
I am running RedHat Linux 5.2 on a 486DX-100 with three network cards:

eth0: 3c59x (Vortex) card, 10bT, using the 3c59x drive
eth1: 3c905b (Cyclone) card, 100b-TX, using the 3c59x driver
eth2: DEC DC21041, 10Mb/s, using the tulip driver

The Cyclone is plugged into a LinkSys 10/100 5-port hub, and services
Pentium/PII Win95 machines which also have 3c905b's.  The Vortex is a
combo card and services a 10base-2 segment.  The DEC plugs into a cable
modem. The 3c59x driver version 0.99H is compiled into the kernel.

Description of attachmets follow:

The following files contain general system information:
    ioports
    pci

- The card is set for 100b-TX by default. Changing the card's default
link setting affects the options=3,10 setting.

The following files contain relevant information with the 3c59x
options=3,10 (i.e. eth0=Vortex=10base-2, eth1=Cyclone=default)
    3-10-coldboot.startup
    3-10-coldboot.ifconfig
    3-10-coldboot.mii
    3-10-coldboot.vortex

- Note the line "SIOADDRT: Invalid argument." This line appears on
startup IN EVERY CONFIGURATION, when eth1 is enabled.  It does not
appear in the system log.
- Data is corrupted (a few bytes/MB) when receiving large streams on
eth1.
- Appears to configure as 10b-T, but auto-sensing hub detects 100b-TX
link.

The following files contain relevant information with the 3c59x
options=3,4 (i.e. eth0=Vortex=10base-2, eth1=Cyclone=100base-TX)
    3-4-coldboot.startup
    3-4-coldboot.ifconfig
    3-4-coldboot.mii
    3-4-coldboot.vortex

- On startup, the autosensing hub detects 100b-TX, but when the driver
tries to override to 100b-TX, the link light goes out, then is
downgraded to 10b-T.


--------------34F7FC2BA1882BA42EC72573
Content-Type: text/plain; charset=us-ascii;
 name="ioports"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="ioports"

0000-001f : dma1
0020-003f : pic1
0040-005f : timer
0060-006f : keyboard
0070-007f : rtc
0080-009f : dma page reg
00a0-00bf : pic2
00c0-00df : dma2
00f0-00ff : npu
0170-0177 : ide1
01f0-01f7 : ide0
0220-022f : soundblaster
02e8-02ef : serial(auto)
02f8-02ff : serial(set)
0376-0376 : ide1
0388-038b : Yamaha OPL2
03c0-03df : vga+
03e8-03ef : serial(set)
03f0-03f5 : floppy
03f6-03f6 : ide0
03f7-03f7 : floppy DIR
03f8-03ff : serial(auto)
fc00-fc7f : eth2
fc80-fcff : eth1
ff80-ff9f : eth0

--------------34F7FC2BA1882BA42EC72573
Content-Type: text/plain; charset=us-ascii;
 name="pci"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="pci"

PCI devices found:
  Bus  0, device  18, function  0:
    ISA bridge: UMC UM8886A (rev 1).
      Medium devsel.  Master Capable.  No bursts.  
  Bus  0, device  16, function  0:
    Host bridge: UMC UM8881F (rev 1).
      Medium devsel.  Master Capable.  No bursts.  
  Bus  0, device  15, function  0:
    Ethernet controller: 3Com 3C905B 100bTX (rev 48).
      Medium devsel.  IRQ 9.  Master Capable.  Latency=64.  Min Gnt=10.Max Lat=10.
      I/O at 0xfc80.
      Non-prefetchable 32 bit memory at 0xffbdff80.
  Bus  0, device  14, function  0:
    Ethernet controller: 3Com 3C590 10bT (rev 0).
      Medium devsel.  IRQ 11.  Master Capable.  Latency=248.  Min Gnt=3.Max Lat=8.
      I/O at 0xff80.
  Bus  0, device  13, function  0:
    Ethernet controller: DEC DC21041 (rev 33).
      Medium devsel.  Fast back-to-back capable.  IRQ 12.  Master Capable.  Latency=66.  
      I/O at 0xfc00.
      Non-prefetchable 32 bit memory at 0xffbdff00.
  Bus  0, device  12, function  0:
    VGA compatible controller: S3 Inc. Trio32/Trio64 (rev 83).
      Medium devsel.  
      Non-prefetchable 32 bit memory at 0xf8000000.

--------------34F7FC2BA1882BA42EC72573
Content-Type: text/plain; charset=us-ascii;
 name="3-10-coldboot.ifconfig"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="3-10-coldboot.ifconfig"

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Bcast:127.255.255.255  Mask:255.0.0.0
          UP BROADCAST LOOPBACK RUNNING  MTU:3584  Metric:1
          RX packets:141 errors:0 dropped:0 overruns:0 frame:0
          TX packets:141 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 

eth0      Link encap:Ethernet  HWaddr 00:A0:24:4E:B7:8B  
          inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:135 errors:0 dropped:0 overruns:0 frame:0
          TX packets:126 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 
          Interrupt:11 Base address:0xff80 

eth0:0    Link encap:Ethernet  HWaddr 00:A0:24:4E:B7:8B  
          inet addr:192.168.1.254  Mask:255.255.255.0
          UP RUNNING  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 

eth1      Link encap:Ethernet  HWaddr 00:10:5A:E5:C0:EB  
          inet addr:192.168.2.1  Bcast:192.168.2.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:27011 errors:46 dropped:0 overruns:0 frame:66
          TX packets:26838 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 
          Interrupt:9 Base address:0xfc80 

eth2      Link encap:Ethernet  HWaddr 00:80:C8:4D:B6:F7  
          inet addr:24.113.17.62  Bcast:24.113.17.255  Mask:255.255.254.0
          UP BROADCAST NOTRAILERS RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:10991 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1884 errors:0 dropped:0 overruns:0 carrier:0
          collisions:58 
          Interrupt:12 Base address:0xfc00 


--------------34F7FC2BA1882BA42EC72573
Content-Type: text/plain; charset=us-ascii;
 name="3-10-coldboot.mii"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="3-10-coldboot.mii"

Basic registers of MII PHY #0:  c000 c000 c000 c000 c000 c000 c000 c000.
 Basic mode control register 0xc000: Auto-negotiation disabled, with
 speed fixed at 10 mbps, half-duplex.
  Transceiver in loopback mode!
  Transceiver currently being reset!
 Basic mode status register 0xc000 ... c000.
   Link status: not established.
 Your link partner can do c000:.

--------------34F7FC2BA1882BA42EC72573
Content-Type: text/plain; charset=us-ascii;
 name="3-10-coldboot.startup"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="3-10-coldboot.startup"

Swansea University Computer Society IPX 0.34 for NET3.035
IPX Portions Copyright (c) 1995 Caldera, Inc.
Appletalk 0.17 for Linux NET3.035
3c59x.c:v0.99H 11/17/98 Donald Becker http://cesdis.gsfc.nasa.gov/linux/drivers/vortex.html
eth0: 3Com 3c590 Vortex 10Mbps at 0xff80,  00:a0:24:4e:b7:8b, IRQ 11
  32K byte-wide RAM 1:1 Rx:Tx split, 10base2 interface.
  Media override to transceiver type 3 (10base2).
eth0: Overriding PCI latency timer (CFLT) setting of 64, new value is 248.
eth1: 3Com 3c905B Cyclone 100baseTx at 0xfc80,  00:10:5a:e5:c0:eb, IRQ 9
  8K byte-wide RAM 5:3 Rx:Tx split, 100baseTX interface.
  Media override to transceiver type 0 (10baseT).
  Enabling bus-master transmits and whole-frame receives.
SIOCADDRT: Invalid argument
tulip.c:v0.89H 5/23/98 becker@cesdis.gsfc.nasa.gov
eth2: Digital DC21041 Tulip at 0xfc00, 21041 mode, 00 80 c8 4d b6 f7, IRQ 12.
eth2:21041 Media information at 30, default media 0800 (Autosense).
eth2:  21041 media #0, 10baseT.
eth2:  21041 media #0, 10baseT.
Using DHCP for eth2... Local host is cr25463-a...done.

--------------34F7FC2BA1882BA42EC72573
Content-Type: text/plain; charset=us-ascii;
 name="3-4-coldboot.ifconfig"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="3-4-coldboot.ifconfig"

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Bcast:127.255.255.255  Mask:255.0.0.0
          UP BROADCAST LOOPBACK RUNNING  MTU:3584  Metric:1
          RX packets:140 errors:0 dropped:0 overruns:0 frame:0
          TX packets:140 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 

eth0      Link encap:Ethernet  HWaddr 00:A0:24:4E:B7:8B  
          inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:122 errors:0 dropped:0 overruns:0 frame:0
          TX packets:108 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 
          Interrupt:11 Base address:0xff80 

eth0:0    Link encap:Ethernet  HWaddr 00:A0:24:4E:B7:8B  
          inet addr:192.168.1.254  Mask:255.255.255.0
          UP RUNNING  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 

eth1      Link encap:Ethernet  HWaddr 00:10:5A:E5:C0:EB  
          inet addr:192.168.2.1  Bcast:192.168.2.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2099 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2072 errors:0 dropped:0 overruns:0 carrier:0
          collisions:19 
          Interrupt:9 Base address:0xfc80 

eth2      Link encap:Ethernet  HWaddr 00:80:C8:4D:B6:F7  
          inet addr:24.113.17.62  Bcast:24.113.17.255  Mask:255.255.254.0
          UP BROADCAST NOTRAILERS RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:14222 errors:0 dropped:0 overruns:0 frame:0
          TX packets:680 errors:0 dropped:0 overruns:0 carrier:0
          collisions:31 
          Interrupt:12 Base address:0xfc00 


--------------34F7FC2BA1882BA42EC72573
Content-Type: text/plain; charset=us-ascii;
 name="3-4-coldboot.mii"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="3-4-coldboot.mii"

Basic registers of MII PHY #0:  c000 c000 c000 c000 c000 c000 c000 c000.
 Basic mode control register 0xc000: Auto-negotiation disabled, with
 speed fixed at 10 mbps, half-duplex.
  Transceiver in loopback mode!
  Transceiver currently being reset!
 Basic mode status register 0xc000 ... c000.
   Link status: not established.
 Your link partner can do c000:.

--------------34F7FC2BA1882BA42EC72573
Content-Type: text/plain; charset=us-ascii;
 name="3-4-coldboot.startup"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="3-4-coldboot.startup"

3c59x.c:v0.99H 11/17/98 Donald Becker http://cesdis.gsfc.nasa.gov/linux/drivers/vortex.html
eth0: 3Com 3c590 Vortex 10Mbps at 0xff80,  00:a0:24:4e:b7:8b, IRQ 11
  32K byte-wide RAM 1:1 Rx:Tx split, 10base2 interface.
  Media override to transceiver type 3 (10base2).
eth0: Overriding PCI latency timer (CFLT) setting of 64, new value is 248.
eth1: 3Com 3c905B Cyclone 100baseTx at 0xfc80,  00:10:5a:e5:c0:eb, IRQ 9
  8K byte-wide RAM 5:3 Rx:Tx split, 100baseTX interface.
  Media override to transceiver type 4 (100baseTX).
  Enabling bus-master transmits and whole-frame receives.
SIOCADDRT: Invalid argument
tulip.c:v0.89H 5/23/98 becker@cesdis.gsfc.nasa.gov
eth2: Digital DC21041 Tulip at 0xfc00, 21041 mode, 00 80 c8 4d b6 f7, IRQ 12.
eth2:21041 Media information at 30, default media 0800 (Autosense).
eth2:  21041 media #0, 10baseT.
eth2:  21041 media #0, 10baseT.
Using DHCP for eth2... Local host is cr25463-a...done.

--------------34F7FC2BA1882BA42EC72573
Content-Type: text/plain; charset=us-ascii;
 name="3-4-coldboot.vortex"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="3-4-coldboot.vortex"

vortex-diag.c:v1.05 5/22/98 Donald Becker (becker@cesdis.gsfc.nasa.gov)
Found a 3Com PCI Ethernet 3c905b rev 0 at 0xfc80.
The Vortex chip may be active, so FIFO registers will not be read.
To see all register values use the '-f' flag.
Initial window 4, registers values by window:
  Window 0: 0000 0000 0000 0000 f5f5 00bf 0000 0000.
  Window 1: FIFO FIFO 0000 0000 0000 0000 0000 2000.
  Window 2: 1000 e55a ebc0 0000 0000 0000 000a 4000.
  Window 3: 0000 0000 05ea 0000 000a 0800 0800 6000.
  Window 4: 0000 0000 0000 0cd8 0001 88c0 0000 8000.
  Window 5: 1ffc 0000 0000 0600 0807 06de 06c6 a000.
  Window 6: 0000 0000 0000 0000 0000 0000 0000 c000.
  Window 7: 0000 0000 0000 0000 0000 0000 0000 e000.
Vortex chip registers at 0xfc80
  0xFC90: **FIFO** **FIFO** 0000003e 00000000
  0xFCA0: 00000020 00000000 00080000 00000004
  0xFCB0: 00000000 906f6f91 01de0810 00080004
 No interrupt sources are pending.
 Transceiver/media interfaces available:  100baseTx 10baseT.
 MAC settings: half-duplex.
EEPROM contents:
  0010 5ae5 c0eb 9055 c579 0036 5051 6d50
  2971 0000 0010 5ae5 c0eb 0010 0000 0022
  32a2 0000 0000 0040 0000 0005 0000 10b7
  9055 000a 0000 0000 0000 0000 0000 0000
  00a4 0000 0000 0000 0000 0000 0000 0000
  0000 0000 0000 0000 0000 0000 0000 0000
  0000 0000 0000 0000 0000 0000 0000 0000
  0000 0000 0000 0000 0000 0000 0000 0000
 The word-wide EEPROM checksum is 0x49a9.
Parsing the EEPROM of a 3Com Vortex/Boomerang:
 3Com Node Address 00:10:5A:E5:C0:EB (used as a unique ID only).
 OEM Station address 00:10:5A:E5:C0:EB (used as the ethernet address).
 Manufacture date (MM/DD/YY) 11/25/98, division 6, product QP.
Options: .
  Vortex checksum is cc (vs. 10b7),Cyclone checksum is a4 (vs. a4).
Found a 3Com PCI Ethernet 3c590 rev 0 at 0xff80.
The Vortex chip may be active, so FIFO registers will not be read.
To see all register values use the '-f' flag.
Initial window 4, 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 4e24 8bb7 0000 0000 0000 00de 4000.
  Window 3: 0012 0032 0000 0000 e138 3fff 3fff 6000.
  Window 4: 0000 00d1 0000 0c80 0001 4800 0000 8000.
  Window 5: 1ffc 1ffc 00de 1ffc 0007 02de 00de a000.
  Window 6: 0000 0000 0000 0000 0000 0000 0000 c000.
  Window 7: 0000 0000 0000 0000 8000 00ff 0000 e000.
Vortex chip registers at 0xff80
  0xFF90: **FIFO** **FIFO** 00008000 00003ffc
  0xFFA0: ffffffff ffffffff ffffffff ffffffff
  0xFFB0: ffffffff ffffffff ffffffff ffffffff
 No interrupt sources are pending.
 Transceiver/media interfaces available:  10baseT 10base2 AUI.
 MAC settings: half-duplex.
EEPROM contents:
  00a0 244e b78b 5900 bf8d 0036 4543 6d50
  0418 0000 00a0 244e b78b 3f10 0000 0000
  01c6 0000 0012 0032 0000 0000 0000 00b2
  0000 0000 0000 0000 0000 0000 0000 0000
  0000 0000 0000 0000 0000 0000 0000 0000
  0000 0000 0000 0000 0000 0000 0000 0000
  0000 0000 0000 0000 0000 0000 0000 0000
  0000 0000 0000 0000 0000 0000 0000 0000
 The word-wide EEPROM checksum is 0xca2c.
Parsing the EEPROM of a 3Com Vortex/Boomerang:
 3Com Node Address 00:A0:24:4E:B7:8B (used as a unique ID only).
 OEM Station address 00:A0:24:4E:B7:8B (used as the ethernet address).
 Manufacture date (MM/DD/YY) 12/13/95, division 6, product CE.
Options: .
  Vortex checksum is b2 (vs. b2),Cyclone checksum is 00 (vs. 00).

--------------34F7FC2BA1882BA42EC72573
Content-Type: text/plain; charset=us-ascii;
 name="3-10-coldboot.vortex"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="3-10-coldboot.vortex"

vortex-diag.c:v1.05 5/22/98 Donald Becker (becker@cesdis.gsfc.nasa.gov)
Found a 3Com PCI Ethernet 3c905b rev 0 at 0xfc80.
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 f5f5 00bf 0000 0000.
  Window 1: FIFO FIFO 0000 0000 0000 0000 0000 2000.
  Window 2: 1000 e55a ebc0 0000 0000 0000 000a 4000.
  Window 3: 0000 0040 05ea 0020 000a 0800 0800 6000.
  Window 4: 0000 0000 0000 0cd8 0000 8880 0000 8000.
  Window 5: 1ffc 0000 0000 0600 0807 06de 06c6 a000.
  Window 6: 0000 0000 0000 1700 1000 6856 02d5 c000.
  Window 7: 0000 0000 0000 0000 0000 0000 0000 e000.
Vortex chip registers at 0xfc80
  0xFC90: **FIFO** **FIFO** 00000017 00000000
  0xFCA0: 00000020 00000000 00080000 00000004
  0xFCB0: 00000000 2669d997 018e28b0 00080004
 No interrupt sources are pending.
 Transceiver/media interfaces available:  100baseTx 10baseT.
 MAC settings: full-duplex.
EEPROM contents:
  0010 5ae5 c0eb 9055 c579 0036 5051 6d50
  2971 0000 0010 5ae5 c0eb 0010 0000 0022
  32a2 0000 0000 0040 0000 0005 0000 10b7
  9055 000a 0000 0000 0000 0000 0000 0000
  00a4 0000 0000 0000 0000 0000 0000 0000
  0000 0000 0000 0000 0000 0000 0000 0000
  0000 0000 0000 0000 0000 0000 0000 0000
  0000 0000 0000 0000 0000 0000 0000 0000
 The word-wide EEPROM checksum is 0x49a9.
Parsing the EEPROM of a 3Com Vortex/Boomerang:
 3Com Node Address 00:10:5A:E5:C0:EB (used as a unique ID only).
 OEM Station address 00:10:5A:E5:C0:EB (used as the ethernet address).
 Manufacture date (MM/DD/YY) 11/25/98, division 6, product QP.
Options: .
  Vortex checksum is cc (vs. 10b7),Cyclone checksum is a4 (vs. a4).
Found a 3Com PCI Ethernet 3c590 rev 0 at 0xff80.
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 4e24 8bb7 0000 0000 0000 00de 4000.
  Window 3: 0012 0032 0000 0000 e138 3fff 3fff 6000.
  Window 4: 0000 00d1 0000 0c80 0000 4800 0000 8000.
  Window 5: 1ffc 1ffc 00de 1ffc 0007 02de 00de a000.
  Window 6: 0000 0000 0000 0000 0000 0000 0000 c000.
  Window 7: 0000 0000 0000 0000 8000 00ff 0000 e000.
Vortex chip registers at 0xff80
  0xFF90: **FIFO** **FIFO** 00008000 00003ffc
  0xFFA0: ffffffff ffffffff ffffffff ffffffff
  0xFFB0: ffffffff ffffffff ffffffff ffffffff
 No interrupt sources are pending.
 Transceiver/media interfaces available:  10baseT 10base2 AUI.
 MAC settings: half-duplex.
EEPROM contents:
  00a0 244e b78b 5900 bf8d 0036 4543 6d50
  0418 0000 00a0 244e b78b 3f10 0000 0000
  01c6 0000 0012 0032 0000 0000 0000 00b2
  0000 0000 0000 0000 0000 0000 0000 0000
  0000 0000 0000 0000 0000 0000 0000 0000
  0000 0000 0000 0000 0000 0000 0000 0000
  0000 0000 0000 0000 0000 0000 0000 0000
  0000 0000 0000 0000 0000 0000 0000 0000
 The word-wide EEPROM checksum is 0xca2c.
Parsing the EEPROM of a 3Com Vortex/Boomerang:
 3Com Node Address 00:A0:24:4E:B7:8B (used as a unique ID only).
 OEM Station address 00:A0:24:4E:B7:8B (used as the ethernet address).
 Manufacture date (MM/DD/YY) 12/13/95, division 6, product CE.
Options: .
  Vortex checksum is b2 (vs. b2),Cyclone checksum is 00 (vs. 00).

--------------34F7FC2BA1882BA42EC72573--