/openbmc/linux/Documentation/devicetree/bindings/thermal/ |
H A D | nvidia,tegra124-soctherm.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/thermal/nvidia,tegra124-soctherm.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Thierry Reding <thierry.reding@gmail.com> 11 - Jon Hunter <jonathanh@nvidia.com> 14 polled or interrupt-based thermal monitoring, CPU and GPU throttling based 21 - nvidia,tegra124-soctherm 22 - nvidia,tegra132-soctherm 23 - nvidia,tegra210-soctherm [all …]
|
/openbmc/qemu/qapi/ |
H A D | migration.json | 1 # -*- Mode: Python -*- 28 # @normal-bytes: number of normal bytes sent (since 1.2) 30 # @dirty-pages-rate: number of pages dirtied by second by the guest 35 # @dirty-sync-count: number of times that dirty ram was synchronized 38 # @postcopy-requests: The number of page requests received from the 41 # @page-size: The number of bytes per page for the various page-based 44 # @multifd-bytes: The number of bytes sent through multifd (since 3.0) 46 # @pages-per-second: the number of memory pages transferred per second 49 # @precopy-bytes: The number of bytes sent in the pre-copy phase 52 # @downtime-bytes: The number of bytes sent while the guest is paused [all …]
|
H A D | block-core.json | 1 # -*- Mode: Python -*- 20 # @vm-state-size: size of the VM state 22 # @date-sec: UTC date of the snapshot in seconds 24 # @date-nsec: fractional part in nano seconds to be used with date-sec 26 # @vm-clock-sec: VM clock relative to boot in seconds 28 # @vm-clock-nsec: fractional part in nano seconds to be used with 29 # vm-clock-sec 32 # record/replay is enabled. Used for "time-traveling" to match 34 # counter may be obtained through @query-replay command (since 40 'data': { 'id': 'str', 'name': 'str', 'vm-state-size': 'int', [all …]
|
/openbmc/qemu/docs/ |
H A D | throttle.txt | 7 later. See the COPYING file in the top-level directory. 10 ------------ 17 it works internally. The implementation is in throttle.c. 21 ---------------------------------- 25 write operations. This gives us a total of six different parameters. 27 I/O limits can be set using the throttling.* parameters of -drive, or 31 |-----------------------+-----------------------| 32 | -drive | block_set_io_throttle | 33 |-----------------------+-----------------------| 34 | throttling.iops-total | iops | [all …]
|
/openbmc/linux/kernel/sched/ |
H A D | deadline.c | 1 // SPDX-License-Identifier: GPL-2.0 22 * Default limits for DL period; on the top end we guard against small util 27 static unsigned int sysctl_sched_dl_period_min = 100; /* 100 us */ 72 return &rq->dl; in dl_rq_of_se() 77 return !RB_EMPTY_NODE(&dl_se->rb_node); in on_dl_rq() 83 return dl_se->pi_se; in pi_of() 107 return &cpu_rq(i)->rd->dl_bw; in dl_bw_of() 112 struct root_domain *rd = cpu_rq(i)->rd; in dl_bw_cpus() 118 if (cpumask_subset(rd->span, cpu_active_mask)) in dl_bw_cpus() 119 return cpumask_weight(rd->span); in dl_bw_cpus() [all …]
|
H A D | rt.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Real-Time Scheduling Class (mapped to the SCHED_FIFO and SCHED_RR 16 * period over which we measure -rt task CPU usage in us. 22 * part of the period that we allow rt tasks to run in us. 77 raw_spin_lock(&rt_b->rt_runtime_lock); in sched_rt_period_timer() 79 overrun = hrtimer_forward_now(timer, rt_b->rt_period); in sched_rt_period_timer() 83 raw_spin_unlock(&rt_b->rt_runtime_lock); in sched_rt_period_timer() 85 raw_spin_lock(&rt_b->rt_runtime_lock); in sched_rt_period_timer() 88 rt_b->rt_period_active = 0; in sched_rt_period_timer() 89 raw_spin_unlock(&rt_b->rt_runtime_lock); in sched_rt_period_timer() [all …]
|
H A D | fair.c | 1 // SPDX-License-Identifier: GPL-2.0 43 #include <linux/memory-tiers.h> 61 * The initial- and re-scaling of tunables is configurable 65 * SCHED_TUNABLESCALING_NONE - unscaled, always *1 66 * SCHED_TUNABLESCALING_LOG - scaled logarithmical, *1+ilog(ncpus) 67 * SCHED_TUNABLESCALING_LINEAR - scaled linear, *ncpus 74 * Minimal preemption granularity for CPU-bound tasks: 108 return -cpu; in arch_asym_cpu_priority() 129 * Amount of runtime to allocate from global (tg) to local (per-cfs_rq) pool 188 lw->weight += inc; in update_load_add() [all …]
|
/openbmc/linux/mm/ |
H A D | page-writeback.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * mm/page-writeback.c 26 #include <linux/backing-dev.h> 54 #define DIRTY_POLL_THRESH (128 >> (PAGE_SHIFT - 10)) 100 * The interval between `kupdate'-style writebacks 119 /* End of sysctl-exported parameters */ 137 unsigned long wb_dirty; /* per-wb counterparts */ 145 * Length of period for aging writeout fractions of bdis. This is an 146 * arbitrarily chosen number. The longer the period, the slower fractions will 155 .wb_completions = &(__wb)->completions [all …]
|
/openbmc/linux/drivers/scsi/aic7xxx/ |
H A D | aic79xx_osm.c | 6 * -------------------------------------------------------------------------- 7 * Copyright (c) 1994-2000 Justin T. Gibbs. 8 * Copyright (c) 1997-1999 Doug Ledford 9 * Copyright (c) 2000-2003 Adaptec Inc. 23 * 3. Neither the names of the above-listed copyright holders nor the names 76 * To change the default number of tagged transactions allowed per-device, 83 * Twin adapters will use indexes 0-7 for channel 0, and indexes 8-15 96 * The driver will throttle the number of commands dispatched to a 102 * depths. The driver will throttle back when the queue fulls occur and 110 * (0, 2-11, 13-15), disables tagged queueing for ID 12, and tells the [all …]
|
H A D | aic7xxx_osm.c | 26 * config file (!adp7771.cfg), the Adaptec AHA-2740A Series User's Guide, 29 * (adp7770.ovl), the Adaptec AHA-2740 Series Technical Reference Manual, 30 * the Adaptec AIC-7770 Data Book, the ANSI SCSI specification, the 31 * ANSI SCSI-2 specification (draft 10c), ... 33 * -------------------------------------------------------------------------- 41 * -------------------------------------------------------------------------- 42 * Copyright (c) 1994-2000 Justin T. Gibbs. 43 * Copyright (c) 2000-2001 Adaptec Inc. 57 * 3. Neither the names of the above-listed copyright holders nor the names 78 *--------------------------------------------------------------------------- [all …]
|
/openbmc/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 …]
|
/openbmc/linux/tools/include/uapi/linux/ |
H A D | pkt_sched.h | 1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 12 with obsolete IPv6 values is not occasional :-). New IPv6 drafts 37 __u32 overlimits; /* Number of throttle events when this 51 --------- 119 #define TCA_STAB_MAX (__TCA_STAB_MAX - 1) 130 * Priorities go from zero to (SKBPRIO_MAX_PRIORITY - 1). 149 __u8 priomap[TC_PRIO_MAX+1]; /* Map: logical priority -> PRIO band */ 173 * command is received (just act as a pass-thru queue). 203 #define TCA_TBF_MAX (__TCA_TBF_MAX - 1) 214 int perturb_period; /* Period of hash perturbation */ [all …]
|
/openbmc/linux/include/uapi/linux/ |
H A D | pkt_sched.h | 1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 13 with obsolete IPv6 values is not occasional :-). New IPv6 drafts 38 __u32 overlimits; /* Number of throttle events when this 52 --------- 120 #define TCA_STAB_MAX (__TCA_STAB_MAX - 1) 131 * Priorities go from zero to (SKBPRIO_MAX_PRIORITY - 1). 150 __u8 priomap[TC_PRIO_MAX+1]; /* Map: logical priority -> PRIO band */ 174 * command is received (just act as a pass-thru queue). 204 #define TCA_TBF_MAX (__TCA_TBF_MAX - 1) 215 int perturb_period; /* Period of hash perturbation */ [all …]
|
/openbmc/linux/drivers/thermal/tegra/ |
H A D | soctherm.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright (c) 2014 - 2018, NVIDIA CORPORATION. All rights reserved. 34 #include <dt-bindings/thermal/tegra124-soctherm.h> 197 #define REG_GET_MASK(r, m) (((r) & (m)) >> (ffs(m) - 1)) 200 (((v) & (m >> (ffs(m) - 1))) << (ffs(m) - 1))) 203 #define THROT_DEPTH_DIVIDEND(depth) ((256 * (100 - (depth)) / 100) - 1) 205 /* gk20a nv_therm interface N:3 Mapping. Levels defined in tegra124-soctherm.h 212 #define THROT_LEVEL_TO_DEPTH(level) ((0x1 << (level)) - 1) 229 (ALARM_OFFSET * (throt - THROTTLE_OC1))) 232 (ALARM_OFFSET * (throt - THROTTLE_OC1))) [all …]
|
/openbmc/qemu/tests/qtest/ |
H A D | migration-test.c | 4 * Copyright (c) 2016-2018 Red Hat, Inc. and/or its affiliates 5 * based on the vhost-user-test.c that is: 9 * See the COPYING file in the top-level directory. 24 #include "ppc-util.h" 26 #include "migration-helpers.h" 27 #include "tests/migration/migration-test.h" 29 # include "tests/unit/crypto-tls-psk-helpers.h" 31 # include "tests/unit/crypto-tls-x509-helpers.h" 66 #define ANALYZE_SCRIPT "scripts/analyze-migration.py" 103 if (ufd == -1) { in ufd_version_check() [all …]
|
/openbmc/qemu/ui/ |
H A D | cocoa.m | 31 #include "qemu/help-texts.h" 32 #include "qemu-main.h" 36 #include "ui/kbd-state.h" 39 #include "sysemu/runstate-action.h" 40 #include "sysemu/cpu-throttle.h" 42 #include "qapi/qapi-commands-block.h" 43 #include "qapi/qapi-commands-machine.h" 44 #include "qapi/qapi-commands-misc.h" 46 #include "qemu-version.h" 48 #include "qemu/main-loop.h" [all …]
|
/openbmc/linux/Documentation/RCU/ |
H A D | RTFP.txt | 4 This document describes RCU-related publications, and is followed by 19 with short-lived threads, such as the K42 research operating system. 20 However, Linux has long-lived tasks, so more is needed. 23 serialization, which is an RCU-like mechanism that relies on the presence 27 that these overheads were not so expensive in the mid-80s. Nonetheless, 28 passive serialization appears to be the first deferred-destruction 30 has lapsed, so this approach may be used in non-GPL software, if desired. 34 In 1987, Rashid et al. described lazy TLB-flush [RichardRashid87a]. 36 this paper helped inspire the update-side batching used in the later 38 a description of Argus that noted that use of out-of-date values can [all …]
|
/openbmc/linux/drivers/net/ethernet/intel/igb/ |
H A D | igb.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 2 /* Copyright(c) 2007 - 2018 Intel Corporation. */ 18 #include <linux/i2c-algo-bit.h> 119 * PTHRESH - MAC will consider prefetch if it has fewer than this number of 122 * HTHRESH - MAC will only prefetch if there are at least this many descriptors 125 * WTHRESH - RX descriptor writeback threshold - MAC will delay writing back 129 #define IGB_RX_PTHRESH ((hw->mac.type == e1000_i354) ? 12 : 8) 131 #define IGB_TX_PTHRESH ((hw->mac.type == e1000_i354) ? 20 : 8) 133 #define IGB_RX_WTHRESH ((hw->mac.type == e1000_82576 && \ 134 (adapter->flags & IGB_FLAG_HAS_MSIX)) ? 1 : 4) [all …]
|
/openbmc/linux/kernel/rcu/ |
H A D | tree.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * Read-Copy Update mechanism for mutual exclusion (tree-based version) 14 * For detailed explanation of Read-Copy Update mechanism see - 67 #include "../time/tick-internal.h" 88 .gp_seq = (0UL - 300UL) << RCU_SEQ_CTR_SHIFT, 106 /* Control rcu_node-tree auto-balancing at boot time. */ 125 * boot-time false positives from lockdep-RCU error checking. Finally, it 161 * real-time priority(enabling/disabling) is controlled by 167 /* Delay in jiffies for grace-period initialization delays, debug only. */ 183 * This rcu parameter is runtime-read-only. It reflects [all …]
|
H A D | tree_nocb.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 3 * Read-Copy Update mechanism for mutual exclusion (tree-based version) 4 * Internal non-public definitions that provide either classic 21 return lockdep_is_held(&rdp->nocb_lock); in rcu_lockdep_is_held_nocb() 27 if (!rdp->nocb_cb_kthread || !rdp->nocb_gp_kthread) in rcu_current_is_nocb_kthread() 30 if (current == rdp->nocb_cb_kthread || current == rdp->nocb_gp_kthread) in rcu_current_is_nocb_kthread() 37 * Offload callback processing from the boot-time-specified set of CPUs 40 * a grace period to elapse, and invoke the callbacks. These kthreads 43 * invoke callbacks. Each GP kthread invokes its own CBs. The no-CBs CPUs 50 * adaptive-idle work, which would seriously reduce OS jitter on CPUs [all …]
|
/openbmc/linux/kernel/events/ |
H A D | core.c | 1 // SPDX-License-Identifier: GPL-2.0 6 * Copyright (C) 2008-2011 Red Hat, Inc., Ingo Molnar 7 * Copyright (C) 2008-2011 Red Hat, Inc., Peter Zijlstra 75 struct task_struct *p = tfc->p; in remote_function() 78 /* -EAGAIN */ in remote_function() 87 tfc->ret = -ESRCH; /* No such (running) process */ in remote_function() 92 tfc->ret = tfc->func(tfc->info); in remote_function() 96 * task_function_call - call a function on the cpu on which a task runs 106 * returns @func return value or -ESRCH or -ENXIO when the process isn't running 115 .ret = -EAGAIN, in task_function_call() [all …]
|
/openbmc/linux/drivers/net/usb/ |
H A D | usbnet.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 4 * Copyright (C) 2000-2005 by David Brownell 5 * Copyright (C) 2003-2005 David Hollis <dhollis@davehollis.com> 10 * kinds of full and high speed networking devices: host-to-host cables, 34 /*-------------------------------------------------------------------------*/ 48 #define RX_QLEN(dev) ((dev)->rx_qlen) 49 #define TX_QLEN(dev) ((dev)->tx_qlen) 54 /* throttle rx/tx briefly after some faults, so hub_wq might disconnect() 55 * us (it polls at HZ/4 usually) before we report too many false errors. 62 /*-------------------------------------------------------------------------*/ [all …]
|
/openbmc/linux/block/ |
H A D | blk-iocost.c | 1 /* SPDX-License-Identifier: GPL-2.0 17 * useless for the purpose of IO capacity distribution. While on-device 19 * non-queued rotational devices, this is no longer viable with modern 27 * implement a reasonable work-conserving proportional IO resource 37 * Currently, there's only one builtin cost model - linear. Each IO is 47 * device-specific coefficients. 54 * 2-1. Vtime Distribution 75 * against the device vtime - an IO which takes 10ms on the underlying 84 * 2-2. Vrate Adjustment 97 * To slow down, we lower the vrate - the rate at which the device vtime [all …]
|
/openbmc/linux/drivers/usb/fotg210/ |
H A D | fotg210-hcd.c | 1 // SPDX-License-Identifier: GPL-2.0+ 2 /* Faraday FOTG210 EHCI-like driver 6 * Author: Yuan-Hsin Chen <yhchen@faraday-tech.com> 7 * Feng-Hsin Chiang <john453@faraday-tech.com> 8 * Po-Yu Chuang <ratbert.chuang@gmail.com> 10 * Most of code borrowed from the Linux-3.7 EHCI driver 29 #include <linux/dma-mapping.h> 49 #define FOTG210_TUNE_CERR 3 /* 0-3 qtd retries; 0 == don't stop */ 50 #define FOTG210_TUNE_RL_HS 4 /* nak throttle; see 4.9 */ 52 #define FOTG210_TUNE_MULT_HS 1 /* 1-3 transactions/uframe; 4.10.3 */ [all …]
|
/openbmc/linux/drivers/usb/host/ |
H A D | oxu210hp-hcd.c | 1 // SPDX-License-Identifier: GPL-2.0+ 6 * This code is *strongly* based on EHCI-HCD code by David Brownell since 7 * the chip is a quasi-EHCI compatible. 25 #include <linux/dma-mapping.h> 82 #define EHCI_TUNE_CERR 3 /* 0-3 qtd retries; 0 == don't stop */ 83 #define EHCI_TUNE_RL_HS 4 /* nak throttle; see 4.9 */ 85 #define EHCI_TUNE_MULT_HS 1 /* 1-3 transactions/uframe; 4.10.3 */ 101 u32 hcs_params; /* HCSPARAMS - offset 0x4 */ 110 u32 hcc_params; /* HCCPARAMS - offset 0x8 */ 116 #define HCC_64BIT_ADDR(p) ((p)&(1)) /* true: can use 64-bit addr */ [all …]
|