platform/x86/amd: pmc: Add an extra STB message for checking s2idle entry
authorMario Limonciello <mario.limonciello@amd.com>
Mon, 29 Aug 2022 16:29:52 +0000 (11:29 -0500)
committerHans de Goede <hdegoede@redhat.com>
Fri, 9 Sep 2022 15:37:41 +0000 (17:37 +0200)
commitdb55fb8a06f241e168a4f275970f2701d52040c6
treee96520f3abb877277167d711f8b440bd1f87c7e2
parent90bec2855c566b6d07cc3e2bb47befb6266cf1ec
platform/x86/amd: pmc: Add an extra STB message for checking s2idle entry

The `check` callback is run right before the cores are put into HLT.
This will allow checking synchronization problems with other software
that writes into the STB.

Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Link: https://lore.kernel.org/r/20220829162953.5947-5-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