Re: r8169 2.2LK: Low link speed after suspend

2007-07-07 Thread Peter Missel
Hi again Francois!

  No NFS but networking or no networking at all ?

 Networking in itself was fine and stable, and with seemingly much better
 performance in large file transfers as well.

 NFS appeared to be working too, problem was just that workstation and
 server couldn't agree on file locking procedures anymore, and all existing
 files could only be read but not written to. This proved quite
 unproductive, so I had to revert.

I've been browsing bug lists a bit, and seem to suffer exactly from this one:

https://bugzilla.novell.com/show_bug.cgi?id=272268

... whenever I use an updated kernel (2.6.21.5 or 2.6.22-rc7) on the client 
end. The original 2.6.18.8.0-3 SuSE kernel works fine, and updating the 
server as well doesn't help.

Ideas welcome.

g'night.
Peter
-
To unsubscribe from this list: send the line unsubscribe netdev in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: r8169 2.2LK: Low link speed after suspend

2007-07-07 Thread Peter Missel
Hi again Francois!

2.6.22-rc7 does suspend-to-disk again ... and the bad news is, the reported 
problem (link speed 100 not 1000 after resume from suspend-to-disk) is still 
there when using 2.6.22-rc7 with your -rc6 driver patch.

The symptoms are the same as in 2.6.18 with unpatched r8169.

ifdown eth2
ifup eth2

does not help, but 

ifdown eth2
rmmod r8169
modprobe r8169
ifup eth2

does.

Now, exacty what do you want me to do with the mii-tool again? Please advise.

regards,
Peter
-
To unsubscribe from this list: send the line unsubscribe netdev in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: r8169 2.2LK: Low link speed after suspend

2007-07-03 Thread Peter Missel
Hi Francois!

 Peter Missel [EMAIL PROTECTED] :

  Unfortunately I couldn't get NFS to work with the updated kernel, so I
  had to revert to the original from SuSE 10.2.

 No NFS but networking or no networking at all ?

Networking in itself was fine and stable, and with seemingly much better 
performance in large file transfers as well.

The system log shows the occasional APIC error on CPU0 that didn't seem to 
do any harm at all, except once where it then said it had disabled the PCI 
IRQ for the Realtek LAN chip. This is not seen on 2.6.18, and occurred only 
once with (I think) the original, unpatched r8169 driver from 2.6.21.5. With 
the patched driver, just the APIC error message appears with no device 
related information at all, so I can't really say whether this is anything to 
do with the Realtek LAN at all.

NFS appeared to be working too, problem was just that workstation and server 
couldn't agree on file locking procedures anymore, and all existing files 
could only be read but not written to. This proved quite unproductive, so I 
had to revert.

regards,
Peter
-
To unsubscribe from this list: send the line unsubscribe netdev in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: r8169 2.2LK: Low link speed after suspend

2007-07-02 Thread Jens Stroebel
Francois Romieu wrote:
 Francois Romieu [EMAIL PROTECTED] :
 [...]
 The patch will not apply directly against 2.6.21.5. Is it an option for
 you to try 2.6.22-rc6 or are you stuck with 2.6.21.5 ?
 
 If you feel adventurous, you will find a compile-tested-only patchkit for
 2.6.21.5 here:
 http://www.fr.zoreil.com/linux/kernel/2.6.x/2.6.21.5
 or:
 http://www.fr.zoreil.com/people/francois/misc/20060630-2.6.21.5-r8169-test.patch
 
 The content should be almost the same as the 2.6.22-rc6 patchkit dated
 from 2007/06/28 (i.e. pending 2.6.23 merge).

  Wow, great; I applied it to the kernel build this morning;
in itself, it does not stop the blocking behavior from happening.
But I will try to add the patch I mentioned in the previous messages of
which you said it shouldn't be used without applying the patchset first.

greets,
   jens
