From: "Rafael J. Wysocki" <rjw@sisk.pl>
To: vgoyal@in.ibm.com
Cc: linux kernel mailing list <linux-kernel@vger.kernel.org>,
Pavel Machek <pavel@ucw.cz>, Andi Kleen <ak@suse.de>
Subject: Re: BUG() during suspend to disk (2.6.21-rc2, x86_64)
Date: Tue, 6 Mar 2007 21:56:46 +0100 [thread overview]
Message-ID: <200703062156.46905.rjw@sisk.pl> (raw)
In-Reply-To: <20070306103247.GA11002@in.ibm.com>
Hi,
On Tuesday, 6 March 2007 11:32, Vivek Goyal wrote:
> Hi,
>
> I see following BUG() on serial console while hibernating on a x86_64
> machine. I am using 2.6.21-rc2 kernel.
I see it too.
> BUG: at arch/x86_64/kernel/acpi/sleep.c:70 init_low_mapping()
>
> Call Trace:
> [<ffffffff80214b9a>] acpi_save_state_mem+0x70/0xd6
> [<ffffffff8036e90e>] acpi_pm_enter+0x23/0xc1
> [<ffffffff8024eec4>] pm_suspend_disk+0x1ac/0x228
> [<ffffffff8024dc9b>] enter_state+0x50/0x1e6
> [<ffffffff8036ecce>] acpi_system_write_sleep+0x5c/0x79
> [<ffffffff8027b767>] vfs_write+0xad/0x136
> [<ffffffff8027bca4>] sys_write+0x45/0x6e
> [<ffffffff80209bbe>] system_call+0x7e/0x83
Hm, it doesn't like the fact that nonboot CPUs are online at that point, but
we don't do anything to disable them. Should we?
I think the appended patch might work.
Rafael
---
kernel/power/disk.c | 1 +
kernel/power/user.c | 1 +
2 files changed, 2 insertions(+)
Index: linux-2.6.21-rc2/kernel/power/disk.c
===================================================================
--- linux-2.6.21-rc2.orig/kernel/power/disk.c
+++ linux-2.6.21-rc2/kernel/power/disk.c
@@ -61,6 +61,7 @@ static void power_down(suspend_disk_meth
switch(mode) {
case PM_DISK_PLATFORM:
if (pm_ops && pm_ops->enter) {
+ disable_nonboot_cpus();
kernel_shutdown_prepare(SYSTEM_SUSPEND_DISK);
pm_ops->enter(PM_SUSPEND_DISK);
break;
Index: linux-2.6.21-rc2/kernel/power/user.c
===================================================================
--- linux-2.6.21-rc2.orig/kernel/power/user.c
+++ linux-2.6.21-rc2/kernel/power/user.c
@@ -398,6 +398,7 @@ static int snapshot_ioctl(struct inode *
case PMOPS_ENTER:
if (data->platform_suspend) {
+ disable_nonboot_cpus();
kernel_shutdown_prepare(SYSTEM_SUSPEND_DISK);
error = pm_ops->enter(PM_SUSPEND_DISK);
error = 0;
next prev parent reply other threads:[~2007-03-06 20:54 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-06 10:32 Vivek Goyal
2007-03-06 20:56 ` Rafael J. Wysocki [this message]
2007-03-07 6:23 ` Vivek Goyal
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200703062156.46905.rjw@sisk.pl \
--to=rjw@sisk.pl \
--cc=ak@suse.de \
--cc=linux-kernel@vger.kernel.org \
--cc=pavel@ucw.cz \
--cc=vgoyal@in.ibm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®