driver 8139too prevents swsusp.
Subsystems (2)
Hello,
I have been trying S4 sleep on a 2.5.59 + acpi0123 patch kernel on my computer (Shuttle motherboard, i845 chipset). The motherboard has an integrated Realtek ``RTL-8139/8139C/8139C+ (rev 10)'' ethernet card, so I am using the 8139too driver compiled in the kernel.
When I try to ``echo 4 > /proc/acpi/sleep'', I have messages like:
=kdeinit entered refrigerator
=kalarmd entered refrigerator
=zsh entered refrigerator
=su entered refrigerator
=
[ wait a couple of seconds ]
stopping tasks failed (1 tasks remaining)
Suspend failed: Not all processes stopped!
Restarting tasks...<6> Strange, eth0 not stopped
done
init left refrigerator
pdflush left refrigerator
kswapd0 left refrigerator
kseriod left refrigerator
Indeed, I have a kernel thread called [eth0] in the ps output. I cannot kill this process, but if I do ``ifconfig eth0 down'', the process diseapear and the swsusp works better (see below). So it seems that swsusp cannot put this [eth0] process in the refrigerator.
By the way, when I did my swsusp tests yesterday, I switched to runlevel 1 to experiment. After shutting down eth0 with ifconfig, sleep level 4 worked great: the computer went down and resumed flawlessly. However, I tried again today before writing this bug report and I stayed in runlevel 5 (I just switched to VT1 to see kernel messages). And today I couldn't suspend either, I hit the BUG_ON in driver/ide/ide-disk.c:1557 I didn't bother to hand write down the oops, as the machine was frozen and as I reflected that the stack trace was probably perfectly known. If this oops is of some importance, I can try to reproduce and write it.
Thanks for all your work,
Éric Brunet
-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld =Something 2 See!
http://www.vasoftware.com
Hi!
Quoted 5 lines
I have been trying S4 sleep on a 2.5.59 + acpi0123 patch kernel on my computer (Shuttle motherboard, i845 chipset). The motherboard has an integrated Realtek ``RTL-8139/8139C/8139C+ (rev 10)'' ethernet card, so I am using the 8139too driver compiled in the kernel.
Patch to fix this is floating around, already.
Pavel
Signature · 8 lines
Worst form of spam? Adding advertisment signatures ala sourceforge.net. What goes next? Inserting advertisment *into* email? ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com
Quoted 4 lines · Éric Brunet
Indeed, I have a kernel thread called [eth0] in the ps output. I cannot kill this process, but if I do ``ifconfig eth0 down'', the process diseapear and the swsusp works better (see below). So it seems that swsusp cannot put this [eth0] process in the refrigerator.
why dont you patch the script to make a ifconfig eth0 down and ifconfig eth0 up on wakeup (or whatever like restart network on your distriution) ?
Cheers.
PS: questions about swsusp are on http://lister.fornax.hu/mailman/listinfo/swsusp
PS2: there is some patch on 8139too.c in the latest swsusp you may
want to make sure you have latest.
Signature · 8 lines
http://www.chmouel.com/ ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com
Quoted 9 lines · Pavel Machek
Hi!
Quoted 5 lines
I have been trying S4 sleep on a 2.5.59 + acpi0123 patch kernel on my computer (Shuttle motherboard, i845 chipset). The motherboard has an integrated Realtek ``RTL-8139/8139C/8139C+ (rev 10)'' ethernet card, so I am using the 8139too driver compiled in the kernel.
Patch to fix this is floating around, already.
But only send to J. Garzik (my fault, sorry)..
Signature · 4 lines
Ducrot Bruno -- Which is worse: ignorance or apathy? -- Don't know. Don't care.
drivers/net/8139too.c +6 -0
@@ -109,6 +109,7 @@#include <linux/ethtool.h> #include <linux/mii.h> #include <linux/completion.h> +#include <linux/suspend.h> #include <linux/crc32.h> #include <asm/io.h> #include <asm/uaccess.h>
@@ -1601,6 +1602,8 @@ timeout = next_tick;do { timeout =interruptible_sleep_on_timeout (&tp->thr_wait, timeout); +if (current->flags &PF_FREEZE ) +refrigerator (PF_IOTHREAD ); }while (!signal_pending (current) && (timeout >0 ));if (signal_pending (current)) {
@@ -2570,6 +2573,8 @@ tp->stats.rx_missed_errors +=RTL_R32 (RxMissed);RTL_W32 (RxMissed,0 ); +pci_set_power_state (pdev, state); +spin_unlock_irqrestore (&tp->lock, flags);return 0 ; }
@@ -2581,6 +2586,7 @@if (!netif_running (dev))return 0 ; +pci_set_power_state (pdev,0 );netif_device_attach (dev);rtl8139_hw_start (dev);return 0 ;
Quoted 11 lines · Chmouel Boudjnah
Quoted 4 lines · Éric Brunet
Indeed, I have a kernel thread called [eth0] in the ps output. I cannot kill this process, but if I do ``ifconfig eth0 down'', the process diseapear and the swsusp works better (see below). So it seems that swsusp cannot put this [eth0] process in the refrigerator.
why dont you patch the script to make a ifconfig eth0 down and ifconfig eth0 up on wakeup (or whatever like restart network on your distriution) ?
This is for 2.5 for which we want better solutions to do that. No more modules insmod/rmmod horror.
Signature · 10 lines
Ducrot Bruno -- Which is worse: ignorance or apathy? -- Don't know. Don't care. ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com
Thank you for the patch.
I will try it one of these days.
Signature · 7 lines
Éric Brunet ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld =Something 2 See! http://www.vasoftware.com