/linux/kernel/locking/ |
H A D | lock_events_list.h | 1 /* 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/drivers/gpu/drm/i915/gt/ |
H A D | intel_rc6.c | 1 // SPDX-License-Identifier: MIT 24 * low-voltage mode when idle, using down to 0V while at this stage. This 30 * among each other with the latency required to enter and leave RC6 and 38 * require higher latency to switch to and wake up. 48 return rc6_to_gt(rc)->uncore; in rc6_to_uncore() 53 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(>->uc)) { in gen11_rc6_enable() 73 intel_uncore_write_fw(uncore, GEN6_RC_EVALUATION_INTERVAL, 125000); /* 12500 * 1280ns */ in gen11_rc6_enable() 74 intel_uncore_write_fw(uncore, GEN6_RC_IDLE_HYSTERSIS, 25); /* 25 * 1280ns */ in gen11_rc6_enable() [all …]
|
/linux/drivers/nvme/host/ |
H A D | core.c | 1 // SPDX-License-Identifier: GPL-2.0 4 * Copyright (c) 2011-2014, Intel Corporation. 9 #include <linux/blk-mq.h> 10 #include <linux/blk-integrity.h> 17 #include <linux/backing-dev.h> 29 #include <linux/nvme-auth.h> 70 "max power saving latency for new devices; use PM QOS to change per device"); 89 "primary APST latency tolerance in us"); 94 "secondary APST latency tolerance in us"); 108 * nvme_wq - hosts nvme related works that are not reset or delete [all …]
|
/linux/drivers/video/fbdev/riva/ |
H A D | riva_hw.c | 3 |* 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/drivers/pci/pcie/ |
H A D | aspm.c | 1 // SPDX-License-Identifier: GPL-2.0 49 cap = &save_state->cap.data[0]; in pci_save_ltr_state() 65 cap = &save_state->cap.data[0]; in pci_restore_ltr_state() 73 pdev->l1ss = pci_find_ext_capability(pdev, PCI_EXT_CAP_ID_L1SS); in pci_configure_aspm_l1ss() 84 struct pci_dev *parent = pdev->bus->self; in pci_save_aspm_l1ss_state() 96 if (!pdev->l1ss || !parent->l1ss) in pci_save_aspm_l1ss_state() 107 cap = &save_state->cap.data[0]; in pci_save_aspm_l1ss_state() 108 pci_read_config_dword(pdev, pdev->l1ss + PCI_L1SS_CTL2, cap++); in pci_save_aspm_l1ss_state() 109 pci_read_config_dword(pdev, pdev->l1ss + PCI_L1SS_CTL1, cap++); in pci_save_aspm_l1ss_state() 119 cap = &save_state->cap.data[0]; in pci_save_aspm_l1ss_state() [all …]
|
/linux/drivers/gpu/drm/amd/include/ |
H A D | kgd_pp_interface.h | 88 AMD_VCE_LEVEL_DC_LL_LOW = 2, /* DC, low latency queue, res <= 720 */ 89 AMD_VCE_LEVEL_DC_LL_HIGH = 3, /* DC, low latency queue, 1080 >= res > 720 */ 167 PP_SMC_POWER_PROFILE_UNKNOWN = -1, 237 * APU power is managed to system-level requirements through the PPT 247 * enum pp_power_limit_level - Used to query the power limits 255 PP_PWR_LIMIT_MIN = -1, 262 * enum pp_power_type - Used to specify the type of the requested power 275 XGMI_PLPD_NONE = -1, 283 PP_PM_POLICY_NONE = -1, 510 /* Driver attached timestamp (in ns) */ [all …]
|
/linux/drivers/net/ethernet/intel/igb/ |
H A D | igb_ptp.c | 1 // 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) 79 struct e1000_hw *hw = &igb->hw; in igb_ptp_read_82576() [all …]
|
/linux/fs/bcachefs/ |
H A D | time_stats.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 3 * bch2_time_stats - collect statistics on events that have a duration, with nicely 6 * - percpu buffering of event collection: cheap enough to shotgun 10 * - number of events 11 * - maximum event duration ever seen 12 * - sum of all event durations 13 * - average event duration, standard and weighted 14 * - standard deviation of event durations, standard and weighted 18 * deviation and weighted standard deviation, to give an efficient-to-compute 19 * view of current behaviour versus. average behaviour - "did this event source [all …]
|
/linux/drivers/net/dsa/microchip/ |
H A D | ksz_ptp.c | 1 // SPDX-License-Identifier: GPL-2.0 24 /* Sub-nanoseconds-adj,max * sub-nanoseconds / 40ns * 1ns 25 * = (2^30-1) * (2 ^ 32) / 40 ns * 1 ns = 6249999 30 #define KSZ_PTP_INC_NS 40ULL /* HW clock is incremented every 40 ns (by 40) */ 85 return -EINVAL; in ksz_ptp_tou_pulse_verify() 89 return -ERANGE; in ksz_ptp_tou_pulse_verify() 100 if ((ts->tv_sec & 0xffffffff) != ts->tv_sec) in ksz_ptp_tou_target_time_set() 101 return -EINVAL; in ksz_ptp_tou_target_time_set() 103 ret = ksz_write32(dev, REG_TRIG_TARGET_NANOSEC, ts->tv_nsec); in ksz_ptp_tou_target_time_set() 107 ret = ksz_write32(dev, REG_TRIG_TARGET_SEC, ts->tv_sec); in ksz_ptp_tou_target_time_set() [all …]
|
/linux/drivers/net/ethernet/8390/ |
H A D | lib8390.c | 1 // SPDX-License-Identifier: GPL-1.0+ 5 Written 1992-94 by Donald Becker. 16 This is the chip-specific code for many 8390-based ethernet adaptors. 17 This is not a complete driver, it must be combined with board-specific 23 you have found something that needs changing. -- PG 28 Paul Gortmaker : remove set_bit lock, other cleanups. 33 Paul Gortmaker : rewrite Rx overrun handling as per NS specs. 39 Paul Gortmaker : add kmod support for auto-loading of the 8390 79 /* These are the operational function interfaces to board-specific 88 "page" value uses the 8390's 256-byte pages. [all …]
|
H A D | axnet_cs.c | 1 // SPDX-License-Identifier: GPL-1.0+ 5 A PCMCIA ethernet driver for Asix AX88190-based cards 7 The Asix AX88190 is a NS8390-derived chipset with a few nasty 14 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() [all …]
|
/linux/block/ |
H A D | bfq-iosched.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 12 #include "blk-cgroup-rwstat.h" 29 * Soft real-time applications are extremely more latency sensitive 30 * than interactive ones. Over-raise the weight of the former to 38 * per-actuator data. The current value is hopefully a good upper 46 * struct bfq_service_tree - per ioprio_class service tree. 48 * Each service tree represents a B-WF2Q+ scheduler on its own. Each 50 * bfq_service_tree. All the fields are protected by the queue lock 71 * struct bfq_sched_data - multi-class scheduler. 81 * queue requests are served according to B-WF2Q+. [all …]
|
/linux/drivers/usb/core/ |
H A D | hub.c | 1 // SPDX-License-Identifier: GPL-2.0 60 #define USB_TP_TRANSMISSION_DELAY 40 /* ns */ 61 #define USB_TP_TRANSMISSION_DELAY_MAX 65535 /* ns */ 62 #define USB_PING_RESPONSE_TIME 400 /* ns */ 71 /* Protect struct usb_device->state and ->children members 72 * Note: Both are also protected by ->dev.sem, except that ->state can 80 /* synchronize hub-port add/remove and peering operations */ 90 * 10 seconds to send reply for the initial 64-byte descriptor request. 92 /* define initial 64-byte descriptor request timeout in milliseconds */ 96 "initial 64-byte descriptor request timeout in milliseconds " [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 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/drivers/pmdomain/ |
H A D | core.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * drivers/base/power/domain.c - Common code related to device power domains. 37 __routine = genpd->dev_ops.callback; \ 48 void (*lock)(struct generic_pm_domain *genpd); member 56 mutex_lock(&genpd->mlock); in genpd_lock_mtx() 62 mutex_lock_nested(&genpd->mlock, depth); in genpd_lock_nested_mtx() 67 return mutex_lock_interruptible(&genpd->mlock); in genpd_lock_interruptible_mtx() 72 return mutex_unlock(&genpd->mlock); in genpd_unlock_mtx() 76 .lock = genpd_lock_mtx, 83 __acquires(&genpd->slock) in genpd_lock_spin() [all …]
|
/linux/tools/perf/pmu-events/arch/x86/haswellx/ |
H A D | hsx-metrics.json | 4 "MetricExpr": "cstate_pkg@c2\\-residency@ / TSC", 11 "MetricExpr": "cstate_core@c3\\-residency@ / TSC", 18 "MetricExpr": "cstate_pkg@c3\\-residency@ / TSC", 25 "MetricExpr": "cstate_core@c6\\-residency@ / TSC", 32 "MetricExpr": "cstate_pkg@c6\\-residency@ / TSC", 39 "MetricExpr": "cstate_core@c7\\-residency@ / TSC", 46 "MetricExpr": "cstate_pkg@c7\\-residency@ / TSC", 164 …"BriefDescription": "Average latency of a last level cache (LLC) demand and prefetch data read mis… 167 "ScaleUnit": "1ns" 170 …"BriefDescription": "Average latency of a last level cache (LLC) demand and prefetch data read mis… [all …]
|
/linux/tools/perf/pmu-events/arch/x86/sapphirerapids/ |
H A D | spr-metrics.json | 4 "MetricExpr": "cstate_core@c1\\-residency@ / TSC", 11 "MetricExpr": "cstate_pkg@c2\\-residency@ / TSC", 18 "MetricExpr": "cstate_core@c6\\-residency@ / TSC", 25 "MetricExpr": "cstate_pkg@c6\\-residency@ / TSC", 210 …"BriefDescription": "Average latency of a last level cache (LLC) demand data read miss (read memor… 213 "ScaleUnit": "1ns" 216 …"BriefDescription": "Average latency of a last level cache (LLC) demand data read miss (read memor… 219 "ScaleUnit": "1ns" 222 …"BriefDescription": "Average latency of a last level cache (LLC) demand data read miss (read memor… 225 "ScaleUnit": "1ns" [all …]
|
/linux/tools/perf/pmu-events/arch/x86/emeraldrapids/ |
H A D | emr-metrics.json | 4 "MetricExpr": "cstate_core@c1\\-residency@ / TSC", 11 "MetricExpr": "cstate_pkg@c2\\-residency@ / TSC", 18 "MetricExpr": "cstate_core@c6\\-residency@ / TSC", 25 "MetricExpr": "cstate_pkg@c6\\-residency@ / TSC", 210 …"BriefDescription": "Average latency of a last level cache (LLC) demand data read miss (read memor… 213 "ScaleUnit": "1ns" 216 …"BriefDescription": "Average latency of a last level cache (LLC) demand data read miss (read memor… 219 "ScaleUnit": "1ns" 222 …"BriefDescription": "Average latency of a last level cache (LLC) demand data read miss (read memor… 225 "ScaleUnit": "1ns" [all …]
|
/linux/fs/proc/ |
H A D | base.c | 1 // 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: 61 #include <linux/generic-radix-tree.h> [all …]
|
/linux/tools/perf/pmu-events/arch/x86/icelakex/ |
H A D | icx-metrics.json | 4 "MetricExpr": "cstate_core@c1\\-residency@ / TSC", 11 "MetricExpr": "cstate_pkg@c2\\-residency@ / TSC", 18 "MetricExpr": "cstate_core@c6\\-residency@ / TSC", 25 "MetricExpr": "cstate_pkg@c6\\-residency@ / TSC", 168 …"BriefDescription": "Average latency of a last level cache (LLC) demand data read miss (read memor… 171 "ScaleUnit": "1ns" 174 …"BriefDescription": "Average latency of a last level cache (LLC) demand data read miss (read memor… 177 "ScaleUnit": "1ns" 180 …"BriefDescription": "Average latency of a last level cache (LLC) demand data read miss (read memor… 183 "ScaleUnit": "1ns" [all …]
|
/linux/tools/perf/pmu-events/arch/x86/broadwellx/ |
H A D | bdx-metrics.json | 4 "MetricExpr": "cstate_pkg@c2\\-residency@ / TSC", 11 "MetricExpr": "cstate_core@c3\\-residency@ / TSC", 18 "MetricExpr": "cstate_pkg@c3\\-residency@ / TSC", 25 "MetricExpr": "cstate_core@c6\\-residency@ / TSC", 32 "MetricExpr": "cstate_pkg@c6\\-residency@ / TSC", 39 "MetricExpr": "cstate_core@c7\\-residency@ / TSC", 46 "MetricExpr": "cstate_pkg@c7\\-residency@ / TSC", 164 …"BriefDescription": "Average latency of a last level cache (LLC) demand and prefetch data read mis… 167 "ScaleUnit": "1ns" 170 …"BriefDescription": "Average latency of a last level cache (LLC) demand and prefetch data read mis… [all …]
|
/linux/drivers/md/ |
H A D | dm-ps-historical-service-time.c | 1 // SPDX-License-Identifier: GPL-2.0-only 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/include/uapi/linux/ |
H A D | hdreg.h | 1 /* 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/drivers/staging/media/ipu3/ |
H A D | ipu3.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright (C) 2017 - 2018 Intel Corporation 16 #include "ipu3-css-fw.h" 17 #include "ipu3-dmamap.h" 18 #include "ipu3-mmu.h" 26 * pre-allocated buffer size for IMGU dummy buffers. Those 28 * re-allocation when streaming to lower streaming latency. 73 struct imgu_media_pipe *imgu_pipe = &imgu->imgu_pipe[pipe]; in imgu_dummybufs_cleanup() 77 &imgu_pipe->queues[i].dmap); in imgu_dummybufs_cleanup() 85 struct imgu_media_pipe *imgu_pipe = &imgu->imgu_pipe[pipe]; in imgu_dummybufs_preallocate() [all …]
|
/linux/drivers/platform/x86/intel/pmc/ |
H A D | core.c | 1 // SPDX-License-Identifier: GPL-2.0 27 #include <asm/intel-family.h> 61 return readl(pmc->regbase + reg_offset); in pmc_core_reg_read() 67 writel(val, pmc->regbase + reg_offset); in pmc_core_reg_write() 78 const int lpm_adj_x2 = pmc->map->lpm_res_counter_step_x2; in pmc_core_adjust_slp_s0_step() 80 if (pmc->map == &adl_reg_map) in pmc_core_adjust_slp_s0_step() 83 return (u64)value * pmc->map->slp_s0_res_counter_step; in pmc_core_adjust_slp_s0_step() 88 struct pmc *pmc = pmcdev->pmcs[PMC_IDX_MAIN]; in set_etr3() 89 const struct pmc_reg_map *map = pmc->map; in set_etr3() 92 if (!map->etr3_offset) in set_etr3() [all …]
|