2.6.9-rc3 software suspend (pmdisk) stopped working
Hi,
Anyone noticed that pmdisk software suspend stopped working in -rc3 ? In -rc2 it worked just fine. My script was
chvt 1
echo -n shutdown >/sys/power/disk
echo -n disk >/sys/power/state
chvt 7
In -rc3 it appears to write pages out to disk, but never shuts down the machine. Is there something else i need to do or am missing ?
Thanks
M
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Mitch" == Mitch <[email protected]> writes:
Mitch> Hi, Anyone noticed that pmdisk software suspend stopped working Mitch> in -rc3 ? In -rc2 it worked just fine. My script was
Mitch> chvt 1 echo -n shutdown >/sys/power/disk echo -n disk
Mitch> >/sys/power/state chvt 7
Mitch> In -rc3 it appears to write pages out to disk, but never shuts Mitch> down the machine. Is there something else i need to do or am Mitch> missing ?
What do you get from:
cat /sys/power/disk
?
If it says "platform" you might try:
echo "shutdown" > /sys/power/disk
I wonder how many of Pavel's speed improvment patches went in with the pmdisk/swsusp merge in rc3? I guess I can try it and see. :)
kevin
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.8 <http://mailcrypt.sourceforge.net/>
iD8DBQFBXCy83imCezTjY0ERAoZDAJ0fDwzvvl6+5o48qGmBVN2OIgXbfwCeOU2n /AUAFfEXKKV/uW6tWTLdmd0=
=u85n
-----END PGP SIGNATURE-----
Hi!
Quoted 15 lines
Mitch> Hi, Anyone noticed that pmdisk software suspend stopped working Mitch> in -rc3 ? In -rc2 it worked just fine. My script was
Mitch> chvt 1 echo -n shutdown >/sys/power/disk echo -n disk
Mitch> >/sys/power/state chvt 7Mitch> In -rc3 it appears to write pages out to disk, but never shuts Mitch> down the machine. Is there something else i need to do or am Mitch> missing ?
What do you get from:
cat
/sys/power/disk
?
Quoted 6 lines
If it says "platform" you might try:
echo "shutdown" >
/sys/power/diskI wonder how many of Pavel's speed improvment patches went in with the pmdisk/swsusp merge in rc3? I guess I can try it and see. :)
The most important speed fix is not there, I wanted it to do take more testing...
Pavel
Signature · 2 lines
People were complaining that M$ turns users into beta-testers... ...jr ghea gurz vagb qrirybcref, naq gurl frrz gb yvxr vg gung jnl!
Hi!
Quoted 10 lines
Anyone noticed that pmdisk software suspend stopped working in -rc3 ? In -rc2 it worked just fine. My script was
chvt 1
echo -n shutdown >/sys/power/disk
echo -n disk >/sys/power/state
chvt 7In -rc3 it appears to write pages out to disk, but never shuts down the machine. Is there something else i need to do or am missing ?
You are not missing anything, it is somehow broken. I'll try to find out what went wrong and fix it. In the meantime, look at -mm series, it works there.
Pavel
Signature · 2 lines
People were complaining that M$ turns users into beta-testers... ...jr ghea gurz vagb qrirybcref, naq gurl frrz gb yvxr vg gung jnl!
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Pavel" == Pavel Machek <[email protected]> writes:
Pavel> Hi!
Quoted 8 lines
Quoted 8 lines
Anyone noticed that pmdisk software suspend stopped working in -rc3 ? In -rc2 it worked just fine. My script was
chvt 1 echo -n shutdown >/sys/power/disk echo -n disk
Quoted 1 line
/sys/power/statechvt 7In -rc3 it appears to write pages out to disk, but never shuts down the machine. Is there something else i need to do or am missing ?
Pavel> You are not missing anything, it is somehow broken. I'll try to Pavel> find out what went wrong and fix it. In the meantime, look at Pavel> -mm series, it works there. Pavel
I finally had a chance to try 2.6.9-rc3 here last night.
It suspended ok for me, but on resume it would load in the cache and then reboot. :(
kevin
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.8 <http://mailcrypt.sourceforge.net/>
iD8DBQFBXX/V3imCezTjY0ERAg41AJ4/F7ZyFibY0ZNk465IA04AXZnt3gCeNglf HMbMUrmAEhkvkwbjP4RRqdU=
=BxrI
-----END PGP SIGNATURE-----
Quoted 12 lines · Kevin Fenzi
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Pavel" == Pavel Machek <[email protected]> writes:
Pavel> Hi!
Quoted 8 lines
Quoted 8 lines
Anyone noticed that pmdisk software suspend stopped working in -rc3 ? In -rc2 it worked just fine. My script was
chvt 1 echo -n shutdown >/sys/power/disk echo -n disk
Quoted 1 line
/sys/power/statechvt 7In -rc3 it appears to write pages out to disk, but never shuts down the machine. Is there something else i need to do or am missing ?
Quoted 8 lines
Pavel> You are not missing anything, it is somehow broken. I'll try to Pavel> find out what went wrong and fix it. In the meantime, look at Pavel> -mm series, it works there. Pavel
I finally had a chance to try 2.6.9-rc3 here last night.
It suspended ok for me, but on resume it would load in the cache and then reboot. :(
Always? I mean, is it reproducible? I have a similar problem, but it is not reproducible, apparently. Sometimes it reboots, sometimes it reports a double fault, but most often it resumes just fine.
Greets,
RJW
Signature · 3 lines
- Would you tell me, please, which way I ought to go from here? - That depends a good deal on where you want to get to. -- Lewis Carroll "Alice's Adventures in Wonderland"
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Rafael" == Rafael J Wysocki <[email protected]> writes:
Quoted 2 lines · Kevin Fenzi
Quoted 2 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Pavel" == Pavel Machek <[email protected]> writes:
Pavel> Hi!
Quoted 10 lines
Quoted 10 lines
Quoted 1 line
Quoted 1 line
Anyone noticed that pmdisk software suspend stopped working in
-rc3 >> ? In -rc2 it worked just fine. My script was
Quoted 5 lines
Quoted 2 lines
chvt 1 echo -n shutdown >/sys/power/disk echo -n disk >>
/sys/power/statechvt 7Quoted 2 lines
In -rc3 it appears to write pages out to disk, but never shuts
down >> the machine. Is there something else i need to do or am missing ?
Pavel> You are not missing anything, it is somehow broken. I'll try to Pavel> find out what went wrong and fix it. In the meantime, look at Pavel> -mm series, it works there. Pavel
Quoted 4 lines
Quoted 4 lines
I finally had a chance to try 2.6.9-rc3 here last night.
It suspended ok for me, but on resume it would load in the cache and then reboot. :(
Rafael> Always? I mean, is it reproducible? I have a similar Rafael> problem, but it is not reproducible, apparently. Sometimes it Rafael> reboots, sometimes it reports a double fault, but most often Rafael> it resumes just fine.
Well, I only tried it twice, but it rebooted both times.
After applying the patch below from Pavel on top of 2.6.9-rc3 it now seems to work (again, I have only done a few cycles).
Do you have HIMEM enabled? Does the patch below make it more stable for you?
Rafael> Greets, RJW
kevin
- --- clean/kernel/power/swsusp.c 2004-10-01 00:30:32.000000000 +0200
+++ clean-mm/kernel/power/swsusp.c 2004-09-26 01:34:27.000000000 +0200
@@ -856,7 +860,9 @@
local_irq_disable();
save_processor_state();
error = swsusp_arch_suspend();
+ /* Restore control flow magically appears here */
restore_processor_state();
+ restore_highmem();
local_irq_enable();
return error;
}
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.8 <http://mailcrypt.sourceforge.net/>
iD8DBQFBXa8q3imCezTjY0ERAv55AKCHAvg2sqBYi4p2cR+ZIJ6Y1bZeiwCfc1cN 9m/3MpImIeu1LfchBRK8LEE=
=fIt6
-----END PGP SIGNATURE-----
Quoted 29 lines · Kevin Fenzi
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Rafael" == Rafael J Wysocki <[email protected]> writes:
Quoted 2 lines · Kevin Fenzi
Quoted 2 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Pavel" == Pavel Machek <[email protected]> writes:
Pavel> Hi!
Quoted 10 lines
Quoted 10 lines
Quoted 1 line
Quoted 1 line
Anyone noticed that pmdisk software suspend stopped working in
-rc3 >> ? In -rc2 it worked just fine. My script was
Quoted 5 lines
Quoted 2 lines
chvt 1 echo -n shutdown >/sys/power/disk echo -n disk >>
/sys/power/statechvt 7Quoted 2 lines
In -rc3 it appears to write pages out to disk, but never shuts
down >> the machine. Is there something else i need to do or am missing ?
Pavel> You are not missing anything, it is somehow broken. I'll try to Pavel> find out what went wrong and fix it. In the meantime, look at Pavel> -mm series, it works there. Pavel
Quoted 4 lines
Quoted 4 lines
I finally had a chance to try 2.6.9-rc3 here last night.
It suspended ok for me, but on resume it would load in the cache and then reboot. :(
Rafael> Always? I mean, is it reproducible? I have a similar Rafael> problem, but it is not reproducible, apparently. Sometimes it Rafael> reboots, sometimes it reports a double fault, but most often Rafael> it resumes just fine.
Quoted 6 lines
Well, I only tried it twice, but it rebooted both times.
After applying the patch below from Pavel on top of 2.6.9-rc3 it now seems to work (again, I have only done a few cycles).
Do you have HIMEM enabled?
I'm not sure what you mean. It's an x86-64 system with 512 MB of RAM.
Quoted 1 line
Does the patch below make it more stable for you?
I have this patch applied, but I get double faults sometimes anyway.
Greets,
RJW
Signature · 3 lines
- Would you tell me, please, which way I ought to go from here? - That depends a good deal on where you want to get to. -- Lewis Carroll "Alice's Adventures in Wonderland"
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Quoted 3 lines
Quoted 3 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Rafael" == Rafael J Wysocki <[email protected]> writes:
Do you have HIMEM enabled?
Rafael> I'm not sure what you mean. It's an x86-64 system with 512 MB Rafael> of RAM.
HIMEM is needed for various configs when you have 1GB of memory or more.
So, it shouldn't be set in your case it sounds like... You should have "NOHIGHMEM" set in your .config...
Quoted 1 line
Quoted 1 line
Does the patch below make it more stable for you?
Rafael> I have this patch applied, but I get double faults sometimes Rafael> anyway.
Can you post the exact messages? This seems diffrent than the reboot issue I was seeing.
Rafael> Greets, RJW
kevin
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.8 <http://mailcrypt.sourceforge.net/>
iD8DBQFBXbbH3imCezTjY0ERAjWNAJ9Hl5UTfelrR+7OAGgyYLFLd+xyEQCfRv0P MmcUi6pOW28XLO1Mh6dLlmY=
=20rC
-----END PGP SIGNATURE-----
Quoted 4 lines · Kevin Fenzi
Quoted 3 lines
Quoted 3 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Rafael" == Rafael J Wysocki <[email protected]> writes:
Do you have HIMEM enabled?
Quoted 8 lines
Rafael> I'm not sure what you mean. It's an x86-64 system with 512 MB Rafael> of RAM.
HIMEM is needed for various configs when you have 1GB of memory or more.
So, it shouldn't be set in your case it sounds like... You should have "NOHIGHMEM" set in your .config...
Well, I don't think so. According to Documentation/x86_64/mm.txt:
"The paging design used on the x86-64 linux kernel [...] provides:
o per process virtual address space limit of 512 Gigabytes
o top of userspace stack located at address 0x0000007fffffffff
o PAGE_OFFSET = 0xffff800000000000
o start of the kernel = 0xffffffff800000000
o global RAM per system 2^64-PAGE_OFFSET-sizeof(kernel) = 128 Terabytes
- 2 Gigabytes
o no need of any common code change
o no need to use highmem to handle the 128 Terabytes of RAM"
^^^^^^^^^^^^^^I have only 512 meg. ;-)
Quoted 7 lines
Quoted 1 line
Quoted 1 line
Does the patch below make it more stable for you?
Rafael> I have this patch applied, but I get double faults sometimes Rafael> anyway.
Can you post the exact messages? This seems diffrent than the reboot issue I was seeing.
Sure. They are for 2.6.9-rc2-mm4, though:
Relocating pagedir not necessary
Reading image data (9659 pages): 100% 9659 done.
Stopping tasks: ===|
Freeing memory... done (0 pages freed)
PM: Restoring saved image.
<0>double fault: 0000 [1]
CPU 0
Modules linked in: usbserial lp ohci_hcd parport_pc parport af_packet sk98lin
ehci_hcd evdev usbhid ipv6
Pid: 17009, comm: hibernate.sh Tainted: G M 2.6.9-rc2-mm4
RIP: 0010:[<ffffffff8012518d>] <ffffffff8012518d>{do_page_fault+1485}
RSP: 0000:000001001fe00008 EFLAGS: 00010002
RAX: 000000001fce8740 RBX: 0000000000000001 RCX: 000ffffffffff000
RDX: 000000001fce8000 RSI: 0000010000000000 RDI: 000001001fe000e8
RBP: 000001001fce8740 R08: 0000000000000000 R09: 000001001fe27e54
R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000
R13: 0000000000000000 R14: 000001001fe000e8 R15: 000001001b09e200
FS: 0000000000000000(0000) GS:ffffffff805582c0(0000) knlGS:0000000000000000
CS: 0010 DS: 0018 ES: 0018 CR0: 0000000080050033
CR2: 000001001fdffff8 CR3: 0000000000101000 CR4: 00000000000006e0
Process hibernate.sh (pid: 17009, threadinfo 000001001c6d8000, task
000001001ad16530)
Stack: 000001001fe01000 0000000000000060 000001001ad16530 0000ffff0000001a
fffefffefffefffe fffefffe00030001 fffefffefffefffe fffefffefffefffe
fffefffefffefffe fffefffefffefffe
Call Trace:<ffffffff8011168d>{error_exit+0}
<ffffffff8012518d>{do_page_fault+1485}
<ffffffff80282d47>{acpi_os_allocate+12}
<ffffffff8011168d>{error_exit+0}
<ffffffff8012518d>{do_page_fault+1485} <ffffffff8011168d>{error_exit+0}
<ffffffff8012518d>{do_page_fault+1485}
<ffffffff80282d47>{acpi_os_allocate+12}
<ffffffff8011168d>{error_exit+0} <ffffffff8012518d>{do_page_fault+1485}
<ffffffff80282d47>{acpi_os_allocate+12}
<ffffffff80282d47>{acpi_os_allocate+12}
<ffffffff8011168d>{error_exit+0} <ffffffff8012518d>{do_page_fault+1485}
<ffffffff80282d47>{acpi_os_allocate+12}
<ffffffff8011168d>{error_exit+0}
<ffffffff8012518d>{do_page_fault+1485}
<ffffffff80282d47>{acpi_os_allocate+12}
<ffffffff8011168d>{error_exit+0} <ffffffff8012518d>{do_page_fault+1485}
<ffffffff8011168d>{error_exit+0} <ffffffff8012518d>{do_page_fault+1485}
<ffffffff80282d47>{acpi_os_allocate+12}
<ffffffff8011168d>{error_exit+0}
<ffffffff8012518d>{do_page_fault+1485}
<ffffffff80282d47>{acpi_os_allocate+12}
<ffffffff8011168d>{error_exit+0} <ffffffff8012518d>{do_page_fault+1485}
<ffffffff80282d47>{acpi_os_allocate+12}
<ffffffff8011168d>{error_exit+0}
<ffffffff8012518d>{do_page_fault+1485}
<ffffffff80282d47>{acpi_os_allocate+12}
<ffffffff8011168d>{error_exit+0} <ffffffff8012518d>{do_page_fault+1485}
<ffffffff80282d47>{acpi_os_allocate+12}
<ffffffff8011168d>{error_exit+0}
<ffffffff8012518d>{do_page_fault+1485} <ffffffff8011168d>{error_exit+0}
<ffffffff8012518d>{do_page_fault+1485}
<ffffffff80282d47>{acpi_os_allocate+12}
<ffffffff8011168d>{error_exit+0} <ffffffff8012518d>{do_page_fault+1485}
<ffffffff80282d47>{acpi_os_allocate+12}
<ffffffff80282d47>{acpi_os_allocate+12}
<ffffffff8011168d>{error_exit+0} <ffffffff8012518d>{do_page_fault+1485}
<ffffffff80282d47>{acpi_os_allocate+12}
<ffffffff8011168d>{error_exit+0}
<ffffffff8012518d>{do_page_fault+1485}
<ffffffff80282d47>{acpi_os_allocate+12}
<ffffffff8011168d>{error_exit+0} <ffffffff8012518d>{do_page_fault+1485}
<ffffffff8011168d>{error_exit+0} <ffffffff8012518d>{do_page_fault+1485}
<ffffffff80282d47>{acpi_os_allocate+12}
<ffffffff8011168d>{error_exit+0}
<ffffffff8012518d>{do_page_fault+1485} <ffffffff80282d47>{acpi_os_allocate+12}
Code: f6 04 06 81 0f 84 52 fc ff ff 48 8b 05 e2 f9 3a 00 48 89 c2
RIP <ffffffff8012518d>{do_page_fault+1485} RSP <000001001fe00008>
Greets,
RJW
Signature · 3 lines
- Would you tell me, please, which way I ought to go from here? - That depends a good deal on where you want to get to. -- Lewis Carroll "Alice's Adventures in Wonderland"