All of lore.kernel.org
 help / color / mirror / Atom feed
From: Len Brown <len.brown-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
To: ACPI Developers
	<acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org>
Subject: [Fwd: [PATCH] Don't save state in ACPI on shutdown/reboot]
Date: 11 Nov 2003 11:23:44 -0500	[thread overview]
Message-ID: <1068567824.24982.21.camel@dhcppc4> (raw)

[-- Attachment #1: Type: text/plain, Size: 1 bytes --]



[-- Attachment #2: Forwarded message - [PATCH] Don't save state in ACPI on shutdown/reboot --]
[-- Type: message/rfc822, Size: 3739 bytes --]

From: Andi Kleen <ak-h9bWGtP8wOw@public.gmane.org>
To: marcelo.tosatti-3EexvZdKGZRWk0Htik3J/w@public.gmane.org, len.brown@intel.com
Subject: [PATCH] Don't save state in ACPI on shutdown/reboot
Date: Tue, 11 Nov 2003 14:14:43 +0100
Message-ID: <20031111131443.GA23874-/48724CwFAA@public.gmane.org>


The ACPI code in 2.4 currently saves the machine state as for a 
suspend when doing an reboot or shutdown. This fails on x86-64
on some boxes.

Don't save/restore state in ACPI when entering S5.

-Andi

diff -u linux-2.4.21/drivers/acpi/system.c-o linux-2.4.21/drivers/acpi/system.c
--- linux-2.4.21/drivers/acpi/system.c-o	2003-09-23 00:40:19.000000000 +0200
+++ linux-2.4.21/drivers/acpi/system.c	2003-09-23 01:05:05.000000000 +0200
@@ -118,7 +118,8 @@
 	 * been loaded from disk.
 	 */
 	if (state > ACPI_STATE_S1) {
-		acpi_restore_state_mem();
+		if (state != ACPI_STATE_S5) 
+			acpi_restore_state_mem();
 
 		/* Do _early_ resume for irqs.  Required by
 		 * ACPI specs.
@@ -127,6 +128,7 @@
 		 * interrupts.
 		 */
 #ifdef CONFIG_X86
+		/* AK: this looks rather broken in APIC mode */
 		init_8259A(0);
 #endif
 		/* wait for power to come back */
@@ -200,7 +202,7 @@
 		ACPI_FLUSH_CPU_CACHE();
 
 		/* Do arch specific saving of state. */
-		if (state > ACPI_STATE_S1) {
+		if (state > ACPI_STATE_S1 && state < ACPI_STATE_S5) {
 			error = acpi_save_state_mem();
 
 			/* TBD: if no s4bios, write codes for


             reply	other threads:[~2003-11-11 16:23 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-11 16:23 Len Brown [this message]
     [not found] ` <1068567824.24982.21.camel-D2Zvc0uNKG8@public.gmane.org>
2003-11-11 17:00   ` [Fwd: [PATCH] Don't save state in ACPI on shutdown/reboot] Ducrot Bruno
     [not found]     ` <20031111170035.GD29175-kk6yZipjEM5g9hUCZPvPmw@public.gmane.org>
2003-11-12 22:05       ` Dave Jones
     [not found]         ` <20031112220559.GR31026-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2003-11-12 23:07           ` Ducrot Bruno

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=1068567824.24982.21.camel@dhcppc4 \
    --to=len.brown-ral2jqcrhueavxtiumwx3w@public.gmane.org \
    --cc=acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@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 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.