/linux-6.14.4/Documentation/arch/x86/ |
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-6.14.4/tools/perf/tests/ |
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() 47 perf_header__set_feat(&session->header, HEADER_CPU_TOPOLOGY); in session_write_header() 48 perf_header__set_feat(&session->header, HEADER_NRCPUS); in session_write_header() 49 perf_header__set_feat(&session->header, HEADER_ARCH); in session_write_header() 51 session->header.data_size += DATA_SIZE; in session_write_header() 54 !perf_session__write_header(session, session->evlist, data.file.fd, true)); in session_write_header() [all …]
|
/linux-6.14.4/arch/mips/kernel/ |
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> 45 static unsigned __init core_vpe_count(unsigned int cluster, unsigned core) in core_vpe_count() argument 47 return min(smp_max_threads, mips_cps_numvps(cluster, core)); in core_vpe_count() 115 0x0, CSEGX_SIZE - 1); in allocate_cps_vecs() 128 end = SZ_4G - 1; in allocate_cps_vecs() 142 return -ENOMEM; in allocate_cps_vecs() [all …]
|
/linux-6.14.4/Documentation/devicetree/bindings/cpu/ |
D | cpu-topology.txt | 2 CPU topology binding description 6 1 - Introduction 12 - socket 13 - cluster 14 - core 15 - thread 17 The bottom hierarchy level sits at core or thread level depending on whether 18 symmetric multi-threading (SMT) is supported or not. 20 For instance in a system where CPUs support SMT, "cpu" nodes represent all 22 In systems where SMT is not supported "cpu" nodes represent all cores present [all …]
|
/linux-6.14.4/Documentation/admin-guide/pm/ |
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-6.14.4/tools/perf/util/ |
D | bpf_counter_cgroup.c | 1 // SPDX-License-Identifier: GPL-2.0 42 #define FD(evt, cpu) (*(int *)xyarray__entry(evt->core.fd, cpu, 0)) argument 50 struct perf_cpu cpu; in bperf_load_program() local 51 int total_cpus = cpu__max_cpu().cpu; in bperf_load_program() 58 return -1; in bperf_load_program() 61 skel->rodata->num_cpus = total_cpus; in bperf_load_program() 62 skel->rodata->num_events = evlist->core.nr_entries / nr_cgroups; in bperf_load_program() 65 skel->rodata->use_cgroup_v2 = 1; in bperf_load_program() 67 BUG_ON(evlist->core.nr_entries % nr_cgroups != 0); in bperf_load_program() 69 /* we need one copy of events per cpu for reading */ in bperf_load_program() [all …]
|
D | mmap.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (C) 2011-2017, Red Hat Inc, Arnaldo Carvalho de Melo <[email protected]> 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->core); in mmap__mmap_len() 73 return map->aio.nr_cblocks > 0; in perf_mmap__aio_enabled() 79 map->aio.data[idx] = mmap(NULL, mmap__mmap_len(map), PROT_READ|PROT_WRITE, in perf_mmap__aio_alloc() 81 if (map->aio.data[idx] == MAP_FAILED) { in perf_mmap__aio_alloc() 82 map->aio.data[idx] = NULL; in perf_mmap__aio_alloc() [all …]
|
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/cpuX/cache/indexY/shared_cpu_list 31 /** The core id as read from /sys/devices/system/cpu/cpuX/topology/core_id. */ 32 int core; member [all …]
|
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-6.14.4/tools/perf/pmu-events/arch/x86/haswell/ |
D | hsw-metrics.json | 4 "MetricExpr": "cstate_pkg@c2\\-residency@ / TSC", 10 "BriefDescription": "C3 residency percent per core", 11 "MetricExpr": "cstate_core@c3\\-residency@ / TSC", 18 "MetricExpr": "cstate_pkg@c3\\-residency@ / TSC", 24 "BriefDescription": "C6 residency percent per core", 25 "MetricExpr": "cstate_core@c6\\-residency@ / TSC", 32 "MetricExpr": "cstate_pkg@c6\\-residency@ / TSC", 38 "BriefDescription": "C7 residency percent per core", 39 "MetricExpr": "cstate_core@c7\\-residency@ / TSC", 46 "MetricExpr": "cstate_pkg@c7\\-residency@ / TSC", [all …]
|
/linux-6.14.4/arch/powerpc/include/asm/ |
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-6.14.4/arch/arm/mach-bcm/ |
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-6.14.4/tools/power/cpupower/lib/ |
D | cpupower.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * (C) 2004-2009 Dominik Brodowski <[email protected]> 19 if (access(path, F_OK) == -1) in is_valid_path() 30 if (fd == -1) in cpupower_read_sysfs() 33 numread = read(fd, buf, buflen - 1); in cpupower_read_sysfs() 51 if (fd == -1) in cpupower_write_sysfs() 54 numwritten = write(fd, buf, buflen - 1); in cpupower_write_sysfs() 58 return -1; in cpupower_write_sysfs() 67 * Detect whether a CPU is online 70 * 1 -> if CPU is online [all …]
|
/linux-6.14.4/tools/perf/pmu-events/arch/x86/haswellx/ |
D | hsx-metrics.json | 4 "MetricExpr": "cstate_pkg@c2\\-residency@ / TSC", 10 "BriefDescription": "C3 residency percent per core", 11 "MetricExpr": "cstate_core@c3\\-residency@ / TSC", 18 "MetricExpr": "cstate_pkg@c3\\-residency@ / TSC", 24 "BriefDescription": "C6 residency percent per core", 25 "MetricExpr": "cstate_core@c6\\-residency@ / TSC", 32 "MetricExpr": "cstate_pkg@c6\\-residency@ / TSC", 38 "BriefDescription": "C7 residency percent per core", 39 "MetricExpr": "cstate_core@c7\\-residency@ / TSC", 46 "MetricExpr": "cstate_pkg@c7\\-residency@ / TSC", [all …]
|
/linux-6.14.4/tools/perf/pmu-events/arch/x86/grandridge/ |
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-6.14.4/Documentation/devicetree/bindings/regulator/ |
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-6.14.4/drivers/platform/x86/intel/ifs/ |
D | runtest.c | 1 // SPDX-License-Identifier: GPL-2.0-only 4 #include <linux/cpu.h> 15 * ifs_sem. On HT systems all threads on a core will 17 * core will update results of the test. 40 * Number of TSC cycles that a logical CPU will wait for the other 41 * logical CPU on the core in the WRMSR(ACTIVATE_SCAN). 65 "Core Abort SCAN Response due to power management condition.", 68 [IFS_CORE_NOT_CAPABLE_CURRENTLY] = "Core not capable of performing SCAN currently", 71 "Exceeded number of Logical Processors (LP) allowed to run Scan-At-Field concurrently", 77 static void message_not_tested(struct device *dev, int cpu, union ifs_status status) in message_not_tested() argument [all …]
|
/linux-6.14.4/tools/perf/pmu-events/arch/x86/broadwell/ |
D | bdw-metrics.json | 4 "MetricExpr": "cstate_pkg@c2\\-residency@ / TSC", 10 "BriefDescription": "C3 residency percent per core", 11 "MetricExpr": "cstate_core@c3\\-residency@ / TSC", 18 "MetricExpr": "cstate_pkg@c3\\-residency@ / TSC", 24 "BriefDescription": "C6 residency percent per core", 25 "MetricExpr": "cstate_core@c6\\-residency@ / TSC", 32 "MetricExpr": "cstate_pkg@c6\\-residency@ / TSC", 38 "BriefDescription": "C7 residency percent per core", 39 "MetricExpr": "cstate_core@c7\\-residency@ / TSC", 46 "MetricExpr": "cstate_pkg@c7\\-residency@ / TSC", [all …]
|
/linux-6.14.4/tools/perf/pmu-events/arch/x86/broadwellde/ |
D | bdwde-metrics.json | 4 "MetricExpr": "cstate_pkg@c2\\-residency@ / TSC", 10 "BriefDescription": "C3 residency percent per core", 11 "MetricExpr": "cstate_core@c3\\-residency@ / TSC", 18 "MetricExpr": "cstate_pkg@c3\\-residency@ / TSC", 24 "BriefDescription": "C6 residency percent per core", 25 "MetricExpr": "cstate_core@c6\\-residency@ / TSC", 32 "MetricExpr": "cstate_pkg@c6\\-residency@ / TSC", 38 "BriefDescription": "C7 residency percent per core", 39 "MetricExpr": "cstate_core@c7\\-residency@ / TSC", 46 "MetricExpr": "cstate_pkg@c7\\-residency@ / TSC", [all …]
|
/linux-6.14.4/drivers/of/ |
D | cpu.c | 1 // SPDX-License-Identifier: GPL-2.0 2 #include <linux/cpu.h> 7 * of_get_cpu_hwid - Get the hardware ID from a CPU device node 9 * @cpun: CPU number(logical index) for which device node is required 12 * Return: The hardware ID for the CPU node or ~0ULL if not found. 29 * arch_match_cpu_phys_id - Match the given logical CPU and physical id 31 * @cpu: logical cpu index of a core/thread 32 * @phys_id: physical identifier of a core/thread 34 * CPU logical to physical index mapping is architecture specific. 36 * id to logical cpu index. phys_id provided here is usually values read [all …]
|
/linux-6.14.4/tools/perf/pmu-events/arch/x86/sierraforest/ |
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-6.14.4/tools/perf/pmu-events/arch/x86/graniterapids/ |
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-6.14.4/tools/perf/pmu-events/arch/x86/ivybridge/ |
D | ivb-metrics.json | 4 "MetricExpr": "cstate_pkg@c2\\-residency@ / TSC", 10 "BriefDescription": "C3 residency percent per core", 11 "MetricExpr": "cstate_core@c3\\-residency@ / TSC", 18 "MetricExpr": "cstate_pkg@c3\\-residency@ / TSC", 24 "BriefDescription": "C6 residency percent per core", 25 "MetricExpr": "cstate_core@c6\\-residency@ / TSC", 32 "MetricExpr": "cstate_pkg@c6\\-residency@ / TSC", 38 "BriefDescription": "C7 residency percent per core", 39 "MetricExpr": "cstate_core@c7\\-residency@ / TSC", 46 "MetricExpr": "cstate_pkg@c7\\-residency@ / TSC", [all …]
|
/linux-6.14.4/tools/perf/pmu-events/arch/x86/ivytown/ |
D | ivt-metrics.json | 4 "MetricExpr": "cstate_pkg@c2\\-residency@ / TSC", 10 "BriefDescription": "C3 residency percent per core", 11 "MetricExpr": "cstate_core@c3\\-residency@ / TSC", 18 "MetricExpr": "cstate_pkg@c3\\-residency@ / TSC", 24 "BriefDescription": "C6 residency percent per core", 25 "MetricExpr": "cstate_core@c6\\-residency@ / TSC", 32 "MetricExpr": "cstate_pkg@c6\\-residency@ / TSC", 38 "BriefDescription": "C7 residency percent per core", 39 "MetricExpr": "cstate_core@c7\\-residency@ / TSC", 46 "MetricExpr": "cstate_pkg@c7\\-residency@ / TSC", [all …]
|
/linux-6.14.4/arch/mips/loongson64/ |
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 …]
|