[PATCH 0/1] Fix using rtcwake on Cezanne platforms

From: Mario Limonciello
Date: Thu Oct 20 2022 - 07:38:36 EST


Vicamo reports that rtcwake is not working properly on 6.0 kernel, but
worked properly on 5.17 kernel. He bisected it down to:

commit b0c07116c8943 ("platform/x86: amd-pmc: Avoid reading SMU version at
probe time")

The issue is that commit made it possible to issue a suspend where SMU
version isn't known, meaning amd-pmc can't decide whether to activate
behavior to add a timer value to the OS_HINT message.

This wasn't reproduced on AMD's side initially because the testing
scripts were reading the idle mask from debugfs which would cache the
value in the driver.

This patch ensures that SMU version has been read even if debugfs hasn't
been accessed so that rtcwake can work again.

Mario Limonciello (1):
platform/x86/amd: pmc: Read SMU version during suspend on Cezanne
systems

drivers/platform/x86/amd/pmc.c | 7 +++++++
1 file changed, 7 insertions(+)

--
2.34.1