[Bug 264260] New: Kernel Oops when trying to suspend
https://bugzilla.novell.com/show_bug.cgi?id=264260 Summary: Kernel Oops when trying to suspend Product: openSUSE 10.2 Version: Final Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Kernel AssignedTo: kernel-maintainers@forge.provo.novell.com ReportedBy: Ulrich.Windl@rz.uni-regensburg.de QAContact: qa@suse.de On a HP Vectra VLi8 ("D4066-60001") with Phoenix BIOS version "HZ.01.10US" I get kernel Oops when trying to suspend the PC. Suspend starts, then resumes without user interaction. Ksymoops decodes the Oops like this: Apr 13 13:47:57 pc8032 kernel: BUG: unable to handle kernel NULL pointer derefer ence at virtual address 00000008 Apr 13 13:47:57 pc8032 kernel: c013cec2 Apr 13 13:47:57 pc8032 kernel: *pde = 00000000 Apr 13 13:47:57 pc8032 kernel: Oops: 0000 [#1] Apr 13 13:47:57 pc8032 kernel: CPU: 0 Apr 13 13:47:57 pc8032 kernel: EIP: 0060:[<c013cec2>] Not tainted VLI Using defaults from ksymoops -t elf32-i386 -a i386 Apr 13 13:47:57 pc8032 kernel: EFLAGS: 00010246 (2.6.18.8-0.1-default #1) Apr 13 13:47:57 pc8032 kernel: eax: 00000000 ebx: c040a020 ecx: 00000015 e dx: 00000001 Apr 13 13:47:57 pc8032 kernel: esi: 00000001 edi: 4004330c ebp: 4004330c e sp: c8067f54 Apr 13 13:47:57 pc8032 kernel: ds: 007b es: 007b ss: 0068 Apr 13 13:47:57 pc8032 kernel: Stack: 00000002 c8067f8c c0344a00 c40a6720 000000 01 4004330c c017433d 00000001 Apr 13 13:47:57 pc8032 kernel: 00000000 c40a6720 00000001 00000004 c01745 9d c01c368d 00000004 00000000 Apr 13 13:47:57 pc8032 kernel: c40a6720 00000001 c8066000 c01745fb 000000 01 00000000 00000004 070a4000 Apr 13 13:47:57 pc8032 kernel: Call Trace: Apr 13 13:47:57 pc8032 kernel: [<c017433d>] do_ioctl+0x4d/0x63 Apr 13 13:47:57 pc8032 kernel: [<c017459d>] vfs_ioctl+0x24a/0x25c Apr 13 13:47:57 pc8032 kernel: [<c01c368d>] copy_from_user+0x31/0x5d Apr 13 13:47:57 pc8032 kernel: [<c01745fb>] sys_ioctl+0x4c/0x65 Apr 13 13:47:57 pc8032 kernel: [<c0103d5d>] sysenter_past_esp+0x56/0x79 Apr 13 13:47:57 pc8032 kernel: Code: 00 00 00 ff d2 90 ff 05 a0 47 34 c0 0f 8e 4 2 01 00 00 e9 94 00 00 00 83 fe 02 74 26 83 fe 03 74 3e 83 fe 01 75 5d a1 00 70 40 c0 <8b> 50 08 85 d2 0f 84 57 fe ff ff b8 04 00 00 00 ff d2 e9 7d fe
EIP; c013cec2
<=====
ebx; c040a020
edi; 4004330c ebp; 4004330c esp; c8067f54
Trace; c017433d
https://bugzilla.novell.com/show_bug.cgi?id=264260 ------- Comment #1 from Ulrich.Windl@rz.uni-regensburg.de 2007-04-13 06:08 MST ------- kernel being used is: kernel-default-2.6.18.8-0.1 -- 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=264260 lmb@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=264260 pavel@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |seife@novell.com Status|NEW |ASSIGNED ------- Comment #2 from pavel@novell.com 2007-04-17 02:54 MST ------- Can you try both platform and shutdown mode ? (seife knows the details). Did it work before? Does manual suspend work (init=/bin/bash; 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=264260 ------- Comment #3 from Ulrich.Windl@rz.uni-regensburg.de 2007-04-17 03:31 MST ------- I don't know what you mean by "platform / shutdown" mode. Suspend did not work before, because it was a fresh install (But I think basic ACPI was working with SuSE Linux 10.0 (using "acpi=force")). When booting with "init=/bin/bash", I have no /sys/power directory, only a /sys/kernel directory. It also seems that I would need "acpi=force", but it also looks as if it simply were ignored when being specified (dmesg confirmed that acpi=force was on the Kernel command line) -- 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=264260 ------- Comment #4 from seife@novell.com 2007-04-17 06:16 MST ------- try it from the running system, maybe runlevel 3 (but it should not matter). Edit /etc/suspend.conf, add a line shutdown method = shutdown at the end. Then use "powersave -U" or (as root) simply "pm-hibernate" to suspend to disk. If this works, then it is a problem with platform mode. The problem with /sys/power is new to me. Did you mount /sys manually in init=/bin/bash? You need to: - boot with init=/bin/bash - "mount /proc" - "mount /sys" - "echo shutdown > /sys/power/disk" - "echo disk > /sys/power/state" to try the minimal-boot, kernel-mode suspend. -- 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=264260 ------- Comment #5 from Ulrich.Windl@rz.uni-regensburg.de 2007-04-17 07:37 MST ------- A kingdom for good instructions: I had to manually mount /sys, and, more important, I had to activate the swap partition. (Without suspend would resume immediately (without Oops)) When trying (no "acpi=force") echo shutdown > /sys/power/disk echo disk > /sys/power/state The suspend to disk seems to work as designed (and the computer turned itself off). Actually I was able to resume from that state with success. /etc/suspend.conf at the moment is all comments. "powersave -U" would complain about "Connection to dbus not ready" "pm-hibernate" would start a suspend, but it fails (after some disk activity) In "dmesg" I see a kernel Oops then... -- 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=264260 ------- Comment #6 from seife@novell.com 2007-04-17 10:34 MST ------- (In reply to comment #5)
A kingdom for good instructions: I had to manually mount /sys, and, more important, I had to activate the swap partition. (Without suspend would resume immediately (without Oops))
Oops. Yes, i forgot the "swapon -a" part.
When trying (no "acpi=force") echo shutdown > /sys/power/disk echo disk > /sys/power/state The suspend to disk seems to work as designed (and the computer turned itself off). Actually I was able to resume from that state with success.
Good. If you could retry the same with "echo platform > /sys/power/disk" instead of "shutdown", then we know that the in-kernel-suspend behaves correctly wrt. platform mode.
/etc/suspend.conf at the moment is all comments.
Which means that the "platform" mode is used. Please add shutdown method = shutdown to the file, and try again.
"powersave -U" would complain about "Connection to dbus not ready"
yes, powersave needs a running dbus and does only work from a fully booted system.
"pm-hibernate" would start a suspend, but it fails (after some disk activity) In "dmesg" I see a kernel Oops then...
ok, so nothing has changed here, but we also have not yet tried "shutdown" mode. -- 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=264260 ------- Comment #7 from Ulrich.Windl@rz.uni-regensburg.de 2007-04-18 00:20 MST ------- "echo platform >/sys/power/disk" returns a "bash: echo: write error: Invalid argument" (however I can "echo shutdown" just fine) With the change to /etc/suspend.conf, pm-hibernate succeeds to dump the state to disk and power off. Resume was also successful and dmesg showed no Oops after that. As the kernel should never Oops, I still think there's a kernel problem somewhere. -- 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=264260 seife@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |DUPLICATE ------- Comment #8 from seife@novell.com 2007-04-18 05:53 MST ------- (In reply to comment #7)
"echo platform >/sys/power/disk" returns a "bash: echo: write error: Invalid argument" (however I can "echo shutdown" just fine)
Ok, this just means that there is no platform mode (ACPI) on your machine. The check for this was missing in the userspace suspend code which then caused the oops.
With the change to /etc/suspend.conf, pm-hibernate succeeds to dump the state to disk and power off. Resume was also successful and dmesg showed no Oops after that. As the kernel should never Oops, I still think there's a kernel problem somewhere.
yes, there is a kernel problem, and it is fixed for 10.3 already. *** This bug has been marked as a duplicate of bug 230470 *** -- 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