Home
last modified time | relevance | path

Searched +full:lock +full:- +full:latency +full:- +full:ns (Results 1 – 25 of 87) sorted by relevance

1234

/Linux-v5.15/Documentation/devicetree/bindings/opp/
Dopp-v2.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/opp/opp-v2.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Viresh Kumar <viresh.kumar@linaro.org>
13 - $ref: opp-v2-base.yaml#
17 const: operating-points-v2
22 - |
24 * Example 1: Single cluster Dual-core ARM cortex A9, switch DVFS states
28 #address-cells = <1>;
[all …]
/Linux-v5.15/kernel/locking/
Dlock_events_list.h1 /* SPDX-License-Identifier: GPL-2.0 */
28 LOCK_EVENT(pv_latency_kick) /* Average latency (ns) of vCPU kick */
29 LOCK_EVENT(pv_latency_wake) /* Average latency (ns) of kick-to-wakeup */
30 LOCK_EVENT(pv_lock_stealing) /* # of lock stealing operations */
31 LOCK_EVENT(pv_spurious_wakeup) /* # of spurious wakeups in non-head vCPUs */
35 LOCK_EVENT(pv_wait_node) /* # of vCPU wait's at non-head queue node */
45 LOCK_EVENT(lock_slowpath) /* # of locking ops via MCS lock queue */
59 LOCK_EVENT(rwsem_opt_lock) /* # of opt-acquired write locks */
63 LOCK_EVENT(rwsem_rlock_steal) /* # of read locks by lock stealing */
65 LOCK_EVENT(rwsem_rlock_fail) /* # of failed read lock acquisitions */
[all …]
/Linux-v5.15/drivers/gpu/drm/i915/gt/
Dintel_rc6.c1 // SPDX-License-Identifier: MIT
19 * low-voltage mode when idle, using down to 0V while at this stage. This
25 * among each other with the latency required to enter and leave RC6 and
33 * require higher latency to switch to and wake up.
43 return rc6_to_gt(rc)->uncore; in rc6_to_uncore()
48 return rc6_to_gt(rc)->i915; in rc6_to_i915()
59 struct intel_uncore *uncore = gt->uncore; in gen11_rc6_enable()
68 if (!intel_uc_uses_guc_rc(&gt->uc)) { in gen11_rc6_enable()
73 set(uncore, GEN6_RC_EVALUATION_INTERVAL, 125000); /* 12500 * 1280ns */ in gen11_rc6_enable()
74 set(uncore, GEN6_RC_IDLE_HYSTERSIS, 25); /* 25 * 1280ns */ in gen11_rc6_enable()
[all …]
/Linux-v5.15/drivers/nvme/host/
Dcore.c1 // SPDX-License-Identifier: GPL-2.0
4 * Copyright (c) 2011-2014, Intel Corporation.
8 #include <linux/blk-mq.h>
15 #include <linux/backing-dev.h>
53 "max power saving latency for new devices; use PM QOS to change per device");
72 "primary APST latency tolerance in us");
77 "secondary APST latency tolerance in us");
84 * nvme_wq - hosts nvme related works that are not reset or delete
85 * nvme_reset_wq - hosts nvme reset works
86 * nvme_delete_wq - hosts nvme delete works
[all …]
/Linux-v5.15/drivers/video/fbdev/riva/
Driva_hw.c3 |* Copyright 1993-1999 NVIDIA, Corporation. All rights reserved. *|
7 |* hereby granted a nonexclusive, royalty-free copyright license to *|
10 |* Any use of this source code must include, in the user documenta- *|
14 |* Copyright 1993-1999 NVIDIA, Corporation. All rights reserved. *|
18 |* WITHOUT EXPRESS OR IMPLIED WARRANTY OF ANY KIND. NVIDIA, CORPOR- *|
20 |* INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY, NONINFRINGE- *|
22 |* NVIDIA, CORPORATION BE LIABLE FOR ANY SPECIAL, INDIRECT, INCI- *|
23 |* DENTAL, OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RE- *|
32 |* 48 C.F.R. 12.212 (SEPT 1995) and is provided to the U.S. Govern- *|
34 |* 12.212 and 48 C.F.R. 227.7202-1 through 227.7202-4 (JUNE 1995), *|
[all …]
/Linux-v5.15/drivers/net/ethernet/intel/igb/
Digb_ptp.c1 // SPDX-License-Identifier: GPL-2.0+
14 /* The 82580 timesync updates the system timer every 8ns by 8ns,
38 * +--------------+ +---+---+------+
40 * +--------------+ +---+---+------+
43 * +----------+---+ +--------------+
45 * +----------+---+ +--------------+
50 * 2^45 * 10^-9 / 3600 = 9.77 hours.
53 * 2^40 * 10^-9 / 60 = 18.3 minutes.
67 #define INCVALUE_82576_MASK GENMASK(E1000_TIMINCA_16NS_SHIFT - 1, 0)
77 struct e1000_hw *hw = &igb->hw; in igb_ptp_read_82576()
[all …]
/Linux-v5.15/include/linux/
Dsched.h1 /* SPDX-License-Identifier: GPL-2.0 */
33 #include <linux/posix-timers.h>
75 * We have two separate sets of flags: task->state
76 * is about runnability, while task->exit_state are
82 /* Used in tsk->state: */
88 /* Used in tsk->exit_state: */
92 /* Used in tsk->state again: */
99 /* RT specific auxilliary flag to mark RT lock waiters */
119 #define task_is_running(task) (READ_ONCE((task)->__state) == TASK_RUNNING)
121 #define task_is_traced(task) ((READ_ONCE(task->__state) & __TASK_TRACED) != 0)
[all …]
/Linux-v5.15/block/
Dblk-iolatency.c1 // SPDX-License-Identifier: GPL-2.0
3 * Block rq-qos base io controller
7 * - It's bio based, so the latency covers the whole block layer in addition to
9 * - We will throttle all IO that comes in here if we need to.
10 * - We use the mean latency over the 100ms window. This is because writes can
13 * - By default there's no throttling, we set the queue_depth to UINT_MAX so
17 * The hierarchy works like the cpu controller does, we track the latency at
19 * queue depth. This means that we only care about our latency targets at the
32 * an average latency of 5ms. If it does then we will throttle the "slow"
44 * number of IO's we're allowed to have in flight. This starts at (u64)-1 down
[all …]
Dbfq-iosched.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
11 #include <linux/blk-cgroup.h>
13 #include "blk-cgroup-rwstat.h"
31 * Soft real-time applications are extremely more latency sensitive
32 * than interactive ones. Over-raise the weight of the former to
40 * struct bfq_service_tree - per ioprio_class service tree.
42 * Each service tree represents a B-WF2Q+ scheduler on its own. Each
44 * bfq_service_tree. All the fields are protected by the queue lock
65 * struct bfq_sched_data - multi-class scheduler.
75 * queue requests are served according to B-WF2Q+.
[all …]
Dblk-throttle.c1 // SPDX-License-Identifier: GPL-2.0
13 #include <linux/blk-cgroup.h>
15 #include "blk-cgroup-rwstat.h"
30 #define DFL_LATENCY_TARGET (-1L)
35 * For HD, very small latency comes from sequential IO. Such IO is helpless to
55 * the parent, they're popped in round-robin order so that no single source
60 * throtl_service_queue and then dispatched in round-robin order.
69 struct list_head node; /* service_queue->queued[] */
86 * their ->disptime.
96 THROTL_TG_WAS_EMPTY = 1 << 1, /* bio_lists[] became non-empty */
[all …]
/Linux-v5.15/drivers/net/ethernet/8390/
Dlib8390.c3 Written 1992-94 by Donald Becker.
17 This is the chip-specific code for many 8390-based ethernet adaptors.
18 This is not a complete driver, it must be combined with board-specific
24 you have found something that needs changing. -- PG
29 Paul Gortmaker : remove set_bit lock, other cleanups.
34 Paul Gortmaker : rewrite Rx overrun handling as per NS specs.
40 Paul Gortmaker : add kmod support for auto-loading of the 8390
80 /* These are the operational function interfaces to board-specific
89 "page" value uses the 8390's 256-byte pages.
98 #define ei_reset_8390 (ei_local->reset_8390)
[all …]
Daxnet_cs.c3 A PCMCIA ethernet driver for Asix AX88190-based cards
5 The Asix AX88190 is a NS8390-derived chipset with a few nasty
12 Copyright (C) 2001 David A. Hinds -- dahinds@users.sourceforge.net
52 #define AXNET_DATAPORT 0x10 /* NatSemi-defined port window offset. */
146 dev_dbg(&link->dev, "axnet_attach()\n"); in axnet_probe()
150 return -ENOMEM; in axnet_probe()
153 spin_lock_init(&ei_local->page_lock); in axnet_probe()
156 info->p_dev = link; in axnet_probe()
157 link->priv = dev; in axnet_probe()
158 link->config_flags |= CONF_ENABLE_IRQ; in axnet_probe()
[all …]
/Linux-v5.15/drivers/cpufreq/
Dpowernow-k8.h1 /* 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
19 u32 plllock; /* pll lock time, units 1 us */
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-v5.15/drivers/base/power/
Ddomain.c1 // SPDX-License-Identifier: GPL-2.0
3 * drivers/base/power/domain.c - Common code related to device power domains.
35 __routine = genpd->dev_ops.callback; \
46 void (*lock)(struct generic_pm_domain *genpd); member
54 mutex_lock(&genpd->mlock); in genpd_lock_mtx()
60 mutex_lock_nested(&genpd->mlock, depth); in genpd_lock_nested_mtx()
65 return mutex_lock_interruptible(&genpd->mlock); in genpd_lock_interruptible_mtx()
70 return mutex_unlock(&genpd->mlock); in genpd_unlock_mtx()
74 .lock = genpd_lock_mtx,
81 __acquires(&genpd->slock) in genpd_lock_spin()
[all …]
/Linux-v5.15/drivers/usb/core/
Dhub.c1 // SPDX-License-Identifier: GPL-2.0
49 #define USB_TP_TRANSMISSION_DELAY 40 /* ns */
50 #define USB_TP_TRANSMISSION_DELAY_MAX 65535 /* ns */
51 #define USB_PING_RESPONSE_TIME 400 /* ns */
53 /* Protect struct usb_device->state and ->children members
54 * Note: Both are also protected by ->dev.sem, except that ->state can
62 /* synchronize hub-port add/remove and peering operations */
72 * 10 seconds to send reply for the initial 64-byte descriptor request.
74 /* define initial 64-byte descriptor request timeout in milliseconds */
78 "initial 64-byte descriptor request timeout in milliseconds "
[all …]
/Linux-v5.15/drivers/net/ethernet/intel/igc/
Digc_ptp.c1 // SPDX-License-Identifier: GPL-2.0
27 struct igc_hw *hw = &adapter->hw; in igc_ptp_read()
34 ts->tv_sec = sec; in igc_ptp_read()
35 ts->tv_nsec = nsec; in igc_ptp_read()
41 struct igc_hw *hw = &adapter->hw; in igc_ptp_write_i225()
43 wr32(IGC_SYSTIML, ts->tv_nsec); in igc_ptp_write_i225()
44 wr32(IGC_SYSTIMH, ts->tv_sec); in igc_ptp_write_i225()
51 struct igc_hw *hw = &igc->hw; in igc_ptp_adjfine_i225()
58 scaled_ppm = -scaled_ppm; in igc_ptp_adjfine_i225()
80 spin_lock_irqsave(&igc->tmreg_lock, flags); in igc_ptp_adjtime_i225()
[all …]
/Linux-v5.15/fs/proc/
Dbase.c1 // SPDX-License-Identifier: GPL-2.0
9 * 1999, Al Viro. Rewritten. Now it covers the whole per-process part.
11 * we allocate and fill in-core inodes upon lookup. They don't even
18 * 17-Jan-2005
25 * Embedded Linux Lab - 10LE Instituto Nokia de Tecnologia - INdT
35 * 21-Feb-2005
36 * Embedded Linux Lab - 10LE Instituto Nokia de Tecnologia - INdT
40 * 10-Mar-2005
41 * 10LE Instituto Nokia de Tecnologia - INdT:
62 #include <linux/generic-radix-tree.h>
[all …]
/Linux-v5.15/drivers/md/
Ddm-ps-historical-service-time.c1 // SPDX-License-Identifier: GPL-2.0
5 * Keeps a time-weighted exponential moving average of the historical
20 * ns, and the weighting is pre-calculated.
25 #include "dm-path-selector.h"
32 #define DM_MSG_PREFIX "multipath historical-service-time"
48 spinlock_t lock; member
59 spinlock_t lock; member
70 * fixed_power - compute: x^n, in O(log n) time
94 result += 1UL << (frac_bits - 1); in fixed_power()
101 x += 1UL << (frac_bits - 1); in fixed_power()
[all …]
/Linux-v5.15/arch/arm/boot/dts/
Domap3-n900.dts1 // SPDX-License-Identifier: GPL-2.0-or-later
4 * Copyright (C) 2013-2014 Aaro Koskinen <aaro.koskinen@iki.fi>
7 /dts-v1/;
10 #include <dt-bindings/input/input.h>
13 * Default secure signed bootloader (Nokia X-Loader) does not enable L3 firewall
15 * blocks then kernel receive "Unhandled fault: external abort on non-linefetch"
16 * and crash. Until somebody fix omap-aes.c and omap_hwmod_3xxx_data.c code (no
32 compatible = "nokia,omap3-n900", "ti,omap3430", "ti,omap3";
45 cpu0-supply = <&vcc>;
50 compatible = "gpio-leds";
[all …]
/Linux-v5.15/include/uapi/linux/
Dhdreg.h1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
17 #define IDE_DRIVE_TASK_INVALID -1
137 * 0x01->0x02 Reserved
141 * 0x04->0x07 Reserved
146 * 0x09->0x0F Reserved
151 * 0x10->0x1F Reserved
153 #define WIN_READ 0x20 /* 28-Bit */
154 #define WIN_READ_ONCE 0x21 /* 28-Bit without retries */
155 #define WIN_READ_LONG 0x22 /* 28-Bit */
156 #define WIN_READ_LONG_ONCE 0x23 /* 28-Bit without retries */
[all …]
/Linux-v5.15/drivers/staging/media/ipu3/
Dipu3.c1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (C) 2017 - 2018 Intel Corporation
16 #include "ipu3-dmamap.h"
17 #include "ipu3-mmu.h"
25 * pre-allocated buffer size for IMGU dummy buffers. Those
27 * re-allocation when streaming to lower streaming latency.
72 struct imgu_media_pipe *imgu_pipe = &imgu->imgu_pipe[pipe]; in imgu_dummybufs_cleanup()
76 &imgu_pipe->queues[i].dmap); in imgu_dummybufs_cleanup()
84 struct imgu_media_pipe *imgu_pipe = &imgu->imgu_pipe[pipe]; in imgu_dummybufs_preallocate()
97 &imgu_pipe->queues[i].dmap, size)) { in imgu_dummybufs_preallocate()
[all …]
/Linux-v5.15/drivers/block/rsxx/
Ddma.c1 // SPDX-License-Identifier: GPL-2.0-or-later
78 spinlock_t lock; member
84 /*----------------- Misc Utility Functions -------------------*/
89 tgt_addr8 = ((addr8 >> card->_stripe.upper_shift) & in rsxx_addr8_to_laddr()
90 card->_stripe.upper_mask) | in rsxx_addr8_to_laddr()
91 ((addr8) & card->_stripe.lower_mask); in rsxx_addr8_to_laddr()
100 tgt = (addr8 >> card->_stripe.target_shift) & card->_stripe.target_mask; in rsxx_get_dma_tgt()
108 iowrite32(DMA_QUEUE_RESET, card->regmap + RESET); in rsxx_dma_queue_reset()
113 if (dma->sub_page.cnt) in get_dma_size()
114 return dma->sub_page.cnt << 9; in get_dma_size()
[all …]
/Linux-v5.15/drivers/acpi/
Dcppc_acpi.c1 // SPDX-License-Identifier: GPL-2.0-only
15 * P-state scale which is tied to CPU frequency only. In brief, the basic
18 * - OS makes a CPU performance request. (Can provide min and max bounds)
20 * - Platform (such as BMC) is free to optimize request within requested bounds
23 * - Platform conveys its decision back to OS
57 * Lock to provide controlled access to the PCC channel.
67 * For non-performance critical usecases(init)
95 #define GET_PCC_VADDR(offs, pcc_ss_id) (pcc_data[pcc_ss_id]->pcc_comm_addr + \
99 #define CPC_IN_PCC(cpc) ((cpc)->type == ACPI_TYPE_BUFFER && \
100 (cpc)->cpc_entry.reg.space_id == \
[all …]
/Linux-v5.15/drivers/scsi/lpfc/
Dlpfc_disc.h4 * Copyright (C) 2017-2021 Broadcom. All Rights Reserved. The term *
6 * Copyright (C) 2004-2013 Emulex. All rights reserved. *
16 * FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT, ARE *
94 spinlock_t lock; /* Node management lock */ member
126 uint8_t nlp_fcp_info; /* class info, bits 0-3 */
127 #define NLP_FCP_2_DEVICE 0x10 /* FCP-2 device */
145 struct lpfc_scsicmd_bkt *lat_data; /* Latency data */
169 (ndlp->cmd_qdepth < phba->sli4_hba.max_cfg_param.max_xri)
214 * The bind list is a list of undiscovered (potentially non-existent) nodes
284 #define NLP_EVT_DEVICE_RM 0xb /* Device not found in NS / ALPAmap */
/Linux-v5.15/drivers/net/ethernet/freescale/
Dgianfar.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
13 * Copyright 2002-2009, 2011-2013 Freescale Semiconductor, Inc.
16 * -Add support for module parameters
17 * -Add patch for ethtool phys id
70 #define DRV_NAME "gfar-enet"
95 #define GFAR_RXB_SIZE rounddown(GFAR_RXB_TRUESIZE - GFAR_SKBFRAG_OVR, 64)
98 #define TX_RING_MOD_MASK(size) (size-1)
99 #define RX_RING_MOD_MASK(size) (size-1)
109 /* Latency of interface clock in nanoseconds */
110 /* Interface clock latency , in this case, means the
[all …]

1234