[realtek] on-board rtl8139 fails.

Jarl Friis jarl@softace.dk
Sat Dec 7 08:56:01 2002


Hi Donald.

Donald Becker <becker@scyld.com> writes:

> On 7 Dec 2002, Jarl Friis wrote:
> 
> > I bought a Medion MD5400 Notebook with an *onboard* rtl8139 ethernet
> > chip. System is SuSE 8.1.
> 
> Key elements:
>   notebook
>   on-board
> That might mean that it's a mini-PCI card with IRQ mapping that must be
> set up by the OS.
> 
> First, what kernel version are you running?

2.4.19

Do you want me to try with a newer kernel? 2.4.20 or 2.5.x?

> 
> > I downloaded netdrivers-3.3 and tried the rtl8139 with debug=2 In the
> > hope for any help I here post some information to diagnosticise the
> > problem.
> 
> > Dec  7 01:16:09 hermes kernel: eth0: Transmit timeout, status 0d 0004 media 10.
> > Dec  7 01:16:09 hermes kernel: eth0: RTL8139 Interrupt line blocked, status 4.
> 
> OK, this is your problem.

Is this what is also known as an "interrupt conflict"?

> 
> What was the driver detection message?

I guess this is what you are asking about.

Dec  7 01:14:40 hermes kernel: rtl8139.c:v1.22 11/17/2002 Donald Becker, becker@scyld.com.
Dec  7 01:14:40 hermes kernel:  http://www.scyld.com/network/rtl8139.html
Dec  7 01:14:40 hermes kernel: eth0: RealTek RTL8139C Fast Ethernet at 0x1800, IRQ 9, 00:40:ca:bb:ae:ac.
Dec  7 01:15:17 hermes kernel: eth0: no IPv6 routers present

> 
> > The 'lspci -vv' gives me the following information about the adapter:
> > 00:08.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)
> > 	Subsystem: FIRST INTERNATIONAL Computer Inc: Unknown device 2420
> > 	Interrupt: pin A routed to IRQ 9
> 
> > The 'lspci -n -vv' gives me the following information about the adapter:
> > 
> > 00:08.0 Class 0200: 10ec:8139 (rev 10)
> > 	Subsystem: 1509:2420
> > 	Interrupt: pin A routed to IRQ 9
> 
> OK, IRQ 9

There are other device with this IRQ too, these are as follows (partial output
from lspci -vv):
00:06.0 Communication controller: Intel Corp.: Unknown device 1040
	Subsystem: Unknown device 16be:1040
	Control: I/O- Mem- BusMaster- SpecCycle- MemWINV+ VGASnoop- ParErr- Stepping- SERR- FastB2B-
	Status: Cap+ 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
	Interrupt: pin A routed to IRQ 9
	Region 0: Memory at e0400000 (32-bit, non-prefetchable) [disabled] [size=4M]
	Capabilities: [e0] Power Management version 2
		Flags: PMEClk- DSI- D1- D2+ AuxCurrent=375mA PME(D0-,D1-,D2+,D3hot+,D3cold+)
		Status: D0 PME-Enable- DSel=0 DScale=0 PME-

00:08.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)
	Subsystem: FIRST INTERNATIONAL Computer Inc: Unknown device 2420
	Control: I/O- Mem- BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
	Status: Cap+ 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
	Interrupt: pin A routed to IRQ 9
	Region 0: I/O ports at 1800 [disabled] [size=256]
	Region 1: Memory at e0004000 (32-bit, non-prefetchable) [disabled] [size=256]
	Capabilities: [50] Power Management version 2
		Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=375mA PME(D0-,D1+,D2+,D3hot+,D3cold+)
		Status: D0 PME-Enable- DSel=0 DScale=0 PME-

00:0c.0 CardBus bridge: ENE Technology Inc: Unknown device 1410
	Subsystem: FIRST INTERNATIONAL Computer Inc: Unknown device 1861
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
	Status: Cap+ 66Mhz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
	Latency: 168, cache line size 08
	Interrupt: pin A routed to IRQ 9
	Region 0: Memory at 10000000 (32-bit, non-prefetchable) [size=4K]
	Bus: primary=00, secondary=02, subordinate=05, sec-latency=176
	Memory window 0: 10400000-107ff000 (prefetchable)
	Memory window 1: 10800000-10bff000
	I/O window 0: 00004000-000040ff
	I/O window 1: 00004400-000044ff
	BridgeCtl: Parity- SERR- ISA- VGA- MAbort- >Reset- 16bInt- PostWrite+
	16-bit legacy interface ports at 0001

