aws: Support hibernation on Graviton

Bug #2060992 reported by Philip Cox
14
This bug affects 1 person
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://git.infradead.org/users/dwmw2/linux.git/shortlog/refs/heads/psci-hibernate-6.8

    - jammy: https://git.infradead.org/users/dwmw2/linux.git/shortlog/refs/heads/psci-hibernate-5.15

[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://uefi.org/htmlspecs/ACPI_Spec_6_4_html/04_ACPI_Hardware_Specification/ACPI_Hardware_Specification.html

Philip Cox (philcox)
description: updated
Revision history for this message
dwmw2 (dwmw2) wrote :

The ACPICA patch is merged upstream: https://github.com/acpica/acpica/commit/b3496dece6de2709373ad7338698ce91dec5215d

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
https://git.infradead.org/users/dwmw2/linux.git/shortlog/refs/heads/psci-hibernate
https://git.infradead.org/users/dwmw2/linux.git/shortlog/refs/heads/psci-hibernate-6.8

Philip Cox (philcox)
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
Philip Cox (philcox)
Changed in linux-aws (Ubuntu Jammy):
status: New → In Progress
Philip Cox (philcox)
summary: - aws: Guest kernel support for clean boot on demand
+ aws: Support hibernation on Graviton
Philip Cox (philcox)
description: updated
Changed in linux-aws (Ubuntu Jammy):
assignee: nobody → Philip Cox (philcox)
Philip Cox (philcox)
description: updated
Philip Cox (philcox)
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
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.