Skip to contentSkip to conversation

acpi: clear PCIEXP_WAKE_STS on resume

PATCH Superseded Colin King 1 participant 2 messages Aug 4, 2010

Subsystems (2)
lore
Share & tools
lore

Colin King

author
#0 lore raw

cover acpi: clear PCIEXP_WAKE_STS on resume

From: Colin Ian King <[email protected]>

Discovered that clearing the PCIEXP_WAKE_STS bit in PM1 on resume fixes a S3 resume hang in a BIOS. I beleive the on board PCI Express ethernet is sometimes causing a PCI wakeup event which requires clearing the PCIEXP_WAKE_STS bit before we go into the next resume or it will hang in the BIOS.

The ACPI spec 4.0 does indicate that this bit should be cleared before suspending (see section 4.7.3.1.1, table 4-11 in the PCIEXP_WAKE_STS entry) otherwise "the system will not automatically wake."

Colin Ian King (1):
acpi: clear PCIEXP_WAKE_STS on resume

 drivers/acpi/acpica/aclocal.h |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
author
#1 lore raw

PATCH 1/1 acpi: clear PCIEXP_WAKE_STS on resume

From: Colin Ian King <[email protected]>

Section 4.7.3.1.1 (PM1 Status Registers) of version 4.0 of the ACPI spec concerning PCIEXP_WAKE_STS points out in in the final note field in table 4-11 that if this bit is set to 1 and the system is put into a sleeping state then the system will not automatically wake.

This bit gets set by hardware to indicate that the system woke up due to a PCI Express wakeup event, so clear it during acpi_hw_clear_acpi_status() calls to enable subsequent resumes to work.

---
 drivers/acpi/acpica/aclocal.h |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/acpi/acpica/aclocal.h +1 -0
index 147a7e6..f26db38 100644
@@ -853,6 +853,7 @@ struct acpi_bit_register_info {
 	ACPI_BITMASK_POWER_BUTTON_STATUS   | \
 	ACPI_BITMASK_SLEEP_BUTTON_STATUS   | \
 	ACPI_BITMASK_RT_CLOCK_STATUS       | \
+        ACPI_BITMASK_PCIEXP_WAKE_DISABLE   | \
 	ACPI_BITMASK_WAKE_STATUS)
 
 #define ACPI_BITMASK_TIMER_ENABLE               0x0001
Signature · 1 line
1.7.0.4