]> git.baikalelectronics.ru Git - kernel.git/commit
platform/x86: amd-pmc: Validate entry into the deepest state on resume
authorMario Limonciello <mario.limonciello@amd.com>
Thu, 10 Mar 2022 15:09:20 +0000 (09:09 -0600)
committerHans de Goede <hdegoede@redhat.com>
Thu, 10 Mar 2022 17:47:55 +0000 (18:47 +0100)
commit3ea64acaf66d07f7f2afa08487dbf5e9251d16ea
tree3104483ccd9ae04dac0109dbb2ca99d24d275b35
parenta2e35fed000b7d0357b48e89107ee9a7fb726610
platform/x86: amd-pmc: Validate entry into the deepest state on resume

Currently the only way to discover if a system went into the deepest sleep
state is to read from sysfs after you finished suspend.

To better illustrate to users that problems have occurred, check as part
of resume and display a warning.

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