[vortex] A-Vortex Kernel 2.6.2 100 Full Duplex

Beliera, Ariel BELIERAA@advance.com.ar
Wed Feb 18 19:01:02 2004


With the diagnostic tools I watch that is in Full Duplex but in auto
negotiation, Is there any way to force it with ethtool
To be in no autonegotioation, Duplex Full and Speed 100?

root@skywalker:/usr/src/laboratory# ./mii-diag -v    
mii-diag.c:v2.09 9/06/2003 Donald Becker (becker@scyld.com)
 http://www.scyld.com/diag/index.html
Using the default interface 'eth0'.
  Using the new SIOCGMIIPHY value on PHY 24 (BMCR 0x3000).
 The autonegotiated capability is 01e0.
The autonegotiated media type is 100baseTx-FD.
 Basic mode control register 0x3000: Auto-negotiation enabled.
 You have link beat, and everything is working OK.
   This transceiver is capable of  100baseTx-FD 100baseTx 10baseT-FD
10baseT.
   Able to perform Auto-negotiation, negotiation complete.
 Your link partner advertised 41e1: 100baseTx-FD 100baseTx 10baseT-FD
10baseT.
   End of basic transceiver information.

 MII PHY #24 transceiver registers:
   3000 786d 0000 0000 01e1 41e1 0005 2801
   0000 0000 0000 0000 0000 0000 0000 0000
   8000 0afb f5ff 0000 0000 0005 2001 0000
   0000 2042 0285 1c11 0092 1000 0000 0000

t@skywalker:/usr/src/laboratory# ./vortex-diag -F 100baseFx -w -aa -e -m
vortex-diag.c:v2.15a 12/16/2003 Donald Becker (becker@scyld.com)
 http://www.scyld.com/diag/index.html
Index #1: Found a 3c905B Cyclone 100baseTx adapter at 0x3080.
 Station address 00:50:04:00:05:51.
  Receive mode is 0x07: Normal unicast and all multicast.
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: 5000 0004 5105 0000 0000 0000 000a 4000.
  Window 3: 0000 0180 05ea 0020 000a 0800 0800 6000.
  Window 4: 0000 0000 0000 0cd2 0001 8880 0000 8000.
  Window 5: 1ffc 0000 0000 0600 0807 06ce 06c6 a000.
  Window 6: 0000 0000 0000 4100 0000 2ad0 0000 c000.
  Window 7: 0000 0000 0000 0000 0000 0000 0002 e000.
Vortex chip registers at 0x3080
  0x3090: **FIFO** 00000000 0000000a *STATUS*
  0x30A0: 00000020 00000000 00080000 00000004
  0x30B0: 00000000 5fd9a027 1af6e130 00080004
  0x30C0: 0059be45 00000000 00000000 00000000
  0x30D0: 00000000 00000000 00000000 00000000
  0x30E0: 00000000 00000000 00000000 00000000
  0x30F0: 00009000 00000000 01600000 00000000
  DMA control register is 00000020.
   Tx list starts at 00000000.
   Tx FIFO thresholds: min. burst 256 bytes, priority with 128 bytes to
empty.
   Rx FIFO thresholds: min. burst 256 bytes, priority with 128 bytes to
full.
   Poll period Tx 00 ns.,  Rx 0 ns.
   Maximum burst recorded Tx 0,  Rx 352.
 Indication enable is 06c6, interrupt enable is 06ce.
 No interrupt sources are pending.
 Transceiver/media interfaces available:  100baseTx 10baseT.
Transceiver type in use:  Autonegotiate.
 MAC settings: full-duplex.
 Station address set to 00:50:04:00:05:51.
 Configuration options 000a.
Writing an EEPROM word offset 19 value 0x0380.
Writing an EEPROM word offset 32 value 0x009c.
Saved EEPROM settings of a 3Com Vortex/Boomerang:
 3Com Node Address 00:50:04:00:05:51 (used as a unique ID only).
 OEM Station address 00:50:04:00:05:51 (used as the ethernet address).
  Device ID 9055,  Manufacturer ID 6d50.
  Manufacture date (MM/DD/YYYY) 12/2/1998, division 6, product TP.
  No BIOS ROM is present.
 Transceiver selection: Autonegotiate.
   Options: negotiated duplex, link beat required.
   PCI bus requested settings --  minimum grant 10, maximum latency 10
(250ns units).
 PCI Subsystem IDs: Vendor 10b7 Device 9055.
 100baseTx 10baseT.
  Vortex format checksum is incorrect (f4 vs. 10b7).
  Cyclone format checksum is correct (0x9c vs. 0x9c).
  Hurricane format checksum is correct (0x9c vs. 0x9c).
 MII PHY found at address 24, status 786d.
 MII PHY found at address 0, status 786d.
 MII PHY 0 at #24 transceiver registers:
   3000 786d 0000 0000 01e1 41e1 0005 2801
   0000 0000 0000 0000 0000 0000 0000 0000
   8000 0008 0090 0000 0000 0005 2001 0000
   0000 2042 0285 1c11 0002 1000 0000 0000.
 MII PHY 1 at #0 transceiver registers:
   3000 786d 0000 0000 01e1 41e1 0005 2801
   0000 0000 0000 0000 0000 0000 0000 0000
   8000 0008 0090 0000 0000 0005 2001 0000
   0000 2042 0245 1c11 0002 1000 0000 0000. 

