]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
platform/x86/amd: pmc: Add a workaround for an s0i3 issue on Cezanne
authorMario Limonciello <mario.limonciello@amd.com>
Wed, 16 Nov 2022 15:43:41 +0000 (09:43 -0600)
committerHans de Goede <hdegoede@redhat.com>
Thu, 17 Nov 2022 16:08:17 +0000 (17:08 +0100)
commit260ad3de718301ed8c22e28558e3a31c99f54cf6
tree5761de0621937393fdb0b49675d9022b591fd3a2
parentf32e02417614d3588a3954dab2a70320c43d1010
platform/x86/amd: pmc: Add a workaround for an s0i3 issue on Cezanne

Cezanne platforms under the right circumstances have a synchronization
problem where attempting to enter s2idle may fail if the x86 cores are
put into HLT before hardware resume from the previous attempt has
completed.

To avoid this issue add a 10-20ms delay before entering s2idle another
time. This workaround will only be applied on interrupts that wake the
hardware but don't break the s2idle loop.

Cc: stable@vger.kernel.org # 6.1
Cc: "Mahapatra, Rajib" <Rajib.Mahapatra@amd.com>
Cc: "Raul Rangel" <rrangel@chromium.org>
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Link: https://lore.kernel.org/r/20221116154341.13382-1-mario.limonciello@amd.com
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/amd/pmc.c