[realtek] Linux Driver for DLink DFE-530TX+

Joe Fago cfago@tconl.com
Wed, 21 Feb 2001 21:37:28 -0600


Hi,

I got this driver working, but the 2.2.18 stock rtl8139.o and 8139too.o modules
do not detect the card. I tried 2.4.1, and its 8139too.o module did not detect
it either. I had to use the pci-scan.o and rtl8139.o v1.13 combo from

http://www.scyld.com/network/rtl8139.html

(on gateway machine...)
$ lspci -vx

00:09.0 Class 0200: 1186:1300 (rev 10)
        Subsystem: 1186:1301
        Flags: bus master, medium devsel, latency 32, IRQ 11
        I/O ports at 6100
        Memory at e0802000 (32-bit, non-prefetchable)
00: 86 11 00 13 07 00 80 02 10 00 00 02 00 20 00 00
10: 01 61 00 00 00 20 80 e0 00 00 00 00 00 00 00 00
20: 00 00 00 00 00 00 00 00 00 00 00 00 86 11 01 13
30: 00 00 00 00 00 00 00 00 00 00 00 00 0b 01 20 40

$ lspci -vx
(on another machine...)
00:0a.0 Ethernet controller: D-Link System Inc: Unknown device 1300 (rev 10)
        Subsystem: D-Link System Inc: Unknown device 1301
        Flags: bus master, medium devsel, latency 64, IRQ 10
        I/O ports at e000
        Memory at e6000000 (32-bit, non-prefetchable)
00: 86 11 00 13 07 00 80 02 10 00 00 02 00 40 00 00
10: 01 e0 00 00 00 00 00 e6 00 00 00 00 00 00 00 00
20: 00 00 00 00 00 00 00 00 00 00 00 00 86 11 01 13
30: 00 00 00 00 00 00 00 00 00 00 00 00 0a 01 20 40

(gateway...)
$ cat /proc/pci

  Bus  0, device   9, function  0:
    Ethernet controller: Unknown vendor Unknown device (rev 16).
      Vendor id=1186. Device id=1300.
      Medium devsel.  Fast back-to-back capable.  IRQ 11.  Master Capable.  Latency=32.  Min Gnt=32.Max Lat=64.
      I/O at 0x6100 [0x6101].
      Non-prefetchable 32 bit memory at 0xe0802000 [0xe0802000].





`working' is really an overstatement...

On large sustained ftps my transfer rate is only about 10-16 MBits/S.
I usually see several of these:

exiting interrupt, intr_status=00000011

[Rx Buffer overflow, set when the Rx ring overflows due to high interrupt latency]

then some 00000030s
-- which I have no clue what those could be.


Eventually, I get: Oversized Ethernet frame, status 84f2c759!
                       or:  Oversized Ethernet frame, status d00c1e7a!

it changes each time.

Good news (sort of) is that:

$ ifconfig eth1 down
$ ifconfig eth1 192.168.1.1

gets communications going again. until another large transfer.


This is my gateway, its a pentium(cyrix PR) 166MHz, 32M.
PCI config:
Burst mode enabled.
CPU to PCI Write buffer enabled.
PCI activated by level (seemed to work better than edge).


Another point is that the card is a DFE-530TX+, but the driver detects a
DFE-538TX...

----------------------------------------------------------
Some logs
----------------------------------------------------------
rtl8139.c:v1.13 1/9/2001 Donald Becker, becker@scyld.com.
 http://www.scyld.com/network/rtl8139.html
eth1: D-Link DFE-538TX (RealTek RTL8139) at 0x6100, IRQ 11, 00:50:ba:4d:7b:04.
eth1: Oversized Ethernet frame, status 84f2c759!
rtl8139.c:v1.13 1/9/2001 Donald Becker, becker@scyld.com.
 http://www.scyld.com/network/rtl8139.html
eth1: D-Link DFE-538TX (RealTek RTL8139) at 0x6100, IRQ 11, 00:50:ba:4d:7b:04.
eth1: Oversized Ethernet frame, status d70ff83a!
192.168.1.1 sent an invalid ICMP error to a broadcast.
192.168.1.1 sent an invalid ICMP error to a broadcast.


Debug level 3:

eth1: Media selection tick, Link partner 45e1.
eth1:  Other registers are IntMask c07f IntStatus 0000 RxStatus 8c00d0a.
eth1:  Chip config 10 6c.
eth1: Media selection tick, Link partner 45e1.
eth1:  Other registers are IntMask c07f IntStatus 0000 RxStatus 8c00d0a.
eth1:  Chip config 10 6c.
eth1: Media selection tick, Link partner 45e1.
eth1:  Other registers are IntMask c07f IntStatus 0000 RxStatus fac0d0a.
eth1:  Chip config 10 6c.
eth1: Media selection tick, Link partner 45e1.
eth1:  Other registers are IntMask c07f IntStatus 0000 RxStatus fac0d0a.
eth1:  Chip config 10 6c.
eth1: Media selection tick, Link partner 45e1.
eth1:  Other registers are IntMask c07f IntStatus 0000 RxStatus 17e40d0a.
eth1:  Chip config 10 6c.
eth1: Media selection tick, Link partner 45e1.
eth1:  Other registers are IntMask c07f IntStatus 0000 RxStatus 1a200d0a.
eth1:  Chip config 10 6c.
eth1: Abnormal interrupt, status 00000011.
eth1: Abnormal interrupt, status 00000010.
eth1: Abnormal interrupt, status 00000011.
eth1: Media selection tick, Link partner 45e1.
eth1:  Other registers are IntMask c07f IntStatus 0000 RxStatus ce140d0a.
eth1:  Chip config 10 6c.
eth1: Abnormal interrupt, status 00000051.
eth1: Abnormal interrupt, status 00000011.
eth1: Abnormal interrupt, status 00000021.
eth1: Media selection tick, Link partner 45e1.
eth1:  Other registers are IntMask c07f IntStatus 0000 RxStatus a6a80d0a.
eth1:  Chip config 10 6c.
eth1: Media selection tick, Link partner 45e1.
eth1:  Other registers are IntMask c07f IntStatus 0000 RxStatus ad240d0a.
eth1:  Chip config 10 6c.
eth1: Media selection tick, Link partner 45e1.
eth1:  Other registers are IntMask c07f IntStatus 0000 RxStatus ae0c0d0a.
eth1:  Chip config 10 6c.
eth1: Media selection tick, Link partner 45e1.
eth1:  Other registers are IntMask c07f IntStatus 0000 RxStatus daf80d0a.
eth1:  Chip config 10 6c.
eth1: Shutting down ethercard, status was 0x0000.