-- 
[EMAIL PROTECTED]
23.56...drifting
By caffeine alone I set my mind in motion, By the beans of Java
do thoughts acquire speed,  hands acquire shaking,  the shaking
becomes a warning, By caffeine alone do I set my mind in motion
-
To unsubscribe from this list: send the line unsubscribe netdev in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: r8169 2.2LK: Low link speed after suspend

2007-07-02 Thread Jens Stroebel
Jens Stroebel wrote:
 Francois Romieu wrote:
 Francois Romieu [EMAIL PROTECTED] :
 [...]
 The patch will not apply directly against 2.6.21.5. Is it an option for
 you to try 2.6.22-rc6 or are you stuck with 2.6.21.5 ?
 If you feel adventurous, you will find a compile-tested-only patchkit for
 2.6.21.5 here:
 http://www.fr.zoreil.com/linux/kernel/2.6.x/2.6.21.5
 or:
 http://www.fr.zoreil.com/people/francois/misc/20060630-2.6.21.5-r8169-test.patch

 The content should be almost the same as the 2.6.22-rc6 patchkit dated
 from 2007/06/28 (i.e. pending 2.6.23 merge).

 Wow, great; I applied it to the kernel build this morning;
 in itself, it does not stop the blocking behavior from happening.
 But I will try to add the patch I mentioned in the previous messages of
 which you said it shouldn't be used without applying the patchset first.

Still the same hard-lockup behavior (with the patch mentioned before,
which is not part of your patchset but remedies the blocking) as without
your patchkit applied first.

greets,
   drifter
-- 
[EMAIL PROTECTED]
23.56...drifting
By caffeine alone I set my mind in motion, By the beans of Java
do thoughts acquire speed,  hands acquire shaking,  the shaking
becomes a warning, By caffeine alone do I set my mind in motion
-
To unsubscribe from this list: send the line unsubscribe netdev in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: r8169 2.2LK: Low link speed after suspend

2007-07-02 Thread Francois Romieu
Peter Missel [EMAIL PROTECTED] :
[...]
 Unfortunately I couldn't get NFS to work with the updated kernel, so I had to 
 revert to the original from SuSE 10.2.

No NFS but networking or no networking at all ?

-- 
Ueimor
-
To unsubscribe from this list: send the line unsubscribe netdev in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: r8169 2.2LK: Low link speed after suspend

2007-07-01 Thread Peter Missel
Bonjour Francois!

 If you feel adventurous, you will find a compile-tested-only patchkit for
 2.6.21.5 here:
 http://www.fr.zoreil.com/linux/kernel/2.6.x/2.6.21.5
 or:
 http://www.fr.zoreil.com/people/francois/misc/20060630-2.6.21.5-r8169-test.
patch

 The content should be almost the same as the 2.6.22-rc6 patchkit dated
 from 2007/06/28 (i.e. pending 2.6.23 merge).


Many thanks!

The patch applies without failure; I'm getting a warning during build,

  CC [M]  drivers/net/r8169.o
drivers/net/r8169.c: In function ‘rtl8169_start_xmit’:
drivers/net/r8169.c:2341: warning: ‘txd’ may be used uninitialized in this 
function

After installing and loading the new driver, I still do have a gigabit 
connection, which is good. I'll be reporting about the suspend/resume 
behaviour next.

regards,
Peter
-
To unsubscribe from this list: send the line unsubscribe netdev in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: r8169 2.2LK: Low link speed after suspend

2007-07-01 Thread Francois Romieu
Peter Missel [EMAIL PROTECTED] :
[...]
 The patch applies without failure; I'm getting a warning during build,
 
   CC [M]  drivers/net/r8169.o
 drivers/net/r8169.c: In function ‘rtl8169_start_xmit’:
 drivers/net/r8169.c:2341: warning: ‘txd’ may be used uninitialized in this 
 function

It's known and harmless. Blame gcc :o)

-- 
Ueimor
-
To unsubscribe from this list: send the line unsubscribe netdev in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: r8169 2.2LK: Low link speed after suspend

