Home
last modified time | relevance | path

Searched +full:space +full:- +full:constraint (Results 1 – 25 of 95) sorted by relevance

1234

/Linux-v6.6/drivers/base/power/
Dqos.c1 // SPDX-License-Identifier: GPL-2.0
7 * This module exposes the interface to kernel space for specifying
8 * per-device PM QoS dependencies. It provides infrastructure for registration
16 * Watchers can register a per-device notification callback using the
18 * per-device constraint data struct.
20 * Note about the per-device constraint data struct allocation:
21 * . The per-device constraints data struct ptr is stored into the device
23 * . To minimize the data usage by the per-device constraints, the data struct
46 * __dev_pm_qos_flags - Check PM QoS flags for a given device.
50 * This routine must be called with dev->power.lock held.
[all …]
/Linux-v6.6/Documentation/power/powercap/
Ddtpm.rst1 .. SPDX-License-Identifier: GPL-2.0
18 The user space is the most adequate place to dynamically act on the
48 `-- pkg
50 |-- pd0 (cpu0-3)
52 `-- pd1 (cpu4-5)
56 SoC (400mW - 3100mW)
58 `-- pkg (400mW - 3100mW)
60 |-- pd0 (100mW - 700mW)
62 `-- pd1 (300mW - 2400mW)
66 SoC (600mW - 5900mW)
[all …]
Dpowercap.rst6 and the user space that allows power capping drivers to expose the settings to
7 user space in a uniform way.
12 The framework exposes power capping devices to user space via sysfs in the
15 example, the intel-rapl control type represents the Intel "Running Average
16 Power Limit" (RAPL) technology, whereas the 'idle-injection' control type
35 └──intel-rapl
36 ├──intel-rapl:0
43 │   ├──device -> ../../intel-rapl
45 │   ├──intel-rapl:0:0
52 │   │   ├──device -> ../../intel-rapl:0
[all …]
/Linux-v6.6/kernel/power/
Dqos.c1 // SPDX-License-Identifier: GPL-2.0-only
15 * or through a built-in notification mechanism.
50 * pm_qos_read_value - Return the current effective constraint value.
51 * @c: List of PM QoS constraint requests.
55 return READ_ONCE(c->target_value); in pm_qos_read_value()
60 if (plist_head_empty(&c->list)) in pm_qos_get_value()
61 return c->no_constraint_value; in pm_qos_get_value()
63 switch (c->type) { in pm_qos_get_value()
65 return plist_first(&c->list)->prio; in pm_qos_get_value()
68 return plist_last(&c->list)->prio; in pm_qos_get_value()
[all …]
/Linux-v6.6/Documentation/arch/arm/
Dporting.rst5 Taken from list archive at http://lists.arm.linux.org.uk/pipermail/linux-arm-kernel/2001-July/00406…
8 -------------------
14 phys = virt - PAGE_OFFSET + PHYS_OFFSET
18 --------------------
25 to be located in RAM, it can be in flash or other read-only or
26 read-write addressable medium.
29 Start address of zero-initialised work area for the decompressor.
35 and eventually executed. The following constraint must be valid:
48 Virtual address of the initial RAM disk. The following constraint
59 --------------
[all …]
/Linux-v6.6/include/linux/
Doom.h1 /* SPDX-License-Identifier: GPL-2.0 */
43 * order == -1 means the oom kill is required by sysrq, otherwise only
53 /* Used to print the constraint info. */
54 enum oom_constraint constraint; member
62 current->signal->oom_flag_origin = true; in set_current_oom_origin()
67 current->signal->oom_flag_origin = false; in clear_current_oom_origin()
72 return p->signal->oom_flag_origin; in oom_task_origin()
77 return tsk->signal->oom_mm; in tsk_is_oom_victim()
83 * address space which is reflected by MMF_UNSTABLE flag set in
95 if (unlikely(test_bit(MMF_UNSTABLE, &mm->flags))) in check_stable_address_space()
/Linux-v6.6/sound/core/
Dpcm_lib.c1 // SPDX-License-Identifier: GPL-2.0-or-later
5 * Abramo Bagnara <abramo@alsa-project.org>
43 delta = new_ptr - ptr; in update_silence_vars()
47 delta += runtime->boundary; in update_silence_vars()
48 if ((snd_pcm_uframes_t)delta < runtime->silence_filled) in update_silence_vars()
49 runtime->silence_filled -= delta; in update_silence_vars()
51 runtime->silence_filled = 0; in update_silence_vars()
52 runtime->silence_start = new_ptr; in update_silence_vars()
57 * runtime->silence_start: starting pointer to silence area
58 * runtime->silence_filled: size filled with silence
[all …]
/Linux-v6.6/Documentation/driver-api/thermal/
Dintel_dptf.rst1 .. SPDX-License-Identifier: GPL-2.0
12 ------------
25 to user space. This allows user space thermal solutions like
31 ----------------------------
39 user space can support those policies.
43 "42A441D6-AE6A-462b-A84B-4A8CE79027D3" : Passive 1
45 "3A95C389-E4B8-4629-A526-C52C88626BAE" : Active
47 "97C68AE7-15FA-499c-B8C9-5DA81D606E0A" : Critical
49 "63BE270F-1C11-48FD-A6F7-3AF253FF3E2D" : Adaptive performance
51 "5349962F-71E6-431D-9AE8-0A635B710AEE" : Emergency call
[all …]
/Linux-v6.6/Documentation/admin-guide/pm/
Dcpuidle.rst1 .. SPDX-License-Identifier: GPL-2.0
27 CPU idle time management is an energy-efficiency feature concerned about using
31 ------------
37 software as individual single-core processors. In other words, a CPU is an
46 Second, if the processor is multi-core, each core in it is able to follow at
61 Finally, each core in a multi-core processor may be able to follow more than one
66 multiple individual single-core "processors", referred to as *hardware threads*
67 (or hyper-threads specifically on Intel hardware), that each can follow one
78 ---------
112 .. _idle-loop:
[all …]
/Linux-v6.6/kernel/
Dresource.c1 // SPDX-License-Identifier: GPL-2.0-only
44 .end = -1,
61 if (p->child) in next_resource()
62 return p->child; in next_resource()
63 while (!p->sibling && p->parent) in next_resource()
64 p = p->parent; in next_resource()
65 return p->sibling; in next_resource()
70 while (!p->sibling && p->parent) in next_resource_skip_children()
71 p = p->parent; in next_resource_skip_children()
72 return p->sibling; in next_resource_skip_children()
[all …]
/Linux-v6.6/mm/
Doom_kill.c1 // SPDX-License-Identifier: GPL-2.0-only
15 * Since we won't call these routines often (on a well-configured
73 return oc->memcg != NULL; in is_memcg_oom()
78 * oom_cpuset_eligible() - check task eligibility for kill
86 * This function is assuming oom-killer context and 'current' has triggered
87 * the oom-killer.
94 const nodemask_t *mask = oc->nodemask; in oom_cpuset_eligible()
128 * The process p may have detached its own ->mm while exiting or through
130 * pointer. Return p, or any of its subthreads with a valid ->mm, with
141 if (likely(t->mm)) in find_lock_task_mm()
[all …]
/Linux-v6.6/Documentation/sound/designs/
Dtracepoints.rst19 ------------------------------------
25 -----------------------------------------------------
53 - SNDRV_PCM_HW_PARAM_ACCESS
54 - SNDRV_PCM_HW_PARAM_FORMAT
55 - SNDRV_PCM_HW_PARAM_SUBFORMAT
61 - SNDRV_PCM_HW_PARAM_SAMPLE_BITS
62 - SNDRV_PCM_HW_PARAM_FRAME_BITS
63 - SNDRV_PCM_HW_PARAM_CHANNELS
64 - SNDRV_PCM_HW_PARAM_RATE
65 - SNDRV_PCM_HW_PARAM_PERIOD_TIME
[all …]
/Linux-v6.6/arch/x86/include/asm/
Duaccess_64.h1 /* SPDX-License-Identifier: GPL-2.0 */
6 * User space memory access functions
10 #include <linux/kasan-checks.h>
22 * Refer tlbstate_untag_mask directly to avoid RIP-relative relocation in __untagged_addr()
42 return addr & (mm)->context.untag_mask; in __untagged_addr_remote()
53 * The virtual address space space is logically divided into a kernel
60 * User pointers can have tag bits on x86-64. This scheme tolerates
64 * 1. 'ptr' must be in the user half of the address space
68 * and will GP-fault even with LAM enabled if the sign bit is set (see
78 * at 'ptr', and even if the end might be in kernel space, we'll
[all …]
/Linux-v6.6/arch/openrisc/mm/
Dinit.c1 // SPDX-License-Identifier: GPL-2.0-or-later
11 * Copyright (C) 2010-2011 Jonas Bonn <jonas@southpole.se>
56 * Map all physical memory into kernel's address space.
58 * This is explicitly coded for two-level page tables, so if you need
72 /* These mark extents of read-only kernel pages... in map_ram()
93 "two-level page tables", in map_ram()
119 printk(KERN_INFO "%s: Memory: 0x%x-0x%x\n", __func__, in map_ram()
159 *itlb_vector = ((unsigned long)&itlb_miss_handler - in paging_init()
162 /* Soft ordering constraint to ensure that dtlb_vector is in paging_init()
168 *dtlb_vector = ((unsigned long)&dtlb_miss_handler - in paging_init()
[all …]
/Linux-v6.6/Documentation/arch/x86/
Dxstate.rst1 Using XSTATE features in user space applications
4 The x86 architecture supports floating-point extensions which are
8 Up to AVX-512 and PKRU states, these features are automatically enabled by
15 --------------------------------
17 Legacy userspace libraries often have hard-coded, static sizes for
24 because different CPUs have differently-sized XSAVE buffers. A compiled-in
28 properly-sized altstacks.
30 Using dynamically enabled XSTATE features in user space applications
31 --------------------------------------------------------------------
37 -ARCH_GET_XCOMP_SUPP
[all …]
/Linux-v6.6/security/selinux/ss/
Dservices.c1 // SPDX-License-Identifier: GPL-2.0-only
17 * Updated: Hewlett-Packard <paul@paul-moore.com>
35 * Copyright (C) 2006, 2007 Hewlett-Packard Development Company, L.P.
36 * Copyright (C) 2004-2006 Trusted Computer Solutions, Inc.
37 * Copyright (C) 2003 - 2004, 2006 Tresys Technology, LLC
104 return -EINVAL; in selinux_set_mapping()
109 /* Allocate space for the class records, plus one for class zero */ in selinux_set_mapping()
110 out_map->mapping = kcalloc(++i, sizeof(*out_map->mapping), GFP_ATOMIC); in selinux_set_mapping()
111 if (!out_map->mapping) in selinux_set_mapping()
112 return -ENOMEM; in selinux_set_mapping()
[all …]
/Linux-v6.6/Documentation/filesystems/
Dzonefs.rst1 .. SPDX-License-Identifier: GPL-2.0
4 ZoneFS - Zone filesystem for Zoned block devices
11 as a file. Unlike a regular POSIX-compliant file system with native zoned block
13 constraint of zoned block devices to the user. Files representing sequential
18 than to a full-featured POSIX file system. The goal of zonefs is to simplify
22 example of this approach is the implementation of LSM (log-structured merge)
31 -------------------
34 space that is divided into zones. A zone is a group of consecutive LBAs and all
43 to the device. As a result of this write constraint, LBAs in a sequential zone
62 by sub-directories. This file structure is built entirely using zone information
[all …]
/Linux-v6.6/drivers/ata/
Dpata_opti.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * pata_opti.c - ATI PATA for new ATA layer
9 * Copyright (C) 1996-1998 Linus Torvalds & authors (see below)
47 * opti_pre_reset - probe begin
56 struct ata_port *ap = link->ap; in opti_pre_reset()
57 struct pci_dev *pdev = to_pci_dev(ap->host->dev); in opti_pre_reset()
63 if (!pci_test_config_bits(pdev, &opti_enable_bits[ap->port_no])) in opti_pre_reset()
64 return -ENOENT; in opti_pre_reset()
70 * opti_write_reg - control register setup
76 * rather than using PCI space as other controllers do. The double inw
[all …]
/Linux-v6.6/lib/
Dgenalloc.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * kmalloc/kfree interface. Uses for this includes on-device special
21 * On architectures that don't have NMI-safe cmpxchg implementation,
26 * Copyright 2005 (C) Jes Sorensen <jes@trained-monkey.org>
42 return chunk->end_addr - chunk->start_addr + 1; in chunk_size()
52 return -EBUSY; in set_bits_ll()
66 return -EBUSY; in clear_bits_ll()
74 * bitmap_set_ll - set the specified number of bits at the specified position
79 * Set @nr bits start from @start in @map lock-lessly. Several users
89 int bits_to_set = BITS_PER_LONG - (start % BITS_PER_LONG); in bitmap_set_ll()
[all …]
/Linux-v6.6/Documentation/devicetree/bindings/power/supply/
Drohm,bd99954.yaml1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Matti Vaittinen <mazziesaccount@gmail.com>
11 - Markus Laine <markus.laine@fi.rohmeurope.com>
12 - Mikko Mutanen <mikko.mutanen@fi.rohmeurope.com>
15 The ROHM BD99954 is a Battery Management LSI for 1-4 cell Lithium-Ion
16 secondary battery intended to be used in space-constraint equipment such
18 provides a Dual-source Battery Charger, two port BC1.2 detection and a
21 $ref: power-supply.yaml#
[all …]
/Linux-v6.6/arch/riscv/include/asm/
Dio.h1 /* SPDX-License-Identifier: GPL-2.0-only */
6 * Copyright (C) 1996-2000 Russell King
21 * when using {read,write}* fns in low-level headers
29 #define IO_SPACE_LIMIT (PCI_IO_SIZE - 1)
34 * Emulation routines for the port-mapped IO space used by some PCI drivers.
38 * - Fully ordered WRT each other, by bracketing them with two fences. The
41 * - Ordered in the same manner as readX/writeX WRT memory by subsuming their
43 * - Ordered WRT timer reads, so udelay and friends don't get elided by the
45 * Note that there is no way to actually enforce that outX is a non-posted
46 * operation on RISC-V, but hopefully the timer ordering constraint is
[all …]
/Linux-v6.6/Documentation/mm/
Dmemory-model.rst1 .. SPDX-License-Identifier: GPL-2.0
23 Regardless of the selected memory model, there exists one-to-one
35 non-NUMA systems with contiguous, or mostly contiguous, physical
54 straightforward: `PFN - ARCH_PFN_OFFSET` is an index to the
65 as hot-plug and hot-remove of the physical memory, alternative memory
66 maps for non-volatile memory devices and deferred initialization of
85 NR\_MEM\_SECTIONS = 2 ^ {(MAX\_PHYSMEM\_BITS - SECTION\_SIZE\_BITS)}
87 The `mem_section` objects are arranged in a two-dimensional array
104 corresponding `struct page` - a "classic sparse" and "sparse
108 The classic sparse encodes the section number of a page in page->flags
[all …]
/Linux-v6.6/drivers/gpu/drm/i915/
Di915_gem_evict.c2 * Copyright © 2008-2010 Intel Corporation
25 * Chris Wilson <chris@chris-wilson.co.uuk>
43 return !kref_read(&vma->obj->base.refcount);
52 list_for_each_entry(gt, &ggtt->gt_list, ggtt_link) { in ggtt_flush()
73 if (i915_gem_object_get_rcu(vma->obj)) { in grab_vma()
74 if (!i915_gem_object_trylock(vma->obj, ww)) { in grab_vma()
75 i915_gem_object_put(vma->obj); in grab_vma()
80 atomic_and(~I915_VMA_PIN_MASK, &vma->flags); in grab_vma()
91 i915_gem_object_unlock(vma->obj); in ungrab_vma()
92 i915_gem_object_put(vma->obj); in ungrab_vma()
[all …]
/Linux-v6.6/Documentation/scheduler/
Dsched-util-clamp.rst1 .. SPDX-License-Identifier: GPL-2.0
11 feature that allows user space to help in managing the performance requirement
40 abstraction from user space point of view.
57 foreground, top-app, etc. Util clamp can be used to constrain how much
59 can run at. This constraint helps reserve resources for important tasks, like
60 the ones belonging to the currently active app (top-app group). Beside this
62 heterogeneous systems (e.g. Arm big.LITTLE); the constraint will help bias the
65 1. The big cores are free to run top-app tasks immediately. top-app
78 By making these uclamp performance requests, or rather hints, user space can
97 User space can form a feedback loop with the thermal subsystem too to ensure
[all …]
/Linux-v6.6/arch/s390/kernel/
Dtraps.c1 // SPDX-License-Identifier: GPL-2.0
29 #include <linux/entry-common.h>
30 #include <asm/asm-extable.h>
39 if (regs->int_code & 0x200) in get_trap_ip()
40 address = current->thread.trap_tdb.data[3]; in get_trap_ip()
42 address = regs->psw.addr; in get_trap_ip()
43 return (void __user *) (address - (regs->int_code >> 16)); in get_trap_ip()
65 regs->int_code, si_signo) == NOTIFY_STOP) in do_trap()
75 if (!current->ptrace) in do_per_trap()
78 (void __force __user *) current->thread.per_event.address); in do_per_trap()
[all …]

1234