-
Notifications
You must be signed in to change notification settings - Fork 2
/
seabios-fix-resume-from-S3-with-QXL-device.patch
57 lines (50 loc) · 1.79 KB
/
seabios-fix-resume-from-S3-with-QXL-device.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
From 36e549edb845ced36471e501ad1f0b8a08725e51 Mon Sep 17 00:00:00 2001
From: Gleb Natapov <[email protected]>
Date: Mon, 14 Jun 2010 10:02:19 -0300
Subject: [PATCH] fix resume from S3 with QXL device
RH-Author: Gleb Natapov <[email protected]>
Message-id: <[email protected]>
Patchwork-id: 9882
O-Subject: [PATCH SEABIOS RHEL6] fix resume from S3 with QXL device
Bugzilla: 603677
RH-Acked-by: Alex Williamson <[email protected]>
RH-Acked-by: Jes Sorensen <[email protected]>
RH-Acked-by: Juan Quintela <[email protected]>
QXL device is powered down during S3, so tell this to a guest OS
in AML code.
Signed-off-by: Gleb Natapov <[email protected]>
--
Gleb.
Signed-off-by: Eduardo Habkost <[email protected]>
---
src/acpi-dsdt.dsl | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
diff --git a/src/acpi-dsdt.dsl b/src/acpi-dsdt.dsl
index cc31112..6e4502b 100644
--- a/src/acpi-dsdt.dsl
+++ b/src/acpi-dsdt.dsl
@@ -219,6 +219,10 @@ DefinitionBlock (
Scope(\_SB.PCI0) {
Device (VGA) {
Name (_ADR, 0x00020000)
+ OperationRegion(PCIC, PCI_Config, Zero, 0x4)
+ Field(PCIC, DWordAcc, NoLock, Preserve) {
+ VEND, 32
+ }
Method (_S1D, 0, NotSerialized)
{
Return (0x00)
@@ -229,7 +233,11 @@ DefinitionBlock (
}
Method (_S3D, 0, NotSerialized)
{
- Return (0x00)
+ If (LEqual(VEND, 0x1001b36)) {
+ Return (0x03) // QXL
+ } Else {
+ Return (0x00)
+ }
}
}
--
1.7.0.3