2007-06-30 Thread Peter Missel
Hello Francois!

I have finally gotten round to updating the kernel on this workstation.

It is now on 2.6.21.5 as downloaded from www.kernel.org, built for AMD64.

Unfortunately, the problem is not gone. After suspend-to-disk and resume, link 
speed is 100. Unplugging and replugging the cable does not help. Unloading 
and reloading the driver module brings it back up to 1000.

But now I should have a driver that supports mii_tool, right?

Since I cannot seem to find this tool available for download, could you please 
give me a pointer, or mail me the source? 

Many thanks!

regards,
Peter
-
To unsubscribe from this list: send the line unsubscribe netdev in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: r8169 2.2LK: Low link speed after suspend

2007-06-30 Thread Francois Romieu
Peter Missel [EMAIL PROTECTED] :
[...]
 It is now on 2.6.21.5 as downloaded from www.kernel.org, built for AMD64. 
 Unfortunately, the problem is not gone. After suspend-to-disk and resume,
 link speed is 100. Unplugging and replugging the cable does not help.
 Unloading and reloading the driver module brings it back up to 1000.

Ok.

 But now I should have a driver that supports mii_tool, right ?

Yes.

 Since I cannot seem to find this tool available for download, could you
 please give me a pointer, or mail me the source? 

Oops, mii-tool is not included in the net-tool package by Suse.

You can follow http://freshmeat.net/projects/mii-tool.

/me digs in the pending bugs mailbox...

Apparently there is no currently known version of the kernel/driver
whose behavior would be different, right ?

Can you try if it is enough to bring the link back to 1000 to:
- ifconfig down/up the adapter
- kick it with mii-tool

Whatever the result, it would be nice to test the latest patchkit which
will go into mainline (i.e. any of:
http://www.fr.zoreil.com/people/francois/misc/20070628-2.6.22-rc6-r8169-test.patch
http://www.fr.zoreil.com/linux/kernel/2.6.x/2.6.22-rc6/r8169-20070628/
)

The patch will not apply directly against 2.6.21.5. Is it an option for
you to try 2.6.22-rc6 or are you stuck with 2.6.21.5 ?

-- 
Ueimor
-
To unsubscribe from this list: send the line unsubscribe netdev in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: r8169 2.2LK: Low link speed after suspend

2007-06-30 Thread Francois Romieu
Francois Romieu [EMAIL PROTECTED] :
[...]
 The patch will not apply directly against 2.6.21.5. Is it an option for
 you to try 2.6.22-rc6 or are you stuck with 2.6.21.5 ?

If you feel adventurous, you will find a compile-tested-only patchkit for
2.6.21.5 here:
http://www.fr.zoreil.com/linux/kernel/2.6.x/2.6.21.5
or:
http://www.fr.zoreil.com/people/francois/misc/20060630-2.6.21.5-r8169-test.patch

The content should be almost the same as the 2.6.22-rc6 patchkit dated
from 2007/06/28 (i.e. pending 2.6.23 merge).

Time to go downtown. The lights are much brighter there.

-- 
Ueimor
-
To unsubscribe from this list: send the line unsubscribe netdev in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: r8169 2.2LK: Low link speed after suspend

2007-05-01 Thread Peter Missel
Hi Francois!

Sorry, returning to this issue took me longer than anticipated before I could 
return to the issue.

 Hardly: the r8169 driver has been modified by ~40 patches from 2.6.18 to
 now.

 There is an ugly hack^W^W quick backport for 2.6.18 at:
 http://www.fr.zoreil.com/people/francois/backport/r8169/20070418-00

 It compiles but I do not know if it works and I strongly suggest to use
 a more recent kernel package anyway.

Unfortunately the driver that comes with 2.6.18 doesn't appear to support 
mii-tool. I get this message:

Mars:~ # mii-tool -w eth2
SIOCGMIIPHY on 'eth2' failed: Operation not supported

Next I'll be looking at the provided backport. Also, I'll be confronted with 
SuSE 10.2 and the RTL8111B at work next week.

