WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH] Re: [Xen-staging] [linux-2.6.18-xen] linux/x86: fix

To: Keir Fraser <keir.fraser@xxxxxxxxxx>, Jan Beulich <jbeulich@xxxxxxxxxx>
Subject: [Xen-devel] [PATCH] Re: [Xen-staging] [linux-2.6.18-xen] linux/x86: fix powering off certain machines
From: Alex Williamson <alex.williamson@xxxxxx>
Date: Fri, 04 Apr 2008 10:30:24 -0600
Cc: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Fri, 04 Apr 2008 09:30:57 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <200804041229.m34CT3HK010024@xxxxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Organization: OSLO R&D
References: <200804041229.m34CT3HK010024@xxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
On Fri, 2008-04-04 at 13:29 +0100, Xen staging patchbot-linux-2.6.18-xen
wrote:
> # HG changeset patch
> # User Keir Fraser <keir.fraser@xxxxxxxxxx>
> # Date 1207312068 -3600
> # Node ID 0d6c9c975eaee85e35d4007b1b84cafbfbb24378
> # Parent  51f1b31888b8173dc9a94e46280f83c9011c4f51
> linux/x86: fix powering off certain machines
> 
> Dell's Precision490, for example, fails to properly power off without
> going through the full sequence of operations in the hypervisor. Hence
> acpi_notify_hypervisor_state() must be defined, and used for entry to
> S5, regardless of CONFIG_ACPI_PV_SLEEP configuration.
> 
> Also fix a compiler warning and the improper use of a hypervisor
> return value as ACPI status.

 ia64 doesn't implement acpi_notify_hypervisor_state() and I'm not sure
we want to let Xen own the acpi hardware.  The patch below lets us
continue to use the unmodified code.  Thanks,

        Alex

Signed-off-by: Alex Williamson <alex.williamson@xxxxxx>
--

diff -r 0d6c9c975eae drivers/acpi/hardware/hwsleep.c
--- a/drivers/acpi/hardware/hwsleep.c   Fri Apr 04 13:27:48 2008 +0100
+++ b/drivers/acpi/hardware/hwsleep.c   Fri Apr 04 10:22:07 2008 -0600
@@ -227,7 +227,7 @@ acpi_status asmlinkage acpi_enter_sleep_
        u32 PM1Bcontrol;
        struct acpi_bit_register_info *sleep_type_reg_info;
        struct acpi_bit_register_info *sleep_enable_reg_info;
-#ifndef CONFIG_XEN
+#if !(defined(CONFIG_XEN) && defined(CONFIG_X86))
        u32 in_value;
 #else
        int err;
@@ -331,7 +331,7 @@ acpi_status asmlinkage acpi_enter_sleep_
 
        ACPI_FLUSH_CPU_CACHE();
 
-#ifndef CONFIG_XEN
+#if !(defined(CONFIG_XEN) && defined(CONFIG_X86))
        status = acpi_hw_register_write(ACPI_MTX_DO_NOT_LOCK,
                                        ACPI_REGISTER_PM1A_CONTROL,
                                        PM1Acontrol);




_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] Re: [Xen-staging] [linux-2.6.18-xen] linux/x86: fix powering off certain machines, Alex Williamson <=