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

RE: [Xen-devel] ACPI suspend/resume on Dell Inspirons 1464/1564/1764

To: "Roger Cruz" <roger.cruz@xxxxxxxxxxxxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: RE: [Xen-devel] ACPI suspend/resume on Dell Inspirons 1464/1564/1764
From: "Roger Cruz" <roger.cruz@xxxxxxxxxxxxxxxxxxx>
Date: Wed, 12 May 2010 13:38:49 -0500
Cc:
Delivery-date: Wed, 12 May 2010 11:39:55 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <EACA7CA90354A849B1315959042A052C26F33B@xxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: Acrr2MGaf7yfnFaQTZycCDfaoiD3fwGKD9vE
Thread-topic: ACPI suspend/resume on Dell Inspirons 1464/1564/1764

We have made some progress in getting the inspiron laptops to work under Xen.  We tried xenunstable and xen-4.0.0 and discovered that xenunstable can resume whereas xen-4.0.0 cannot.  Through trial and error, we have been able to narrow down the actual changes that allowed it to work.  It looks like moving the trampoline code down from its 0x8c000 location allowed it to resume. 

So we took the change below and applied it to our 3.4.2 tree.  However, we still have a problem in our 3.4.2 tree with this patch applied.  If an HVM guest is running, the resume will fail with the exact same behavior as before.  Due to our environment setup, we have not been able to test xenunstable with an HVM guest, so we can't say if this problem is fixed in xenunstable or not.  Can someone familiar with these changes provide a clue as to what is going on?  how does having an HVM guest running affect the resume functionality?  Running PV linux guests does not affect resume, only HVM guests do.


--- old/xen-3.4.2/xen/include/asm-x86/config.h  2010-05-12 11:44:35.243564976 -0400
+++ new/xen-3.4.2/xen/include/asm-x86/config.h  2010-05-12 11:44:35.026578602 -0400
@@ -96,7 +96,7 @@
 /* Primary stack is restricted to 8kB by guard pages. */
 #define PRIMARY_STACK_SIZE 8192

-#define BOOT_TRAMPOLINE 0x8c000
+#define BOOT_TRAMPOLINE 0x7c000
 #define bootsym_phys(sym)                                 \
     (((unsigned long)&(sym)-(unsigned long)&trampoline_start)+BOOT_TRAMPOLINE)
 #define bootsym(sym)                                      \



--- old/xen-3.4.2/xen/include/asm-x86/config.h  2010-05-12 11:44:35.243564976 -0400
+++ new/xen-3.4.2/xen/include/asm-x86/config.h  2010-05-12 11:44:35.026578602 -0400
@@ -96,7 +96,7 @@
 /* Primary stack is restricted to 8kB by guard pages. */
 #define PRIMARY_STACK_SIZE 8192

-#define BOOT_TRAMPOLINE 0x8c000
+#define BOOT_TRAMPOLINE 0x7c000
 #define bootsym_phys(sym)                                 \
     (((unsigned long)&(sym)-(unsigned long)&trampoline_start)+BOOT_TRAMPOLINE)
 #define bootsym(sym)                                      \

-------

Hello fellow Xen developers,

I'm about to start debugging why Dell Inspirons running Xen 3.4.2 fail to resume after a suspend operation.  A colleague has also found that the problem exists on bare-metal Linux (https://bugs.launchpad.net/ubuntu/+source/linux/+bug/571422) and an upstream patch has been created (http://kernel.ubuntu.com/git?p=ubuntu/ubuntu-lucid.git;a=commitdiff;h=29c60ccc1a408371885d79d8f8c081fbcb9b10be). 

I would like to find out if anyone in the Xen community has encountered this problem and if a fix is in the works.  Otherwise, I will attempt to provide a similar solution to Linux's patch.

thanks
Roger

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