/linux/Documentation/arch/x86/ |
H A D | topology.rst | 1 .. SPDX-License-Identifier: GPL-2.0 11 The architecture-agnostic topology definitions are in 12 Documentation/admin-guide/cputopology.rst. This file holds x86-specific 17 Needless to say, code should use the generic functions - this file is *only* 35 - packages 36 - cores 37 - threads 48 Package-related topology information in the kernel: 50 - topology_num_threads_per_package() 54 - topology_num_cores_per_package() [all …]
|
/linux/tools/perf/tests/ |
H A D | topology.c | 1 // SPDX-License-Identifier: GPL-2.0 14 #define TEMPL "/tmp/perf-test-XXXXXX" 26 return -1; in get_temp() 44 session->evlist = evlist__new_default(); in session_write_header() 45 TEST_ASSERT_VAL("can't get evlist", session->evlist); in session_write_header() 46 session->evlist->session = session; in session_write_header() 48 perf_header__set_feat(&session->header, HEADER_CPU_TOPOLOGY); in session_write_header() 49 perf_header__set_feat(&session->header, HEADER_NRCPUS); in session_write_header() 50 perf_header__set_feat(&session->header, HEADER_ARCH); in session_write_header() 52 session->header.data_size += DATA_SIZE; in session_write_header() [all …]
|
/linux/Documentation/admin-guide/pm/ |
H A D | intel-speed-select.rst | 1 .. SPDX-License-Identifier: GPL-2.0 8 collection of features that give more granular control over CPU performance. 14 - https://www.intel.com/content/www/us/en/architecture-and-technology/speed-select-technology-artic… 15 - https://builders.intel.com/docs/networkbuilders/intel-speed-select-technology-base-frequency-enha… 19 dynamically without pre-configuring via BIOS setup options. This dynamic 29 intel-speed-select configuration tool 32 Most Linux distribution packages may include the "intel-speed-select" tool. If not, 38 # cd tools/power/x86/intel-speed-select/ 43 ------------ 47 # intel-speed-select --help [all …]
|
/linux/arch/mips/kernel/ |
H A D | smp-cps.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 7 #include <linux/cpu.h> 19 #include <asm/mips-cps.h> 22 #include <asm/pm-cps.h> 26 #include <asm/smp-cps.h> 78 timeout--; in power_up_other_cluster() 89 static unsigned __init core_vpe_count(unsigned int cluster, unsigned core) in core_vpe_count() argument 91 return min(smp_max_threads, mips_cps_numvps(cluster, core)); in core_vpe_count() 159 0x0, CSEGX_SIZE - 1); in allocate_cps_vecs() 172 end = SZ_4G - 1; in allocate_cps_vecs() [all …]
|
/linux/tools/perf/pmu-events/arch/x86/haswell/ |
H A D | hsw-metrics.json | 4 "MetricExpr": "cstate_pkg@c2\\-residency@ / msr@tsc@", 10 "BriefDescription": "C3 residency percent per core", 11 "MetricExpr": "cstate_core@c3\\-residency@ / msr@tsc@", 18 "MetricExpr": "cstate_pkg@c3\\-residency@ / msr@tsc@", 24 "BriefDescription": "C6 residency percent per core", 25 "MetricExpr": "cstate_core@c6\\-residency@ / msr@tsc@", 32 "MetricExpr": "cstate_pkg@c6\\-residency@ / msr@tsc@", 38 "BriefDescription": "C7 residency percent per core", 39 "MetricExpr": "cstate_core@c7\\-residency@ / msr@tsc@", 46 "MetricExpr": "cstate_pkg@c7\\-residency@ / msr@tsc@", [all …]
|
/linux/tools/perf/util/ |
H A D | bpf_counter_cgroup.c | 1 // SPDX-License-Identifier: GPL-2.0 43 #define FD(evt, cpu) (*(int *)xyarray__entry(evt->core.fd, cpu, 0)) argument 51 struct perf_cpu cpu; in bperf_load_program() local 52 int total_cpus = cpu__max_cpu().cpu; in bperf_load_program() 59 return -1; in bperf_load_program() 62 skel->rodata->num_cpus = total_cpus; in bperf_load_program() 63 skel->rodata->num_events = evlist->core.nr_entries / nr_cgroups; in bperf_load_program() 66 skel->rodata->use_cgroup_v2 = 1; in bperf_load_program() 68 BUG_ON(evlist->core.nr_entries % nr_cgroups != 0); in bperf_load_program() 70 /* we need one copy of events per cpu for reading */ in bperf_load_program() [all …]
|
H A D | mmap.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (C) 2011-2017, Red Hat Inc, Arnaldo Carvalho de Melo <acme@redhat.com> 5 * Parts came from evlist.c builtin-{top,stat,record}.c, see those files for further 34 len = bitmap_scnprintf(mask->bits, mask->nbits, buf, MASK_SIZE); in mmap_cpu_mask__scnprintf() 36 pr_debug("%p: %s mask[%zd]: %s\n", mask, tag, mask->nbits, buf); in mmap_cpu_mask__scnprintf() 41 return perf_mmap__mmap_len(&map->cor in mmap__mmap_len() 97 perf_mmap__aio_bind(struct mmap * map,int idx,struct perf_cpu cpu,int affinity) perf_mmap__aio_bind() argument 246 struct perf_cpu cpu; build_node_mask() local 276 mmap__mmap(struct mmap * map,struct mmap_params * mp,int fd,struct perf_cpu cpu) mmap__mmap() argument [all...] |
H A D | cpumap.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 9 /** Identify where counts are aggregated, -1 implies not to aggregate. */ 17 * /sys/devices/system/cpu/cpuX/topology/physical_package_id. 20 /** The die id as read from /sys/devices/system/cpu/cpuX/topology/die_id. */ 22 /** The cluster id as read from /sys/devices/system/cpu/cpuX/topology/cluster_id */ 24 /** The cache level as read from /sys/devices/system/cpu/cpuX/cache/indexY/level */ 27 * The cache instance ID, which is the first CPU in the 28 * /sys/devices/system/cpu/cpu 33 int core; global() member 35 struct perf_cpu cpu; global() member [all...] |
H A D | perf_api_probe.c | 1 /* SPDX-License-Identifier: GPL-2.0 */ 3 #include "perf-sys.h" 7 #include "util/parse-events.h" 14 static int perf_do_probe_api(setup_probe_fn_t fn, struct perf_cpu cpu, const char *str) in perf_do_probe_api() argument 19 int err = -EAGAIN, fd; in perf_do_probe_api() 20 static pid_t pid = -1; in perf_do_probe_api() 24 return -ENOMEM; in perf_do_probe_api() 32 fd = sys_perf_event_open(&evsel->core.attr, pid, cpu.cpu, -1, flags); in perf_do_probe_api() 34 if (pid == -1 && errno == EACCES) { in perf_do_probe_api() 46 fd = sys_perf_event_open(&evsel->core.attr, pid, cpu.cpu, -1, flags); in perf_do_probe_api() [all …]
|
/linux/arch/arm/mach-bcm/ |
H A D | platsmp.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright (C) 2014-2015 Broadcom Corporation 12 #include <linux/irqchip/irq-bcm2836.h> 34 #define OF_SECONDARY_BOOT "secondary-boot-reg" 54 return -ENXIO; in scu_a9_enable() 60 pr_err("hardware reports only one core\n"); in scu_a9_enable() 61 return -ENOENT; in scu_a9_enable() 68 return -ENOMEM; in scu_a9_enable() 78 static u32 secondary_boot_addr_for(unsigned int cpu) in secondary_boot_addr_for() argument 81 struct device_node *cpu_node = of_get_cpu_node(cpu, NULL); in secondary_boot_addr_for() [all …]
|
/linux/arch/powerpc/include/asm/ |
H A D | cputhreads.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 13 * threads per core and the same number for each core in the system 15 * as the CPU numbers are still allocated, just not brought online). 41 int cpu_core_index_of_thread(int cpu); 42 int cpu_first_thread_of_core(int core); 44 static inline int cpu_core_index_of_thread(int cpu) { return cpu; } in cpu_core_index_of_thread() argument 45 static inline int cpu_first_thread_of_core(int core) { return core; } in cpu_first_thread_of_core() argument 48 static inline int cpu_thread_in_core(int cpu) in cpu_thread_in_core() argument 50 return cpu & (threads_per_core - 1); in cpu_thread_in_core() 53 static inline int cpu_thread_in_subcore(int cpu) in cpu_thread_in_subcore() argument [all …]
|
/linux/tools/perf/pmu-events/arch/x86/haswellx/ |
H A D | hsx-metrics.json | 4 "MetricExpr": "cstate_pkg@c2\\-residency@ / msr@tsc@", 10 "BriefDescription": "C3 residency percent per core", 11 "MetricExpr": "cstate_core@c3\\-residency@ / msr@tsc@", 18 "MetricExpr": "cstate_pkg@c3\\-residency@ / msr@tsc@", 24 "BriefDescription": "C6 residency percent per core", 25 "MetricExpr": "cstate_core@c6\\-residency@ / msr@tsc@", 32 "MetricExpr": "cstate_pkg@c6\\-residency@ / msr@tsc@", 38 "BriefDescription": "C7 residency percent per core", 39 "MetricExpr": "cstate_core@c7\\-residency@ / msr@tsc@", 46 "MetricExpr": "cstate_pkg@c7\\-residency@ / msr@tsc@", [all …]
|
/linux/tools/perf/pmu-events/arch/x86/grandridge/ |
H A D | uncore-io.json | 228 …"BriefDescription": "Data requested by the CPU : Core reporting completion of Card read from Core … 239 …"BriefDescription": "Data requested by the CPU : Core reporting completion of Card read from Core … 251 …"BriefDescription": "Data requested by the CPU : Core reporting completion of Card read from Core … 263 …"BriefDescription": "Data requested by the CPU : Core reporting completion of Card read from Core … 275 …"BriefDescription": "Data requested by the CPU : Core reporting completion of Card read from Core … 287 …"BriefDescription": "Data requested by the CPU : Core reporting completion of Card read from Core … 299 …"BriefDescription": "Data requested by the CPU : Core reporting completion of Card read from Core … 311 …"BriefDescription": "Data requested by the CPU : Core reporting completion of Card read from Core … 323 …"BriefDescription": "Data requested by the CPU : Core reporting completion of Card read from Core … 335 "BriefDescription": "Data requested by the CPU : Core writing to Cards MMIO space", [all …]
|
/linux/Documentation/devicetree/bindings/regulator/ |
H A D | nvidia,tegra-regulators-coupling.txt | 4 NVIDIA Tegra SoC's have a mandatory voltage-coupling between regulators. 9 ------------------------ 11 On Tegra20 SoC's there are 3 coupled regulators: CORE, RTC and CPU. 12 The CORE and RTC voltages shall be in a range of 170mV from each other 13 and they both shall be higher than the CPU voltage by at least 120mV. 16 ------------------------ 18 On Tegra30 SoC's there are 2 coupled regulators: CORE and CPU. The CORE 19 and CPU voltages shall be in a range of 300mV from each other and CORE 20 voltage shall be higher than the CPU by N mV, where N depends on the CPU 24 - nvidia,tegra-core-regulator: Boolean property that designates regulator [all …]
|
/linux/tools/perf/pmu-events/arch/x86/broadwell/ |
H A D | bdw-metrics.json | 4 "MetricExpr": "cstate_pkg@c2\\-residency@ / msr@tsc@", 10 "BriefDescription": "C3 residency percent per core", 11 "MetricExpr": "cstate_core@c3\\-residency@ / msr@tsc@", 18 "MetricExpr": "cstate_pkg@c3\\-residency@ / msr@tsc@", 24 "BriefDescription": "C6 residency percent per core", 25 "MetricExpr": "cstate_core@c6\\-residency@ / msr@tsc@", 32 "MetricExpr": "cstate_pkg@c6\\-residency@ / msr@tsc@", 38 "BriefDescription": "C7 residency percent per core", 39 "MetricExpr": "cstate_core@c7\\-residency@ / msr@tsc@", 46 "MetricExpr": "cstate_pkg@c7\\-residency@ / msr@tsc@", [all …]
|
/linux/tools/perf/pmu-events/arch/x86/broadwellde/ |
H A D | bdwde-metrics.json | 4 "MetricExpr": "cstate_pkg@c2\\-residency@ / msr@tsc@", 10 "BriefDescription": "C3 residency percent per core", 11 "MetricExpr": "cstate_core@c3\\-residency@ / msr@tsc@", 18 "MetricExpr": "cstate_pkg@c3\\-residency@ / msr@tsc@", 24 "BriefDescription": "C6 residency percent per core", 25 "MetricExpr": "cstate_core@c6\\-residency@ / msr@tsc@", 32 "MetricExpr": "cstate_pkg@c6\\-residency@ / msr@tsc@", 38 "BriefDescription": "C7 residency percent per core", 39 "MetricExpr": "cstate_core@c7\\-residency@ / msr@tsc@", 46 "MetricExpr": "cstate_pkg@c7\\-residency@ / msr@tsc@", [all …]
|
/linux/tools/perf/pmu-events/arch/x86/ivybridge/ |
H A D | ivb-metrics.json | 4 "MetricExpr": "cstate_pkg@c2\\-residency@ / msr@tsc@", 10 "BriefDescription": "C3 residency percent per core", 11 "MetricExpr": "cstate_core@c3\\-residency@ / msr@tsc@", 18 "MetricExpr": "cstate_pkg@c3\\-residency@ / msr@tsc@", 24 "BriefDescription": "C6 residency percent per core", 25 "MetricExpr": "cstate_core@c6\\-residency@ / msr@tsc@", 32 "MetricExpr": "cstate_pkg@c6\\-residency@ / msr@tsc@", 38 "BriefDescription": "C7 residency percent per core", 39 "MetricExpr": "cstate_core@c7\\-residency@ / msr@tsc@", 46 "MetricExpr": "cstate_pkg@c7\\-residency@ / msr@tsc@", [all …]
|
/linux/tools/perf/pmu-events/arch/x86/ivytown/ |
H A D | ivt-metrics.json | 4 "MetricExpr": "cstate_pkg@c2\\-residency@ / msr@tsc@", 10 "BriefDescription": "C3 residency percent per core", 11 "MetricExpr": "cstate_core@c3\\-residency@ / msr@tsc@", 18 "MetricExpr": "cstate_pkg@c3\\-residency@ / msr@tsc@", 24 "BriefDescription": "C6 residency percent per core", 25 "MetricExpr": "cstate_core@c6\\-residency@ / msr@tsc@", 32 "MetricExpr": "cstate_pkg@c6\\-residency@ / msr@tsc@", 38 "BriefDescription": "C7 residency percent per core", 39 "MetricExpr": "cstate_core@c7\\-residency@ / msr@tsc@", 46 "MetricExpr": "cstate_pkg@c7\\-residency@ / msr@tsc@", [all …]
|
/linux/arch/mips/loongson64/ |
H A D | smp.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 9 #include <linux/cpu.h> 37 static u32 (*ipi_read_clear)(int cpu); 38 static void (*ipi_write_action)(int cpu, u32 action); 39 static void (*ipi_write_enable)(int cpu); 40 static void (*ipi_clear_buf)(int cpu); 41 static void (*ipi_write_buf)(int cpu, struct task_struct *idle); 43 /* send mail via Mail_Send register for 3A4000+ CPU */ 44 static void csr_mail_send(uint64_t data, int cpu, int mailbox) in csr_mail_send() argument 51 val |= (cpu << CSR_MAIL_SEND_CPU_SHIFT); in csr_mail_send() [all …]
|
/linux/tools/perf/pmu-events/arch/x86/graniterapids/ |
H A D | uncore-io.json | 228 …"BriefDescription": "Data requested by the CPU : Core reporting completion of Card read from Core … 240 …"BriefDescription": "Data requested by the CPU : Core reporting completion of Card read from Core … 252 …"BriefDescription": "Data requested by the CPU : Core reporting completion of Card read from Core … 264 …"BriefDescription": "Data requested by the CPU : Core reporting completion of Card read from Core … 276 …"BriefDescription": "Data requested by the CPU : Core reporting completion of Card read from Core … 288 …"BriefDescription": "Data requested by the CPU : Core reporting completion of Card read from Core … 300 …"BriefDescription": "Data requested by the CPU : Core reporting completion of Card read from Core … 312 …"BriefDescription": "Data requested by the CPU : Core reporting completion of Card read from Core … 324 …"BriefDescription": "Data requested by the CPU : Core reporting completion of Card read from Core … 336 "BriefDescription": "Data requested by the CPU : Core writing to Cards MMIO space", [all …]
|
/linux/tools/perf/pmu-events/arch/x86/sierraforest/ |
H A D | uncore-io.json | 228 …"BriefDescription": "Data requested by the CPU : Core reporting completion of Card read from Core … 240 …"BriefDescription": "Data requested by the CPU : Core reporting completion of Card read from Core … 252 …"BriefDescription": "Data requested by the CPU : Core reporting completion of Card read from Core … 264 …"BriefDescription": "Data requested by the CPU : Core reporting completion of Card read from Core … 276 …"BriefDescription": "Data requested by the CPU : Core reporting completion of Card read from Core … 288 …"BriefDescription": "Data requested by the CPU : Core reporting completion of Card read from Core … 300 …"BriefDescription": "Data requested by the CPU : Core reporting completion of Card read from Core … 312 …"BriefDescription": "Data requested by the CPU : Core reporting completion of Card read from Core … 324 …"BriefDescription": "Data requested by the CPU : Core reporting completion of Card read from Core … 336 "BriefDescription": "Data requested by the CPU : Core writing to Cards MMIO space", [all …]
|
/linux/tools/perf/pmu-events/arch/x86/broadwellx/ |
H A D | bdx-metrics.json | 4 "MetricExpr": "cstate_pkg@c2\\-residency@ / msr@tsc@", 10 "BriefDescription": "C3 residency percent per core", 11 "MetricExpr": "cstate_core@c3\\-residency@ / msr@tsc@", 18 "MetricExpr": "cstate_pkg@c3\\-residency@ / msr@tsc@", 24 "BriefDescription": "C6 residency percent per core", 25 "MetricExpr": "cstate_core@c6\\-residency@ / msr@tsc@", 32 "MetricExpr": "cstate_pkg@c6\\-residency@ / msr@tsc@", 38 "BriefDescription": "C7 residency percent per core", 39 "MetricExpr": "cstate_core@c7\\-residency@ / msr@tsc@", 46 "MetricExpr": "cstate_pkg@c7\\-residency@ / msr@tsc@", [all …]
|
/linux/drivers/watchdog/ |
H A D | octeon-wdt-main.c | 1 // SPDX-License-Identifier: GPL-2.0+ 5 * Copyright (C) 2007-2017 Cavium, Inc. 11 * (c) Copyright 1996-1997 Alan Cox <alan@lxorguk.ukuu.org.uk>, 16 * "AS-IS" and at no charge. 39 * A watchdog is maintained for each CPU in the system, that way if 40 * one CPU suffers a lockup, we also get a register dump and reset. 55 #include <linux/cpu.h> 63 #include <asm/octeon/cvmx-boot-vector.h> 64 #include <asm/octeon/cvmx-ciu2-defs.h> 65 #include <asm/octeon/cvmx-rst-defs.h> [all …]
|
/linux/arch/powerpc/perf/ |
H A D | imc-pmu.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * In-Memory Collection (IMC) Performance Monitor counter support. 13 #include <asm/imc-pmu.h> 22 * Used to avoid races in counting the nest-pmu units during hotplug 32 /* Core IMC data structures and variables */ 51 * core and trace-imc 61 return container_of(event->pmu, struct imc_pmu, pmu); in imc_event_to_pmu() 64 PMU_FORMAT_ATTR(event, "config:0-61"); 65 PMU_FORMAT_ATTR(offset, "config:0-31"); 67 PMU_FORMAT_ATTR(mode, "config:33-40"); [all …]
|
/linux/drivers/cpuidle/ |
H A D | cpuidle-cps.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 12 #include <asm/pm-cps.h> 17 STATE_NC_WAIT, /* MIPS wait instruction, non-coherent */ 18 STATE_CLOCK_GATED, /* Core clock gated */ 19 STATE_POWER_GATED, /* Core power gated */ 30 * At least one core must remain powered up & clocked in order for the in cps_nc_enter() 33 * TODO: don't treat core 0 specially, just prevent the final core in cps_nc_enter() 36 if (cpus_are_siblings(0, dev->cpu) && (index > STATE_NC_WAIT)) in cps_nc_enter() 52 return -EINVAL; in cps_nc_enter() 55 /* Notify listeners the CPU is about to power down */ in cps_nc_enter() [all …]
|