Home
last modified time | relevance | path

Searched +full:ecx +full:- +full:1000 (Results 1 – 25 of 30) sorted by relevance

12

/Linux-v6.1/drivers/cpufreq/
Dlongrun.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * (C) 2002 - 2003 Dominik Brodowski <linux@brodo.de>
23 * performance_pctg = (current_freq - low_freq)/(high_freq - low_freq)
29 * longrun_get_policy - get the current LongRun policy
40 pr_debug("longrun flags are %x - %x\n", msr_lo, msr_hi); in longrun_get_policy()
42 policy->policy = CPUFREQ_POLICY_PERFORMANCE; in longrun_get_policy()
44 policy->policy = CPUFREQ_POLICY_POWERSAVE; in longrun_get_policy()
47 pr_debug("longrun ctrl is %x - %x\n", msr_lo, msr_hi); in longrun_get_policy()
53 policy->min = policy->max = longrun_high_freq; in longrun_get_policy()
55 policy->min = longrun_low_freq + msr_lo * in longrun_get_policy()
[all …]
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
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), */
56 /* the register number is placed in ecx, and the data is returned in edx:eax. */
[all …]
Dpowernow-k7.c1 // SPDX-License-Identifier: GPL-2.0-only
10 * - We cli/sti on stepping A0 CPUs around the FID/VID transition.
13 * - We disable half multipliers if ACPI is used on A0 stepping CPUs.
38 #include "powernow-k7.h"
69 /* divide by 1000 to get VCore voltage in V. */
74 1075, 1050, 1025, 1000, 975, 950, 925, 0,
82 150, 225, 160, 165, 170, 180, -1, -1,
95 static unsigned int minimum_speed = -1;
105 unsigned int f = fsb / 1000; in check_fsb()
107 delta = (fsbspeed > f) ? fsbspeed - f : f - fsbspeed; in check_fsb()
[all …]
Dpowernow-k8.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * (c) 2003-2012 Advanced Micro Devices, Inc.
8 * Based on the powernow-k7.c module written by Dave Jones.
48 #include "powernow-k8.h"
66 return 1000 * find_freq_from_fid(fid); in find_khz_freq_from_fid()
112 data->currvid = hi & MSR_S_HI_CURRENT_VID; in query_current_values_with_pending_wait()
113 data->currfid = lo & MSR_S_LO_CURRENT_FID; in query_current_values_with_pending_wait()
121 udelay((1 << data->irt) * 10); in count_off_irt()
127 udelay(data->vstable * VST_UNITS_20US); in count_off_vst()
149 u32 savevid = data->currvid; in write_new_fid()
[all …]
/Linux-v6.1/arch/x86/kernel/cpu/
Dvmware.c20 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
56 #define STEALCLOCK_NOT_AVAILABLE (-1)
60 #define VMWARE_PORT(cmd, eax, ebx, ecx, edx) \ argument
62 "=a"(eax), "=c"(ecx), "=d"(edx), "=b"(ebx) : \
68 #define VMWARE_VMCALL(cmd, eax, ebx, ecx, edx) \ argument
70 "=a"(eax), "=c"(ecx), "=d"(edx), "=b"(ebx) : \
76 #define VMWARE_VMMCALL(cmd, eax, ebx, ecx, edx) \ argument
78 "=a"(eax), "=c"(ecx), "=d"(edx), "=b"(ebx) : \
84 #define VMWARE_CMD(cmd, eax, ebx, ecx, edx) do { \ argument
87 VMWARE_VMCALL(cmd, eax, ebx, ecx, edx); \
[all …]
Dintel.c1 // SPDX-License-Identifier: GPL-2.0
22 #include <asm/intel-family.h>
67 * Processors which have self-snooping capability can handle conflicting
75 switch (c->x86_model) { in check_memory_type_self_snoop_errata()
107 if (c->x86 != 6) in probe_xeon_phi_r3mwait()
109 switch (c->x86_model) { in probe_xeon_phi_r3mwait()
131 * - https://newsroom.intel.com/wp-content/uploads/sites/11/2018/03/microcode-update-guidance.pdf
132 * - https://kb.vmware.com/s/article/52345
133 * - Microcode revisions observed in the wild
134 * - Release note from 20180108 microcode release
[all …]
/Linux-v6.1/Documentation/devicetree/bindings/arm/
Dcalxeda.yaml1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Rob Herring <robh@kernel.org>
12 Bindings for boards with Calxeda Cortex-A9 based ECX-1000 (Highbank) SOC
13 or Cortex-A15 based ECX-2000 SOCs
20 - enum:
21 - calxeda,highbank
22 - calxeda,ecx-2000
/Linux-v6.1/arch/arm/mach-highbank/
DKconfig1 # SPDX-License-Identifier: GPL-2.0-only
3 bool "Calxeda ECX-1000/2000 (Highbank/Midway)"
/Linux-v6.1/tools/testing/selftests/x86/
Damx.c1 // SPDX-License-Identifier: GPL-2.0
23 # error This test is 64-bit only
106 uint32_t eax, ebx, ecx, edx; in check_cpuid_xsave() local
109 * CPUID.1:ECX.XSAVE[bit 26] enumerates general in check_cpuid_xsave()
113 __cpuid_count(1, 0, eax, ebx, ecx, edx); in check_cpuid_xsave()
114 if (!(ecx & CPUID_LEAF1_ECX_XSAVE_MASK)) in check_cpuid_xsave()
116 if (!(ecx & CPUID_LEAF1_ECX_OSXSAVE_MASK)) in check_cpuid_xsave()
134 uint32_t eax, ebx, ecx, edx; in check_cpuid_xtiledata() local
137 eax, ebx, ecx, edx); in check_cpuid_xtiledata()
149 eax, ebx, ecx, edx); in check_cpuid_xtiledata()
[all …]
/Linux-v6.1/arch/x86/kernel/cpu/resctrl/
Dinternal.h1 /* SPDX-License-Identifier: GPL-2.0 */
25 #define CQM_LIMBOCHECK_INTERVAL 1000
28 #define MBM_OVERFLOW_INTERVAL 1000
41 #define MBM_CNTR_WIDTH_OFFSET_MAX (62 - MBM_CNTR_WIDTH_BASE)
53 struct kernfs_fs_context *kfc = fc->fs_private; in rdt_fc2context()
62 * struct mon_evt - Entry in the event list of a resource
65 * @list: entry in &rdt_resource->evt_list
74 * union mon_data_bits - Monitoring details for each event file
113 * enum rdtgrp_mode - Mode of a RDT resource group
116 * @RDT_MODE_PSEUDO_LOCKSETUP: Resource group will be used for Pseudo-Locking
[all …]
/Linux-v6.1/drivers/thermal/intel/
Dx86_pkg_temp_thermal.c1 // SPDX-License-Identifier: GPL-2.0-only
93 * - cpu hotplug: Read serialized by cpu hotplug lock
96 * - Other callsites: Must hold pkg_temp_lock
108 * tj-max is interesting because threshold is set relative to this
121 *tj_max = val * 1000; in get_tj_max()
123 return val ? 0 : -EINVAL; in get_tj_max()
128 struct zone_device *zonedev = tzd->devdata; in sys_get_curr_temp()
131 rdmsr_on_cpu(zonedev->cpu, MSR_IA32_PACKAGE_THERM_STATUS, in sys_get_curr_temp()
134 *temp = zonedev->tj_max - ((eax >> 16) & 0x7f) * 1000; in sys_get_curr_temp()
138 return -EINVAL; in sys_get_curr_temp()
[all …]
/Linux-v6.1/tools/power/x86/x86_energy_perf_policy/
Dx86_energy_perf_policy.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * x86_energy_perf_policy -- set the energy versus performance
7 * Copyright (c) 2010 - 2017 Intel Corporation.
30 #define OPTARG_NORMAL (INT_MAX - 1)
31 #define OPTARG_POWER (INT_MAX - 2)
32 #define OPTARG_BALANCE_POWER (INT_MAX - 3)
33 #define OPTARG_BALANCE_PERFORMANCE (INT_MAX - 4)
34 #define OPTARG_PERFORMANCE (INT_MAX - 5)
103 fprintf(stderr, "scope: --cpu cpu-list [--hwp-use-pkg #] | --pkg pkg-list\n"); in usage()
104 fprintf(stderr, "field: --all | --epb | --hwp-epp | --hwp-min | --hwp-max | --hwp-desired\n"); in usage()
[all …]
/Linux-v6.1/drivers/idle/
Dintel_idle.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * intel_idle.c - native hardware idle loop for modern Intel processors
5 * Copyright (c) 2013 - 2020, Intel Corporation.
23 * for preventing entry into deep C-states
25 * CPU will flush caches as needed when entering a C-state via MWAIT
33 * ACPI has a .suspend hack to turn off deep c-statees during suspend
39 /* un-comment DEBUG to enable pr_debug() statements */
55 #include <asm/intel-family.h>
56 #include <asm/nospec-branch.h>
68 static int max_cstate = CPUIDLE_STATE_MAX - 1;
[all …]
/Linux-v6.1/tools/power/x86/turbostat/
Dturbostat.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * turbostat -- show CPU frequency and C-state residency
44 * 1. built-in only, the sysfs counters are not here -- we learn of those at run-time
46 * matching on them for --show and --hide.
51 * Usually truncated to 7 characters, but also handles 18 columns for raw 64-bit counters
316 /* Indicates cores energy collection is per-core,
317 * not per-package. */
325 /* MSRs that are not yet in the kernel-provided header. */
367 unsigned long long mc6_us; /* duplicate as per-core for now, even though per module */
441 /* get_msr_sum() = sum + (get_msr() - last) */
[all …]
/Linux-v6.1/drivers/video/fbdev/
Duvesafb.c1 // SPDX-License-Identifier: GPL-2.0-only
80 if (msg->seq >= UVESAFB_TASKS_MAX) in uvesafb_cn_callback()
84 task = uvfb_tasks[msg->seq]; in uvesafb_cn_callback()
86 if (!task || msg->ack != task->ack) { in uvesafb_cn_callback()
91 utask = (struct uvesafb_task *)msg->data; in uvesafb_cn_callback()
94 if (task->t.buf_len < utask->buf_len || in uvesafb_cn_callback()
95 utask->buf_len > msg->len - sizeof(*utask)) { in uvesafb_cn_callback()
100 uvfb_tasks[msg->seq] = NULL; in uvesafb_cn_callback()
103 memcpy(&task->t, utask, sizeof(*utask)); in uvesafb_cn_callback()
105 if (task->t.buf_len && task->buf) in uvesafb_cn_callback()
[all …]
Dvesafb.c1 // SPDX-License-Identifier: GPL-2.0-only
8 * (c) 1998 Gerd Knorr <kraxel@goldbach.in-berlin.de>
30 /* --------------------------------------------------------------------- */
40 .height = -1,
41 .width = -1,
65 /* --------------------------------------------------------------------- */
73 offset = (var->yoffset * info->fix.line_length + var->xoffset) / 4; in vesafb_pan_display()
80 "c" (offset), /* ECX */ in vesafb_pan_display()
90 int shift = 16 - depth; in vesa_setpalette()
91 int err = -EINVAL; in vesa_setpalette()
[all …]
/Linux-v6.1/arch/x86/kernel/
Dtsc.c1 // SPDX-License-Identifier: GPL-2.0-only
29 #include <asm/intel-family.h>
39 #define KHZ 1000
80 data->cyc2ns_offset = this_cpu_read(cyc2ns.data[idx].cyc2ns_offset); in cyc2ns_read_begin()
81 data->cyc2ns_mul = this_cpu_read(cyc2ns.data[idx].cyc2ns_mul); in cyc2ns_read_begin()
82 data->cyc2ns_shift = this_cpu_read(cyc2ns.data[idx].cyc2ns_shift); in cyc2ns_read_begin()
107 * cyc2ns_scale needs to be a 32-bit value so that 32-bit multiplication
108 * (64-bit result) can be used.
113 * -johnstul@us.ibm.com "math is hard, lets go shopping!"
150 * conversion algorithm shifting a 32-bit value (now specifies a 64-bit in __set_cyc2ns_scale()
[all …]
Dhpet.c1 // SPDX-License-Identifier: GPL-2.0-only
133 * is_hpet_enabled - Check whether the legacy HPET timer interrupt is enabled
210 hd.hd_irq[i] = hc->irq; in hpet_reserve_platform_timers()
212 switch (hc->mode) { in hpet_reserve_platform_timers()
215 hc->mode = HPET_MODE_DEVICE; in hpet_reserve_platform_timers()
219 hpet_reserve_timer(&hd, hc->num); in hpet_reserve_platform_timers()
235 if (hc->mode == HPET_MODE_UNUSED) { in hpet_select_device_channel()
236 hc->mode = HPET_MODE_DEVICE; in hpet_select_device_channel()
299 unsigned int channel = clockevent_to_channel(evt)->num; in hpet_clkevt_set_state_periodic()
304 delta = ((uint64_t)(NSEC_PER_SEC / HZ)) * evt->mult; in hpet_clkevt_set_state_periodic()
[all …]
Dsmpboot.c1 // SPDX-License-Identifier: GPL-2.0-or-later
13 * Pentium Pro and Pentium-II/Xeon MP machines.
19 * Alan Cox : By repeated request 8) - Total BogoMIPS report.
32 * Martin J. Bligh : Added support for multi-quad systems
79 #include <asm/intel-family.h>
81 #include <asm/spec-ctrl.h>
266 * topology_is_primary_thread - Check whether CPU is the primary SMT thread
275 * topology_smt_supported - Check whether SMT is supported by the CPUs
283 * topology_phys_to_logical_pkg - Map a physical package id to a logical
285 * Returns logical package id or -1 if not found
[all …]
/Linux-v6.1/drivers/hwmon/
Dfam15h_power.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * fam15h_power.c - AMD Family 15h processor power monitoring
5 * Copyright (c) 2011-2016 Advanced Micro Devices, Inc.
11 #include <linux/hwmon-sysfs.h>
42 #define MAX_INTERVAL 1000
77 struct pci_dev *f4 = data->pdev; in power1_input_show()
79 pci_bus_read_config_dword(f4->bus, PCI_DEVFN(PCI_SLOT(f4->devfn), 5), in power1_input_show()
96 pci_bus_read_config_dword(f4->bus, PCI_DEVFN(PCI_SLOT(f4->devfn), 5), in power1_input_show()
109 data->base_tdp)) << running_avg_range; in power1_input_show()
110 curr_pwr_watts -= running_avg_capture; in power1_input_show()
[all …]
Ddell-smm-hwmon.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * dell-smm-hwmon.c -- Linux driver for accessing the SMM BIOS on Dell laptops.
9 * Copyright (C) 2013, 2014 Guenter Roeck <linux@roeck-us.net>
56 #define I8K_FAN_RPM_THRESHOLD 1000
129 unsigned int ecx; member
176 int eax = regs->eax; in i8k_smm_func()
177 int ebx = regs->ebx; in i8k_smm_func()
183 return -EBUSY; in i8k_smm_func()
189 "+a" (regs->eax), in i8k_smm_func()
190 "+b" (regs->ebx), in i8k_smm_func()
[all …]
/Linux-v6.1/arch/x86/kvm/vmx/
Dvmx.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Kernel-based Virtual Machine driver for Linux
5 * This module enables machines with Intel VT-x extensions to run virtual
30 #include <linux/entry-kvm.h>
48 #include <asm/spec-ctrl.h>
133 /* Guest_tsc -> host_tsc conversion requires 64-bit division. */
184 * These 2 parameters are used to config the controls for Pause-Loop Exiting:
200 /* Default doubles per-vcpu window every exit. */
204 /* Default resets per-vcpu window every exit to ple_window. */
212 /* Default is SYSTEM mode, 1 for host-guest mode */
[all …]
/Linux-v6.1/drivers/net/ethernet/stmicro/stmmac/
Ddwmac-intel.c1 // SPDX-License-Identifier: GPL-2.0
5 #include <linux/clk-provider.h>
8 #include "dwmac-intel.h"
44 int func = PCI_FUNC(pdev->devfn); in stmmac_pci_find_phy_addr()
49 return -ENODEV; in stmmac_pci_find_phy_addr()
51 dmi_data = dmi_id->driver_data; in stmmac_pci_find_phy_addr()
52 func_data = dmi_data->func; in stmmac_pci_find_phy_addr()
54 for (n = 0; n < dmi_data->nfuncs; n++, func_data++) in stmmac_pci_find_phy_addr()
55 if (func_data->func == func) in stmmac_pci_find_phy_addr()
56 return func_data->phy_addr; in stmmac_pci_find_phy_addr()
[all …]
/Linux-v6.1/tools/lib/bpf/
Dusdt.c1 // SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause)
24 /* libbpf's USDT support consists of BPF-side state/code and user-space
25 * state/code working together in concert. BPF-side parts are defined in
26 * usdt.bpf.h header library. User-space state is encapsulated by struct
30 * and IP-to-spec-ID map, which is auxiliary map necessary for kernels that
38 * USDT-related until the very first call to bpf_program__attach_usdt(), which
42 * store it in bpf_object. USDT manager is per-BPF object construct, as each
44 * the expected USDT-related state. There is no coordination between two
46 * existence and libbpf is just oblivious, dealing with bpf_object-specific
51 * From user-space application's point of view, USDT is essentially just
[all …]
/Linux-v6.1/arch/x86/kvm/
Dx86.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Kernel-based Virtual Machine driver for Linux
16 * Ben-Ami Yassour <benami@il.ibm.com>
45 #include <linux/user-return-notifier.h>
59 #include <linux/entry-kvm.h>
98 ((struct kvm_vcpu *)(ctxt)->vcpu)
101 * - enable syscall per default because its emulated by KVM
102 * - enable LME and LMA per default on 64 bit KVM
136 *(((struct kvm_x86_ops *)0)->func));
139 #include <asm/kvm-x86-ops.h>
[all …]

12