Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752169AbXI3Srh (ORCPT ); Sun, 30 Sep 2007 14:47:37 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751502AbXI3Sra (ORCPT ); Sun, 30 Sep 2007 14:47:30 -0400 Received: from rtr.ca ([76.10.145.34]:2217 "EHLO mail.rtr.ca" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750887AbXI3Sr3 (ORCPT ); Sun, 30 Sep 2007 14:47:29 -0400 Message-ID: <46FFEF41.8010104@rtr.ca> Date: Sun, 30 Sep 2007 14:47:29 -0400 From: Mark Lord User-Agent: Thunderbird 2.0.0.6 (X11/20070728) MIME-Version: 1.0 To: Santiago Garcia Mantinan Cc: linux-kernel@vger.kernel.org Subject: Re: [PATCH] (repost) Fix SMP poweroff hangs References: <46FC20B7.4000606@rtr.ca> <200709281455.29069.rjw@sisk.pl> <46FD001A.3070309@rtr.ca> <200709281544.30497.rjw@sisk.pl> <46FD05B8.2040302@rtr.ca> <46FD0724.5060009@rtr.ca> <1190991316.18681.38.camel@chaos> <46FD5BAF.8040304@rtr.ca> <20070930090032.GA2405@pul.manty.net> <46FFDB29.9040400@rtr.ca> <20070930175446.GA2472@pul.manty.net> In-Reply-To: <20070930175446.GA2472@pul.manty.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1945 Lines: 50 Santiago Garcia Mantinan wrote: >> I'd say your problem is more of a distro issue, >> in that the method you are using to shutdown >> is not actually requesting "poweroff". > >> That last mess above ("System halted.") comes from kernel_halt(), >> rather than the expected message ("Power down.") from kernel_power_off(). > >> So, try using the "poweroff" command instead of "halt", >> or try using "halt -p". If neither of those work, > > Well it works ok with 2.6.22 powering off and saying so right before > powering off, with some references to ACPI. On 2.6.23-rc8 however it doesn't > seem to get that far. > > I have followed the poweroff of my distro (Debian unstable) and on getting > to the end of rc 0 it calls halt with options -d -f -i -p. So it does call > it with the -p you asked for. BTW, this halt comes fom Debian's sysvinit > version 2.86.ds1-38.1 in case that matters, but as I said it is working ok > for .22. > > >> then edit /etc/init.d/halt and hardcode the "-p" parameter >> inside there onto the "halt" command line(s). > > That init.d/halt is the one that is calling halt with -d -f -i -p already. Mmm.. then I wonder why it is not actually getting into the kernel's poweroff function? Can you boot into single user mode ( kernel command line parameter of S ), and then remount your filesystems all r/o (ALT-SysRQ-u + ALT-SysRQ-s, or do it all manually if you prefer). Then manually try this command from the primary console (Ctrl-ALT-F1): /sbin/halt -f -p The machine *should* poweroff. If not, then do the whole thing again with this command: strace /bin/halt -f -p And see what the final syscall + parameters is. Post them here if you can. Cheers - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/