/openbmc/linux/Documentation/admin-guide/pm/ |
H A D | intel_idle.rst | 1 .. SPDX-License-Identifier: GPL-2.0 24 Documentation/admin-guide/pm/cpuidle.rst if you have not done that yet.] 28 processor's functional blocks into low-power states. That instruction takes two 38 only way to pass early-configuration-time parameters to it is via the kernel 42 .. _intel-idle-enumeration-of-states: 44 Enumeration of Idle States 50 as C-states (in the ACPI terminology) or idle states. The list of meaningful 51 ``MWAIT`` hint values and idle states (i.e. low-power configurations of the 55 In order to create a list of available idle states required by the ``CPUIdle`` 56 subsystem (see :ref:`idle-states-representation` in [all …]
|
H A D | intel_pstate.rst | 1 .. SPDX-License-Identifier: GPL-2.0 22 Documentation/admin-guide/pm/cpufreq.rst if you have not done that yet.] 24 For the processors supported by ``intel_pstate``, the P-state concept is broader 27 information about that). For this reason, the representation of P-states used 32 ``intel_pstate`` maps its internal representation of P-states to frequencies too 38 Since the hardware P-state selection interface used by ``intel_pstate`` is 43 time the corresponding CPU is taken offline and need to be re-initialized when 47 only way to pass early-configuration-time parameters to it is via the kernel 66 ----------- 69 hardware-managed P-states (HWP) support. If it works in this mode, the [all …]
|
H A D | sleep-states.rst | 1 .. SPDX-License-Identifier: GPL-2.0 5 System Sleep States 13 Sleep states are global low-power states of the entire system in which user 18 Sleep States That Can Be Supported 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 34 I/O devices into low-power states (possibly lower-power than available in the [all …]
|
/openbmc/linux/drivers/cpuidle/ |
H A D | dt_idle_genpd.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (C) 2019 Linaro Ltd. 8 * Copyright (c) 2021 Western Digital Corporation or its affiliates. 9 * Copyright (c) 2022 Ventana Micro Systems Inc. 12 #define pr_fmt(fmt) "dt-idle-genpd: " fmt 26 struct genpd_power_state *states, int state_count) in pd_parse_state_nodes() argument 32 ret = parse_state(to_of_node(states[i].fwnode), &state); in pd_parse_state_nodes() 38 ret = -ENOMEM; in pd_parse_state_nodes() 42 states[i].data = state_buf; in pd_parse_state_nodes() 48 i--; in pd_parse_state_nodes() [all …]
|
H A D | cpuidle-riscv-sbi.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * RISC-V SBI CPU idle driver. 5 * Copyright (c) 2021 Western Digital Corporation or its affiliates. 6 * Copyright (c) 2022 Ventana Micro Systems Inc. 9 #define pr_fmt(fmt) "cpuidle-riscv-sbi: " fmt 33 u32 *states; member 52 data->available = true; in sbi_set_domain_state() 53 data->state = state; in sbi_set_domain_state() 60 return data->state; in sbi_get_domain_state() 67 data->available = false; in sbi_clear_domain_state() [all …]
|
H A D | Kconfig.arm | 1 # SPDX-License-Identifier: GPL-2.0-only 12 It provides a generic idle driver whose idle states are configured 13 at run-time through DT nodes. The CPUidle suspend backend is 25 managing idle states through the PSCI firmware interface. 28 - If the idle states are described with the non-hierarchical layout, 29 all idle states are still available. 31 - If the idle states are described with the hierarchical layout, 32 only the idle states defined per CPU are available, but not the ones 33 being shared among a group of CPUs (aka cluster idle states). 44 idle states. [all …]
|
H A D | cpuidle-zynq.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (C) 2012-2013 Xilinx 7 * based on arch/arm/mach-at91/cpuidle.c 9 * The cpu idle uses wait-for-interrupt and RAM self refresh in order 10 * to implement two idle states - 11 * #1 wait-for-interrupt 12 * #2 wait-for-interrupt and RAM self refresh 24 /* Actual code that puts the SoC in different idle states */ 37 .states = { 51 /* Initialize CPU idle by registering the idle states */ [all …]
|
H A D | dt_idle_states.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * DT idle states parsing code. 5 * Copyright (C) 2014 ARM Ltd. 9 #define pr_fmt(fmt) "DT idle-states: " fmt 32 idle_state->enter = match_id->data; in init_state_node() 38 idle_state->enter_s2idle = match_id->data; in init_state_node() 40 err = of_property_read_u32(state_node, "wakeup-latency-us", in init_state_node() 41 &idle_state->exit_latency); in init_state_node() 45 err = of_property_read_u32(state_node, "entry-latency-us", in init_state_node() 48 pr_debug(" * %pOF missing entry-latency-us property\n", in init_state_node() [all …]
|
/openbmc/linux/Documentation/driver-api/pm/ |
H A D | cpuidle.rst | 1 .. SPDX-License-Identifier: GPL-2.0 25 However, there may be multiple different idle states that can be used in such a 35 units: *governors* responsible for selecting idle states to ask the processor 53 containing four callback pointers, :c:member:`enable`, :c:member:`disable`, 54 :c:member:`select`, :c:member:`reflect`, a :c:member:`rating` field described 58 with the ``CPUIdle`` core by calling :c:func:`cpuidle_register_governor()` with 62 :c:member:`rating` field is greater than the value of that field for the 75 :c:member:`enable` 85 struct cpuidle_state objects representing idle states that the 89 code, and that causes the kernel to run the architecture-specific [all …]
|
H A D | devices.rst | 1 .. SPDX-License-Identifier: GPL-2.0 10 :Copyright: |copy| 2010-2011 Rafael J. Wysocki <rjw@sisk.pl>, Novell Inc. 18 management (PM) code is also driver-specific. Most drivers will do very 22 This writeup gives an overview of how drivers interact with system-wide 25 background for the domain-specific work you'd do with any specific driver. 31 Drivers will use one or both of these models to put devices into low-power 32 states: 36 Drivers can enter low-power states as part of entering system-wide 37 low-power states like "suspend" (also known as "suspend-to-RAM"), or 39 "suspend-to-disk"). [all …]
|
/openbmc/linux/tools/power/cpupower/man/ |
H A D | cpupower-idle-set.1 | 1 .TH "CPUPOWER-IDLE-SET" "1" "0.1" "" "cpupower Manual" 4 cpupower\-idle\-set \- Utility to set cpu idle state specific kernel options 7 cpupower [ \-c cpulist ] idle\-set [\fIoptions\fP] 10 The cpupower idle\-set subcommand allows to set cpu idle, also called cpu 12 sleep states. This can be handy for power vs performance tuning. 16 \fB\-d\fR \fB\-\-disable\fR <STATE_NO> 19 \fB\-e\fR \fB\-\-enable\fR <STATE_NO> 22 \fB\-D\fR \fB\-\-disable-by-latency\fR <LATENCY> 23 Disable all idle states with a equal or higher latency than <LATENCY>. 25 Enable all idle states with a latency lower than <LATENCY>. [all …]
|
H A D | cpupower-idle-info.1 | 1 .TH "CPUPOWER-IDLE-INFO" "1" "0.1" "" "cpupower Manual" 4 cpupower\-idle\-info \- Utility to retrieve cpu idle kernel information 7 cpupower [ \-c cpulist ] idle\-info [\fIoptions\fP] 14 \fB\-f\fR \fB\-\-silent\fR 15 Only print a summary of all available C-states in the system. 17 \fB\-e\fR \fB\-\-proc\fR 23 .SH IDLE\-INFO DESCRIPTIONS 28 good overview about the usage and availability of processor sleep states on 31 Be aware that the sleep states as exported by the hardware or BIOS and used by 37 which monitor the duration of sleep states the processor resided in. The [all …]
|
H A D | cpupower-set.1 | 1 .TH CPUPOWER\-SET "1" "22/02/2011" "" "cpupower Manual" 3 cpupower\-set \- Set processor power related kernel or hardware configurations 6 .B cpupower set [ \-b VAL ] 15 described in the cpupower(1) manpage in the \-\-cpu option section. Whether an 24 \-\-perf-bias, \-b 30 The range of valid numbers is 0-15, where 0 is maximum 33 The processor uses this information in model-specific ways 34 when it must select trade-offs between performance and 37 This policy hint does not supersede Processor Performance states 38 (P-states) or CPU Idle power states (C-states), but allows [all …]
|
H A D | cpupower-monitor.1 | 1 .TH CPUPOWER\-MONITOR "1" "22/02/2011" "" "cpupower Manual" 3 cpupower\-monitor \- Report processor frequency and idle statistics 7 .RB "\-l" 10 .RB [ -c ] [ "\-m <mon1>," [ "<mon2>,..." ] ] 11 .RB [ "\-i seconds" ] 14 .RB [ -c ][ "\-m <mon1>," [ "<mon2>,..." ] ] 18 \fBcpupower-monitor \fP reports processor topology, frequency and idle power 22 \fBcpupower-monitor \fP implements independent processor sleep state and 24 directly reading out hardware registers. Use \-l to get an overview which are 29 \-l [all …]
|
/openbmc/linux/drivers/cpuidle/governors/ |
H A D | ladder.c | 2 * ladder.c - the residency ladder algorithm 4 * Copyright (C) 2001, 2002 Andy Grover <andrew.grover@intel.com> 5 * Copyright (C) 2001, 2002 Paul Diefenbaugh <paul.s.diefenbaugh@intel.com> 6 * Copyright (C) 2004, 2005 Dominik Brodowski <linux@brodo.de> 8 * (C) 2006-2007 Venkatesh Pallipadi <venkatesh.pallipadi@intel.com> 40 struct ladder_device_state states[CPUIDLE_STATE_MAX]; member 46 * ladder_do_selection - prepares private data for a state change 55 ldev->states[old_idx].stats.promotion_count = 0; in ladder_do_selection() 56 ldev->states[old_idx].stats.demotion_count = 0; in ladder_do_selection() 57 dev->last_state_idx = new_idx; in ladder_do_selection() [all …]
|
H A D | menu.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * menu.c - the menu idle governor 5 * Copyright (C) 2006-2007 Adam Belay <abelay@novell.com> 6 * Copyright (C) 2009 Intel Corporation 34 * For the menu governor, there are 3 decision factors for picking a C 42 * ----------------------- 43 * C state entry and exit have an energy cost, and a certain amount of time in 44 * the C state is required to actually break even on this cost. CPUIDLE 70 * Repeatable-interval-detector 71 * ---------------------------- [all …]
|
/openbmc/linux/drivers/acpi/ |
H A D | processor_idle.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * processor_idle - idle state submodule to the ACPI processor driver 5 * Copyright (C) 2001, 2002 Andy Grover <andrew.grover@intel.com> 6 * Copyright (C) 2001, 2002 Paul Diefenbaugh <paul.s.diefenbaugh@intel.com> 7 * Copyright (C) 2004, 2005 Dominik Brodowski <linux@brodo.de> 8 * Copyright (C) 2004 Anil S Keshavamurthy <anil.s.keshavamurthy@intel.com> 9 * - Added processor hotplug support 10 * Copyright (C) 2005 Venkatesh Pallipadi <venkatesh.pallipadi@intel.com> 11 * - Added support for C3 on SMP 31 * creating an empty asm-ia64/apic.h would just trade pest vs. cholera. [all …]
|
/openbmc/linux/drivers/regulator/ |
H A D | gpio-regulator.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * gpio-regulator.c 7 * based on fixed.c 13 * Copyright (c) 2009 Nokia Corporation 14 * Roger Quadros <ext-roger.quadros@nokia.com> 17 * non-controllable regulators, as well as for allowing testing on 28 #include <linux/regulator/gpio-regulator.h> 39 struct gpio_regulator_state *states; member 50 for (ptr = 0; ptr < data->nr_states; ptr++) in gpio_regulator_get_value() 51 if (data->states[ptr].gpios == data->state) in gpio_regulator_get_value() [all …]
|
/openbmc/linux/arch/x86/kernel/acpi/ |
H A D | cstate.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (C) 2005 Intel Corporation 5 * - Added _PDC for SMP C-states on Intel CPUs 22 * - When cache is not shared among all CPUs, we flush cache 24 * - When cache is shared among all CPUs, we use bm_check 32 struct cpuinfo_x86 *c = &cpu_data(cpu); in acpi_processor_power_init_bm_check() local 34 flags->bm_check = 0; in acpi_processor_power_init_bm_check() 36 flags->bm_check = 1; in acpi_processor_power_init_bm_check() 37 else if (c->x86_vendor == X86_VENDOR_INTEL) { in acpi_processor_power_init_bm_check() 43 flags->bm_check = 1; in acpi_processor_power_init_bm_check() [all …]
|
/openbmc/linux/drivers/idle/ |
H A D | intel_idle.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * intel_idle.c - native hardware idle loop for modern Intel processors 5 * Copyright (c) 2013 - 2020, Intel Corporation. 20 * All CPUs have same idle states as boot CPU 23 * for preventing entry into deep C [all...] |
/openbmc/linux/drivers/cpufreq/ |
H A D | ia64-acpi-cpufreq.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * This file provides the ACPI based P-state support. This 6 * (arch/i386/kernel/cpu/cpufreq/acpi-cpufreq.c) 8 * Copyright (C) 2005 Intel Corp 28 MODULE_DESCRIPTION("ACPI Processor P-States Driver"); 59 return -ENODEV; in processor_set_pstate() 86 /* To be used only after data->acpi_data is initialized */ 96 for (i = 0; i < data->acpi_data.state_count; i++) { in extract_clock() 97 if (value == data->acpi_data.states[i].status) in extract_clock() 98 return data->acpi_data.states[i].core_frequency; in extract_clock() [all …]
|
/openbmc/linux/Documentation/trace/rv/ |
H A D | deterministic_automata.rst | 10 - *X* is the set of states; 11 - *E* is the finite set of events; 12 - x\ :subscript:`0` is the initial state; 13 - X\ :subscript:`m` (subset of *X*) is the set of marked (or final) states. 14 - *f* : *X* x *E* -> *X* $ is the transition function. It defines the state 22 - *X* = { ``preemptive``, ``non_preemptive``} 23 - *E* = { ``preempt_enable``, ``preempt_disable``, ``sched_waking``} 24 - x\ :subscript:`0` = ``preemptive`` 25 - X\ :subscript:`m` = {``preemptive``} 26 - *f* = [all …]
|
/openbmc/openbmc/poky/meta/files/common-licenses/ |
H A D | DSDP | 3 (C) COPYRIGHT 2004 UNIVERSITY OF CHICAGO 5 This program discloses material protectable under copyright laws of the United States. Permission t… 13 …Any questions or comments on the software may be directed to benson@mcs.anl.gov or yinyu-ye@stanfo… 15 …nne National Laboratory with facilities in the states of Illinois and Idaho, is owned by The Unite… 18 …STATES GOVERNMENT. NEITHER THE UNITED STATES GOVERNMENT NOR ANY AGENCY THEREOF, NOR THE UNIVERSITY…
|
/openbmc/linux/tools/verification/dot2/ |
H A D | dot2c.py | 2 # SPDX-License-Identifier: GPL-2.0-only 4 # Copyright (C) 2019-2022 Red Hat, Inc. Daniel Bristot de Oliveira <bristot@kernel.org> 6 # dot2c: parse an automata in dot file digraph format into a C 20 enum_states_def = "states" 36 return string[:-1] 41 for state in self.states: 89 if self.states.__len__() > 255: 92 if self.states.__len__() > 65535: 95 if self.states.__len__() > 1000000: 96 raise Exception("Too many states: %d" % self.states.__len__()) [all …]
|
H A D | automata.py | 2 # SPDX-License-Identifier: GPL-2.0-only 4 # Copyright (C) 2019-2022 Red Hat, Inc. Daniel Bristot de Oliveira <bristot@kernel.org> 26 self.states, self.initial_state, self.final_states = self.__get_state_variables() 80 states = [] 89 raw_state = line[-1] 91 # "enabled_fired"}; -> enabled_fired 96 states.append(state) 107 states = sorted(set(states)) 108 states.remove(initial_state) 110 # Insert the initial state at the bein og the states [all …]
|