Small pm documentation cleanups
Subsystems (4)
Small documentation fixes/additions that accumulated in my tree.
Documentation/kernel-parameters.txt +4 -2
@@ -147,8 +147,10 @@ and is between 256 and 4096 characters. default: 0 acpi_sleep= [HW,ACPI] Sleep options - Format: { s3_bios, s3_mode } - See Documentation/power/video.txt + Format: { s3_bios, s3_mode, s3_beep } + See Documentation/power/video.txt for s3_bios and s3_mode. + s3_beep is for debugging; it beeps on PC speaker as soon as + kernel's real-mode entry point is called. acpi_sci= [HW,ACPI] ACPI System Control Interrupt trigger mode Format: { level | edge | high | low }
Documentation/power/swsusp.txt +5 -0
@@ -386,6 +386,11 @@ before suspending; then remount them aft There is a work-around for this problem. For more information, see Documentation/usb/persist.txt. +Q: Can I suspend-to-disk using a swap partition under LVM? + +A: No. You can suspend successfully, but you'll not be able to +resume. uswsusp should be able to work with LVM, see suspend.sf.net. + Q: I upgraded the kernel from 2.6.15 to 2.6.16. Both kernels were compiled with the similar configuration files. Anyway I found that suspend to disk (and resume) is much slower on 2.6.16 compared to
drivers/acpi/hardware/hwsleep.c +1 -1
@@ -286,13 +286,13 @@ acpi_status asmlinkage acpi_enter_sleep_ }/* +* 1) Disable/Clear all GPEs * 2) Enable all wakeup GPEs */ status =acpi_hw_disable_all_gpes ();if (ACPI_FAILURE (status)) {return_ACPI_STATUS (status); } - acpi_gbl_system_awake_and_running = FALSE; status =acpi_hw_enable_all_wakeup_gpes ();
drivers/acpi/sleep/main.c +1 -1
@@ -170,7 +170,7 @@ static int acpi_pm_enter(suspend_state_t/* Reprogram control registers and execute _BFS */ acpi_leave_sleep_state_prep (acpi_state); -/* ACPI 3.0 specs (P62) says that it's the responsabilty +/* ACPI 3.0 specs (P62) says that it's the responsibilty * of the OSPM to clear the status bit [ implying that the * POWER_BUTTON event should not reach userspace ] */
kernel/power/Kconfig +4 -3
@@ -74,14 +74,14 @@ config PM_TRACE_RTC RTC across reboots, so that you can debug a machine that just hangs during suspend (or more commonly, during resume). - To use this debugging feature you should attempt to suspend the machine, - then reboot it, then run + To use this debugging feature you should attempt to suspend the + machine, then reboot it, then run dmesg -s 1000000 | grep 'hash matches' CAUTION: this option will cause your machine's real-time clock to be set to an invalid time after a resume. config PM_SLEEP_SMP bool depends on SMP
@@ -123,7 +129,8 @@ config HIBERNATION called "hibernation" in user interfaces. STD checkpoints the system and powers it off; and restores that checkpoint on reboot. - You can suspend your machine with 'echo disk > /sys/power/state'. + You can suspend your machine with 'echo disk > /sys/power/state' + after placing resume=/dev/swappartition on kernel command line. Alternatively, you can use the additional userland tools available from <http://suspend.sf.net>.
kernel/power/main.c +5 -0
@@ -223,6 +226,7 @@ void __attribute__ ((weak)) arch_suspend* @state: state to enter * * This function should be called after devices have been suspended. +* May not sleep. */ static int suspend_enter (suspend_state_t state) {
@@ -250,6 +255,8 @@ static int suspend_enter(suspend_state_t* suspend_devices_and_enter - suspend devices and enter the desired system * sleep state. * @state: state to enter +* +* Needs to be called from process context and may sleep. */ int suspend_devices_and_enter (suspend_state_t state) {
@@ -341,6 +349,8 @@ static inline int valid_state(suspend_st* happen when we wake up. * Then, do the setup for suspend, enter the state, and cleaup (after * we've woken up). +* +* Needs to be called from process context, and may sleep. */ static int enter_state (suspend_state_t state) {
Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
Rafael J. Wysocki
Acked-byLen, please pick this up, thanks.
Quoted 4 lines · Pavel Machek
Small documentation fixes/additions that accumulated in my tree.
Signed-off-by Pavel Machek <[email protected]>
Quoted 127 lines
Documentation/kernel-parameters.txt +4
-2@@ -147,8 +147,10 @@ and is between 256 and 4096 characters. default: 0 acpi_sleep= [HW,ACPI] Sleep options - Format: { s3_bios, s3_mode } - See Documentation/power/video.txt + Format: { s3_bios, s3_mode, s3_beep } + See Documentation/power/video.txt for s3_bios and s3_mode. + s3_beep is for debugging; it beeps on PC speaker as soon as + kernel's real-mode entry point is called. acpi_sci= [HW,ACPI] ACPI System Control Interrupt trigger mode Format: { level | edge | high | low }Documentation/power/swsusp.txt +5
-0@@ -386,6 +386,11 @@ before suspending; then remount them aft There is a work-around for this problem. For more information, see Documentation/usb/persist.txt. +Q: Can I suspend-to-disk using a swap partition under LVM? + +A: No. You can suspend successfully, but you'll not be able to +resume. uswsusp should be able to work with LVM, see suspend.sf.net. + Q: I upgraded the kernel from 2.6.15 to 2.6.16. Both kernels were compiled with the similar configuration files. Anyway I found that suspend to disk (and resume) is much slower on 2.6.16 compared todrivers/acpi/hardware/hwsleep.c +1
-1@@ -286,13 +286,13 @@ acpi_status asmlinkage acpi_enter_sleep_ }/* +* 1) Disable/Clear all GPEs * 2) Enable all wakeup GPEs */ status =acpi_hw_disable_all_gpes ();if (ACPI_FAILURE (status)) {return_ACPI_STATUS (status); } - acpi_gbl_system_awake_and_running = FALSE; status =acpi_hw_enable_all_wakeup_gpes ();drivers/acpi/sleep/main.c +1
-1@@ -170,7 +170,7 @@ static int acpi_pm_enter(suspend_state_t/* Reprogram control registers and execute _BFS */ acpi_leave_sleep_state_prep (acpi_state); -/* ACPI 3.0 specs (P62) says that it's the responsabilty +/* ACPI 3.0 specs (P62) says that it's the responsibilty * of the OSPM to clear the status bit [ implying that the * POWER_BUTTON event should not reach userspace ] */ kernel/power/Kconfig +4
-3@@ -74,14 +74,14 @@ config PM_TRACE_RTC RTC across reboots, so that you can debug a machine that just hangs during suspend (or more commonly, during resume). - To use this debugging feature you should attempt to suspend the machine, - then reboot it, then run + To use this debugging feature you should attempt to suspend the + machine, then reboot it, then run dmesg -s 1000000 | grep 'hash matches' CAUTION: this option will cause your machine's real-time clock to be set to an invalid time after a resume. config PM_SLEEP_SMP bool depends on SMP@@ -123,7 +129,8 @@ config HIBERNATION called "hibernation" in user interfaces. STD checkpoints the system and powers it off; and restores that checkpoint on reboot. - You can suspend your machine with 'echo disk > /sys/power/state'. + You can suspend your machine with 'echo disk > /sys/power/state' + after placing resume=/dev/swappartition on kernel command line. Alternatively, you can use the additional userland tools available from <http://suspend.sf.net>.kernel/power/main.c +5
-0@@ -223,6 +226,7 @@ void __attribute__ ((weak)) arch_suspend* @state: state to enter * * This function should be called after devices have been suspended. +* May not sleep. */ static int suspend_enter (suspend_state_t state) {@@ -250,6 +255,8 @@ static int suspend_enter(suspend_state_t* suspend_devices_and_enter - suspend devices and enter the desired system * sleep state. * @state: state to enter +* +* Needs to be called from process context and may sleep. */ int suspend_devices_and_enter (suspend_state_t state) {@@ -341,6 +349,8 @@ static inline int valid_state(suspend_st* happen when we wake up. * Then, do the setup for suspend, enter the state, and cleaup (after * we've woken up). +* +* Needs to be called from process context, and may sleep. */ static int enter_state (suspend_state_t state) {
Signature · 1 line
"Premature optimization is the root of all evil." - Donald Knuth
Hi.
Quoted 16 lines · Rafael J. Wysocki
Len, please pick this up, thanks.
Quoted 3 lines · Pavel Machek
Small documentation fixes/additions that accumulated in my tree.
Signed-off-by Pavel Machek <[email protected]>Quoted 7 lines
Documentation/kernel-parameters.txt +0
-0@@ -147,8 +147,10 @@ and is between 256 and 4096 characters. default: 0
Quoted 7 lines
Documentation/kernel-parameters.txt and is between 256 and 4096 characters. · line 153
Quoted 7 lines
Documentation/kernel-parameters.txt +4
-2acpi_sleep= [HW,ACPI] Sleep options - Format: { s3_bios, s3_mode } - See Documentation/power/video.txt + Format: { s3_bios, s3_mode, s3_beep } + See Documentation/power/video.txt for s3_bios and s3_mode. + s3_beep is for debugging; it beeps on PC speaker as soon as + kernel's real-mode entry point is called.
s/kernel's/the kernel's/
Quoted 11 lines
Quoted 11 lines
Documentation/kernel-parameters.txt +0
-0acpi_sci= [HW,ACPI] ACPI System Control Interrupt trigger mode Format: { level | edge | high | low }Documentation/power/swsusp.txt +0
-0@@ -386,6 +386,11 @@ before suspending; then remount them aft There is a work-around for this problem. For more information, see Documentation/usb/persist.txt.
Quoted 4 lines
Documentation/power/swsusp.txt before suspending; then remount them aft · line 392
Quoted 4 lines
Documentation/power/swsusp.txt +4
-0+Q: Can I suspend-to-disk using a swap partition under LVM? + +A: No. You can suspend successfully, but you'll not be able to +resume. uswsusp should be able to work with LVM, see suspend.sf.net.
s/LVM, see/LVM. See/
Quoted 31 lines
Quoted 31 lines
Documentation/power/swsusp.txt +1
-0+ Q: I upgraded the kernel from 2.6.15 to 2.6.16. Both kernels were compiled with the similar configuration files. Anyway I found that suspend to disk (and resume) is much slower on 2.6.16 compared todrivers/acpi/hardware/hwsleep.c +1
-1@@ -286,13 +286,13 @@ acpi_status asmlinkage acpi_enter_sleep_ }/* +* 1) Disable/Clear all GPEs * 2) Enable all wakeup GPEs */ status =acpi_hw_disable_all_gpes ();if (ACPI_FAILURE (status)) {return_ACPI_STATUS (status); } - acpi_gbl_system_awake_and_running = FALSE; status =acpi_hw_enable_all_wakeup_gpes ();drivers/acpi/sleep/main.c +0
-0@@ -170,7 +170,7 @@ static int acpi_pm_enter(suspend_state_t/* Reprogram control registers and execute _BFS */ acpi_leave_sleep_state_prep (acpi_state);
Quoted 2 lines
drivers/acpi/sleep/main.c static int acpi_pm_enter(suspend_state_t · line 173
Quoted 2 lines
drivers/acpi/sleep/main.c +1
-1-/* ACPI 3.0 specs (P62) says that it's the responsabilty +/* ACPI 3.0 specs (P62) says that it's the responsibilty
s/responsibilty/responsibility/
Quoted 11 lines
Quoted 11 lines
drivers/acpi/sleep/main.c +0
-0* of the OSPM to clear the status bit [ implying that the * POWER_BUTTON event should not reach userspace ] */ kernel/power/Kconfig +0
-0@@ -74,14 +74,14 @@ config PM_TRACE_RTC RTC across reboots, so that you can debug a machine that just hangs during suspend (or more commonly, during resume).
Quoted 4 lines
kernel/power/Kconfig config PM_TRACE_RTC · line 78
Quoted 4 lines
kernel/power/Kconfig +2
-2- To use this debugging feature you should attempt to suspend the machine, - then reboot it, then run + To use this debugging feature you should attempt to suspend the + machine, then reboot it, then run
More readable would be "machine, reboot it and then run"
Quoted 13 lines
Quoted 13 lines
kernel/power/Kconfig +0
-0dmesg -s 1000000 | grep 'hash matches' CAUTION: this option will cause your machine's real-time clock to be set to an invalid time after a resume. config PM_SLEEP_SMP bool depends on SMP@@ -123,7 +129,8 @@ config HIBERNATION called "hibernation" in user interfaces. STD checkpoints the system and powers it off; and restores that checkpoint on reboot.
Quoted 3 lines
kernel/power/Kconfig config HIBERNATION · line 133
Quoted 3 lines
kernel/power/Kconfig +2
-1- You can suspend your machine with 'echo disk > /sys/power/state'. + You can suspend your machine with 'echo disk > /sys/power/state' + after placing resume=/dev/swappartition on kernel command line.
s/on kernel/on the kernel/
Maybe add "in your bootloader's configuration file"?
Quoted 26 lines
Quoted 26 lines
kernel/power/Kconfig +0
-0Alternatively, you can use the additional userland tools available from <http://suspend.sf.net>.kernel/power/main.c +3
-0@@ -223,6 +226,7 @@ void __attribute__ ((weak)) arch_suspend* @state: state to enter * * This function should be called after devices have been suspended. +* May not sleep. */ static int suspend_enter (suspend_state_t state) {@@ -250,6 +255,8 @@ static int suspend_enter(suspend_state_t* suspend_devices_and_enter - suspend devices and enter the desired system * sleep state. * @state: state to enter +* +* Needs to be called from process context and may sleep. */ int suspend_devices_and_enter (suspend_state_t state) {@@ -341,6 +349,8 @@ static inline int valid_state(suspend_st* happen when we wake up.
Quoted 11 lines
kernel/power/main.c static inline int valid_state(suspend_st · line 356
Quoted 8 lines
kernel/power/main.c +2
-0* Then, do the setup for suspend, enter the state, and cleaup (after * we've woken up). +* +* Needs to be called from process context, and may sleep. */ static int enter_state (suspend_state_t state) {
Regards,
Nigel
Pavel Machek
Acked-by Rafael J. WysockiHi!
Quoted 7 lines
Quoted 7 lines · Pavel Machek
Quoted 3 lines
Small documentation fixes/additions that accumulated in my tree.
Signed-off-by Pavel Machek <[email protected]>
...
Quoted 10 lines
Quoted 8 lines
Review
Quoted 8 lines
0
acpi_sleep= [HW,ACPI] Sleep options(quoted diff) +4
-2- Format: { s3_bios, s3_mode } - See Documentation/power/video.txt + Format: { s3_bios, s3_mode, s3_beep } + See Documentation/power/video.txt for s3_bios and s3_mode. + s3_beep is for debugging; it beeps on PC speaker as soon as + kernel's real-mode entry point is called.s/kernel's/the kernel's/
Thanks for comments, I applied them.
Small documentation fixes/additions that accumulated in my tree.
Len, please pick this up, thanks.
Pavel
Documentation/kernel-parameters.txt +4 -2
@@ -147,8 +147,10 @@ and is between 256 and 4096 characters. default: 0 acpi_sleep= [HW,ACPI] Sleep options - Format: { s3_bios, s3_mode } - See Documentation/power/video.txt + Format: { s3_bios, s3_mode, s3_beep } + See Documentation/power/video.txt for s3_bios and s3_mode. + s3_beep is for debugging; it beeps on PC speaker as soon as + the kernel's real-mode entry point is called. acpi_sci= [HW,ACPI] ACPI System Control Interrupt trigger mode Format: { level | edge | high | low }
Documentation/power/swsusp.txt +5 -0
@@ -386,6 +386,11 @@ before suspending; then remount them aft There is a work-around for this problem. For more information, see Documentation/usb/persist.txt. +Q: Can I suspend-to-disk using a swap partition under LVM? + +A: No. You can suspend successfully, but you'll not be able to +resume. uswsusp should be able to work with LVM. See suspend.sf.net. + Q: I upgraded the kernel from 2.6.15 to 2.6.16. Both kernels were compiled with the similar configuration files. Anyway I found that suspend to disk (and resume) is much slower on 2.6.16 compared to
drivers/acpi/hardware/hwsleep.c +1 -1
@@ -286,13 +286,13 @@ acpi_status asmlinkage acpi_enter_sleep_ }/* +* 1) Disable/Clear all GPEs * 2) Enable all wakeup GPEs */ status =acpi_hw_disable_all_gpes ();if (ACPI_FAILURE (status)) {return_ACPI_STATUS (status); } - acpi_gbl_system_awake_and_running = FALSE; status =acpi_hw_enable_all_wakeup_gpes ();
drivers/acpi/sleep/main.c +1 -1
@@ -170,7 +170,7 @@ static int acpi_pm_enter(suspend_state_t/* Reprogram control registers and execute _BFS */ acpi_leave_sleep_state_prep (acpi_state); -/* ACPI 3.0 specs (P62) says that it's the responsabilty +/* ACPI 3.0 specs (P62) says that it's the responsibility * of the OSPM to clear the status bit [ implying that the * POWER_BUTTON event should not reach userspace ] */
kernel/power/Kconfig +6 -3
@@ -74,14 +74,14 @@ config PM_TRACE_RTC RTC across reboots, so that you can debug a machine that just hangs during suspend (or more commonly, during resume). - To use this debugging feature you should attempt to suspend the machine, - then reboot it, then run + To use this debugging feature you should attempt to suspend the + machine, reboot it and then run dmesg -s 1000000 | grep 'hash matches' CAUTION: this option will cause your machine's real-time clock to be set to an invalid time after a resume. config PM_SLEEP_SMP bool depends on SMP
@@ -123,7 +129,10 @@ config HIBERNATION called "hibernation" in user interfaces. STD checkpoints the system and powers it off; and restores that checkpoint on reboot. - You can suspend your machine with 'echo disk > /sys/power/state'. + You can suspend your machine with 'echo disk > /sys/power/state' + after placing resume=/dev/swappartition on the kernel command line + in your bootloader's configuration file. + Alternatively, you can use the additional userland tools available from <http://suspend.sf.net>.
Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
Quoted 10 lines · Pavel Machek
Hi!
Quoted 7 lines
Quoted 7 lines · Pavel Machek
Quoted 3 lines
Small documentation fixes/additions that accumulated in my tree.
Signed-off-by Pavel Machek <[email protected]>...
...
Quoted 12 lines
Thanks for comments, I applied them.
Small documentation fixes/additions that accumulated in my tree.
Len, please pick this up, thanks.
PavelSigned-off-by Pavel Machek <[email protected]>
I've put this on my watch list for the trivial tree.
So, if it doesn't get merged elsewhere I'll take care of pushing it again during the 2.6.26 merge window (and beyond).
Signature · 3 lines
Jesper Juhl <[email protected]> Don't top-post http://www.catb.org/~esr/jargon/html/T/top-post.html Plain text mails only, please http://www.expita.com/nomime.html
Hi again.
Quoted 19 lines · Pavel Machek
Hi!
Quoted 6 lines
Quoted 6 lines · Pavel Machek
Quoted 3 lines
Small documentation fixes/additions that accumulated in my tree.
Signed-off-by Pavel Machek <[email protected]>...
Quoted 9 lines
Quoted 8 lines
Documentation/kernel-parameters.txt and is between 256 and 4096 characters.
Quoted 8 lines
0
acpi_sleep= [HW,ACPI] Sleep optionsDocumentation/kernel-parameters.txt +4
-2- Format: { s3_bios, s3_mode } - See Documentation/power/video.txt + Format: { s3_bios, s3_mode, s3_beep } + See Documentation/power/video.txt for s3_bios and s3_mode. + s3_beep is for debugging; it beeps on PC speaker as soon as + kernel's real-mode entry point is called.s/kernel's/the kernel's/
Quoted 1 line
Thanks for comments, I applied them.
You're welcome. Sorry for replying again, but I just noticed another one in the line above - it should be something like "it makes the PC's speaker beep as soon as" ('on PC speaker' isn't right).
Sorry for not getting that last time.
Nigel
Quoted 22 lines · Nigel Cunningham
Hi again.
Quoted 19 lines · Pavel Machek
Hi!
Quoted 6 lines
Quoted 6 lines · Pavel Machek
Quoted 3 lines
Small documentation fixes/additions that accumulated in my tree.
Signed-off-by Pavel Machek <[email protected]>...
Quoted 9 lines
Quoted 8 lines
Documentation/kernel-parameters.txt and is between 256 and 4096 characters.
Quoted 8 lines
0
acpi_sleep= [HW,ACPI] Sleep optionsDocumentation/kernel-parameters.txt +4
-2- Format: { s3_bios, s3_mode } - See Documentation/power/video.txt + Format: { s3_bios, s3_mode, s3_beep } + See Documentation/power/video.txt for s3_bios and s3_mode. + s3_beep is for debugging; it beeps on PC speaker as soon as + kernel's real-mode entry point is called.s/kernel's/the kernel's/
Quoted 7 lines
Quoted 1 line
Thanks for comments, I applied them.
You're welcome. Sorry for replying again, but I just noticed another one in the line above - it should be something like "it makes the PC's speaker beep as soon as" ('on PC speaker' isn't right).
Sorry for not getting that last time.
Ok, lets fix that in followup patch...
Pavel
Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
applied
(with nigel's last comment included)
thanks,
-len
Quoted 37 lines · Nigel Cunningham
Hi again.
Quoted 19 lines · Pavel Machek
Hi!
Quoted 6 lines
Quoted 6 lines · Pavel Machek
Quoted 3 lines
Small documentation fixes/additions that accumulated in my tree.
Signed-off-by Pavel Machek <[email protected]>...
Quoted 9 lines
Quoted 8 lines
Documentation/kernel-parameters.txt and is between 256 and 4096 characters.
Quoted 8 lines
0
acpi_sleep= [HW,ACPI] Sleep optionsDocumentation/kernel-parameters.txt +4
-2- Format: { s3_bios, s3_mode } - See Documentation/power/video.txt + Format: { s3_bios, s3_mode, s3_beep } + See Documentation/power/video.txt for s3_bios and s3_mode. + s3_beep is for debugging; it beeps on PC speaker as soon as + kernel's real-mode entry point is called.s/kernel's/the kernel's/
Quoted 1 line
Thanks for comments, I applied them.
You're welcome. Sorry for replying again, but I just noticed another one in the line above - it should be something like "it makes the PC's speaker beep as soon as" ('on PC speaker' isn't right).
Sorry for not getting that last time.
Nigel
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/