[vortex] 3c595 Vortex problems - no 100mbps, no full-duplex
Kevin
kevin@bluelavalamp.net
Tue Aug 20 16:27:01 2002
On Sun, 18 Aug 2002 23:47:51 -0400 (EDT)
Donald Becker <becker@scyld.com> wrote:
> On Sat, 17 Aug 2002, Kevin wrote:
>
> > I loooked through the list archives and found were people were
> > having
> > similar problems
>
> What similar problems were people having? Do you have a message URL?
I didn't write down the urls the first time I search, but I just did a
quick search and found these again:
'http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&threadm=908CE
E242SegFault089010%40203.2.194.51&rnum=1&prev=/groups%3Fas_q%3D3c595%2520f
ull%2520100%26safe%3Dimages%26ie%3DUTF-8%26oe%3DUTF-8%26lr%3D%26hl%3Den'
'http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&threadm=36095
E51.406332D0%40news.mwc.edu&rnum=8&prev=/groups%3Fas_q%3D3c595%2520full%25
20100%26safe%3Dimages%26ie%3DUTF-8%26oe%3DUTF-8%26lr%3D%26hl%3Den'
'http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&threadm=linux
.vortex.Pine.LNX.4.10.10107121228480.29374-100000%40vaio.greennet&rnum=1&p
rev=/groups%3Fhl%3Den%26lr%3D%26ie%3DUTF-8%26oe%3DUTF-8%26q%3D3c595%2B%2Bg
roup%253Amlist.linux.vortex'
> > I have a 3c595 Vortex
> > card that just won't run 100/full-duplex.
>
> What options are you passing?
I've tried loading the module like so:
insmod 3c59x options=0x204
and
insmod 3c59x full_duplex=1
> > I have the 3c59xcfg utility from
> > 3com and have tried configuring the card at 100/full and to auto-nego
>
> Errrmmm, the latter is unlikely: the 3c595 does not support
> autonegotiation. The 3c595 is old: it predates autonegotiation.
Ok, I went back and set the eeprom to 100mbps and full-duplex, but still
have the same problems.
> Also, since it was one of the very first PCI adapters, it's performance
> is not very good by modern standards. You will see high CPU loading.
>
> > I've also tried loading the module forcing
> > 100/full, but that doesn't work either.
>
> It should...
./vortex-diag -e
vortex-diag.c:v2.06 4/18/2002 Donald Becker (becker@scyld.com)
http://www.scyld.com/diag/index.html
Index #1: Found a 3Com 3c595 Vortex 10/100baseTx adapter at 0xc400.
Saved EEPROM settings of a 3Com Vortex/Boomerang:
3Com Node Address 00:A0:24:94:DD:75 (used as a unique ID only).
OEM Station address 00:A0:24:94:DD:75 (used as the ethernet address).
Device ID 5950, Manufacturer ID 6d50.
Manufacture date (MM/DD/YYYY) 4/29/1996, division 6, product BU.
No BIOS ROM is present.
Options: force full duplex, link beat required.
Vortex format checksum is correct (0076 vs. 0076).
Cyclone format checksum is correct (00 vs. 00).
Hurricane format checksum is correct (00 vs. 00).
zee:/# ./vortex-diag -a
vortex-diag.c:v2.06 4/18/2002 Donald Becker (becker@scyld.com)
http://www.scyld.com/diag/index.html
Index #1: Found a 3Com 3c595 Vortex 10/100baseTx adapter at 0xc400.
The Vortex chip may be active, so FIFO registers will not be read.
To see all register values use the '-f' flag.
Initial window 3, registers values by window:
Window 0: 0000 0000 0000 0000 0000 00bf 0000 0000.
Window 1: FIFO FIFO 0000 2000 8000 00ff 7ffc 2000.
Window 2: a000 9424 75dd 1100 0070 0100 0000 4000.
Window 3: 001b 0102 0000 0000 e10a 7fff 7fff 6000.
Window 4: 0000 00d3 0000 0000 0001 8800 0000 8000.
Window 5: 1ffc 1ffc 0000 1ffc 0000 0000 0000 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 0xc400
0xC410: **FIFO** 00000000 00008000 *STATUS*
0xC420: ffffffff ffffffff ffffffff ffffffff
0xC430: ffffffff ffffffff ffffffff ffffffff
Indication enable is 0000, interrupt enable is 0000.
No interrupt sources are pending.
Transceiver/media interfaces available: 100baseTx 10baseT.
Transceiver type in use: 10baseT.
MAC settings: half-duplex.
Maximum packet size is 0.
Station address set to 00:a0:24:94:dd:75.
Configuration options 0000.
If I'm reading the vortex-diag -e and -a output correctly it looks like
the eeprom is set for full-duplex but the card is running half-duplex.
> > ./mii-diag eth1:
> > Basic registers of MII PHY #0: 0000 ffff 0000 ffff 0000 ffff 0000
> > ffff.
>
> This won't return useful information: that driver version does not
> emulate MII management registers.
>
> [[ If you are willing to try an experimental change, I've added MII
> emulation to the 0.99Xe driver
> ftp://ftp.scyld.com/pub/network/test/3c59x.c
> ]]
I tried to compile it but got some #include errors:
gcc -DMODULE -Wall -Wstrict-prototypes -O6 -c 3c59x.c
In file included from /usr/include/linux/modversions.h:117,
from 3c59x.c:94:
/usr/include/linux/modules/i386_ksyms.ver:109: warning:
`__ver_atomic_dec_and_lock' redefined
/usr/include/linux/modules/dec_and_lock.ver:1: warning: this is the
location of the previous definition
3c59x.c:121: pci-scan.h: No such file or directory
3c59x.c:122: kern_compat.h: No such file or directory
I have the source for Linux 2.4.18 on the system and I search the
harddrive but could find the two .h files it's looking for.
> > ./vortex-diag -a eth1:
> >
> > vortex-diag.c:v2.06 4/18/2002 Donald Becker (becker@scyld.com)
> > http://www.scyld.com/diag/index.html
> > Index #1: Found a 3Com 3c595 Vortex 10/100baseTx adapter at 0xc400.
> > The Vortex chip may be active, so FIFO registers will not be read.
> ...
> > Indication enable is 0000, interrupt enable is 0000.
> ...
> > Transceiver/media interfaces available: 100baseTx 10baseT.
> > Transceiver type in use: 10baseT.
> > MAC settings: half-duplex.
>
>
> The card isn't running and is at the default setting: has the driver
> been loaded?
Yes, the output is with the driver loaded. The output from vortex-diag in
this e-mail is also after changing the eeprom to force 100/full and having
the driver loaded
Since this is an older card that doesn't have the performance of newer
ones, can you recommended a more modern model that has auto-negotiation and
gives good performance? I might just try selling these on E-Bay and
upgrading to a newer model.
Thanks for you time,
Kevin