Skip to content

Commit

Permalink
OvmfPkg: report S3 state in DSDT
Browse files Browse the repository at this point in the history
The ACPI 5.0 specification says:

  7.3.4.4 System \_S3 State

  [...]
  * Dynamic RAM context is maintained.
  [...]

This corresponds to the following in the PIIX4 spec:

  PMCNTRL -- POWER MANAGEMENT CONTROL REGISTER (IO)
  [...]
  Bits[12:10]  Suspend Type
  [...]
          001  STR (Suspend To RAM)

Also, this (ie. decimal 1) is the suspend type value that qemu recognizes
as an S3 (suspend to ram) request.

Only the value for PM1a_CNT.SLP_TYP is set (PM1b_CNT.SLP_TYP is left at
zero), since in OVMF we don't report the optional PM1b_EVT_BLK register
block to OSPM. (PM1b_EVT_BLK is defined as 0 in "Platform.h"; see "4.8.1.1
PM1 Event Registers" in the ACPI 5.0 specification.)

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Laszlo Ersek <[email protected]>
Reviewed-by: Jordan Justen <[email protected]>

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@14002 6f19259b-4bc3-4df7-8a09-765794883524
  • Loading branch information
jljusten committed Dec 17, 2012
1 parent 50399ec commit fb8a1b4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions OvmfPkg/AcpiTables/Dsdt.asl
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ DefinitionBlock ("Dsdt.aml", "DSDT", 1, "INTEL ", "OVMF ", 4) {
// System Sleep States
//
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

Expand Down

0 comments on commit fb8a1b4

Please sign in to comment.