[realtek] Realtek 8139too and mii-tool. Wrong link state.

Donald Becker becker@scyld.com
Fri Jun 21 16:35:01 2002


On Sat, 22 Jun 2002, Evgeniy Polyakov wrote:

> Subject: [realtek] Realtek 8139too and mii-tool. Wrong link state.
>
> Description: mii-tool from net-tools-1.60-66( and probably others)
> always says, that link is dead in spite of the link is ok or not.
> With, for example 3com 905c-tx tornado, mii-tool works fine.

I'm guessing that 8139too doesn't return the proper values for the
ioctl() call.

> And also, can you please give me a hint about meaning of rtl registers,
> returned by rtl8139-diag:

Use 'rtl8139-diag -a -m' to interpret the transceiver management
registers.

> <...>
> RealTek chip registers at 0xe000
>  0x000: 3026c000 0000307c 80000000 40000000 00002000 00002000 00002000
> 00002000
>  0x020: 09e4e000 09e4e600 09e4ec00 09e4f200 09f30000 01000000 0000fff0
> 20200000
>  0x040: 74000000 00000000 70af5fb8 00000000 004d1001 00000000 0088c11c
> 00100000
>  0x060: 1000000f 01e17809 00000000 00000000 00000044 000f7bc0 b0f243b9
          ^^^^     ^^^^^^^^ ^^^^^^^^
These are the link management registers.

You don't have link beat, and are advertising 0x01e1 (10+100/HDX+FDX).

> since in 0x06c( third quadro-byte in 0x060 line :) ) first bit in 1
> means link enabled and accordingly 0 means link is dead.

Yup.  And 'mii-diag' or 'mii-tool' will tell you this.

-- 
Donald Becker				becker@scyld.com
Scyld Computing Corporation		http://www.scyld.com
410 Severn Ave. Suite 210		Second Generation Beowulf Clusters
Annapolis MD 21403			410-990-9993