Not able to enter s2idle state on AMD platforms
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
HWE Next |
Fix Released
|
Undecided
|
Unassigned | ||
linux (Ubuntu) |
Fix Released
|
High
|
Alex Hung | ||
Focal |
Invalid
|
Undecided
|
Unassigned | ||
Jammy |
Fix Released
|
High
|
Alex Hung | ||
linux-oem-5.14 (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
Focal |
Fix Released
|
High
|
Unassigned | ||
Jammy |
Invalid
|
Undecided
|
Unassigned |
Bug Description
[Impact]
AMD Systems don't enter PC6 at runtime and cause failures to enter s2idle.
Currently the fix is from kernel driver rather than MP2 firmware, which disable interrupts from kernel driver to fix MP2 firmware blocking CPUOFF.
[Fix]
The fixes involve 1) cancelling delayed work when entering s0ix and re-scheduling it when resuming from s0ix, and 2) clearing interrupts during the driver initialization and sensor command operations.
[Test]
This is requested by AMD and was tested on AMD CRB.
[Where problems could occur]
Risk is low to medium. Some code flow changes are guarded by reasonable conditions, but the fixes introduced additional suspend and resume operations.
Having said that, clearing interrupts before driver initialization and cancelling work before entering sleeping states are standard approaches are usually safe.
CVE References
tags: | added: amd oem-priority originate-from-1960434 |
Changed in hwe-next: | |
assignee: | nobody → Alex Hung (alexhung) |
status: | New → In Progress |
description: | updated |
Changed in linux (Ubuntu Focal): | |
status: | New → Invalid |
Changed in linux-oem-5.14 (Ubuntu Jammy): | |
status: | New → Invalid |
Changed in linux-oem-5.14 (Ubuntu Focal): | |
status: | New → In Progress |
importance: | Undecided → High |
assignee: | nobody → Alex Hung (alexhung) |
Changed in linux (Ubuntu Jammy): | |
status: | Incomplete → In Progress |
importance: | Undecided → High |
assignee: | nobody → Alex Hung (alexhung) |
Changed in linux-oem-5.14 (Ubuntu Focal): | |
status: | In Progress → Fix Committed |
tags: |
added: verification-done-focal removed: verification-needed-focal |
Changed in hwe-next: | |
assignee: | Alex Hung (alexhung) → nobody |
Changed in linux-oem-5.14 (Ubuntu Focal): | |
assignee: | Alex Hung (alexhung) → nobody |
Changed in hwe-next: | |
status: | In Progress → Fix Released |
This bug is missing log files that will aid in diagnosing the problem. While running an Ubuntu kernel (not a mainline or third-party kernel) please enter the following command in a terminal window:
apport-collect 1961121
and then change the status of the bug to 'Confirmed'.
If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.
This change has been made by an automated script, maintained by the Ubuntu Kernel Team.