Commit 854abe2
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>1 parent 10b29dd commit 854abe2
1 file changed
Lines changed: 26 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
322 | 322 | | |
323 | 323 | | |
324 | 324 | | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
325 | 347 | | |
326 | 348 | | |
327 | 349 | | |
328 | 350 | | |
329 | 351 | | |
330 | 352 | | |
331 | 353 | | |
332 | | - | |
| 354 | + | |
333 | 355 | | |
334 | 356 | | |
335 | | - | |
336 | | - | |
337 | 357 | | |
338 | 358 | | |
339 | 359 | | |
| |||
689 | 709 | | |
690 | 710 | | |
691 | 711 | | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
692 | 715 | | |
693 | 716 | | |
694 | 717 | | |
| |||
0 commit comments