I'll keep you updated.

Peter
-
To unsubscribe from this list: send the line unsubscribe netdev in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: r8169 2.2LK: Low link speed after suspend

2007-05-01 Thread Francois Romieu
Peter Missel [EMAIL PROTECTED] :
[...]
 Sorry, returning to this issue took me longer than anticipated before I could 
 return to the issue.

No problem, it is in my bugs store.

[...]
 Unfortunately the driver that comes with 2.6.18 doesn't appear to support 
 mii-tool. I get this message:
 
 Mars:~ # mii-tool -w eth2
 SIOCGMIIPHY on 'eth2' failed: Operation not supported

Are you sure that your system is kept up-to-date ?

If I read correctly, Suse's 10.2's kernel 2.6.18.8-0.1 includes a
2.6.19-rc5 version of the r8169 driver. It should support the relevant
ioctl (please add '-v -v' to the mii-tool command btw).

However...

 Next I'll be looking at the provided backport. Also, I'll be confronted with 
 SuSE 10.2 and the RTL8111B at work next week.

... for the 8168/8111B, it is strongly suggested to use 2.6.21 +
http://www.fr.zoreil.com/people/francois/misc/20070430-2.6.21-r8169-test.patch

-- 
Ueimor

Anybody got a battery for my Ultra 10 ?
-
To unsubscribe from this list: send the line unsubscribe netdev in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: r8169 2.2LK: Low link speed after suspend

2007-04-17 Thread Peter Missel
Hello Francois!

Thanks for the quick reply.

  Now after resume, the link is working OK but doesn't come back up to
  normal gigabit operation. ifdown, unloading and reloading the r8169
  module, and then ifup again fixes it.
 
 Can you try 2.6.21-rc7 + (either):
 - http://www.fr.zoreil.com/linux/kernel/2.6.x/2.6.21-rc7/r8169-20070416
 -
 http://www.fr.zoreil.com/people/francois/misc/20070416-2.6.21-rc7-r8169-tes
t.patch

Does this patchset work against kernel 2.6.18, or, better yet, is there a 
separate source package that lets me build the current driver on this older 
kernel?

 If it does not work better, please fill an entry for it at
 bugzilla.kernel.org, Cc: it to me and attach the output of a registers dump
 taken from mii-tool before suspend and after a failed resume.

I'll possibly get to trying things out by the end of next week. Until then, 
real life will consume all my spare time.

Thanks so far.

regards,
Peter
-
To unsubscribe from this list: send the line unsubscribe netdev in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: r8169 2.2LK: Low link speed after suspend

2007-04-17 Thread Francois Romieu
Peter Missel [EMAIL PROTECTED] :
[...]
 Does this patchset work against kernel 2.6.18, or, better yet, is there a 
 separate source package that lets me build the current driver on this older 
 kernel?

Hardly: the r8169 driver has been modified by ~40 patches from 2.6.18 to now.

There is an ugly hack^W^W quick backport for 2.6.18 at:
http://www.fr.zoreil.com/people/francois/backport/r8169/20070418-00

It compiles but I do not know if it works and I strongly suggest to use
a more recent kernel package anyway.

-- 
Ueimor

Anybody got a battery for my Ultra 10 ?
-
To unsubscribe from this list: send the line unsubscribe netdev in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: r8169 2.2LK: Low link speed after suspend

2007-04-17 Thread Peter Missel
Hi Francois,

and thanks again for the quick replies.

  Does this patchset work against kernel 2.6.18, or, better yet, is there a
  separate source package that lets me build the current driver on this
  older kernel?

 Hardly: the r8169 driver has been modified by ~40 patches from 2.6.18 to
 now.

 There is an ugly hack^W^W quick backport for 2.6.18 at:
 http://www.fr.zoreil.com/people/francois/backport/r8169/20070418-00

 It compiles but I do not know if it works and I strongly suggest to use
 a more recent kernel package anyway.

