ARM Hibernation

Revision as of 09:37, 1 July 2013 by Nmenon (talk | contribs) (U-Boot restore)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


The swsusp framework provides hibernation support on mainline kernels. This page discusses adding that functionality to ARM.


Providing hibernation support for ARM provides several advantages:

  • Zero power consumption sleep
  • Snapshot boot ability
  • Shared effort with DDR self-refresh only suspend modes (such as RTC-only on am335x)

Utilizing the mainline swsusp framework also provides to uswsusp, allowing flexibility with where and how hibernation images are stored.


The primary challenge to bringing hibernation to ARM is the complex state of PM within ARM, the large amount of CPU registers related to PM, and the complexity of saving and restoring those registers properly.


A set of patches is available for am335x hibernation, it is currently based on 3.8-rc5 plus some TI PM and am33xx patches.

U-Boot restore

Rather than utilizing a boot kernel to reload a hibernation image, U-Boot can be used directly. Patchset available against v2013.01 here:

This has the advantage of potentially being faster as a boot kernel does not need to be run, but it has the disadvantage that loading and decompressing pages from disk can be slower under U-Boot.

To function, it requires the kernel to pass a cpu_resume function and also restore it's nosave section.

Articles and presentations