From mboxrd@z Thu Jan 1 00:00:00 1970 From: Willy Tarreau Subject: Re: Re: fix ACPI poweroff in 2.4.25-rc2 Date: Sat, 6 Mar 2004 10:16:45 +0100 Sender: acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Message-ID: <20040306091645.GA7048@alpha.home.local> References: <200403031117.25937.bjorn.helgaas@hp.com> <20040303194656.GV25779@parcelfarce.linux.theplanet.co.uk> <20040303202027.GA30084@alpha.home.local> <1078554086.12991.3191.camel@dhcppc4> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <1078554086.12991.3191.camel-D2Zvc0uNKG8@public.gmane.org> Errors-To: acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: Len Brown Cc: Matthew Wilcox , Bjorn Helgaas , Marcelo Tosatti , ACPI Developers List-Id: linux-acpi@vger.kernel.org On Sat, Mar 06, 2004 at 01:21:26AM -0500, Len Brown wrote: > Willy, > Zwane was right, set_cpus_allowed() fixes the SMP poweroff problem. The > patch is here: > > http://bugzilla.kernel.org/show_bug.cgi?id=1141 OK, just tested it on the dual athlon, and it still works OK. SysRQ-O works OK too. And since I've read at least 2 or 3 reports on bugzilla stating that it fixed some P4 HTs, I suppose it's OK too for mine. Here's the 2.4 backport against your latest BK patch : --- ./drivers/acpi/system.c.old Sat Mar 6 10:22:25 2004 +++ ./drivers/acpi/system.c Sat Mar 6 10:22:31 2004 @@ -40,6 +40,7 @@ #include #include #include +#include #ifdef CONFIG_X86 #ifdef CONFIG_ACPI_SLEEP @@ -95,6 +96,10 @@ { if (unlikely(in_interrupt())) BUG(); +#ifdef CONFIG_SMP + /* Some SMP machines only can poweroff in boot CPU */ + set_cpus_allowed(current, cpumask_of_cpu(0)); +#endif acpi_system_save_state(ACPI_STATE_S5); acpi_enter_sleep_state_prep(ACPI_STATE_S5); ACPI_DISABLE_IRQS(); Cheers, Willy ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click