I'll do my best - a kernel update is certainly not possible on this particular 
machine, simply because it is a user workstation that is actually being 
used ;)

Also, mii-tool doesn't appear to be included anywhere in this (SuSE 10.2 x64) 
installation, so I'll have to look into building this from source.

Meanwhile, a new bit of information that maybe gives a hint: 

ethtool -d shows reg 0x6C PHY status changes from 0x6b (erroneous 100TX 
link) to 0x73 (correct 1000TX link). What ethtool dumps aren't MII registers, 
so I doubt that this tells us anything useful, but here it is anyway.

Bonne nuit!

Peter
-
To unsubscribe from this list: send the line unsubscribe netdev in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html


r8169 2.2LK: Low link speed after suspend

2007-04-16 Thread Peter Missel
Greetings!

I have a SuSE 10.2 64-bit installation that uses a Realtek PCI GbE chip in 
D-Link disguise (lspci see below).

While this works rather well after a normal boot sequence, I don't get a 
gigabit link after resume from standby or suspend-to-disk.

Entering standby, the link speed goes down to 100 Mb as expected; the link 
stays up during standby/suspend (for WOL purposes apparently).

Now after resume, the link is working OK but doesn't come back up to normal 
gigabit operation. ifdown, unloading and reloading the r8169 module, and then 
ifup again fixes it.

If there's something more I can do to help debug this, please let me know. 
Please be sure to copy me, since my list traffic here is still somewhat 
unreliable. Thanks.

regards,
Peter

00:0d.0 Ethernet controller: D-Link System Inc DGE-528T Gigabit Ethernet 
Adapter (rev 10)
Subsystem: D-Link System Inc DGE-528T Gigabit Ethernet Adapter
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: 32 (8000ns min, 16000ns max), Cache Line Size: 64 bytes
Interrupt: pin A routed to IRQ 185
Region 0: I/O ports at eb00 [size=256]
Region 1: Memory at e812c000 (32-bit, non-prefetchable) [size=256]
[virtual] Expansion ROM at 5002 [disabled] [size=128K]
Capabilities: [dc] 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: 86 11 00 43 17 00 b0 02 10 00 00 02 10 20 00 00
10: 01 eb 00 00 00 c0 12 e8 00 00 00 00 00 00 00 00
20: 00 00 00 00 00 00 00 00 00 00 00 00 86 11 00 43
30: 00 00 00 00 dc 00 00 00 00 00 00 00 0b 01 20 40
40: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
50: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
60: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
70: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
90: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
d0: 00 00 00 00 00 00 00 00 00 00 00 00 01 00 c2 f7
e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
-
To unsubscribe from this list: send the line unsubscribe netdev in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: r8169 2.2LK: Low link speed after suspend

2007-04-16 Thread Francois Romieu
Peter Missel [EMAIL PROTECTED] :
[...]
 Entering standby, the link speed goes down to 100 Mb as expected; the link 
 stays up during standby/suspend (for WOL purposes apparently).

Yes.

 Now after resume, the link is working OK but doesn't come back up to normal 
 gigabit operation. ifdown, unloading and reloading the r8169 module, and then 
 ifup again fixes it.
 
 If there's something more I can do to help debug this, please let me know. 
 Please be sure to copy me, since my list traffic here is still somewhat 
 unreliable. Thanks.

Can you try 2.6.21-rc7 + (either):
- http://www.fr.zoreil.com/linux/kernel/2.6.x/2.6.21-rc7/r8169-20070416
- 
http://www.fr.zoreil.com/people/francois/misc/20070416-2.6.21-rc7-r8169-test.patch

If it does not work better, please fill an entry for it at bugzilla.kernel.org,
Cc: it to me and attach the output of a registers dump taken from mii-tool 
before
suspend and after a failed resume.

-- 
Ueimor

Anybody got a battery for my Ultra 10 ?
-
To unsubscribe from this list: send the line unsubscribe netdev in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html