/linux/Documentation/admin-guide/pm/ |
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 | cpufreq.rst | 1 .. SPDX-License-Identifier: GPL-2.0 20 Operating Performance Points or P-states (in ACPI terminology). As a rule, 24 time (or the more power is drawn) by the CPU in the given P-state. Therefore 29 as possible and then there is no reason to use any P-states different from the 30 highest one (i.e. the highest-performance frequency/voltage configuration 38 put into different P-states. 41 capacity, so as to decide which P-states to put the CPUs into. Of course, since 64 information on the available P-states (or P-state ranges in some cases) and 65 access platform-specific hardware interfaces to change CPU P-states as requested 70 performance scaling algorithms for P-state selection can be represented in a [all …]
|
H A D | amd-pstate.rst | 1 .. SPDX-License-Identifier: GPL-2.0 5 ``amd-pstate`` CPU Performance Scaling Driver 16 ``amd-pstate`` is the AMD CPU performance scaling driver that introduces a 20 than legacy ACPI hardware P-States. Current AMD CPU/APU platforms are using 21 the ACPI P-states driver to manage CPU frequency and clocks with switching 22 only in 3 P-states. CPPC replaces the ACPI P-states controls and allows a 23 flexible, low-latency interface for the Linux kernel to directly 26 ``amd-pstate`` leverages the Linux kernel governors such as ``schedutil``, 30 Volume 2: System Programming [1]_). Currently, ``amd-pstate`` supports basic 40 continuous, abstract, and unit-less performance value in a scale that is [all …]
|
/linux/arch/arm64/kvm/hyp/include/nvhe/ |
H A D | memory.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 11 * Bits 0-1 are used to encode the memory ownership state of each page from the 19 * hyp_vmemmap for the host and hyp states or in PTE software bits for guests. 27 * 'Meta-states' are not stored directly in PTE SW bits for guest 28 * states, but inferred from the context (e.g. invalid PTE entries). 29 * For the host and hyp, meta-states are stored directly in the 54 /* Host state. Guarded by the host stage-2 lock. */ 58 * Complement of the hyp state. Guarded by the hyp stage-1 lock. We use 70 #define __hyp_va(phys) ((void *)((phys_addr_t)(phys) - hyp_physvirt_offset)) 94 #define hyp_page_to_pfn(page) ((struct hyp_page *)(page) - hyp_vmemmap) [all …]
|
/linux/tools/power/cpupower/man/ |
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 | \-e POLICY | \-m MODE | \-t BOOL ] 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 …]
|
/linux/tools/power/x86/x86_energy_perf_policy/ |
H A D | x86_energy_perf_policy.8 | 1 .\" This page Copyright (C) 2010 - 2015 Len Brown <len.brown@intel.com> 5 x86_energy_perf_policy \- Manage Energy vs. Performance Policy 10 .RB "scope: \-\-cpu\ cpu-list | \-\-pkg\ pkg-list" 12 .RB "cpu-list, pkg-lis [all...] |
/linux/drivers/firmware/arm_scmi/ |
H A D | powercap.c | 1 // SPDX-License-Identifier: GPL-2.0 8 #define pr_fmt(fmt) "SCMI Notifications POWERCAP - " fmt 118 #define THRESH_LOW(p, id) \ argument 119 (lower_32_bits((p)->states[(id)].thresholds)) 120 #define THRESH_HIGH(p, id) \ argument 121 (upper_32_bits((p)->states[(id)].thresholds)) 129 struct scmi_powercap_state *states; member 148 ret = ph->xops->xfer_get_init(ph, PROTOCOL_ATTRIBUTES, 0, in scmi_powercap_attributes_get() 153 ret = ph->xops->do_xfer(ph, t); in scmi_powercap_attributes_get() 157 attributes = get_unaligned_le32(t->rx.buf); in scmi_powercap_attributes_get() [all …]
|
/linux/include/rv/ |
H A D | ltl_monitor.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 28 task->comm, task->pid); in rv_cond_react() 43 return &task->rv[ltl_monitor_slot].ltl_mon; in ltl_get_monitor() 50 memset(&mon->states, 0, sizeof(mon->states)); in ltl_task_init() 53 __set_bit(i, mon->unknown_atoms); in ltl_task_init() 66 struct task_struct *g, *p; in ltl_monitor_init() local 79 for_each_process_thread(g, p) in ltl_monitor_init() 80 ltl_task_init(p, false); in ltl_monitor_init() 112 __clear_bit(atom, mon->unknown_atoms); in ltl_atom_set() 114 __set_bit(atom, mon->atoms); in ltl_atom_set() [all …]
|
/linux/tools/power/cpupower/bindings/python/ |
H A D | test_raw_pylibcpupower.py | 2 # SPDX-License-Identifier: GPL-2.0-only 4 import raw_pylibcpupower as p namespace 11 cpu_cstates_count = p.cpuidle_state_count(0) 12 if cpu_cstates_count > -1: 13 print(f"CPU 0 has {cpu_cstates_count} c-states") 20 cstate_disabled = p.cpuidle_state_disable(0, 0, 1) 25 case -1: 27 case -2: 29 case -3: 30 print(f"No write access to disable/enable C-states: try using sudo") [all …]
|
/linux/drivers/xen/ |
H A D | xen-acpi-processor.c | 1 // SPDX-License-Identifier: GPL-2.0-only 7 * https://lore.kernel.org/lkml/1322673664-14642-6-git-send-email-konrad.wilk@oracle.com 35 * - as those shrink to nr_cpu_bits (which is dependent on possible_cpu), which 40 /* Mutex to protect the acpi_ids_done - for CPU hotplug use. */ 48 /* Which ACPI P-State dependencies for a enumerated processor */ 56 .u.set_pminfo.id = _pr->acpi_id, in push_cxx_to_hypervisor() 64 dst_cx_states = kcalloc(_pr->power.count, in push_cxx_to_hypervisor() 67 return -ENOMEM; in push_cxx_to_hypervisor() 69 for (ok = 0, i = 1; i <= _pr->power.count; i++) { in push_cxx_to_hypervisor() 70 cx = &_pr->power.states[i]; in push_cxx_to_hypervisor() [all …]
|
/linux/tools/tracing/rtla/src/ |
H A D | utils.c | 1 // SPDX-License-Identifier: GPL-2.0 27 * err_msg - print an error message to the stderr 42 * debug_msg - print a debug message to stderr if debug is set 60 * get_llong_from_str - get a long long int from a string 70 return -1; in get_llong_from_str() 76 * get_duration - fill output with a human readable duration since start_time 88 tm_info->tm_yday, in get_duration() 89 tm_info->tm_hour, in get_duration() 90 tm_info->tm_min, in get_duration() 91 tm_info->tm_sec); in get_duration() [all …]
|
/linux/arch/powerpc/include/asm/ |
H A D | 8xx_immap.h | 10 * functional files.....but anyone else is welcome to try. -- Dan 95 /*----------------------------------------------------------------------- 96 * BR - Memory Controller: Base Register 16-9 107 #define BR_MS_GPCM 0x00000000 /* G.P.C.M. Machine Select */ 108 #define BR_MS_UPMA 0x00000080 /* U.P.M.A Machine Select */ 109 #define BR_MS_UPMB 0x000000c0 /* U.P.M.B Machine Select */ 112 /*----------------------------------------------------------------------- 113 * OR - Memory Controller: Option Register 16-11 127 #define OR_SCY_0_CLK 0x00000000 /* 0 clock cycles wait states */ 128 #define OR_SCY_1_CLK 0x00000010 /* 1 clock cycles wait states */ [all …]
|
/linux/Documentation/admin-guide/thermal/ |
H A D | intel_powerclamp.rst | 6 - Arjan van de Ven <arjan@linux.intel.com> 7 - Jacob Pan <jacob.jun.pan@linux.intel.com> 12 - Goals and Objectives 15 - Idle Injection 16 - Calibration 19 - Effectiveness and Limitations 20 - Power vs Performance 21 - Scalability 22 - Calibration 23 - Comparison with Alternative Techniques [all …]
|
/linux/drivers/acpi/ |
H A D | processor_perflib.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * processor_perflib.c - ACPI Processor P-States Library ($Revision: 71 $) 9 * - Added processor hotplug support 39 * -1 -> cpufreq low level drivers not initialized -> _PSS, etc. not called yet 41 * 0 -> cpufreq low level drivers initialized -> consider _PPC values 42 * 1 -> ignore _PPC totally -> forced by user through boot param 44 static int ignore_ppc = -1; 60 return -EINVAL; in acpi_processor_get_platform_limit() 64 * (e.g. 0 = states 0..n; 1 = states 1..n; etc. in acpi_processor_get_platform_limit() 66 status = acpi_evaluate_integer(pr->handle, "_PPC", NULL, &ppc); in acpi_processor_get_platform_limit() [all …]
|
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 9 * - Added processor hotplug support 11 * - Added support for C3 on SMP 33 * creating an empty asm-ia64/apic.h would just trade pest vs. cholera. 86 pr_notice("%s detected - limiting to C%ld max_cstate." in set_max_cstate() 87 " Override with \"processor.max_cstate=%d\"\n", id->ident, in set_max_cstate() 88 (long)id->driver_data, ACPI_PROCESSOR_MAX_POWER + 1); in set_max_cstate() 90 max_cstate = (long)id->driver_data; in set_max_cstate() 101 DMI_MATCH(DMI_SYS_VENDOR, "Hewlett-Packard"), [all …]
|
/linux/kernel/sched/ |
H A D | membarrier.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Copyright (C) 2010-2017 Mathieu Desnoyers <mathieu.desnoyers@efficios.com> 24 * CPU1 after the IPI-induced memory barrier: 31 * b: send IPI IPI-induced mb 48 * before the IPI-induced memory barrier on CPU1. 70 * b: send IPI IPI-induced mb 82 * after the IPI-induced memory barrier on CPU1. 84 * C) Scheduling userspace thread -> kthread -> userspace thread vs membarrier 91 * b: read rq->curr->mm == NULL 112 * e: current->mm = NULL [all …]
|
/linux/net/sunrpc/auth_gss/ |
H A D | gss_krb5_seal.c | 4 * Adapted from MIT Kerberos 5-1.2.1 lib/gssapi/krb5/k5seal.c 6 * Copyright (c) 2000-2008 The Regents of the University of Michigan. 40 * Export of this software from the United States of America may require 41 * a specific license from the United States Government. It is the 79 u8 *p, flags = 0x00; in setup_token_v2() local 81 if ((ctx->flags & KRB5_CTX_FLAG_INITIATOR) == 0) in setup_token_v2() 83 if (ctx->flags & KRB5_CTX_FLAG_ACCEPTOR_SUBKEY) in setup_token_v2() 89 krb5_hdr = (u16 *)token->data; in setup_token_v2() 93 p = (u8 *)ptr; in setup_token_v2() 94 *p++ = flags; in setup_token_v2() [all …]
|
/linux/drivers/cpufreq/ |
H A D | powernow-k8.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * (c) 2003-2006 Advanced Micro Devices, Inc. 9 u32 numps; /* number of p-states */ 10 u32 batps; /* number of p-states supported on battery */ 13 * vid/fid pairings, but are modified during the ->target() call 32 * used to determine valid frequency/vid/fid states */ 36 * handle hotplug events - so just point at cpufreq pol->cpus 53 /* Model Specific Registers for p-state transitions. MSRs are 64-bit. For */ 54 /* writes (wrmsr - opcode 0f 30), the register number is placed in ecx, and */ 55 /* the value to write is placed in edx:eax. For reads (rdmsr - opcode 0f 32), */ [all …]
|
/linux/drivers/i2c/muxes/ |
H A D | i2c-demux-pinctrl.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (C) 2015-16 by Wolfram Sang, Sang Engineering <wsa@sang-engineering.com> 6 * Copyright (C) 2015-16 by Renesas Electronics Corporation 9 * (look for filenames containing 'i2c-demux-pinctrl' in Documentation/) 40 struct i2c_demux_pinctrl_priv *priv = adap->algo_data; in i2c_demux_master_xfer() 41 struct i2c_adapter *parent = priv->chan[priv->cur_chan].parent_adap; in i2c_demux_master_xfer() 48 struct i2c_demux_pinctrl_priv *priv = adap->algo_data; in i2c_demux_functionality() 49 struct i2c_adapter *parent = priv->chan[priv->cur_chan].parent_adap; in i2c_demux_functionality() 51 return parent->algo->functionality(parent); in i2c_demux_functionality() 57 struct pinctrl *p; in i2c_demux_activate_master() local [all …]
|
/linux/Documentation/tools/rtla/ |
H A D | common_timerlat_options.rst | 1 .. |threshold| replace:: **-a/--auto**, **-i/--irq**, or **-T/--thread** 2 .. |thresharg| replace:: -T 6 For time-sensitive actions, it is recommended to run **rtla timerlat** with BPF 11 **-a**, **--auto** *us* 14 while debugging the system. It is equivalent to use **-T** *us* **-s** *us* 15 **-t**. By default, *timerlat* tracer uses FIFO:95 for *timerlat* threads, 16 thus equilavent to **-P** *f:95*. 18 **-p**, **--period** *us* 22 **-i**, **--irq** *us* 26 **-T**, **--thread** *us* [all …]
|
/linux/drivers/pinctrl/ |
H A D | core.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 5 * Copyright (C) 2011 ST-Ericsson SA 6 * Written on behalf of Linaro for ST-Ericsson 14 #include <linux/radix-tree.h> 30 * struct pinctrl_dev - pin control class device 46 * @p: result of pinctrl_get() for this device 68 struct pinctrl *p; member 78 * struct pinctrl - per-device pin control state holder 81 * @states: a list of states for this device 90 struct list_head states; member [all …]
|
/linux/Documentation/trace/ |
H A D | events-power.rst | 8 - Power state switch which reports events related to suspend (S-states), 9 cpuidle (C-states) and cpufreq (P-states) 10 - System clock related changes 11 - Power domains related changes and transitions 22 ----------------- 24 A 'cpu' event class gathers the CPU-related events: cpuidle and 39 Note: the value of '-1' or '4294967295' for state means an exit from the current state, 46 correctly draw the states diagrams and to calculate accurate statistics etc.
|
/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 …]
|
/linux/include/linux/ |
H A D | rcupdate.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 3 * Read-Copy Update mechanism for mutual exclusion 15 * For detailed explanation of Read-Copy Update mechanism see - 34 #define ULONG_CMP_GE(a, b) (ULONG_MAX / 2 >= (a) - (b)) 35 #define ULONG_CMP_LT(a, b) (ULONG_MAX / 2 < (a) - (b)) 38 #define RCU_SEQ_STATE_MASK ((1 << RCU_SEQ_CTR_SHIFT) - 1) 50 // not-yet-completed RCU grace periods. 54 * same_state_synchronize_rcu - Are two old-state values identical? 55 * @oldstate1: First old-state value. 56 * @oldstate2: Second old-state value. [all …]
|
/linux/drivers/hv/ |
H A D | mshv_root_main.c | 1 // SPDX-License-Identifier: GPL-2.0-only 11 #include <linux/entry-virt.h> 28 #include <linux/page-flags.h> 39 MODULE_DESCRIPTION("Microsoft Hyper-V root partition VMM interface /dev/mshv"); 164 return -EFAULT; in mshv_ioctl_passthru_hvcall() 168 return -EINVAL; in mshv_ioctl_passthru_hvcall() 171 return -EINVAL; in mshv_ioctl_passthru_hvcall() 178 return -EINVAL; in mshv_ioctl_passthru_hvcall() 184 return -EINVAL; in mshv_ioctl_passthru_hvcall() 193 return -ENOMEM; in mshv_ioctl_passthru_hvcall() [all …]
|