Re: Realtek 8139too and mii-tool. Wrong link state.

Donald Becker <[email protected]>
Newsgroups gmane.linux.drivers.realtek.devel
Message-ID <Pine.LNX.4.33.0206211630090.1669-100000@presario>
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				[email protected]
Scyld Computing Corporation		http://www.scyld.com
410 Severn Ave. Suite 210		Second Generation Beowulf Clusters
Annapolis MD 21403			410-990-9993
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.