]> 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)
commitd73b37a331f5f9c1637da14bea2f89e68504a6b3
tree3104483ccd9ae04dac0109dbb2ca99d24d275b35
parentb4bb61f9355656d9778c04e81e42debbde9aef93
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