aws: Support hibernation on Graviton
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux-aws (Ubuntu) |
In Progress
|
Undecided
|
Philip Cox | ||
Jammy |
Fix Committed
|
Undecided
|
Philip Cox | ||
Mantic |
Fix Committed
|
Undecided
|
Philip Cox | ||
Noble |
Fix Committed
|
Undecided
|
Philip Cox |
Bug Description
SRU Justification:
[Impact]
This change contains two parts, the first is adding support for
- KVM and guest support for the PSCI SYSTEM_OFF2 (hibernate) call
And the second part is:
- Guest kernel support for clean boot on demand
For KVM and guest support for the PSCI SYSTEM_OFF2 (hibernate) call:
PSCI v1.3 adds support for SYSTEM_OFF2 which is analogous to ACPI S4 state.
This will allow hosting environments to determine that a guest is hibernated rather than just powered off, and ensure that they preserve the virtual environment appropriately to allow the guest to resume safely (or bump the hardware_signature in the FACS to trigger a clean reboot instead).
For Guest kernel support for clean boot on demand:
The FACS field in the ACPI table is optional, but can be used communicate the hardware_signature field. If this field changes on resuming from a hibernation a clean reboot should happen rather than the resume from hibernation.
On hardware reduced platforms[0] this field may exist but it is not exposed currently.
[Fix]
The changes for KVM and guest support for the PSCI SYSTEM_OFF2 (hibernate) call come from:
https://<email address hidden>
The changes for Guest kernel support for clean boot on demand come from:
https://<email address hidden>
Latest patches have been picked from:
- noble/mantic: https:/
- jammy: https:/
[Test Plan]
AWS test.
[Where problems could occur]
If on hardware reduced platforms that incorrectly support/advertise the FACS field, hibernation may break if it returns a hardware signature that changes.
[Other info]
SF# 00383181
[0]: See Section 4.1 of the ACPI spec for info on hardware-reduced platforms.
https:/
description: | updated |
Changed in linux-aws (Ubuntu Mantic): | |
assignee: | nobody → Philip Cox (philcox) |
status: | New → In Progress |
Changed in linux-aws (Ubuntu Noble): | |
status: | New → In Progress |
Changed in linux-aws (Ubuntu Jammy): | |
status: | New → In Progress |
summary: |
- aws: Guest kernel support for clean boot on demand + aws: Support hibernation on Graviton |
description: | updated |
Changed in linux-aws (Ubuntu Jammy): | |
assignee: | nobody → Philip Cox (philcox) |
description: | updated |
Changed in linux-aws (Ubuntu Jammy): | |
status: | In Progress → Fix Committed |
Changed in linux-aws (Ubuntu Mantic): | |
status: | In Progress → Fix Committed |
Changed in linux-aws (Ubuntu Noble): | |
status: | In Progress → Fix Committed |
The ACPICA patch is merged upstream: https:/ /github. com/acpica/ acpica/ commit/ b3496dece6de270 9373ad7338698ce 91dec5215d
So I've reposted the kernel patches to reference the ACPICA commit ID:
https://<email address hidden>/
As before, the full set of patches is at /git.infradead. org/users/ dwmw2/linux. git/shortlog/ refs/heads/ psci-hibernate /git.infradead. org/users/ dwmw2/linux. git/shortlog/ refs/heads/ psci-hibernate- 6.8
https:/
https:/