Home
last modified time | relevance | path

Searched +full:suspend +full:- +full:to +full:- +full:disk (Results 1 – 25 of 190) sorted by relevance

12345678

/Linux-v5.10/Documentation/power/
Dswsusp.rst2 Swap suspend
11 If you touch anything on disk between suspend and resume...
20 problems. If your disk driver does not support suspend... (IDE does),
22 between suspend and resume, it may do something wrong. If you change
26 ( ) suspend/resume support is needed to make it safe.
28 If you have any filesystems on USB devices mounted before software suspend,
35 You need to append resume=/dev/your_swap_partition to kernel command
43 After preparing then you suspend by::
45 echo shutdown > /sys/power/disk; echo disk > /sys/power/state
47 - If you feel ACPI works pretty well on your system, you might try::
[all …]
Dbasic-pm-debugging.rst2 Debugging hibernation and suspend
7 1. Testing hibernation (aka suspend to disk or STD)
10 To check if hibernation works, you can try to hibernate in the "reboot" mode::
12 # echo reboot > /sys/power/disk
13 # echo disk > /sys/power/state
15 and the system should create a hibernation image, reboot, resume and get back to
17 hibernation is most likely to work correctly. Still, you need to repeat the
21 modes causes the PM core to skip some platform-related callbacks which on ACPI
22 systems might be necessary to make hibernation work. Thus, if your machine
23 fails to hibernate or resume in the "reboot" mode, you should try the
[all …]
Dswsusp-dmcrypt.rst2 How to use dm-crypt and swsusp together
10 You know how dm-crypt works. If not, visit the following web page:
11 http://www.saout.de/misc/dm-crypt/
13 You did read Documentation/admin-guide/initrd.rst and know how an initrd works.
14 You know how to create or how to modify an initrd.
16 Now your system is properly set up, your disk is encrypted except for
21 At this point you want to encrypt your swap, too. Still you want to
22 be able to suspend using swsusp. This, however, means that you
23 have to be able to either enter a passphrase or that you read
24 the key(s) from an external device like a pcmcia flash disk
[all …]
Ddrivers-testing.rst2 Testing suspend and resume support in device drivers
10 Unfortunately, to effectively test the support for the system-wide suspend and
11 resume transitions in a driver, it is necessary to suspend and resume a fully
14 (aka suspend to disk or STD) and suspend to RAM (STR), because each of these
18 Of course, for this purpose the test system has to be known to suspend and
20 resolve all suspend/resume-related problems in the test system before you start
21 testing the new driver. Please see Documentation/power/basic-pm-debugging.rst
22 for more information about the debugging of suspend/resume functionality.
27 Once you have resolved the suspend/resume-related problems with your test system
28 without the new driver, you are ready to test it:
[all …]
/Linux-v5.10/Documentation/ABI/testing/
Dsysfs-power6 provide a unified interface to the power management
15 labels, which may be "mem" (suspend), "standby" (power-on
16 suspend), "freeze" (suspend-to-idle) and "disk" (hibernation).
18 Writing one of the above strings to this file causes the system
19 to transition into the corresponding state, if available.
21 See Documentation/admin-guide/pm/sleep-states.rst for more
29 system suspend. Reading from it returns the available modes
32 to suspend the system (by writing "mem" to the /sys/power/state
35 Writing one of the above strings to this file causes the mode
36 represented by it to be used on subsequent attempts to suspend
[all …]
Dsysfs-class-regulator17 power to the system (assuming no error prevents it).
20 supplying power to the system (unless some non-Linux
27 or microamps to determine configured regulator output levels.
38 - off
39 - on
40 - error
41 - fast
42 - normal
43 - idle
44 - standby
[all …]
/Linux-v5.10/kernel/power/
DKconfig1 # SPDX-License-Identifier: GPL-2.0-only
2 config SUSPEND config
3 bool "Suspend to RAM and standby"
7 Allow the system to enter sleep states in which main memory is
9 suspend-to-RAM state (e.g. the ACPI S3 state).
12 bool "Enable freezer for suspend to RAM/standby" \
14 depends on SUSPEND
17 This allows you to turn off the freezer for suspend. If this is
18 done, no tasks are frozen for suspend to RAM/standby.
23 bool "Skip kernel's sys_sync() on suspend to RAM/standby"
[all …]
/Linux-v5.10/Documentation/admin-guide/pm/
Dsleep-states.rst1 .. SPDX-License-Identifier: GPL-2.0
13 Sleep states are global low-power states of the entire system in which user
22 the Linux kernel can support up to four system sleep states, including
23 hibernation and up to three variants of system suspend. The sleep states that
28 Suspend-to-Idle
29 ---------------
31 This is a generic, pure software, light-weight variant of system suspend (also
32 referred to as S2I or S2Idle). It allows more energy to be saved relative to
34 I/O devices into low-power states (possibly lower-power than available in the
38 The system is woken up from this state by in-band interrupts, so theoretically
[all …]
/Linux-v5.10/Documentation/devicetree/bindings/regulator/
Dregulator.yaml1 # SPDX-License-Identifier: GPL-2.0
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Liam Girdwood <lgirdwood@gmail.com>
11 - Mark Brown <broonie@kernel.org>
14 regulator-name:
18 regulator-min-microvolt:
21 regulator-max-microvolt:
24 regulator-microvolt-offset:
25 description: Offset applied to voltages to compensate for voltage drops
[all …]
/Linux-v5.10/include/linux/
Dsuspend.h1 /* SPDX-License-Identifier: GPL-2.0 */
100 * struct platform_suspend_ops - Callbacks for managing platform dependent
103 * @valid: Callback to determine if given system sleep state is supported by
106 * that it still may be impossible to enter given system sleep state if the
109 * assigned to this if the platform only supports mem sleep.
111 * @begin: Initialise a transition to given system sleep state.
112 * @begin() is executed right prior to suspending devices. The information
113 * conveyed to the platform code by @begin() should be disregarded by it as
117 * passed to @enter() is redundant and should be ignored.
122 * appropriate .suspend() method has been executed for each device) and
[all …]
/Linux-v5.10/tools/power/pm-graph/config/
Dsuspend-x2-proc.cfg2 # Proc S3 (Suspend to Mem) x2 test - includes user processes
5 # all the tool arguments so that they don't have to be given on the
9 # sudo ./sleepgraph.py -config config/suspend-proc.cfg
14 # ---- General Options ----
20 # Suspend Mode
21 # e.g. standby, mem, freeze, disk (default: mem)
26 output-dir: suspend-{hostname}-{date}-{time}-x2-proc
29 # Use rtcwake to autoresume after X seconds, or off to disable (default: 15)
33 # add the dmesg and ftrace log to the html output (default: false)
36 # Suspend/Resume Gap
[all …]
Dsuspend-dev.cfg2 # Dev S3 (Suspend to Mem) test - includes src calls / kernel threads
5 # all the tool arguments so that they don't have to be given on the
9 # sudo ./sleepgraph.py -config config/suspend-dev.cfg
14 # ---- General Options ----
20 # Suspend Mode
21 # e.g. standby, mem, freeze, disk (default: mem)
26 output-dir: suspend-{hostname}-{date}-{time}-dev
29 # Use rtcwake to autoresume after X seconds, or off to disable (default: 15)
33 # add the dmesg and ftrace log to the html output (default: false)
36 # Suspend/Resume Gap
[all …]
Dsuspend.cfg2 # Generic S3 (Suspend to Mem) test
5 # all the tool arguments so that they don't have to be given on the
9 # sudo ./sleepgraph.py -config config/suspend.cfg
14 # ---- General Options ----
20 # Suspend Mode
21 # e.g. standby, mem, freeze, disk (default: mem)
26 output-dir: suspend-{hostname}-{date}-{time}
29 # Use rtcwake to autoresume after X seconds, or off to disable (default: 15)
33 # add the dmesg and ftrace log to the html output (default: false)
36 # Suspend/Resume Gap
[all …]
Dsuspend-callgraph.cfg2 # Full Callgraph for S3 (Suspend to Mem) test
5 # all the tool arguments so that they don't have to be given on the
9 # sudo ./sleepgraph.py -config config/suspend.cfg
15 # ---- General Options ----
21 # Suspend Mode
22 # e.g. standby, mem, freeze, disk (default: mem)
27 output-dir: suspend-{hostname}-{date}-{time}-cg
30 # Use rtcwake to autoresume after X seconds, or off to disable (default: 15)
34 # add the dmesg and ftrace log to the html output (default: false)
37 # Suspend/Resume Gap
[all …]
Dfreeze-dev.cfg2 # Dev S2 (Freeze) test - includes src calls / kernel threads
5 # all the tool arguments so that they don't have to be given on the
9 # sudo ./sleepgraph.py -config config/freeze-dev.cfg
14 # ---- General Options ----
20 # Suspend Mode
21 # e.g. standby, mem, freeze, disk (default: mem)
26 output-dir: freeze-{hostname}-{date}-{time}-dev
29 # Use rtcwake to autoresume after X seconds, or off to disable (default: 15)
33 # add the dmesg and ftrace log to the html output (default: false)
36 # Suspend/Resume Gap
[all …]
Dstandby-dev.cfg2 # Dev S1 (Standby) test - includes src calls / kernel threads
5 # all the tool arguments so that they don't have to be given on the
9 # sudo ./sleepgraph.py -config config/standby-dev.cfg
14 # ---- General Options ----
20 # Suspend Mode
21 # e.g. standby, mem, freeze, disk (default: mem)
26 output-dir: standby-{hostname}-{date}-{time}-dev
29 # Use rtcwake to autoresume after X seconds, or off to disable (default: 15)
33 # add the dmesg and ftrace log to the html output (default: false)
36 # Suspend/Resume Gap
[all …]
Dfreeze-callgraph.cfg5 # all the tool arguments so that they don't have to be given on the
9 # sudo ./sleepgraph.py -config config/freeze-callgraph.cfg
15 # ---- General Options ----
21 # Suspend Mode
22 # e.g. standby, mem, freeze, disk (default: mem)
27 output-dir: freeze-{hostname}-{date}-{time}-cg
30 # Use rtcwake to autoresume after X seconds, or off to disable (default: 15)
34 # add the dmesg and ftrace log to the html output (default: false)
37 # Suspend/Resume Gap
38 # insert a small visible gap between suspend and resume on the timeline (default: false)
[all …]
Dstandby-callgraph.cfg5 # all the tool arguments so that they don't have to be given on the
9 # sudo ./sleepgraph.py -config config/standby-callgraph.cfg
15 # ---- General Options ----
21 # Suspend Mode
22 # e.g. standby, mem, freeze, disk (default: mem)
27 output-dir: standby-{hostname}-{date}-{time}-cg
30 # Use rtcwake to autoresume after X seconds, or off to disable (default: 15)
34 # add the dmesg and ftrace log to the html output (default: false)
37 # Suspend/Resume Gap
38 # insert a small visible gap between suspend and resume on the timeline (default: false)
[all …]
Dfreeze.cfg5 # all the tool arguments so that they don't have to be given on the
9 # sudo ./sleepgraph.py -config config/freeze.cfg
14 # ---- General Options ----
20 # Suspend Mode
21 # e.g. standby, mem, freeze, disk (default: mem)
26 output-dir: freeze-{hostname}-{date}-{time}
29 # Use rtcwake to autoresume after X seconds, or off to disable (default: 15)
33 # add the dmesg and ftrace log to the html output (default: false)
36 # Suspend/Resume Gap
37 # insert a small visible gap between suspend and resume on the timeline (default: false)
[all …]
Dstandby.cfg5 # all the tool arguments so that they don't have to be given on the
9 # sudo ./sleepgraph.py -config config/standby.cfg
14 # ---- General Options ----
20 # Suspend Mode
21 # e.g. standby, mem, freeze, disk (default: mem)
26 output-dir: standby-{hostname}-{date}-{time}
29 # Use rtcwake to autoresume after X seconds, or off to disable (default: 15)
33 # add the dmesg and ftrace log to the html output (default: false)
36 # Suspend/Resume Gap
37 # insert a small visible gap between suspend and resume on the timeline (default: false)
[all …]
Dexample.cfg2 # Generic S3 (Suspend to Mem) test
5 # all the tool arguments so that they don't have to be given on the
9 # sudo ./sleepgraph.py -config config/example.cfg
14 # ---- General Options ----
20 # Suspend Mode
21 # e.g. standby, mem, freeze, disk (default: mem)
26 output-dir: suspend-{hostname}-{date}-{time}
29 # Use rtcwake to autoresume after X seconds, or off to disable (default: 15)
33 # add the dmesg and ftrace log to the html output (default: false)
36 # Suspend/Resume Gap
[all …]
/Linux-v5.10/tools/power/pm-graph/
DREADME8 pm-graph: suspend/resume/boot timing analysis tools
11 Home Page: https://01.org/pm-graph
13 Report bugs/issues at bugzilla.kernel.org Tools/pm-graph
14 - https://bugzilla.kernel.org/buglist.cgi?component=pm-graph&product=Tools
17 - Getting Started:
18 https://01.org/pm-graph/documentation/getting-started
20 - Config File Format:
21 https://01.org/pm-graph/documentation/3-config-file-format
23 - upstream version in git:
24 https://github.com/intel/pm-graph/
[all …]
/Linux-v5.10/drivers/md/
Ddm.c3 * Copyright (C) 2004-2008 Red Hat, Inc. All rights reserved.
8 #include "dm-core.h"
9 #include "dm-rq.h"
10 #include "dm-uevent.h"
30 #include <linux/blk-crypto.h>
66 * One of these is allocated (on-stack) per original bio.
111 if (!tio->inside_dm_io) in dm_per_bio_data()
112 return (char *)bio - offsetof(struct dm_target_io, clone) - data_size; in dm_per_bio_data()
113 …return (char *)bio - offsetof(struct dm_target_io, clone) - offsetof(struct dm_io, tio) - data_siz… in dm_per_bio_data()
120 if (io->magic == DM_IO_MAGIC) in dm_bio_from_per_bio_data()
[all …]
/Linux-v5.10/drivers/s390/block/
Dxpram.c1 // SPDX-License-Identifier: GPL-2.0
3 * Xpram.c -- the S/390 expanded memory RAM-disk
14 * Interfaces to linux kernel
20 * "ad-hoc" partitioning:
26 * generic hard disk support to replace ad-hoc partitioning
42 #include <linux/suspend.h>
88 * -EIO: if pgin failed
89 * -ENXIO: if xpram has vanished
103 return -ENXIO; in xpram_page_in()
105 return -ENXIO; in xpram_page_in()
[all …]
/Linux-v5.10/Documentation/admin-guide/
Dkernel-parameters.rst3 The kernel's command-line parameters
12 The kernel parses parameters from the kernel command line up to "``--``";
14 parameter gets passed to init: parameters with '=' go into init's
15 environment, others are passed as command line arguments to init.
16 Everything after "``--``" is passed as an argument to init.
24 Parameters for modules which are built into the kernel need to be
32 log_buf_len=1M print-fatal-signals=1
36 log-buf-len=1M print_fatal_signals=1
38 Double-quotes can be used to protect spaces in values, e.g.::
43 ----------
[all …]

12345678