[vortex] 3c556 problems (3Com Mini 10/100 PCI)
Tim Miller
cerebus@haybaler.sackheads.org
Sun, 21 Oct 2001 08:22:27 -0700
--J2SCkAp4GZ/dPZZf
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
On Sun, Oct 21, 2001 at 07:23:19AM -0400, Donald Becker wrote:
> Is the transceiver always detected at address #0? Or only when the
> driver fails? (#0 might be correct for your card, but that address
> would usually indicate a physically external transceiver that must be
> specially activated, if 3Com followed the MII specs.)
Apparantly not. If I'm reading this right, it thinks it's at #24 at
boot, and can't find it. (Ref. attached 2.2.19-failed).
> Does
> mii-diag --Reset
> restore operation?
No. (Ref. attached 2.2.19-reset-attempt.)
Also, I attached a script log of the rmmod/insmod, and the the resulting
vortex-diag output afterward (Ref. attached 2.2.19-rmmod-insmod).
> [Re; 2.4.x operation]
> Interrupt problem. No interrupts are getting through. This is a kernel
I'll buy that. However, I've crawled through the system, and there's nothing
that could be preempting that interrupt as far as I can tell. And it begs
the question of why does the interrupt work under 2.2.19?
-- Cerebus
--J2SCkAp4GZ/dPZZf
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="2.2.19-failed"
Content-Transfer-Encoding: quoted-printable
Script started on Sun Oct 21 10:15:44 2001
lilbuddy:~# ./vortex-diag -aa=0D
vortex-diag.c:v2.05 5/15/2001 Donald Becker (becker@scyld.com)=0D
http://www.scyld.com/diag/index.html=0D
Index #1: Found a 3c556 Laptop Hurricane adapter at 0x2400.=0D
The Vortex chip may be active, so FIFO registers will not be read.=0D
To see all register values use the '-f' flag.=0D
Initial window 7, registers values by window:=0D
Window 0: 0000 0000 dac1 0000 0000 06ff ffff 0000.=0D
Window 1: FIFO FIFO 0000 0000 0000 0000 0000 2000.=0D
Window 2: 0000 4286 f6f8 0000 0000 0000 4012 4000.=0D
Window 3: 0000 0000 05ea 0000 0040 1000 0800 6000.=0D
Window 4: 0000 0000 0000 0060 0003 80c0 0000 8000.=0D
Window 5: 1ffc 0000 0000 0600 0807 0000 07c6 a000.=0D
Window 6: 0000 0000 0000 0000 0000 0000 0000 c000.=0D
Window 7: 0000 0000 0000 0000 0000 0000 0000 e000.=0D
Vortex chip registers at 0x2400=0D
0x2410: **FIFO** 00000000 00000055 *STATUS*=0D
0x2420: 00000020 00000000 00080000 00000004=0D
0x2430: 00000000 6f0a90f6 00000000 00080004=0D
Indication enable is 07c6, interrupt enable is 0000.=0D
No interrupt sources are pending.=0D
Transceiver/media interfaces available: MII.=0D
Transceiver type in use: 10baseT.=0D
MAC settings: half-duplex.=0D
Station address set to 00:00:86:42:f8:f6.=0D
Configuration options 4012.=0D
lilbuddy:~# ./vortex-diag -aa=08 =08=08 =08ee=0D
vortex-diag.c:v2.05 5/15/2001 Donald Becker (becker@scyld.com)=0D
http://www.scyld.com/diag/index.html=0D
Index #1: Found a 3c556 Laptop Hurricane adapter at 0x2400.=0D
EEPROM contents (256 words, offset 0x30):=0D
0x000: 1578 6055 0000 8060 0040 0000 0000 0080=0D
0x008: 0000 0000 0000 0000 0000 0000 0000 0000=0D
0x010: 0000 0000 0000 0000 0000 0000 10b7 6256=0D
0x018: 0000 0000 0000 0000 0000 0000 0000 0a0a=0D
0x020: 0000 0000 0000 0000 0000 0000 0000 0000=0D
0x028: 0000 0000 0000 0000 0000 0000 0000 0000=0D
0x030: 0000 8642 f8f6 6055 c722 0009 0000 6d50=0D
0x038: 2970 0009 0000 8642 f8f6 2010 0000 0000=0D
0x040: 32a6 0000 0000 0000 0000 0000 0000 0010=0D
0x048: 0000 0000 0000 0000 0000 0000 0000 0000=0D
0x050: 0000 0000 0000 0000 0000 0000 0000 0000=0D
0x058: 0000 0000 0000 0000 0000 0000 0000 0000=0D
0x060: 0000 0000 0000 0000 0000 0000 0000 0000=0D
0x068: 0000 0000 0000 0000 0000 0000 0000 0000=0D
0x070: 0000 0000 0000 0000 0000 0000 0000 0000=0D
0x078: 0000 0000 0000 0000 0000 0000 0000 0000=0D
0x080: 0000 1007 1568 0004 0000 0780 0000 0000=0D
0x088: 0000 0000 0000 0000 0000 0000 0000 0000=0D
0x090: 0000 0000 0000 0000 0000 0000 10b7 6158=0D
0x098: 0000 0000 0000 0000 0000 0000 0000 0a0a=0D
0x0a0: 0000 0060 0000 0000 ffff ffff ffff ffff=0D
0x0a8: ffff ffff ffff ffff ffff ffff ffff ffff=0D
0x0b0: ffff ffff ffff ffff ffff ffff ffff ffff=0D
0x0b8: ffff ffff ffff ffff ffff ffff ffff ffff=0D
0x0c0: ffff ffff ffff ffff ffff ffff ffff ffff=0D
0x0c8: ffff ffff ffff ffff ffff ffff ffff ffff=0D
0x0d0: ffff ffff ffff ffff ffff ffff ffff ffff=0D
0x0d8: ffff ffff ffff ffff ffff ffff ffff ffff=0D
0x0e0: ffff ffff ffff ffff ffff ffff ffff ffff=0D
0x0e8: ffff ffff ffff ffff ffff ffff ffff ffff=0D
0x0f0: ffff ffff ffff ffff ffff ffff ffff ffff=0D
0x0f8: ffff ffff ffff ffff ffff ffff ffff ffff=0D
The word-wide EEPROM checksum is 0x2c93.=0D
Saved EEPROM settings of a 3Com Vortex/Boomerang:=0D
The CardBus product ID is 1578 6055.=0D
3Com Node Address 00:00:86:42:F8:F6 (used as a unique ID only).=0D
OEM Station address 00:00:86:42:F8:F6 (used as the ethernet address).=0D
Manufacture date (MM/DD/YYYY) 9/2/1999, division , product =00=00.=0D
Options: negotiated duplex, link beat required.=0D
Vortex format checksum is correct (0010 vs. 0010).=0D
Cyclone format checksum is correct (00 vs. 00).=0D
Hurricane format checksum is correct (00 vs. 00).=0D
lilbuddy:~# ./vortex-diag -ee=08 =08=08 =08mm=0D
vortex-diag.c:v2.05 5/15/2001 Donald Becker (becker@scyld.com)=0D
http://www.scyld.com/diag/index.html=0D
Index #1: Found a 3c556 Laptop Hurricane adapter at 0x2400.=0D
***WARNING***: No MII transceivers found!=0D
MII PHY #24 transceiver registers:=0D
0000 0000 0000 0000 0000 0000 0000 0000=0D
0000 0000 0000 0000 0000 0000 0000 0000=0D
0000 0000 0000 0000 0000 0000 0000 0000=0D
0000 0000 0000 0000 0000 0000 0000 0000.=0D
Basic mode control register 0x0000: Auto-negotiation disabled!=0D
Speed fixed at 10 mbps, half-duplex.=0D
Basic mode status register 0x0000 ... 0000.=0D
Link status: not established.=0D
Capable of <Warning! No media capabilities>.=0D
Unable to perform Auto-negotiation, negotiation not complete.=0D
This transceiver has no vendor identification.=0D
I'm advertising 0000:=0D
Advertising no additional info pages.=0D
Using an unknown (non 802.3) encapsulation.=0D
Link partner capability is 0000:.=0D
Negotiation did not complete.=0D
lilbuddy:~# =0D
lilbuddy:~# exit=0D
Script done on Sun Oct 21 10:16:04 2001
--J2SCkAp4GZ/dPZZf
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="2.2.19-reset-attempt"
Script started on Sun Oct 21 10:17:28 2001
lilbuddy:~# ./mii-diag -R
Using the default interface 'eth0'.
Resetting the transceiver...
Basic registers of MII PHY #0: ffff ffff ffff ffff ffff ffff ffff ffff.
No MII transceiver present!.
lilbuddy:~# exit
Script done on Sun Oct 21 10:17:34 2001
--J2SCkAp4GZ/dPZZf
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="2.2.19-rmmod-insmod"
Content-Transfer-Encoding: quoted-printable
Script started on Sun Oct 21 10:17:48 2001
lilbuddy:~# rmmod 3c59x=0D
lilbuddy:~# insmod 3c59x=0D
Using /lib/modules/2.2.19/net/3c59x.o=0D
lilbuddy:~# pump=0D
lilbuddy:~# ifconfig =0D
eth0 Link encap:Ethernet HWaddr 00:00:86:42:F8:F6 =0D
inet addr:192.168.0.10 Bcast:192.168.0.255 Mask:255.255.255.0=0D
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1=0D
RX packets:3 errors:0 dropped:0 overruns:0 frame:0=0D
TX packets:3 errors:0 dropped:0 overruns:0 carrier:0=0D
collisions:0 txqueuelen:100 =0D
RX bytes:1026 (1.0 Kb) TX bytes:1522 (1.4 Kb)=0D
Interrupt:10 Base address:0x2400 =0D
=0D
lo Link encap:Local Loopback =0D
inet addr:127.0.0.1 Mask:255.0.0.0=0D
UP LOOPBACK RUNNING MTU:3924 Metric:1=0D
RX packets:0 errors:0 dropped:0 overruns:0 frame:0=0D
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0=0D
collisions:0 txqueuelen:0 =0D
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)=0D
=0D
lilbuddy:~# ./mii-diag =0D
Using the default interface 'eth0'.=0D
Basic registers of MII PHY #0: 3100 782d 0300 e54b 01e1 0000 0000 0000.=0D
Basic mode control register 0x3100: Auto-negotiation enabled.=0D
You have link beat, and everything is working OK.=0D
Your link partner does not do autonegotiation, and this transceiver type=0D
does not report the sensed link speed.=0D
End of basic transceiver information.=0D
=0D
lilbuddy:~# ./vortex-diag -aa=0D
vortex-diag.c:v2.05 5/15/2001 Donald Becker (becker@scyld.com)=0D
http://www.scyld.com/diag/index.html=0D
Index #1: Found a 3c556 Laptop Hurricane adapter at 0x2400.=0D
The Vortex chip may be active, so FIFO registers will not be read.=0D
To see all register values use the '-f' flag.=0D
Initial window 4, registers values by window:=0D
Window 0: 0000 0000 0000 0000 5555 066f 0000 0000.=0D
Window 1: FIFO FIFO 0000 0000 0000 0000 0000 2000.=0D
Window 2: 0000 4286 f6f8 0000 0000 0000 4012 4000.=0D
Window 3: 0000 0060 05ea 0000 0040 1000 0800 6000.=0D
Window 4: 0000 0000 8000 0ce0 0003 8800 0000 8000.=0D
Window 5: 1ffc 0000 0000 0600 0807 06ce 06c6 a000.=0D
Window 6: 0000 0000 0000 0000 0000 0000 0000 c000.=0D
Window 7: 0000 0000 0000 0000 0000 0000 0000 e000.=0D
Vortex chip registers at 0x2400=0D
0x2410: **FIFO** 00000000 00000000 *STATUS*=0D
0x2420: 00000020 00000000 00080000 00000004=0D
0x2430: 00000000 ee0f11f1 03a6c000 00080004=0D
Indication enable is 06c6, interrupt enable is 06ce.=0D
No interrupt sources are pending.=0D
Transceiver/media interfaces available: MII.=0D
Transceiver type in use: MII.=0D
MAC settings: half-duplex.=0D
Station address set to 00:00:86:42:f8:f6.=0D
Configuration options 4012.=0D
lilbuddy:~# ./vortex-diag -aa=08 =08=08 =08ee=0D
vortex-diag.c:v2.05 5/15/2001 Donald Becker (becker@scyld.com)=0D
http://www.scyld.com/diag/index.html=0D
Index #1: Found a 3c556 Laptop Hurricane adapter at 0x2400.=0D
EEPROM contents (256 words, offset 0x30):=0D
0x000: 1578 6055 0000 8060 0040 0000 0000 0080=0D
0x008: 0000 0000 0000 0000 0000 0000 0000 0000=0D
0x010: 0000 0000 0000 0000 0000 0000 10b7 6256=0D
0x018: 0000 0000 0000 0000 0000 0000 0000 0a0a=0D
0x020: 0000 0000 0000 0000 0000 0000 0000 0000=0D
0x028: 0000 0000 0000 0000 0000 0000 0000 0000=0D
0x030: 0000 8642 f8f6 6055 c722 0009 0000 6d50=0D
0x038: 2970 0009 0000 8642 f8f6 2010 0000 0000=0D
0x040: 32a6 0000 0000 0000 0000 0000 0000 0010=0D
0x048: 0000 0000 0000 0000 0000 0000 0000 0000=0D
0x050: 0000 0000 0000 0000 0000 0000 0000 0000=0D
0x058: 0000 0000 0000 0000 0000 0000 0000 0000=0D
0x060: 0000 0000 0000 0000 0000 0000 0000 0000=0D
0x068: 0000 0000 0000 0000 0000 0000 0000 0000=0D
0x070: 0000 0000 0000 0000 0000 0000 0000 0000=0D
0x078: 0000 0000 0000 0000 0000 0000 0000 0000=0D
0x080: 0000 1007 1568 0004 0000 0780 0000 0000=0D
0x088: 0000 0000 0000 0000 0000 0000 0000 0000=0D
0x090: 0000 0000 0000 0000 0000 0000 10b7 6158=0D
0x098: 0000 0000 0000 0000 0000 0000 0000 0a0a=0D
0x0a0: 0000 0060 0000 0000 ffff ffff ffff ffff=0D
0x0a8: ffff ffff ffff ffff ffff ffff ffff ffff=0D
0x0b0: ffff ffff ffff ffff ffff ffff ffff ffff=0D
0x0b8: ffff ffff ffff ffff ffff ffff ffff ffff=0D
0x0c0: ffff ffff ffff ffff ffff ffff ffff ffff=0D
0x0c8: ffff ffff ffff ffff ffff ffff ffff ffff=0D
0x0d0: ffff ffff ffff ffff ffff ffff ffff ffff=0D
0x0d8: ffff ffff ffff ffff ffff ffff ffff ffff=0D
0x0e0: ffff ffff ffff ffff ffff ffff ffff ffff=0D
0x0e8: ffff ffff ffff ffff ffff ffff ffff ffff=0D
0x0f0: ffff ffff ffff ffff ffff ffff ffff ffff=0D
0x0f8: ffff ffff ffff ffff ffff ffff ffff ffff=0D
The word-wide EEPROM checksum is 0x2c93.=0D
Saved EEPROM settings of a 3Com Vortex/Boomerang:=0D
The CardBus product ID is 1578 6055.=0D
3Com Node Address 00:00:86:42:F8:F6 (used as a unique ID only).=0D
OEM Station address 00:00:86:42:F8:F6 (used as the ethernet address).=0D
Manufacture date (MM/DD/YYYY) 9/2/1999, division , product =00=00.=0D
Options: negotiated duplex, link beat required.=0D
Vortex format checksum is correct (0010 vs. 0010).=0D
Cyclone format checksum is correct (00 vs. 00).=0D
Hurricane format checksum is correct (00 vs. 00).=0D
lilbuddy:~# ./vortex-diag -ee=08 =08=08 =08mm=0D
vortex-diag.c:v2.05 5/15/2001 Donald Becker (becker@scyld.com)=0D
http://www.scyld.com/diag/index.html=0D
Index #1: Found a 3c556 Laptop Hurricane adapter at 0x2400.=0D
MII PHY found at address 0, status 782d.=0D
MII PHY 0 at #0 transceiver registers:=0D
3100 782d 0300 e54b 01e1 0000 0000 0000=0D
0000 0000 0000 0000 0000 0000 0000 0000=0D
0140 0005 0000 0000 0000 0000 0000 0000=0D
0000 0000 0000 0000 0000 0000 0000 0000.=0D
MII PHY #0 transceiver registers:=0D
3100 782d 0300 e54b 01e1 0000 0000 0000=0D
0000 0000 0000 0000 0000 0000 0000 0000=0D
0140 0000 0100 0000 0000 0000 0000 0000=0D
0000 0000 0000 0000 0000 0000 0000 0000.=0D
Basic mode control register 0x3100: Auto-negotiation enabled.=0D
Basic mode status register 0x782d ... 782d.=0D
Link status: established.=0D
Capable of 100baseTx-FD 100baseTx 10baseT-FD 10baseT.=0D
Able to perform Auto-negotiation, negotiation complete.=0D
Vendor ID is 00:c0:39:--:--:--, model 20 rev. 11.=0D
Vendor/Part: TDK transceiver (unknown type).=0D
I'm advertising 01e1: 100baseTx-FD 100baseTx 10baseT-FD 10baseT=0D
Advertising no additional info pages.=0D
IEEE 802.3 CSMA/CD protocol.=0D
Link partner capability is 0000:.=0D
Negotiation did not complete.=0D
TDK format vendor-specific registers 16..18 are 0x0140 0x0000 0x0100=0D
Link polarity is detected as normal.=0D
Auto-negotiation complete, 10Mbps half duplex.=0D
Rx link in fail state, PLL slipped since last read.=0D
No new link status events.=0D
lilbuddy:~# exit=0D
Script done on Sun Oct 21 10:18:25 2001
--J2SCkAp4GZ/dPZZf--