Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1461481

Re: [PATCH][RFC] Documentation/: update hibernation debug documentation

From Pavel Machek <pavel@ucw.cz>
Newsgroups linux.kernel
Subject Re: [PATCH][RFC] Documentation/: update hibernation debug documentation
Date 2016-08-13 00:00 +0200
Message-ID <s5sEG-7nQ-15@gated-at.bofh.it> (permalink)
References <s4X7P-3Hm-15@gated-at.bofh.it> <s5ji1-19l-11@gated-at.bofh.it> <s5ji1-19l-13@gated-at.bofh.it> <s5kH7-2ca-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Hi!

> Index: linux-pm/Documentation/power/interface.txt
> ===================================================================
> --- linux-pm.orig/Documentation/power/interface.txt
> +++ linux-pm/Documentation/power/interface.txt
...
> -CAUTION: Using it will cause your machine's real-time (CMOS) clock to be
> -set to a random invalid time after a resume.
> +'freeze' (Suspend-to-Idle)
> +'standby' (Power-On Suspend)
> +'mem' (Suspend-to-RAM)
> +'disk' (Suspend-to-Disk)
> +
> +Suspend-to-Idle is always supported.  Suspend-to-Disk is always supported
> +too as long the kernel has been configured to support hibernation at all
> +(ie. CONFIG_HIBERNATION is set in the kernel configuration file).  Support
> +for Suspend-to-RAM and Power-On Suspend depends on the capabilities of the
> +platform.
> +
> +If one of the strings listed in /sys/power/state is writtent to it, the system

Typo at writtent.

> +will attempt to transition into the corresponding sleep state.  Refer to
> +Documentation/power/states.txt for a description of each of those states.
> +
> +/sys/power/disk controls the operating mode of hibernation (Suspend-to-Disk).
> +Specifically, it tells the kernel what to do after creating a hibernation image.
> +
> +Reading from it returs a list of supported options encoded as:
> +
> +'platform' (put the system into sleep using a platform-provided method)
> +'shutdown' (shut the system down)
> +'reboot' (reboot the system)
> +'suspend' (trigger a Suspend-to-RAM transition)
> +'test_resume' (resume-after-hibernation test mode)
> +
> +The currently selected option is printed in brackets.

-> in square brackets ("[]")?

> +The 'platform' option is only available if the platform provides a special
> +mechanism to put the system to sleep after creating a hibernation image (ACPI
> +does that, for example).  The 'suspend' option is available if Suspend-to-RAM
> +is supported.  Refer to Documentation/power/basic_pm_debugging.txt for the
> +description of the 'test_resume' option.
> +
> +To select an option, write the string representing it to /sys/power/disk.
> +
> +/sys/power/image_size controls the size of hibernation images.
> +
> +It can be written a string representing a non-negative integer that will be
> +used as a best-effort upper limit of the image size, in bytes.  The hibernation
> +core will do its best to ensure that the image size will not exceed that number.
> +However, if that turns out to be impossible to achieve, a hibernation image will
> +still be created and its size will be as small as possible.  In particular,
> +writing '0' to this file will enforce hibernation images to be possibly small.

-> as small as possible.

> +On architectures and platforms that support using different kernels to restore
> +hibernation images (that is, the kernel used to read the image from storage and
> +load it into memory is different from the one included in the image) or support
> +kernel address space randomization, it also can be used to check if failures
> +to resume may be related to the differences between the restore and image
> +kernels.

Hmm. Actually we should document which architectures support suspend &
restore in different kernel... somewhere.

Acked-by: Pavel Machek <pavel@ucw.cz>
									Pavel
-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH][RFC] Documentation/: update hibernation debug documentation Chen Yu <yu.c.chen@intel.com> - 2016-08-11 14:20 +0200
  Re: [PATCH][RFC] Documentation/: update hibernation debug  documentation Pavel Machek <pavel@ucw.cz> - 2016-08-12 08:30 +0200
    RE: [PATCH][RFC] Documentation/: update hibernation debug  documentation "Chen, Yu C" <yu.c.chen@intel.com> - 2016-08-12 13:50 +0200
      RE: [PATCH][RFC] Documentation/: update hibernation debug  documentation "Chen, Yu C" <yu.c.chen@intel.com> - 2016-08-12 14:00 +0200
        Re: [PATCH][RFC] Documentation/: update hibernation debug documentation "Rafael J. Wysocki" <rjw@rjwysocki.net> - 2016-08-12 15:30 +0200
          Re: [PATCH][RFC] Documentation/: update hibernation debug  documentation Pavel Machek <pavel@ucw.cz> - 2016-08-13 00:00 +0200
      Re: [PATCH][RFC] Documentation/: update hibernation debug documentation "Rafael J. Wysocki" <rafael@kernel.org> - 2016-08-12 14:00 +0200

csiph-web