From: Ducrot Bruno <ducrot-kk6yZipjEM5g9hUCZPvPmw@public.gmane.org>
To: Adam Kessel <adam-/J5p37YCQWYytDrLOV7HaA@public.gmane.org>
Cc: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: Re: ACPI Poweroff fails on HP OmniBook 500
Date: Fri, 31 Oct 2003 12:09:05 +0100 [thread overview]
Message-ID: <20031031110905.GA21970@poupinou.org> (raw)
In-Reply-To: <20031029020636.GF29465-/J5p37YCQWYytDrLOV7HaA@public.gmane.org>
On Tue, Oct 28, 2003 at 09:06:36PM -0500, Adam Kessel wrote:
> I posted this recently to lkml, but got no response, so I thought I would
> report it here as well.[1]
>
> In 2.4.22-rc2, ACPI poweroff worked fine on the HP OmniBook.
>
> Since 2.4.22, all the way up to 2.4.23-pre8, the system fails to
> shutdown--the process gets to "power off" and hangs there. It is
> necessary to do a hard shut down to turn the system off.
>
> There is no problem with rebooting.
>
> Apparently this effects a number of HP laptops, although I have only
> verified it on the OmniBook 500.[2]
>
> This problem is not present in 2.6.0-test9.
>
> I am using force=acpi as required since I have an older BIOS. Apparently
You mean acpi=force, correct?
> the problem occurs in OmniBook laptops they have newer BIOSes as well.
>
> I expect this is related to the Sony VAIO problem discussed this month on
> this list as well.[3]
Could you please test this patch?
The problem being that we power down some devices twice.
--- linux-2.4.23-pre9/drivers/acpi/system.c 2003/10/31 08:09:10 1.1
+++ linux-2.4.23-pre9/drivers/acpi/system.c 2003/10/31 10:36:35
@@ -31,6 +31,7 @@
#include <linux/spinlock.h>
#include <linux/poll.h>
#include <linux/delay.h>
+#include <linux/interrupt.h>
#include <linux/sysrq.h>
#include <linux/compatmac.h>
#include <linux/proc_fs.h>
@@ -92,7 +93,13 @@
static void
acpi_power_off (void)
{
- acpi_suspend(ACPI_STATE_S5);
+ if (unlikely(in_interrupt()))
+ BUG();
+ acpi_enter_sleep_state_prep(ACPI_STATE_S5);
+ ACPI_DISABLE_IRQS();
+ acpi_enter_sleep_state(ACPI_STATE_S5);
+
+ printk(KERN_EMERG "ACPI: can not power off machine\n");
}
#endif /*CONFIG_PM*/
--
Ducrot Bruno
-- Which is worse: ignorance or apathy?
-- Don't know. Don't care.
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
next prev parent reply other threads:[~2003-10-31 11:09 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-10-29 2:06 ACPI Poweroff fails on HP OmniBook 500 Adam Kessel
[not found] ` <20031029020636.GF29465-/J5p37YCQWYytDrLOV7HaA@public.gmane.org>
2003-10-31 11:09 ` Ducrot Bruno [this message]
[not found] ` <20031031110905.GA21970-kk6yZipjEM5g9hUCZPvPmw@public.gmane.org>
2003-10-31 20:27 ` Adam Kessel
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=20031031110905.GA21970@poupinou.org \
--to=ducrot-kk6yzipjem5g9huczpvpmw@public.gmane.org \
--cc=acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
--cc=adam-/J5p37YCQWYytDrLOV7HaA@public.gmane.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox