2005-02-14 18:02:29

by Alexandre

[permalink] [raw]
Subject: strange bug with realtek 8169 card

Hello,

I bought 2 Ovislink GE8169 because they're made with realtek 8169 chipset.
I make a new kernel with r8169 compiled as a module.
I can load r8169.o module without any error or warning. Cards negociate
at 1000Mb/s, so everything looks ok.
I can ping both from each other.

and now is the strange behavior:
I try a ftp download, and if it's small file I can dowload without a
problem... ONCE! Because if I "get" the same file (or another one) in
the same ftp session (or other) it looks like freezing...
If I try to download "big" file (like ie: linux-2.4.29.tar.bz2), it freezes.
In fact after many try, I found that after each dowload (or begin of) I
can't ping anymore the other pc... I have to down and up the cards (on
both pc) to have it working again...

The same behavior occurs with scp. And doesn't occur with 10/100 Mb/s
NIC inside the both same pc.
This problem occurs with 2.4.27, 2.4.28, 2.4.29 kernels... (didn't try
with "lower" kernels).

If I look in every log file I can (dmesg, kernel.log, syslog, debug)
there is no message...
Have any idea how to ask more r8169.o module to be more verbose?

Or any idea why the problem occurs and how to correct this (if it is
possbile)?

thanks by advance,

Alexandre


2005-02-15 08:19:10

by Francois Romieu

[permalink] [raw]
Subject: Re: strange bug with realtek 8169 card

Alexandre <[email protected]> :
[...]
> Or any idea why the problem occurs and how to correct this (if it is
> possbile)?

Upgrade the compiler if you use gcc 2.95.x.

--
Ueimor

2005-02-16 18:01:23

by Alexandre

[permalink] [raw]
Subject: Re: strange bug with realtek 8169 card

Francois Romieu wrote:
>>Or any idea why the problem occurs and how to correct this (if it is
>>possbile)?
>
>
> Upgrade the compiler if you use gcc 2.95.x.
I was using it... and tried it today with gcc 3.0, and the problem
always occurs !

Any other idea ?

thanks again
(ou devrais-je dire : merci encore)

Alexandre

2005-02-16 18:28:13

by Francois Romieu

[permalink] [raw]
Subject: Re: strange bug with realtek 8169 card

Alexandre <[email protected]> :
[...]
> Any other idea ?

Please try:
http://www.fr.zoreil.com/~francois/misc/20050202-2.4.29-r8169.c-test.patch

Compile with gcc-3.x and send/publish _complete_ dmesg + lspci -vx +
cat /proc/interrupts + ifconfig if it still hangs.

--
Ueimor

2005-02-16 18:35:31

by Felipe W Damasio

[permalink] [raw]
Subject: Re: strange bug with realtek 8169 card



Francois Romieu wrote:
> Please try:
> http://www.fr.zoreil.com/~francois/misc/20050202-2.4.29-r8169.c-test.patch

404 Not Found

Felipe Damasio

2005-02-16 18:54:29

by Paulo Marques

[permalink] [raw]
Subject: Re: strange bug with realtek 8169 card

Felipe W Damasio wrote:
>
> Francois Romieu wrote:
>
>> Please try:
>> http://www.fr.zoreil.com/~francois/misc/20050202-2.4.29-r8169.c-test.patch
>
> 404 Not Found

Try:

http://www.fr.zoreil.com/people/francois/misc/20050202-2.4.29-r8169.c-test.patch

--
Paulo Marques - http://www.grupopie.com

All that is necessary for the triumph of evil is that good men do nothing.
Edmund Burke (1729 - 1797)

2005-02-16 19:26:38

by shishir verma

[permalink] [raw]
Subject: Re: strange bug with realtek 8169 card

by any chance is the watchdog enabled for the card...because i had a
similar problem with a broadcom gigabit card....i commented the
watchdog code and made the module again...
it worked like a charm for me after that...
-shishir


On Wed, 16 Feb 2005 18:53:24 +0000, Paulo Marques <[email protected]> wrote:
> Felipe W Damasio wrote:
> >
> > Francois Romieu wrote:
> >
> >> Please try:
> >> http://www.fr.zoreil.com/~francois/misc/20050202-2.4.29-r8169.c-test.patch
> >
> > 404 Not Found
>
> Try:
>
> http://www.fr.zoreil.com/people/francois/misc/20050202-2.4.29-r8169.c-test.patch
>
> --
> Paulo Marques - http://www.grupopie.com
>
> All that is necessary for the triumph of evil is that good men do nothing.
> Edmund Burke (1729 - 1797)
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to [email protected]
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
>

2005-02-16 19:36:28

by Francois Romieu

[permalink] [raw]
Subject: Re: strange bug with realtek 8169 card

shishir verma <[email protected]> :
> by any chance is the watchdog enabled for the card...because i had a
> similar problem with a broadcom gigabit card....i commented the
> watchdog code and made the module again...
> it worked like a charm for me after that...

The original user wrote:
[...]
> > If I look in every log file I can (dmesg, kernel.log, syslog, debug)
> > there is no message...

-> the watchdog would have caused something to appear.

I'd rather have a bit more information before resorting to super-voodoo.

--
Ueimor

2005-02-16 19:57:32

by Alexandre

[permalink] [raw]
Subject: Re: strange bug with realtek 8169 card

Francois Romieu wrote:
> shishir verma <[email protected]> :
>
>>by any chance is the watchdog enabled for the card...because i had a
>>similar problem with a broadcom gigabit card....i commented the
>>watchdog code and made the module again...
>>it worked like a charm for me after that...
>
>
> The original user wrote:
> [...]
>
>>>If I look in every log file I can (dmesg, kernel.log, syslog, debug)
>>>there is no message...
>
>
> -> the watchdog would have caused something to appear.
>
> I'd rather have a bit more information before resorting to super-voodoo.
thanks again, unfortunately PCs with those cards are at work, and from
today that's holidays until march 7th... :D
so I can't test last solution (patch) until this day...

Alex, who will try maybe tomorrow to go there if he has time

2005-02-16 20:55:22

by Francois Romieu

[permalink] [raw]
Subject: Re: strange bug with realtek 8169 card

Alexandre <[email protected]> :
[...]
> thanks again, unfortunately PCs with those cards are at work, and from
> today that's holidays until march 7th... :D

Excellent. Your testing will not impact the normal production.

I have done a minor update to sync with Jeff's latest -netdev
http://www.fr.zoreil.com/~romieu/misc/20050216-2.4.29-r8169.c-test.patch

--
Ueimor