public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Robert Love <rml@tech9.net>
To: "Udo A. Steinberg" <reality@delusion.de>
Cc: "Grover, Andrew" <andrew.grover@intel.com>,
	"'Alan Cox'" <alan@lxorguk.ukuu.org.uk>,
	linux-kernel@vger.kernel.org
Subject: Re: [OOPS] Kernel powerdown
Date: 15 Mar 2002 16:55:49 -0500	[thread overview]
Message-ID: <1016229350.1148.63.camel@phantasy> (raw)
In-Reply-To: <3C926B56.FC147170@delusion.de>
In-Reply-To: <59885C5E3098D511AD690002A5072D3C02AB7D01@orsmsx111.jf.intel.com>  <3C926B56.FC147170@delusion.de>

On Fri, 2002-03-15 at 16:44, Udo A. Steinberg wrote:

> > Does the machine power off successfully using ACPI when the NMI watchdog is
> > not enabled?
> 
> No, it never managed to power off with ACPI. It works with APM though.

Ah, that is the problem, then.

> > APM doesn't turn off the NMI afaik so why should ACPI have to?
> 
> Imho the problem will most likely go away when poweroff works properly
> on my board. I can supply whatever info you need to make it work, too ;)
> 
> The board is an Asus A7V.

See if the attached patch fixes it ...

	Robert Love

diff -urN linux-2.4.19/drivers/acpi/hardware/hwsleep.c linux/drivers/acpi/hardware/hwsleep.c
--- linux-2.4.19/drivers/acpi/hardware/hwsleep.c	Fri Mar 15 00:28:10 2002
+++ linux/drivers/acpi/hardware/hwsleep.c	Fri Mar 15 16:54:57 2002
@@ -152,6 +152,15 @@
 		return status;
 	}
 
+	/*
+	 * Broken ACPI table on ASUS A7V:
+	 * it reports type 7, but poweroff is type 2
+	 */
+	if (type_a == 7 && type_b == 7 && sleep_state == ACPI_STATE_S5
+			&& !memcmp(acpi_gbl_DSDT->oem_id, "ASUS\0\0", 6)
+			&& !memcmp(acpi_gbl_DSDT->oem_table_id, "A7V", 3)) {
+		type_a = type_b = 2;
+	}
 	/* run the _PTS and _GTS methods */
 
 	MEMSET(&arg_list, 0, sizeof(arg_list));


  reply	other threads:[~2002-03-15 21:56 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-03-15 21:30 [OOPS] Kernel powerdown Grover, Andrew
2002-03-15 21:40 ` Robert Love
2002-03-15 21:44 ` Udo A. Steinberg
2002-03-15 21:55   ` Robert Love [this message]
2002-03-16 13:37     ` Tony Hoyle
2002-03-15 21:48 ` Alan Cox
  -- strict thread matches above, loose matches on Subject: below --
2002-03-15 21:49 Grover, Andrew
2002-03-15 22:18 ` Udo A. Steinberg
2002-03-15 22:26   ` Robert Love
2002-03-15 22:40     ` Udo A. Steinberg
2002-03-15 21:17 Udo A. Steinberg
2002-03-15 21:30 ` Robert Love
2002-03-15 21:40 ` Alan Cox

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=1016229350.1148.63.camel@phantasy \
    --to=rml@tech9.net \
    --cc=alan@lxorguk.ukuu.org.uk \
    --cc=andrew.grover@intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=reality@delusion.de \
    /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