Home
last modified time | relevance | path

Searched +full:ecx +full:- +full:1000 (Results 1 – 25 of 55) 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-4.19/drivers/cpufreq/
Dlongrun.c2 * (C) 2002 - 2003 Dominik Brodowski <linux@brodo.de>
24 * performance_pctg = (current_freq - low_freq)/(high_freq - low_freq)
30 * longrun_get_policy - get the current LongRun policy
41 pr_debug("longrun flags are %x - %x\n", msr_lo, msr_hi); in longrun_get_policy()
43 policy->policy = CPUFREQ_POLICY_PERFORMANCE; in longrun_get_policy()
45 policy->policy = CPUFREQ_POLICY_POWERSAVE; in longrun_get_policy()
48 pr_debug("longrun ctrl is %x - %x\n", msr_lo, msr_hi); in longrun_get_policy()
54 policy->min = policy->max = longrun_high_freq; in longrun_get_policy()
56 policy->min = longrun_low_freq + msr_lo * in longrun_get_policy()
57 ((longrun_high_freq - longrun_low_freq) / 100); in longrun_get_policy()
[all …]
Dpowernow-k8.h2 * (c) 2003-2006 Advanced Micro Devices, Inc.
11 u32 numps; /* number of p-states */
12 u32 batps; /* number of p-states supported on battery */
15 * vid/fid pairings, but are modified during the ->target() call
38 * handle hotplug events - so just point at cpufreq pol->cpus
55 /* Model Specific Registers for p-state transitions. MSRs are 64-bit. For */
56 /* writes (wrmsr - opcode 0f 30), the register number is placed in ecx, and */
57 /* the value to write is placed in edx:eax. For reads (rdmsr - opcode 0f 32), */
58 /* the register number is placed in ecx, and the data is returned in edx:eax. */
88 * - only 1 entry in the low fid table ( <=1.4GHz )
[all …]
Dpowernow-k7.c10 * - 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()
120 unsigned int maxei, eax, ebx, ecx, edx; in check_powernow() local
[all …]
/kernel/linux/linux-4.19/arch/x86/kernel/cpu/
Dvmware.c20 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
47 #define VMWARE_PORT(cmd, eax, ebx, ecx, edx) \ argument
49 "=a"(eax), "=c"(ecx), "=d"(edx), "=b"(ebx) : \
59 uint32_t eax, ebx, ecx, edx; in __vmware_platform() local
60 VMWARE_PORT(GETVERSION, eax, ebx, ecx, edx); in __vmware_platform()
61 return eax != (uint32_t)-1 && ebx == VMWARE_HYPERVISOR_MAGIC; in __vmware_platform()
78 early_param("no-vmw-sched-clock", setup_vmw_sched_clock);
86 ns -= vmware_cyc2ns.cyc2ns_offset; in vmware_sched_clock()
95 clocks_calc_mult_shift(&d->cyc2ns_mul, &d->cyc2ns_shift, in vmware_sched_clock_setup()
97 d->cyc2ns_offset = mul_u64_u32_shr(tsc_now, d->cyc2ns_mul, in vmware_sched_clock_setup()
[all …]
Dintel_rdt.h1 /* SPDX-License-Identifier: GPL-2.0 */
27 #define CQM_LIMBOCHECK_INTERVAL 1000
30 #define MBM_OVERFLOW_INTERVAL 1000
39 * struct mon_evt - Entry in the event list of a resource
50 * struct mon_data_bits - Monitoring details for each event file
84 * enum rdtgrp_mode - Mode of a RDT resource group
87 * @RDT_MODE_PSEUDO_LOCKSETUP: Resource group will be used for Pseudo-Locking
89 * allowed AND the allocations are Cache Pseudo-Locked
96 * The "shareable", "exclusive", and "pseudo-locksetup" modes are set by
98 * "pseudo-locked" mode after the schemata is written while the resource
[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-4.19/Documentation/devicetree/bindings/memory-controllers/
Dcalxeda-ddr-ctrlr.txt4 - compatible : Should be:
5 - "calxeda,hb-ddr-ctrl" for ECX-1000
6 - "calxeda,ecx-2000-ddr-ctrl" for ECX-2000
7 - reg : Address and size for DDR controller registers.
8 - interrupts : Interrupt for DDR controller.
12 memory-controller@fff00000 {
13 compatible = "calxeda,hb-ddr-ctrl";
/kernel/linux/linux-4.19/Documentation/devicetree/bindings/arm/
Dcalxeda.txt2 -----------------------------------------------
4 Boards with Calxeda Cortex-A9 based ECX-1000 (Highbank) SOC shall have the
8 - compatible = "calxeda,highbank";
11 Boards with Calxeda Cortex-A15 based ECX-2000 SOC shall have the following
15 - compatible = "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-4.19/arch/arm/mach-highbank/
DKconfig2 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-4.19/tools/testing/selftests/x86/
Dmpx-mini-test.c2 * mpx-mini-test.c: routines to test Intel MPX (Memory Protection eXtentions)
15 * 2014-12-05: Dave Hansen: fixed all of the compiler warnings, and made sure
16 * it works on 32-bit.
20 int zap_all_every_this_many_mallocs = 1000;
39 #include "mpx-hw.h"
40 #include "mpx-debug.h"
41 #include "mpx-mm.h"
109 unsigned int *ecx, unsigned int *edx) in __cpuid() argument
111 /* ecx is often an input as well as an output. */ in __cpuid()
119 "=c" (*ecx), in __cpuid()
[all …]
/kernel/linux/linux-4.19/drivers/idle/
Dintel_idle.c2 * intel_idle.c - native hardware idle loop for modern Intel processors
18 * 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
34 * for preventing entry into deep C-stats
41 * It it unaware of subsequent processors hot-added to the system.
45 * ACPI has a .suspend hack to turn off deep c-statees during suspend
51 /* un-comment DEBUG to enable pr_debug() statements */
65 #include <asm/intel-family.h>
76 static int max_cstate = CPUIDLE_STATE_MAX - 1;
88 * Hardware C-state auto-demotion may not always be optimal.
106 * and so we don't need cross-calls to keep it consistent.
[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-4.19/drivers/thermal/
Dx86_pkg_temp_thermal.c96 return -ENOENT; in pkg_temp_debugfs_init()
112 return -ENOENT; in pkg_temp_debugfs_init()
118 * - cpu hotplug: Read serialized by cpu hotplug lock
121 * - Other callsites: Must hold pkg_temp_lock
133 * tj-max is is interesting because threshold is set relative to this
146 *tj_max = val * 1000; in get_tj_max()
148 return val ? 0 : -EINVAL; in get_tj_max()
153 struct pkg_device *pkgdev = tzd->devdata; in sys_get_curr_temp()
156 rdmsr_on_cpu(pkgdev->cpu, MSR_IA32_PACKAGE_THERM_STATUS, &eax, &edx); in sys_get_curr_temp()
158 *temp = pkgdev->tj_max - ((eax >> 16) & 0x7f) * 1000; 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-4.19/tools/power/x86/x86_energy_perf_policy/
Dx86_energy_perf_policy.c2 * x86_energy_perf_policy -- set the energy versus performance
6 * Copyright (c) 2010 - 2017 Intel Corporation.
31 #define OPTARG_NORMAL (INT_MAX - 1)
32 #define OPTARG_POWER (INT_MAX - 2)
33 #define OPTARG_BALANCE_POWER (INT_MAX - 3)
34 #define OPTARG_BALANCE_PERFORMANCE (INT_MAX - 4)
35 #define OPTARG_PERFORMANCE (INT_MAX - 5)
101 fprintf(stderr, "scope: --cpu cpu-list [--hwp-use-pkg #] | --pkg pkg-list\n"); in usage()
102 fprintf(stderr, "field: --all | --epb | --hwp-epp | --hwp-min | --hwp-max | --hwp-desired\n"); in usage()
103 fprintf(stderr, "other: --hwp-enable | --turbo-enable (0 | 1) | --help | --force\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-4.19/arch/x86/kernel/apic/
Dx2apic_uv_x.c8 * Copyright (C) 2007-2014 Silicon Graphics, Inc. All rights reserved.
49 static u64 gru_dist_base, gru_first_node_paddr = -1LL, gru_last_node_paddr;
135 uv_min_hub_revision_id += UV2_HUB_REVISION_BASE - 1; in early_get_pnodeid()
144 uv_min_hub_revision_id += UV4_HUB_REVISION_BASE - 1; in early_get_pnodeid()
149 uv_hub_info->hub_revision = uv_min_hub_revision_id; in early_get_pnodeid()
150 uv_cpuid.pnode_mask = (1 << m_n_config.s.n_skt) - 1; in early_get_pnodeid()
205 #define INVALID_TYPE 0 /* Leaf 0xb sub-leaf types */
208 #define LEAFB_SUBTYPE(ecx) (((ecx) >> 8) & 0xff) argument
213 unsigned int eax, ebx, ecx, edx, sub_index; in set_x2apic_bits() local
216 cpuid(0, &eax, &ebx, &ecx, &edx); in set_x2apic_bits()
[all …]
/kernel/linux/linux-4.19/drivers/hwmon/
Ddell-smm-hwmon.c2 * dell-smm-hwmon.c -- Linux driver for accessing the SMM BIOS on Dell laptops.
8 * Copyright (C) 2013, 2014 Guenter Roeck <linux@roeck-us.net>
35 #include <linux/hwmon-sysfs.h>
124 unsigned int ecx __packed;
144 int eax = regs->eax; in i8k_smm_func()
147 int ebx = regs->ebx; in i8k_smm_func()
156 return -EBUSY; in i8k_smm_func()
163 "movl 8(%%rax),%%ecx\n\t" in i8k_smm_func()
172 "movl %%ecx,8(%%rax)\n\t" in i8k_smm_func()
183 : "%ebx", "%ecx", "%edx", "%esi", "%edi", "memory"); in i8k_smm_func()
[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 …]

123