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
...
...
s3-vga-bios.patch
Description: s3-vga-bios.patch
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|