Justin M. Forbes 66f709
From 526d703a74752b66fd54ac4a9133a3de31c90549 Mon Sep 17 00:00:00 2001
Justin M. Forbes 66f709
From: Gleb Natapov <gleb@redhat.com>
Justin M. Forbes 66f709
Date: Sun, 11 Sep 2011 09:05:50 +0200
Justin M. Forbes 66f709
Subject: [PATCH] do not advertise S4/S3 in DSDT
Justin M. Forbes 66f709
Justin M. Forbes 66f709
RH-Author: Gleb Natapov <gleb@redhat.com>
Justin M. Forbes 66f709
Message-id: <20110911090550.GF21417@redhat.com>
Justin M. Forbes 66f709
Patchwork-id: 32631
Justin M. Forbes 66f709
O-Subject: [PATCHv2 RHEL6.2 SEABIOS] do not advertise S4/S3 in DSDT
Justin M. Forbes 66f709
Bugzilla: 736522
Justin M. Forbes 66f709
RH-Acked-by: Gerd Hoffmann <kraxel@redhat.com>
Justin M. Forbes 66f709
RH-Acked-by: Marcelo Tosatti <mtosatti@redhat.com>
Justin M. Forbes 66f709
RH-Acked-by: Markus Armbruster <armbru@redhat.com>
Justin M. Forbes 66f709
Justin M. Forbes 66f709
To compile Seabios with PM support run make "DSDT_CPP_FLAGS=-DDSDT_PM"
Justin M. Forbes 66f709
Justin M. Forbes 66f709
BZ: 736522
Justin M. Forbes 66f709
Upstream: local patch
Justin M. Forbes 66f709
Justin M. Forbes 66f709
Signed-off-by: Gleb Natapov <gleb@redhat.com>
Justin M. Forbes 66f709
--
Justin M. Forbes 66f709
			Gleb.
Justin M. Forbes 66f709
Justin M. Forbes 66f709
Signed-off-by: Michal Novotny <minovotn@redhat.com>
Justin M. Forbes 66f709
---
Justin M. Forbes 66f709
 Makefile          |    2 +-
Justin M. Forbes 66f709
 src/acpi-dsdt.dsl |    2 ++
Justin M. Forbes 66f709
 2 files changed, 3 insertions(+), 1 deletions(-)
Justin M. Forbes 66f709
Justin M. Forbes 66f709
diff --git a/Makefile b/Makefile
Justin M. Forbes 66f709
index b185ac8..f5c7104 100644
Justin M. Forbes 66f709
--- a/Makefile
Justin M. Forbes 66f709
+++ b/Makefile
Justin M. Forbes 66f709
@@ -186,7 +186,7 @@ $(OUT)vgabios.bin: $(OUT)vgabios.bin.raw tools/buildrom.py
Justin M. Forbes 66f709
 ####### dsdt build rules
Justin M. Forbes 66f709
 src/%.hex: src/%.dsl
Justin M. Forbes 66f709
 	@echo "Compiling DSDT"
Justin M. Forbes 66f709
-	$(Q)cpp -P $< > $(OUT)$*.dsl.i
Justin M. Forbes 66f709
+	$(Q)cpp $(DSDT_CPP_FLAGS) -P $< > $(OUT)$*.dsl.i
Justin M. Forbes 66f709
 	$(Q)iasl -tc -p $(OUT)$* $(OUT)$*.dsl.i
Justin M. Forbes 66f709
 	$(Q)cp $(OUT)$*.hex $@
Justin M. Forbes 66f709
 
Justin M. Forbes 66f709
diff --git a/src/acpi-dsdt.dsl b/src/acpi-dsdt.dsl
Justin M. Forbes 66f709
index b54c558..1db5ae9 100644
Justin M. Forbes 66f709
--- a/src/acpi-dsdt.dsl
Justin M. Forbes 66f709
+++ b/src/acpi-dsdt.dsl
Justin M. Forbes 66f709
@@ -722,6 +722,7 @@ DefinitionBlock (
Justin M. Forbes 66f709
         }
Justin M. Forbes 66f709
     }
Justin M. Forbes 66f709
 
Justin M. Forbes 66f709
+#ifdef DSDT_PM
Justin M. Forbes 66f709
     /*
Justin M. Forbes 66f709
      * S3 (suspend-to-ram), S4 (suspend-to-disk) and S5 (power-off) type codes:
Justin M. Forbes 66f709
      * must match piix4 emulation.
Justin M. Forbes 66f709
@@ -740,6 +741,7 @@ DefinitionBlock (
Justin M. Forbes 66f709
         Zero,  /* reserved */
Justin M. Forbes 66f709
         Zero   /* reserved */
Justin M. Forbes 66f709
     })
Justin M. Forbes 66f709
+#endif
Justin M. Forbes 66f709
     Name (\_S5, Package (0x04)
Justin M. Forbes 66f709
     {
Justin M. Forbes 66f709
         Zero,  /* PM1a_CNT.SLP_TYP */
Justin M. Forbes 66f709
-- 
Justin M. Forbes 66f709
1.7.4.4
Justin M. Forbes 66f709