[realtek] 8139 autonegotiation problem

Victor Rivero vrivero@teleline.es
Sat Apr 27 14:06:03 2002


 Hello ,  first of all sorry for my english (i'm from spain), i write you 
because i have a serious problem with my ethernet adapter, i have an ovislink 
RTL8139-B, i'm connected to a hub at 10baseT, i've had always problems to 
boot correctly the card because (i think) it couldn't do the autonegotiation, 
but i solved it forcing the media to 10baseT (with mii-diag or mii-tool).
        The serious problem began when since kernel 2.4.5 or 2.4.4 (i don't 
know it  exactly), i couldn't solve the problem forcing with mii-diag, so  it 
says  that there is no link. I'm sure that my cables are perfect, so i don't 
know what can i do, if you  can help me it would be great.
        I tried with kernel 2.4.18 (I heard that it has new support for 
ovislink cards) but it didn't do anything different ( the card lights off and 
the hub sometimes but not always blinks).

thank you for reading my problem, i hope you could me answer something.
(i'm not subscribed to the list)

Victor Rivero
vrivero@teleline.es

        here is some of my information  (Debian , 2.4.18):

victor:~# lsmod
Module                  Size  Used by    Not tainted
emu10k1                50592   1
ac97_codec              9504   0  [emu10k1]
agpgart                12384   0  (unused)
8139too                13920   1
mii                     1040   0  [8139too]


victor:~# cat /proc/pci
PCI devices found:
  Bus  0, device   0, function  0:
    Host bridge: VIA Technologies, Inc. VT82C693A/694x [Apollo PRO133x] (rev 
196).
      Prefetchable 32 bit memory at 0xd0000000 [0xd3ffffff].
  Bus  0, device   1, function  0:
    PCI bridge: VIA Technologies, Inc. VT82C598/694x [Apollo MVP3/Pro133x 
AGP] (rev 0).
      Master Capable.  No bursts.  Min Gnt=12.
  Bus  0, device   7, function  0:
    ISA bridge: VIA Technologies, Inc. VT82C596 ISA [Mobile South] (rev 35).
  Bus  0, device   7, function  1:
    IDE interface: VIA Technologies, Inc. Bus Master IDE (rev 16).
      Master Capable.  Latency=32.
      I/O at 0xd000 [0xd00f].
  Bus  0, device   7, function  2:
    USB Controller: VIA Technologies, Inc. UHCI USB (rev 17).
      IRQ 10.
      Master Capable.  Latency=32.
      I/O at 0xd400 [0xd41f].
  Bus  0, device   7, function  3:
    Host bridge: VIA Technologies, Inc. VT82C596 Power Management (rev 48).
  Bus  0, device  18, function  0:
    Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139 (rev 16).
      IRQ 5.
      Master Capable.  Latency=32.  Min Gnt=32.Max Lat=64.
      I/O at 0xd800 [0xd8ff].
      Non-prefetchable 32 bit memory at 0xd8000000 [0xd80000ff].
  Bus  0, device  19, function  0:
    Multimedia audio controller: Creative Labs SB Live! EMU10k1 (rev 8).
      IRQ 10.
      Master Capable.  Latency=32.  Min Gnt=2.Max Lat=20.
      I/O at 0xdc00 [0xdc1f].
  Bus  0, device  19, function  1:
    Input device controller: Creative Labs SB Live! (rev 8).
      Master Capable.  Latency=32.
      I/O at 0xe000 [0xe007].
  Bus  1, device   0, function  0:
    VGA compatible controller: nVidia Corporation Riva TnT2 [NV5] (rev 21).
      IRQ 11.
      Master Capable.  Latency=32.  Min Gnt=5.Max Lat=1.
      Non-prefetchable 32 bit memory at 0xd4000000 [0xd4ffffff].
      Prefetchable 32 bit memory at 0xd6000000 [0xd7ffffff].

victor:~# mii-tool
eth0: 10 Mbit, half duplex, no link

victor:~# rtl8139-diag -mmaaavvvee
rtl8139-diag.c:v2.03 5/15/2001 Donald Becker (becker@scyld.com)
 http://www.scyld.com/diag/index.html
Index #1: Found a RealTek RTL8139 adapter at 0xd800.
The RealTek chip appears to be active, so some registers will not be read.
To see all register values use the '-f' flag.
RealTek chip registers at 0xd800
 0x000: f026c000 00003a31 80000000 00000000 0008a0e7 0008a0e7 0008a06e 
0008a0e7  0x020: 07be6000 07be6600 07be6c00 07be7200 065e0000 0d000000 
0000fff0 0000c07f  0x040: 78000680 0000f78e 2c61179a 00000000 008d1001 
00000000 0088c114 00100000  0x060: 2100f00f 01e17809 00000000 00000000 
00000000 000f73c0 58fab388 ad38d843.  No interrupt sources are pending.
 The chip configuration is 0x10 0x8d, MII half-duplex mode.
EEPROM size test returned 6, 0x204a4 / 0x2.
Parsing the EEPROM of a RealTek chip:
  PCI IDs -- Vendor 0x10ec, Device 0x8139, Subsystem 0x10ec.
  PCI timer settings -- minimum grant 32, maximum latency 64.
  General purpose pins --  direction 0xc1  value 0x23.
  Station Address 00:C0:26:F0:31:3A.
  Configuration register 0/1 -- 0x8d / 0xc2.
 EEPROM active region checksum is 0901.
EEPROM contents:
  8129 10ec 8139 10ec 8139 4020 c123 c000
  f026 3a31 8d10 07c2 8801 b388 58fa 8708
  d843 ad38 d843 ad38 d843 ad38 d843 ad38
  0000 0000 0000 0000 0000 0000 0000 0000
  0000 0000 0000 0000 0000 0000 0000 0000
  0000 0000 0000 0000 0000 0000 0000 0000
  0000 0000 0000 0000 0000 0000 0000 0000
  0000 0000 0000 0000 0000 0000 0000 0000
 The word-wide EEPROM checksum is 0x5756.
 Would write new Default Media entry 0x0000 to offset 6, the current value is 
0xc123.
 The RTL8139 does not use a MII transceiver.
 It does have internal MII-compatible registers:
   Basic mode control register   0x7809.
   Basic mode status register    0x2100.
   Autonegotiation Advertisement 0x01e1.
   Link Partner Ability register 0x0000.
   Autonegotiation expansion     0x0000.
   Disconnects                   0x0000.
   False carrier sense counter   0x0000.
   NWay test register            0x0000.
   Receive frame error count     0x0000.
 MII PHY #-1 transceiver registers:1111111111100000-> 11111111111111111111  
MII read of -1:0 -> 0000.

   00001111111111100001-> 51111111111111111111  MII read of -1:1 -> 0000.
 00001111111111100010-> 11111111111111111111  MII read of -1:2 -> 0000.
 00001111111111100011-> 51111111111111111111  MII read of -1:3 -> 0000.
 00001111111111100100-> 11111111111111111111  MII read of -1:4 -> 0000.
 00001111111111100101-> 51111111111111111111  MII read of -1:5 -> 0000.
 00001111111111100110-> 11111111111111111111  MII read of -1:6 -> 0000.
 00001111111111100111-> 51111111111111111111  MII read of -1:7 -> 0000.
 00001111111111101000-> 11111111111111111111  MII read of -1:8 -> 0000.

   00001111111111101001-> 51111111111111111111  MII read of -1:9 -> 0000.
 00001111111111101010-> 11111111111111111111  MII read of -1:10 -> 0000.
 00001111111111101011-> 51111111111111111111  MII read of -1:11 -> 0000.
 00001111111111101100-> 11111111111111111111  MII read of -1:12 -> 0000.
 00001111111111101101-> 51111111111111111111  MII read of -1:13 -> 0000.
 00001111111111101110-> 11111111111111111111  MII read of -1:14 -> 0000.
 00001111111111101111-> 51111111111111111111  MII read of -1:15 -> 0000.
 00001111111111110000-> 11111111111111111111  MII read of -1:16 -> 0000.

   00001111111111110001-> 51111111111111111111  MII read of -1:17 -> 0000.
 00001111111111110010-> 11111111111111111111  MII read of -1:18 -> 0000.
 00001111111111110011-> 51111111111111111111  MII read of -1:19 -> 0000.
 00001111111111110100-> 11111111111111111111  MII read of -1:20 -> 0000.
 00001111111111110101-> 51111111111111111111  MII read of -1:21 -> 0000.
 00001111111111110110-> 11111111111111111111  MII read of -1:22 -> 0000.
 00001111111111110111-> 51111111111111111111  MII read of -1:23 -> 0000.
 00001111111111111000-> 11111111111111111111  MII read of -1:24 -> 0000.

   00001111111111111001-> 51111111111111111111  MII read of -1:25 -> 0000.
 00001111111111111010-> 11111111111111111111  MII read of -1:26 -> 0000.
 00001111111111111011-> 51111111111111111111  MII read of -1:27 -> 0000.
 00001111111111111100-> 11111111111111111111  MII read of -1:28 -> 0000.
 00001111111111111101-> 51111111111111111111  MII read of -1:29 -> 0000.
 00001111111111111110-> 11111111111111111111  MII read of -1:30 -> 0000.
 00001111111111111111-> 51111111111111111111  MII read of -1:31 -> 0000.
 0000.
 Basic mode control register 0x0000: Auto-negotiation disabled!
   Speed fixed at 10 mbps, half-duplex.
1111111111100001-> 51111111111111111111  MII read of -1:1 -> 0000.
 Basic mode status register 0x0000 ... 0000.
   Link status: not established.
   Capable of <Warning! No media capabilities>.
   Unable to perform Auto-negotiation, negotiation not complete.
 This transceiver has no vendor identification.
 I'm advertising 0000:
   Advertising no additional info pages.
   Using an unknown (non 802.3) encapsulation.
 Link partner capability is 0000:.
   Negotiation did not complete.