Commit ce2b7147 authored by Rafael J. Wysocki's avatar Rafael J. Wysocki Committed by Len Brown

PM: Suspend/hibernation debug documentation update (rev. 2)

Update the suspend/hibernation debugging and testing documentation to describe
the newly introduced testing facilities.
Signed-off-by: default avatarRafael J. Wysocki <rjw@sisk.pl>
Acked-by: default avatarPavel Machek <pavel@ucw.cz>
Signed-off-by: default avatarLen Brown <len.brown@intel.com>
parent 4cc79776
This diff is collapsed.
...@@ -6,9 +6,9 @@ Testing suspend and resume support in device drivers ...@@ -6,9 +6,9 @@ Testing suspend and resume support in device drivers
Unfortunately, to effectively test the support for the system-wide suspend and Unfortunately, to effectively test the support for the system-wide suspend and
resume transitions in a driver, it is necessary to suspend and resume a fully resume transitions in a driver, it is necessary to suspend and resume a fully
functional system with this driver loaded. Moreover, that should be done functional system with this driver loaded. Moreover, that should be done
several times, preferably several times in a row, and separately for the suspend several times, preferably several times in a row, and separately for hibernation
to disk (STD) and the suspend to RAM (STR) transitions, because each of these (aka suspend to disk or STD) and suspend to RAM (STR), because each of these
cases involves different ordering of operations and different interactions with cases involves slightly different operations and different interactions with
the machine's BIOS. the machine's BIOS.
Of course, for this purpose the test system has to be known to suspend and Of course, for this purpose the test system has to be known to suspend and
...@@ -22,20 +22,24 @@ for more information about the debugging of suspend/resume functionality. ...@@ -22,20 +22,24 @@ for more information about the debugging of suspend/resume functionality.
Once you have resolved the suspend/resume-related problems with your test system Once you have resolved the suspend/resume-related problems with your test system
without the new driver, you are ready to test it: without the new driver, you are ready to test it:
a) Build the driver as a module, load it and try the STD in the test mode (see: a) Build the driver as a module, load it and try the test modes of hibernation
Documents/power/basic-pm-debugging.txt, 1a)). (see: Documents/power/basic-pm-debugging.txt, 1).
b) Load the driver and attempt to suspend to disk in the "reboot", "shutdown" b) Load the driver and attempt to hibernate in the "reboot", "shutdown" and
and "platform" modes (see: Documents/power/basic-pm-debugging.txt, 1). "platform" modes (see: Documents/power/basic-pm-debugging.txt, 1).
c) Compile the driver directly into the kernel and try the STD in the test mode. c) Compile the driver directly into the kernel and try the test modes of
hibernation.
d) Attempt to suspend to disk with the driver compiled directly into the kernel d) Attempt to hibernate with the driver compiled directly into the kernel
in the "reboot", "shutdown" and "platform" modes. in the "reboot", "shutdown" and "platform" modes.
e) Attempt to suspend to RAM using the s2ram tool with the driver loaded (see: e) Try the test modes of suspend (see: Documents/power/basic-pm-debugging.txt,
Documents/power/basic-pm-debugging.txt, 2). As far as the STR tests are 2). [As far as the STR tests are concerned, it should not matter whether or
concerned, it should not matter whether or not the driver is built as a module. not the driver is built as a module.]
f) Attempt to suspend to RAM using the s2ram tool with the driver loaded
(see: Documents/power/basic-pm-debugging.txt, 2).
Each of the above tests should be repeated several times and the STD tests Each of the above tests should be repeated several times and the STD tests
should be mixed with the STR tests. If any of them fails, the driver cannot be should be mixed with the STR tests. If any of them fails, the driver cannot be
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment