3c575 bug w/ full duplex mode

Christoph Moar christoph.moar@alpin.it
Fri Apr 28 12:15:29 2000


At 15:30 28.04.00 +0200, Bogdan Costescu wrote:
> > cardmgr[166]: executing: 'insmod
> > /lib/modules/2.2.15-2.5.0/pcmcia/3c575_cb.o full_duplex=1'
>You are forcing full duplex with this setting. What happens when you don't
>do it?

same thing. i removed the full_duplex entry.

> > kernel: eth0: Setting full-duplex based on MII #0 link partner capability
> > of 45e1.
>So the driver sets the full-duplex mode in vortex_timer (a routine
>periodically called to sense media status change). When do you actually
>run mii-diag and check your switch: immediately after inserting the module
>or some time (more than 1 minute) after?

this happens immediatly after inserting the card
I see no difference after one minute time.

> > I noticed both cards seem to report different status codes?
> > Card #1 (full duplex) gives status code 7809
> > Card #2 (half duplex) gives status code 2809
>7 means that the card is capable of 100 & 10 full-duplex, 2 that it's not.
>Strange.

indeed. I know the card can make 100mb ;)

>Please try inserting the modules without forcing full-duplex, run mii-diag
>and check the switch more than 1 minute after inserting the module.

unfortunately, no difference seen there after one minute.

>Running 'vortex-diag -a -e -mm' might also help (you can find it at the
>same place as mii-diag).

ok, so this is vortex-diag -p 0x200 -t 0

-- snip --

vortex-diag.c:v1.09 7/28/99 Donald Becker (becker@cesdis.gsfc.nasa.gov)
Assuming a 3Com Generic Vortex/Boomerag/Cyclone adapter at 0x200.
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 066f 7261 0000.
   Window 1: FIFO FIFO 0000 0000 0000 0000 0000 2000.
   Window 2: 0000 3f86 07cf 0000 0000 0000 0112 4000.
   Window 3: 0000 0060 05ea 0020 0040 1000 0800 6000.
   Window 4: 0000 0000 0000 0cc2 0003 a800 0000 8000.
   Window 5: 1ffc 0000 0000 0600 0807 06ce 06c6 a000.
   Window 6: 0000 0000 0000 0100 0000 0156 02ac c000.
   Window 7: 0000 0000 0000 0000 0000 0000 0000 e000.
Vortex chip registers at 0x200
   0x210: **FIFO** 00000000 00000055 *STATUS*
   0x220: 00000020 00000000 00080000 00000004
   0x230: 00000000 3f7bc085 09f48810 00080004
  Indication enable is 06c6, interrupt enable is 06ce.
  No interrupt sources are pending.
  Transceiver/media interfaces available:  MII.
Transceiver type in use:  MII.
  MAC settings: full-duplex.
  Station address set to 00:00:86:3f:cf:07.
  Configuration options 4000.
  EEPROM address sizing read returned 5555/10b7/5555.
Parsing the EEPROM of a 3Com Vortex/Boomerang:
  The CardBus product ID is 10b7 5157.
  3Com Node Address 00:00:86:3F:CF:07 (used as a unique ID only).
  OEM Station address 00:00:86:3F:CF:07 (used as the ethernet address).
  Manufacture date (MM/DD/YYYY) 3/10/1998, division 6, product NV.
Options: none.
   Vortex format checksum is correct (0022 vs. 0022).
   Cyclone format checksum is incorrect (0x1a vs. 00).
   Hurricane format checksum is incorrect (0x6b vs. 00).
  MII PHY found at address 0, status 282d.
  MII PHY 0 at #0 transceiver registers:
    3000 282d 0300 e54b 00a1 45e1 0003 0000
    0000 0000 0000 0000 0000 0000 0000 0000
    0140 002d 0700 0000 0000 0000 0000 0000
    0000 0000 0000 0000 0000 0000 0000 0000.
  MII PHY #0 transceiver registers:
    3000 282d 0300 e54b 00a1 45e1 0001 0000
    0000 0000 0000 0000 0000 0000 0000 0000
    0140 0000 0700 0000 0000 0000 0000 0000
    0000 0000 0000 0000 0000 0000 0000 0000.
  Basic mode control register 0x3000: Auto-negotiation enabled.
  Basic mode status register 0x282d ... 282d.
    Link status: established.
    Capable of  100baseTx 10baseT.
    Able to perform Auto-negotiation, negotiation complete.
  Vendor ID is 00:c0:39:--:--:--, model 20 rev. 11.
    Vendor/Part: TDK transceiver (unknown type).
  I'm advertising 00a1: 100baseTx 10baseT
    Advertising no additional info pages.
    IEEE 802.3 CSMA/CD protocol.
  Link partner capability is 45e1: Flow-control 100baseTx-FD 100baseTx 
10baseT-FD
  10baseT.
    Negotiation  completed.
   TDK 78q2120 vendor-specific registers 16..18 are 0x0140 0x0000 0x0700
       Link polarity is detected as normal.
       Auto-negotiation complete, 100Mbps half duplex.
       Rx link in pass state, PLL locked.
       No new link status events.

-- snip --

so it looks like this card is advertising wrong duplex
settings?
" Capable of  100baseTx 10baseT. "
strange enough.

still happy for any help anyone might come up with

regards

Christoph.


--
Dipl. Inform. Univ. Christoph Moar             tel +39 0471 711037
alpin gmbh srl                                 fax +39 0471 711319
christoph.moar@alpin.it                        gsm +39 348 3057012
-------------------------------------------------------------------
To unsubscribe send a message body containing "unsubscribe"
to linux-vortex-request@beowulf.org