[realtek] strange behaviour of rtl8139 card

Pawel pp174754@zodiac.mimuw.edu.pl
Thu Apr 11 11:50:29 2002


Hi

I bought ethernet card with 8139 chip (digitus DN-1001)
I have inserted it into pci slot and turn my linux on (red hat 7.1,
kernel 2.4.3) and then compiled driver (rtl8139.c) from scyld site and 
inserted the driver into kernel. Whats the problem ?
card was working properly but very slow. It lost about 60% IP datagrams.
But thats not all. I restarted my computer and turn on windows 2000, then
loaded driver from diskette and... the card was working perfectly.
So I restarted my computer again, turn on the linux, inserted driver(the 
same as before) and ... card was working perfectly !?!
isn't it strange?

But when I removed the card from computer and later inserted it back.
i had to start windows again, because of the same problem.

these are registers before i started win2k:

./rtl8139-diag -a
rtl8139-diag.c:v2.05 1/28/2002 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: 3c440200 00000d04 80000000 00000000 0008a062 0008a062 0008a062 
0008a062
 0x020: 0f400000 0f400600 0f400c00 0f401200 0f340000 0d0a0000 d5b0d5a0 
0000c07f
 0x040: 74000600 0000d68e a1ef8fe0 00000000 006d1000 00000000 0088c110 
00100000
 0x060: 1100f00f 01e1782d 000141e1 00000000 00000004 000307c8 b0f243b9 
8a36df43.  No interrupt sources are pending.
 The chip configuration is 0x10 0x6d, MII full-duplex mode.

and these are after, (and now card works ok)

./rtl8139-diag -a
rtl8139-diag.c:v2.05 1/28/2002 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: 3c440200 00000d04 80000000 00000000 0008a072 0008a042 0008a072 
0008a042
 0x020: 0f384000 0f384600 0f384c00 0f385200 0f340000 0d0a0000 39583948 
0000c07f
 0x040: 74000600 0000d68e 16727706 00000000 006d1000 00000000 0088c110 
00100000
 0x060: 1100f00f 01e1782d 000141e1 00000000 00000004 000307c8 b0f243b9 
8a36df43.  No interrupt sources are pending.
 The chip configuration is 0x10 0x6d, MII full-duplex mode.

I'd like to know
1) change of which registers has solved the problem ?
2) there's a lot of registers in the rtl8139 specification (which i've
downloaded from realtek). How to find the descriptions of registers which 
are printed by rtl8139-diag program ?
3) what do I have to do if i don't want to start windows after inserting
this card to my computer.(how to configure it under linux)

I'll be very grateful for help
Paweł
<p.przeborowski@students.mimuw.edu.pl>