From 14430c55c8d0e9a8487c2c74155e63299632ef5e Mon Sep 17 00:00:00 2001 From: jljusten Date: Mon, 17 Dec 2012 02:13:14 +0000 Subject: OvmfPkg: create \_S3 and \_S4 packages dynamically Move these states from the DSDT to the SSDT. Override the default configuration if the host has the following qemu commit: commit 459ae5ea5ad682c2b3220beb244d4102c1a4e332 Author: Gleb Natapov Date: Mon Jun 4 14:31:55 2012 +0300 Add PIIX4 properties to control PM system states. This patch adds two things. First it allows QEMU to distinguish between regular powerdown and S4 powerdown. Later separate QMP notification will be added for S4 powerdown. Second it allows S3/S4 states to be disabled from QEMU command line. Some guests known to be broken with regards to power management, but allow to use it anyway. Using new properties management will be able to disable S3/S4 for such guests. Supported system state are passed to a firmware using new fw_cfg file. The file contains 6 byte array. Each byte represents one system state. If byte at offset X has its MSB set it means that system state X is supported and to enter it guest should use the value from lowest 3 bits. Signed-off-by: Gleb Natapov Signed-off-by: Anthony Liguori Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@14003 6f19259b-4bc3-4df7-8a09-765794883524 --- OvmfPkg/AcpiTables/Dsdt.asl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'OvmfPkg/AcpiTables/Dsdt.asl') diff --git a/OvmfPkg/AcpiTables/Dsdt.asl b/OvmfPkg/AcpiTables/Dsdt.asl index 326942dd44..12a4f142af 100644 --- a/OvmfPkg/AcpiTables/Dsdt.asl +++ b/OvmfPkg/AcpiTables/Dsdt.asl @@ -16,9 +16,10 @@ DefinitionBlock ("Dsdt.aml", "DSDT", 1, "INTEL ", "OVMF ", 4) { // // System Sleep States // + // We build S3 and S4 with GetSuspendStates() in + // "OvmfPkg/AcpiPlatformDxe/Qemu.c". + // Name (\_S0, Package () {5, 0, 0, 0}) // Working - Name (\_S3, Package () {1, 0, 0, 0}) // Suspend to Ram (PIIX4: STR) - Name (\_S4, Package () {2, 0, 0, 0}) // Suspend to Disk (PIIX4: POSCL) Name (\_S5, Package () {0, 0, 0, 0}) // Soft Off // -- cgit v1.2.3