[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH] Fix the issue that Windows XP can not standby with cirrus VGA


  • To: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
  • 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
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>
  • 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

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.