Home
last modified time | relevance | path

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

123

/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-6.6/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 …]
/kernel/linux/linux-5.10/arch/x86/kernel/cpu/
Dvmware.c20 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
55 #define STEALCLOCK_NOT_AVAILABLE (-1)
59 #define VMWARE_PORT(cmd, eax, ebx, ecx, edx) \ argument
61 "=a"(eax), "=c"(ecx), "=d"(edx), "=b"(ebx) : \
67 #define VMWARE_VMCALL(cmd, eax, ebx, ecx, edx) \ argument
69 "=a"(eax), "=c"(ecx), "=d"(edx), "=b"(ebx) : \
75 #define VMWARE_VMMCALL(cmd, eax, ebx, ecx, edx) \ argument
77 "=a"(eax), "=c"(ecx), "=d"(edx), "=b"(ebx) : \
83 #define VMWARE_CMD(cmd, eax, ebx, ecx, edx) do { \ argument
86 VMWARE_VMCALL(cmd, eax, ebx, ecx, edx); \
[all …]
/kernel/linux/linux-6.6/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 …]
/kernel/linux/linux-6.6/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
/kernel/linux/linux-5.10/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
/kernel/linux/linux-6.6/arch/arm/mach-highbank/
DKconfig1 # SPDX-License-Identifier: GPL-2.0-only
3 bool "Calxeda ECX-1000/2000 (Highbank/Midway)"
/kernel/linux/linux-5.10/arch/arm/mach-highbank/
DKconfig1 # SPDX-License-Identifier: GPL-2.0-only
3 bool "Calxeda ECX-1000/2000 (Highbank/Midway)"
/kernel/linux/linux-6.6/drivers/thermal/intel/
Dx86_pkg_temp_thermal.c1 // SPDX-License-Identifier: GPL-2.0-only
94 * - cpu hotplug: Read serialized by cpu hotplug lock
97 * - Other callsites: Must hold pkg_temp_lock
113 ret = intel_tcc_get_temp(zonedev->cpu, &val, true); in sys_get_curr_temp()
117 *temp = val * 1000; in sys_get_curr_temp()
129 tj_max = intel_tcc_get_tjmax(zonedev->cpu); in sys_set_trip_temp()
132 tj_max *= 1000; in sys_set_trip_temp()
134 val = (tj_max - temp)/1000; in sys_set_trip_temp()
137 return -EINVAL; in sys_set_trip_temp()
139 ret = rdmsr_on_cpu(zonedev->cpu, MSR_IA32_PACKAGE_THERM_INTERRUPT, in sys_set_trip_temp()
[all …]
Dintel_powerclamp.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * intel_powerclamp.c - package c-state idle injection
5 * Copyright (c) 2012-2023, Intel Corporation.
16 * cpu in non-irq context does not reduce irq. for majority of the
56 /* Idle ratio observed using package C-state counters */
91 pr_err("Out of recommended range %lu, between 6-25ms\n", in duration_set()
93 ret = -EINVAL; in duration_set()
98 duration = clamp(new_duration, 6ul, 25ul) * 1000; in duration_set()
110 ret = sysfs_emit(buf, "%d\n", duration / 1000); in duration_get()
138 return -ENOMEM; in allocate_copy_idle_injection_mask()
[all …]
/kernel/linux/linux-6.6/arch/x86/kernel/cpu/resctrl/
Dinternal.h1 /* SPDX-License-Identifier: GPL-2.0 */
15 #define CQM_LIMBOCHECK_INTERVAL 1000
18 #define MBM_OVERFLOW_INTERVAL 1000
30 #define MBM_CNTR_WIDTH_OFFSET_MAX (62 - MBM_CNTR_WIDTH_BASE)
38 /* Non-Temporal Writes to Local Memory */
41 /* Non-Temporal Writes to Remote Memory */
65 struct kernfs_fs_context *kfc = fc->fs_private; in rdt_fc2context()
74 * struct mon_evt - Entry in the event list of a resource
78 * @list: entry in &rdt_resource->evt_list
88 * union mon_data_bits - Monitoring details for each event file
[all …]
/kernel/linux/linux-5.10/drivers/thermal/intel/
Dx86_pkg_temp_thermal.c1 // SPDX-License-Identifier: GPL-2.0-only
91 * - cpu hotplug: Read serialized by cpu hotplug lock
94 * - Other callsites: Must hold pkg_temp_lock
106 * tj-max is is interesting because threshold is set relative to this
119 *tj_max = val * 1000; in get_tj_max()
121 return val ? 0 : -EINVAL; in get_tj_max()
126 struct zone_device *zonedev = tzd->devdata; in sys_get_curr_temp()
129 rdmsr_on_cpu(zonedev->cpu, MSR_IA32_PACKAGE_THERM_STATUS, in sys_get_curr_temp()
132 *temp = zonedev->tj_max - ((eax >> 16) & 0x7f) * 1000; in sys_get_curr_temp()
136 return -EINVAL; in sys_get_curr_temp()
[all …]
/kernel/linux/linux-5.10/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)
100 fprintf(stderr, "scope: --cpu cpu-list [--hwp-use-pkg #] | --pkg pkg-list\n"); in usage()
101 fprintf(stderr, "field: --all | --epb | --hwp-epp | --hwp-min | --hwp-max | --hwp-desired\n"); in usage()
[all …]
/kernel/linux/linux-6.6/tools/testing/selftests/x86/
Damx.c1 // SPDX-License-Identifier: GPL-2.0
25 # error This test is 64-bit only
108 uint32_t eax, ebx, ecx, edx; in check_cpuid_xsave() local
111 * CPUID.1:ECX.XSAVE[bit 26] enumerates general in check_cpuid_xsave()
115 __cpuid_count(1, 0, eax, ebx, ecx, edx); in check_cpuid_xsave()
116 if (!(ecx & CPUID_LEAF1_ECX_XSAVE_MASK)) in check_cpuid_xsave()
118 if (!(ecx & CPUID_LEAF1_ECX_OSXSAVE_MASK)) in check_cpuid_xsave()
136 uint32_t eax, ebx, ecx, edx; in check_cpuid_xtiledata() local
139 eax, ebx, ecx, edx); in check_cpuid_xtiledata()
151 eax, ebx, ecx, edx); in check_cpuid_xtiledata()
[all …]
/kernel/linux/linux-6.6/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 …]
/kernel/linux/linux-5.10/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>
67 static int max_cstate = CPUIDLE_STATE_MAX - 1;
[all …]
/kernel/linux/linux-5.10/arch/x86/kernel/cpu/resctrl/
Dinternal.h1 /* SPDX-License-Identifier: GPL-2.0 */
32 #define CQM_LIMBOCHECK_INTERVAL 1000
35 #define MBM_OVERFLOW_INTERVAL 1000
49 #define MBM_CNTR_WIDTH_OFFSET_MAX (62 - MBM_CNTR_WIDTH_BASE)
61 struct kernfs_fs_context *kfc = fc->fs_private; in rdt_fc2context()
70 * struct mon_evt - Entry in the event list of a resource
81 * struct mon_data_bits - Monitoring details for each event file
116 * enum rdtgrp_mode - Mode of a RDT resource group
119 * @RDT_MODE_PSEUDO_LOCKSETUP: Resource group will be used for Pseudo-Locking
121 * allowed AND the allocations are Cache Pseudo-Locked
[all …]
/kernel/linux/linux-6.6/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>
69 static int max_cstate = CPUIDLE_STATE_MAX - 1;
[all …]
/kernel/linux/linux-5.10/drivers/hwmon/
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>
26 #include <linux/hwmon-sysfs.h>
123 unsigned int ecx __packed;
143 int eax = regs->eax; in i8k_smm_func()
146 int ebx = regs->ebx; in i8k_smm_func()
155 return -EBUSY; in i8k_smm_func()
162 "movl 8(%%rax),%%ecx\n\t" in i8k_smm_func()
171 "movl %%ecx,8(%%rax)\n\t" in i8k_smm_func()
[all …]
/kernel/linux/linux-6.6/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
318 /* Indicates cores energy collection is per-core,
319 * not per-package. */
327 /* MSRs that are not yet in the kernel-provided header. */
369 unsigned long long mc6_us; /* duplicate as per-core for now, even though per module */
443 /* get_msr_sum() = sum + (get_msr() - last) */
[all …]
/kernel/linux/linux-6.6/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 …]

123