-----Original Message-----
From: Beliera, Ariel [mailto:BELIERAA@advance.com.ar] 
Sent: Wednesday, February 18, 2004 8:18 PM
To: vortex@scyld.com
Subject: [vortex] A-Vortex Kernel 2.6.2 100 Full Duplex


I hope someone could help me with this issue, I've just compile the new
stable kernel in my dear box, I was using 2.4.X so I decided To jump the new
one.

root@skywalker:# uname -a
Linux skywalker 2.6.2 #4 SMP Wed Feb 18 21:10:45 ART 2004 i686 unknown
unknown GNU/Linux

I've got two interfaces and one is a 3Com:

root@skywalker:# lspci | grep 3Com
02:09.0 Ethernet controller: 3Com Corporation 3c905B 100BaseTX [Cyclone]
(rev 24)

When I query the interface I received the above message:

MII TOOL
root@skywalker:/# mii-tool
SIOCGMIIPHY on 'eth0' failed: Operation not supported SIOCGMIIPHY on 'eth1'
failed: Operation not supported no MII interfaces found ETHTOOL
root@skywalker:/# ethtool eth0 Settings for eth0:
No data available

I have no trouble in setting up the eepro100 with ethtool [ ethtool -s eth0
speed 100 duplex full autoneg off ]; I wonder how I can resolve the behavior
with the 3c59x.


Detail Info:
Dmesg:

3c59x: Donald Becker and others. www.scyld.com/network/vortex.html
0000:02:09.0: 3Com PCI 3c905B Cyclone 100baseTx at 0x3080. Vers LK1.1.19

root@skywalker:~# lspci -vx
02:09.0 Ethernet controller: 3Com Corporation 3c905B 100BaseTX [Cyclone]
(rev 24)
        Subsystem: 3Com Corporation 3C905B Fast Etherlink XL 10/100
        Flags: bus master, medium devsel, latency 64, IRQ 20
        I/O ports at 3080 [size=128]
        Memory at f2cf0000 (32-bit, non-prefetchable) [size=128]
        Expansion ROM at <unassigned> [disabled] [size=128K]
        Capabilities: [dc] Power Management version 1
00: b7 10 55 90 57 01 10 02 24 00 00 02 08 40 00 00
10: 81 30 00 00 00 00 cf f2 00 00 00 00 00 00 00 00
20: 00 00 00 00 00 00 00 00 00 00 00 00 b7 10 55 90
30: 00 00 00 00 dc 00 00 00 00 00 00 00 0a 01 0a 0a

root@skywalker:~# strace ethtool eth0
execve("/usr/sbin/ethtool", ["ethtool", "eth0"], [/* 32 vars */]) = 0
brk(0)                                  = 0x805c000
open("/etc/ld.so.preload", O_RDONLY)    = -1 ENOENT (No such file or
directory)
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=68776, ...}) = 0 old_mmap(NULL,
68776, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40016000
close(3)                                = 0
open("/lib/libc.so.6", O_RDONLY)        = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\300]\1"..., 1024) =
1024
fstat64(3, {st_mode=S_IFREG|0755, st_size=1458907, ...}) = 0 old_mmap(NULL,
1268836, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40027000
mprotect(0x40156000, 27748, PROT_NONE)  = 0 old_mmap(0x40156000, 20480,
PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3,
0x12f000) = 0x40156000
old_mmap(0x4015b000, 7268, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x4015b000
close(3)                                = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
= 0x4015d000
munmap(0x40016000, 68776)               = 0
socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 3 fstat64(1,
{st_mode=S_IFCHR|0720, st_rdev=makedev(136, 4), ...}) = 0 old_mmap(NULL,
4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40016000
write(1, "Settings for eth0:\n", 19Settings for eth0:
)    = 19
ioctl(3, 0x8946, 0xbffff8a0)            = -1 EOPNOTSUPP (Operation not
supported)
ioctl(3, 0x8946, 0xbffff8a0)            = -1 EOPNOTSUPP (Operation not
supported)
ioctl(3, 0x8946, 0xbffff8a0)            = -1 EOPNOTSUPP (Operation not
supported)
ioctl(3, 0x8946, 0xbffff8a0)            = -1 EOPNOTSUPP (Operation not
supported)
write(1, "No data available\n", 18No data available
)     = 18
munmap(0x40016000, 4096)                = 0
exit_group(75)                          = ?

Thanks in advance ..

Ing. Ariel Martín Beliera
Telefónica Empresas
Gerencia de Operaciones TIC
E-Mail: belieraa@advance.com.ar


_______________________________________________
vortex mailing list
vortex@scyld.com
http://www.scyld.com/mailman/listinfo/vortex