From: Mark Lord <lkml@rtr.ca>
To: "H. Peter Anvin" <hpa@zytor.com>,
linux-kernel@vger.kernel.org,
Alexey Starikovskiy <astarikovskiy@suse.de>
Subject: Re: regression in 2.6.23-rc8 - power off failed
Date: Sat, 29 Sep 2007 08:40:39 -0400 [thread overview]
Message-ID: <46FE47C7.6070901@rtr.ca> (raw)
In-Reply-To: <20070929093553.GA4451@erig.dyndns.org>
Wolfgang Erig wrote:
> On Sat, Sep 29, 2007 at 01:30:33AM -0700, H. Peter Anvin wrote:
>> Wolfgang Erig wrote:
>>> Both are bad.
>>> Two different systems and two different bisections.
>>> I sent the last step of each.
>>>>> $ git bisect good
>>>>> Bisecting: 0 revisions left to test after this
>>>>> [626073132b381684c4983e0d911e9aceb32e2cbc] Assembly header and main routine for new x86 setup code
>>>> OK, so which one is the bad one?
>>> This problem (no power off) persists after pull some minutes ago.
>>> Sorry for the confusion.
>>>
>> I believe there must have been something wrong here (possibly
>> inconsistent experiments?) This checkin has *zero code changes* from
>> the previous one (and next one) -- the kernel should have been binarily
>> identical to the previous one. The code introduced in this checkin
>> doesn't even get compiled until two checkins later,
>> 4fd06960f120e02e9abc802a09f9511c400042a5.
>
> I have done two bisections simultanously and it was late at night.
> I start again with a fresh tree and better controlled experiments.
If this is an SMP system, then you could just be getting random results,
depending upon which CPU is attempting the poweroff.
I have a newish patch in Andrew's tree now to fix SMP poweroff
(has been broken forever), reproduced here below in case you missed it.
* * *
We need to disable all CPUs other than the boot CPU (usually 0)
before attempting to power-off modern SMP machines.
This fixes the hang-on-poweroff issue on my MythTV SMP box,
and also on Thomas Gleixner's new toybox.
Signed-off-by: Mark Lord <mlord@pobox.com>
Acked-by: Thomas Gleixner <tglx@linutronix.de>
---
--- linux/kernel/sys.c.orig 2007-09-13 09:49:11.000000000 -0400
+++ linux/kernel/sys.c 2007-09-28 15:48:54.000000000 -0400
@@ -32,6 +32,7 @@
#include <linux/getcpu.h>
#include <linux/task_io_accounting_ops.h>
#include <linux/seccomp.h>
+#include <linux/cpu.h>
#include <linux/compat.h>
#include <linux/syscalls.h>
@@ -878,6 +879,7 @@
kernel_shutdown_prepare(SYSTEM_POWER_OFF);
if (pm_power_off_prepare)
pm_power_off_prepare();
+ disable_nonboot_cpus();
sysdev_shutdown();
printk(KERN_EMERG "Power down.\n");
machine_power_off();
next prev parent reply other threads:[~2007-09-29 12:40 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-09-29 0:54 regression in 2.6.23-rc8 - power off failed Wolfgang Erig
2007-09-29 2:59 ` Frans Pop
2007-09-29 3:29 ` Frans Pop
2007-09-29 3:05 ` H. Peter Anvin
2007-09-29 8:22 ` Wolfgang Erig
2007-09-29 8:30 ` H. Peter Anvin
2007-09-29 9:35 ` Wolfgang Erig
2007-09-29 12:40 ` Mark Lord [this message]
2007-09-29 15:24 ` Alexey Starikovskiy
2007-09-29 20:47 ` Bill Davidsen
2007-09-29 21:08 ` Rafael J. Wysocki
2007-10-01 17:55 ` Alexey Starikovskiy
2007-10-01 20:30 ` Rafael J. Wysocki
2007-09-29 18:07 ` Wolfgang Erig
2007-09-29 19:45 ` Wolfgang Erig
2007-09-29 22:39 ` H. Peter Anvin
2007-10-08 19:47 ` regression in 2.6.23-rc8 - power off failed: solved Wolfgang Erig
2007-09-29 7:46 ` regression in 2.6.23-rc8 - power off failed Alexey Starikovskiy
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=46FE47C7.6070901@rtr.ca \
--to=lkml@rtr.ca \
--cc=astarikovskiy@suse.de \
--cc=hpa@zytor.com \
--cc=linux-kernel@vger.kernel.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.