coreboot/src
Raul E Rangel 59d64f06be soc/amd/{cezanne,picasso,stoney,common}: Don't clear PM1 on resume
According to https://uefi.org/specs/ACPI/6.4/04_ACPI_Hardware_Specification/ACPI_Hardware_Specification.html#pm1-event-grouping

> For ACPI/legacy systems, when transitioning from the legacy to the G0
> working state this register is cleared by platform firmware prior to
> setting the SCI_EN bit (and thus passing control to OSPM). For ACPI
> only platforms (where SCI_EN is always set), when transitioning from
> either the mechanical off (G3) or soft-off state to the G0 working
> state this register is cleared prior to entering the G0 working state.

This means we don't want to clear the PM1 register on resume. By
clearing it the linux kernel can't correctly increment the wake count
when the power button is pressed. The AMD platforms implement the _SWS
ACPI methods, but the linux kernel doesn't actually use these methods.

BUG=b:172021431
TEST=suspend zork and push power button and verify power button
wake_count increments. Verified other wake sources still work.

Signed-off-by: Raul E Rangel <rrangel@chromium.org>
Change-Id: Iaa886540d90f4751d14837c1485ef50ceca48561
Reviewed-on: https://review.coreboot.org/c/coreboot/+/59929
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
2021-12-08 20:25:33 +00:00
..
acpi acpi,Makefile: Add preload_acpi_dsdt 2021-11-29 20:35:33 +00:00
arch arch/{arm,arm64,ppc64,riscv}: Add noop cpu_relax 2021-11-25 10:42:17 +00:00
commonlib cbfs: Remove deprecated APIs 2021-12-06 12:36:45 +00:00
console src/acpi to src/lib: Fix spelling errors 2021-10-05 18:06:39 +00:00
cpu cpu/amd/pi/Kconfig: select NO_SMM 2021-12-08 01:05:29 +00:00
device device/pci_device.c: Scan only one device for PCIe 2021-11-29 03:19:51 +00:00
drivers drivers/net/r8168: Add support for Realtek RT8125 2021-12-03 15:49:02 +00:00
ec ec/google/chromeec: Support 5 temperature sensors 2021-11-26 11:19:52 +00:00
include lib: Fix log2_ceil() for 0xffffffff 2021-12-08 00:51:43 +00:00
lib cbfs: Remove deprecated APIs 2021-12-06 12:36:45 +00:00
mainboard mb/google/brya/var/primus: Fix PLD group order 2021-12-08 16:05:55 +00:00
northbridge northbridge/amd/pi/00730F01/northbridge.c: remove unneeded global variables 2021-12-07 15:03:53 +00:00
security x86_64 assembly: Don't touch %gs 2021-12-06 12:37:48 +00:00
soc soc/amd/{cezanne,picasso,stoney,common}: Don't clear PM1 on resume 2021-12-08 20:25:33 +00:00
southbridge sb/amd/pi/hudson/early_init: fix setting SPI_USE_SPI100 in SPI100_ENABLE 2021-12-08 13:48:32 +00:00
superio superio/smsc/sch5545: Disable PS/2 lines isolation during init 2021-11-27 14:23:08 +00:00
vendorcode vc/mediatek/mt8195: Fix rank1 CKE setting for single-rank DRAM 2021-12-01 09:48:17 +00:00
Kconfig Kconfig: Show console DEBUG_FUNC if OVERRIDE_LOGLEVEL is set 2021-11-13 00:20:11 +00:00