[Bug 231088] New: Resume after suspend to disk fails
https://bugzilla.novell.com/show_bug.cgi?id=231088 Summary: Resume after suspend to disk fails Product: openSUSE 10.2 Version: Final Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Other AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: robin.knapp@fujitsu-siemens.com QAContact: qa@suse.de After calling suspend to disk from kpowersave, resume does not work. Powering off after suspend produces a strange loud "clack" sound. (notebook with sata disks) ----------- from /var/log/boot.msg: ------------------------------------------ <5>Kernel command line: root=/dev/sda7 vga=0x31a resume=/dev/sda6 splash=verbose showopts .. <4>Attempting manual resume .. Trying manual resume from /dev/sda6 Creating device nodes with udev Loading ide-core Loading ide-disk Loading scsi_mod Loading sd_mod Loading processor Loading thermal Loading piix Loading libata Loading ahci Loading ata_piix Loading fan Loading edd Loading jbd Loading mbcache Loading ext3 Invoking userspace resume from /dev/sda6 resume: Could not stat configuration file resume: libgcrypt version: 1.2.3 resume: Could not read the image Invoking in-kernel resume from /dev/sda6 Waiting for device /dev/sda7 to appear: ok .. ---------------------------------------------------------------- -------- output of swapon -s: ---------------------------------- Filename Type Size Used Priority /dev/sda6 partition 2104444 0 -1 ---------------------------------------------------------------- -> so this device is the correct one. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=231088 ------- Comment #1 from robin.knapp@fujitsu-siemens.com 2006-12-29 08:53 MST ------- Created an attachment (id=111197) --> (https://bugzilla.novell.com/attachment.cgi?id=111197&action=view) output of hwinfo -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=231088 ------- Comment #2 from robin.knapp@fujitsu-siemens.com 2006-12-29 08:54 MST ------- Created an attachment (id=111198) --> (https://bugzilla.novell.com/attachment.cgi?id=111198&action=view) pm-suspend.log -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=231088 chrubis@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team- |kernel-maintainers@forge.provo.novell.com |screening@forge.provo.novell| |.com | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=231088 ------- Comment #3 from robin.knapp@fujitsu-siemens.com 2006-12-30 12:41 MST ------- Related to Bug 229210? Maybe the disk cache and so the suspend image is not being written do the disk correctly. However, my SATA disks shut down (sound) normally when doing a normal shutdown/poweroff. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=231088 gregkh@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|kernel- |pavel@novell.com |maintainers@forge.provo.nove| |ll.com | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=231088 pavel@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |seife@novell.com Status|NEW |ASSIGNED ------- Comment #4 from pavel@novell.com 2007-01-12 16:21 MST ------- resume: Could not stat configuration file resume: libgcrypt version: 1.2.3 resume: Could not read the image Invoking in-kernel resume from /dev/sda6 ..uswsusp can't find its config file, no wonder it breaks. Stefan? In the meantime, you can try suspending with echo disk > /sys/power/state. (Does that work?) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=231088 seife@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |fseidel@novell.com, hmacht@novell.com, | |thoenig@novell.com ------- Comment #5 from seife@novell.com 2007-01-13 02:52 MST ------- (In reply to comment #4)
resume: Could not stat configuration file resume: libgcrypt version: 1.2.3 resume: Could not read the image Invoking in-kernel resume from /dev/sda6
...uswsusp can't find its config file, no wonder it breaks. Stefan?
No, this is a non-fatal error, we give all the parameters on the command line, no config file is needed. This sounds more like the "disks are not correctly flushed before power-off, so image cannot be found" bug that Timo also hits on the T60.
In the meantime, you can try suspending with echo disk > /sys/power/state. (Does that work?)
See "HIBERNATE_METHOD" setting on http://en.opensuse.org/Pm-utils Timo, can you provide the bug number of the T60 bug? Thanks :-) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=231088 pavel@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEEDINFO Info Provider| |robin.knapp@fujitsu-siemens.com -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=231088 ------- Comment #6 from thoenig@novell.com 2007-01-13 06:17 MST ------- Seife: Bug #223742. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=231088 ------- Comment #7 from robin.knapp@fujitsu-siemens.com 2007-01-15 03:17 MST ------- I tried that "echo disk..." method which fails somehow (tested some time ago, don't remember exactly). After that, while trying to access my disk I got similar io buffer errors from the screenshot in Bug #223742, Comment 24 I can do some additional tests if you need more information. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=231088 ------- Comment #8 from robin.knapp@fujitsu-siemens.com 2007-01-15 11:23 MST ------- Created an attachment (id=113021) --> (https://bugzilla.novell.com/attachment.cgi?id=113021&action=view) Messages during suspend Messages that appear after the command echo disk >/sys/power/state -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=231088 ------- Comment #9 from robin.knapp@fujitsu-siemens.com 2007-01-15 11:24 MST ------- Created an attachment (id=113022) --> (https://bugzilla.novell.com/attachment.cgi?id=113022&action=view) Mesages after suspend Messages after trying to suspend Access to disk does not work anymore. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=231088 seife@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |hare@novell.com AssignedTo|pavel@novell.com |teheo@novell.com Status|NEEDINFO |NEW Info Provider|robin.knapp@fujitsu- | |siemens.com | ------- Comment #10 from seife@novell.com 2007-01-15 12:32 MST ------- I'd guess this is a bug for Tejun and / or Hannes. It is clearly not a suspend core bug but a SATA driver bug. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=231088 teheo@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=231088 ------- Comment #11 from teheo@novell.com 2007-01-16 04:16 MST ------- Created an attachment (id=113081) --> (https://bugzilla.novell.com/attachment.cgi?id=113081&action=view) debug patch Please apply the patch and report what the kernel says during and after suspend/resume. I know it can be difficult with suspend/resume but please try to report all the messages. Thanks. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=231088 teheo@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEEDINFO Info Provider| |robin.knapp@fujitsu-siemens.com -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=231088 ------- Comment #12 from robin.knapp@fujitsu-siemens.com 2007-01-16 05:39 MST ------- Created an attachment (id=113103) --> (https://bugzilla.novell.com/attachment.cgi?id=113103&action=view) dmesg output with debug patch I have no camera at the moment but managed to write dmesg output to an nfs share (suspend starts at line 492 ["Freezing cpus ..."]) I don't see much more output from libata compared to a non-patched kernel. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=231088 ------- Comment #13 from robin.knapp@fujitsu-siemens.com 2007-01-16 05:42 MST ------- Forgot to mention: Using "echo disk >/sys/power/state" does not turn the power off as pm-hibernate does but returns immediately to console -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=231088 ------- Comment #14 from teheo@novell.com 2007-01-16 06:59 MST ------- Created an attachment (id=113123) --> (https://bugzilla.novell.com/attachment.cgi?id=113123&action=view) debug patch #2 Please apply the attached patch on top of the last debug patch and report the result. I've just tested suspend to disk and resume both on the latest libata-dev devel kernel and opensuse 10.2 kernel. Both worked perfectly. The patch contains a small suspend sequence change and also disables power off after suspend to disk success. It will ask you to power it down to give you time to take picture of the screen or whatever. Thanks. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=231088 ------- Comment #15 from robin.knapp@fujitsu-siemens.com 2007-01-16 08:14 MST ------- Patch #2 does not show any different results.
and also disables power off after suspend to disk success
I think there is no "suspend to disk success". It fails somewhere when using kernel method and returns immediately. When using userspace method, there is no difference with this patch, too. It tells me that it writes the image and powers off. Resume fails. This userspace suspend process can be aborted by pressing Backspace, though there are many sda error messages on console (alt-f10) even if suspend is aborted. (similar to that T60 bug) So this error is triggered quite early in both kernel AND userspace suspend before issuing any power-off or spin-down commands. (I have the latest online updates installed which make kernel suspend method possible) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=231088 teheo@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #113081|0 |1 is obsolete| | Attachment #113123|0 |1 is obsolete| | ------- Comment #16 from teheo@novell.com 2007-01-16 23:27 MST ------- Created an attachment (id=113274) --> (https://bugzilla.novell.com/attachment.cgi?id=113274&action=view) PM debug patch #3 Please apply the attached patch on top of clean 10.2 kernel. Even if everything else succeeds, suspend itself will be failed after 30sec delay. This is intentional. After suspend failed, please report the result of 'dmesg'. Thanks. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=231088 robin.knapp@fujitsu-siemens.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED Info Provider|robin.knapp@fujitsu- | |siemens.com | ------- Comment #17 from robin.knapp@fujitsu-siemens.com 2007-01-17 05:28 MST ------- Created an attachment (id=113341) --> (https://bugzilla.novell.com/attachment.cgi?id=113341&action=view) dmesg with applied patch pm debug #3 echo disk >/sys/power/state with applied pm debug path #3 starts at line 472 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=231088 ------- Comment #18 from teheo@novell.com 2007-01-17 05:57 MST ------- Thanks. There seems to be a race condition around ATA_DFLAG_SUSPENDED that can be triggered when the timing is right. Dunno why the condition never triggered on my or other machines till now. I'll investigate further. Please standby. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=231088 ------- Comment #19 from teheo@novell.com 2007-01-17 09:50 MST ------- Created an attachment (id=113426) --> (https://bugzilla.novell.com/attachment.cgi?id=113426&action=view) libata-fix-port-EH-action-in-dev-action-mask Please apply the attached patch on a clean kernel and test. If it fails, please apply it over debug patch #3 and post the result. Thanks. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=231088 teheo@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEEDINFO Info Provider| |robin.knapp@fujitsu-siemens.com -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=231088 robin.knapp@fujitsu-siemens.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED Info Provider|robin.knapp@fujitsu- | |siemens.com | ------- Comment #20 from robin.knapp@fujitsu-siemens.com 2007-01-17 13:40 MST ------- yesss! That's it! Suspend to disk now work like a charm, both kernel and userspace method. Thanks! -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=231088 teheo@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED ------- Comment #21 from teheo@novell.com 2007-01-17 18:13 MST ------- Okay, great. I'll commit the patch. Thanks. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
participants (1)
-
bugzilla_noreply@novell.com