00:0d.0 FireWire (IEEE 1394): Lucent Microelectronics FW323 (rev 04) (prog-if 10 [OHCI])
	Subsystem: FIRST INTERNATIONAL Computer Inc: Unknown device 1881
	Control: I/O- Mem- BusMaster- SpecCycle- MemWINV+ VGASnoop- ParErr- Stepping- SERR- FastB2B-
	Status: Cap+ 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
	Interrupt: pin A routed to IRQ 9
	Region 0: Memory at e0005000 (32-bit, non-prefetchable) [disabled] [size=4K]
	Capabilities: [44] Power Management version 2
		Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA PME(D0+,D1+,D2+,D3hot+,D3cold-)
		Status: D0 PME-Enable- DSel=0 DScale=0 PME+

02:00.0 Ethernet controller: Digital Equipment Corporation DECchip 21142/43 (rev 41)
	Subsystem: Netgear: Unknown device 2100
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
	Status: Cap- 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
	Latency: 64 (5000ns min, 10000ns max)
	Interrupt: pin A routed to IRQ 9
	Region 0: I/O ports at 4000 [size=128]
	Region 1: Memory at 10800000 (32-bit, non-prefetchable) [size=1K]
	Expansion ROM at 10400000 [size=256K]


By the way, the built-in RTL8139 does not work with the DECchip PCMCIA card
unplugged. 

Would you like to have all the output of lspci -vv ?

> 
> > Realtek station address 00:40:ca:bb:ae:ac, chip type 'rtl8139C'.
> >   Receiver configuration: Reception disabled
> ..
> >   No interrupt sources are pending.
> 
> Try running this while the interface is "up" and check for interrupt
> sources.  My guess is that you will see unhandled interrupts.

OK. This output is slightly different, but I can't see any unhandled
interrupts. Here it comes:
rtl8139-diag.c:v2.10 9/18/2002 Donald Becker (becker@scyld.com)
 http://www.scyld.com/diag/index.html
Index #1: Found a RealTek RTL8139 adapter at 0x1800.
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 0x1800
 0x000: bbca4000 0000acae 80000000 40002000 00002000 00002000 00002000 00002000
 0x020: 0af78010 0af78610 0af78c10 0af79210 0af70000 0d000000 0000fff0 0000c07f
 0x040: 74400400 0000940e c03fbea9 00000000 008d1000 00000000 0088e510 00100b34
 0x060: 1000000f 01e1782d 000140a1 00000000 00000704 000207c0 60f60c59 7b732660.
Realtek station address 00:40:ca:bb:ae:ac, chip type 'rtl8139C'.
  Receiver configuration: Normal unicast and hashed multicast
     Rx FIFO threshold 256 bytes, maximum burst 256 bytes, 32KB ring
  Transmitter enabled with normal settings, maximum burst 256 bytes.
    Tx entry #0 status 00002000 incomplete, 0 bytes.
    Tx entry #1 status 00002000 incomplete, 0 bytes.
    Tx entry #2 status 00002000 incomplete, 0 bytes.
    Tx entry #3 status 00002000 incomplete, 0 bytes.
  Flow control: Tx disabled  Rx disabled.
  The chip configuration is 0x10 0x8d, MII half-duplex mode.
  No interrupt sources are pending.
Decoded EEPROM contents:
   PCI IDs -- Vendor 0x10ec, Device 0x8139.
   PCI Subsystem IDs -- Vendor 0x1509, Device 0x2420.
   PCI timer settings -- minimum grant 32, maximum latency 64.
  General purpose pins --  direction 0xe5  value 0x12.
  Station Address 00:40:CA:BB:AE:AC.
  Configuration register 0/1 -- 0x8d / 0xc2.
 EEPROM active region checksum is 098e.
EEPROM contents (64 words):
 0x00:  8129 10ec 8139 1509 2420 4020 e512 4000  )___9___ $ @___@
 0x08:  bbca acae 8d10 f7c2 8801 03b9 60f4 071a  _____________`__
 0x10:  dfa3 9836 dfa3 9836 03b9 60f4 1a1a 1a1a  __6___6____`____
 0x18:  0000 e4b2 0000 0000 0000 0000 0000 2000  _______________ 
 0x20:  0000 0000 0000 0000 0000 0000 0000 0000  ________________
      ...
 The RTL8139 does not use a MII transceiver.
 It does have internal MII-compatible registers:
   Basic mode control register   0x1000.
   Basic mode status register    0x782d.
   Autonegotiation Advertisement 0x01e1.
   Link Partner Ability register 0x40a1.
   Autonegotiation expansion     0x0001.
   Disconnects                   0x0000.
   False carrier sense counter   0x0000.
   NWay test register            0x0704.
   Receive frame error count     0x0000.


Again, thanks for your time.

Jarl