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] Fix the issue that Windows XP can not standby with c

To: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH] Fix the issue that Windows XP can not standby with cirrus VGA
From: "Yu, Ke" <ke.yu@xxxxxxxxx>
Date: Fri, 25 Dec 2009 19:56:16 +0800
Accept-language: en-US
Acceptlanguage: en-US
Cc: Xen-Devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Mon, 04 Jan 2010 05:02:24 -0800
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>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcqFWUN0c0YXTUplQAuAPTrCvxP9ow==
Thread-topic: [PATCH] Fix the issue that Windows XP can not standby with cirrus VGA
Fix the issue that Windows XP can not standby with cirrus VGA

Fix it by telling OSPM don't power down vga card on entering S3 state. The 
trick works for XP and
Windows2003, but Vista still refuse to allow S3.

it is picked from kvm-userdapce.git commit 60e85d, author "Gleb Natapov"

Signed-off-by: Yu Ke <ke.yu@xxxxxxxxx>

diff -r 98c4b2498415 tools/firmware/hvmloader/acpi/dsdt.asl
--- a/tools/firmware/hvmloader/acpi/dsdt.asl
+++ b/tools/firmware/hvmloader/acpi/dsdt.asl
@@ -112,6 +112,25 @@ DefinitionBlock ("DSDT.aml", "DSDT", 2, 
                    IO (Decode16, 0x10c0, 0x10c0, 0x00, 0x82)
                    IO (Decode16, 0xb044, 0xb044, 0x00, 0x04)
                })
+           }
+
+           /* Make cirrues VGA S3 suspend/resume work in Windows XP/2003 */
+           Device (VGA)
+           {
+               Name (_ADR, 0x00020000)
+
+               Method (_S1D, 0, NotSerialized)
+               {
+                   Return (0x00)
+               }
+               Method (_S2D, 0, NotSerialized)
+               {
+                   Return (0x00)
+               }
+               Method (_S3D, 0, NotSerialized)
+               {
+                   Return (0x00)
+               }
            }
 
            Method (_CRS, 0, NotSerialized)
diff -r 98c4b2498415 tools/firmware/hvmloader/acpi/dsdt.c
--- a/tools/firmware/hvmloader/acpi/dsdt.c
+++ b/tools/firmware/hvmloader/acpi/dsdt.c
...
...

Attachment: s3-vga-bios.patch
Description: s3-vga-bios.patch

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] Fix the issue that Windows XP can not standby with cirrus VGA, Yu, Ke <=