Lines Matching +full:4 +full:- +full:level

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()
58 - topology_max_dies_per_package()
62 - cpuinfo_x86.topo.die_id:
66 - cpuinfo_x86.topo.pkg_id:
74 - cpuinfo_x86.topo.logical_pkg_id:
81 - topology_max_packages():
86 - cpuinfo_x86.topo.llc_id:
88 - On Intel, the first APIC ID of the list of CPUs sharing the Last Level
91 - On AMD, the Node ID or Core Complex ID containing the Last Level
98 are SMT- or CMT-type threads.
111 Thread-related topology information in the kernel:
113 - topology_core_cpumask():
120 - topology_sibling_cpumask():
125 - topology_logical_package_id():
129 - topology_physical_package_id():
133 - topology_core_id();
138 - topology_logical_core_id();
160 Socket in each level.
163 CPUID level is >= 0x80000026 and then checking if `LogProcAtThisLevel`
164 in `EBX[15:0]` at a particular level (starting from 0) is non-zero.
166 The `LevelType` in `ECX[15:8]` at the level provides the topology domain
167 the level describes - Core, Complex, CCD(Die), or the Socket.
169 The kernel uses the `CoreMaskWidth` from `EAX[4:0]` to discover the
170 number of bits that need to be right-shifted from `ExtendedLocalApicId`
172 level. CPUs with the same Topology ID share the resources at that level.
187 CPUID level is >= 0xB and then if `EBX[31:0]` at a particular level
188 (starting from 0) is non-zero.
190 The `LevelType` in `ECX[15:8]` at the level provides the topology domain
191 that the level describes - Thread, or Processor (Socket).
193 The kernel uses the `CoreMaskWidth` from `EAX[4:0]` to discover the
194 number of bits that need to be right-shifted from the `ExtendedLocalApicId`
195 in `EDX[31:0]` to get a unique Topology ID for that topology level. CPUs
196 sharing the Topology ID share the resources at that level.
208 extended CPUID level is >= 0x80000008.
211 `ApicIdSize` field in `ECX[15:12]` if it is non-zero.
215 `ECX[7:0]` which describes the `number of threads - 1` on the package.
225 4) CPUID leaf 0x8000001E [Extended APIC ID, Core Identifiers, Node Identifiers]
241 describes `number of threads per core - 1`.
249 (Core::X86::Cpuid::NodeId) as the per-CPU `node_id`. On older processors,
265 in each level.
268 CPUID level is >= 0x1F and then `EBX[31:0]` at a particular level
269 (starting from 0) is non-zero.
271 The `Domain Type` in `ECX[15:8]` of the sub-leaf provides the topology
272 domain that the level describes - Core, Module, Tile, Die, DieGrp, and
275 The kernel uses the value from `EAX[4:0]` to discover the number of
277 to get a unique Topology ID for the topology level. CPUs with the same
278 Topology ID share the resources at that level.
290 level is >= 0xB and then checking if `EBX[31:0]` at a particular level
291 (starting from 0) is non-zero.
305 Processors that feature Hyper-Threading is detected using `EDX[28]` of
309 sharing this cache` from `EAX[25:14]` of level-0 of CPUID 0x4 provides
316 4) CPUID leaf 0x00000001 (Basic CPUID Information)
347 [package 0] -> [core 0] -> [thread 0] -> Linux CPU 0
353 [package 0] -> [core 0] -> [thread 0] -> Linux CPU 0
354 -> [core 1] -> [thread 0] -> Linux CPU 1
358 [package 0] -> [core 0] -> [thread 0] -> Linux CPU 0
359 -> [thread 1] -> Linux CPU 1
360 -> [core 1] -> [thread 0] -> Linux CPU 2
361 -> [thread 1] -> Linux CPU 3
365 [package 0] -> [core 0] -> [thread 0] -> Linux CPU 0
366 -> [thread 1] -> Linux CPU 2
367 -> [core 1] -> [thread 0] -> Linux CPU 1
368 -> [thread 1] -> Linux CPU 3
372 [node 0] -> [Compute Unit 0] -> [Compute Unit Core 0] -> Linux CPU 0
373 -> [Compute Unit Core 1] -> Linux CPU 1
374 -> [Compute Unit 1] -> [Compute Unit Core 0] -> Linux CPU 2
375 -> [Compute Unit Core 1] -> Linux CPU 3
377 4) Dual Package, Dual Core
381 [package 0] -> [core 0] -> [thread 0] -> Linux CPU 0
382 -> [core 1] -> [thread 0] -> Linux CPU 1
384 [package 1] -> [core 0] -> [thread 0] -> Linux CPU 2
385 -> [core 1] -> [thread 0] -> Linux CPU 3
389 [package 0] -> [core 0] -> [thread 0] -> Linux CPU 0
390 -> [thread 1] -> Linux CPU 1
391 -> [core 1] -> [thread 0] -> Linux CPU 2
392 -> [thread 1] -> Linux CPU 3
394 [package 1] -> [core 0] -> [thread 0] -> Linux CPU 4
395 -> [thread 1] -> Linux CPU 5
396 -> [core 1] -> [thread 0] -> Linux CPU 6
397 -> [thread 1] -> Linux CPU 7
401 [package 0] -> [core 0] -> [thread 0] -> Linux CPU 0
402 -> [thread 1] -> Linux CPU 4
403 -> [core 1] -> [thread 0] -> Linux CPU 1
404 -> [thread 1] -> Linux CPU 5
406 [package 1] -> [core 0] -> [thread 0] -> Linux CPU 2
407 -> [thread 1] -> Linux CPU 6
408 -> [core 1] -> [thread 0] -> Linux CPU 3
409 -> [thread 1] -> Linux CPU 7
413 [node 0] -> [Compute Unit 0] -> [Compute Unit Core 0] -> Linux CPU 0
414 -> [Compute Unit Core 1] -> Linux CPU 1
415 -> [Compute Unit 1] -> [Compute Unit Core 0] -> Linux CPU 2
416 -> [Compute Unit Core 1] -> Linux CPU 3
418 [node 1] -> [Compute Unit 0] -> [Compute Unit Core 0] -> Linux CPU 4
419 -> [Compute Unit Core 1] -> Linux CPU 5
420 -> [Compute Unit 1] -> [Compute Unit Core 0] -> Linux CPU 6
421 -> [Compute Unit Core 1] -> Linux CPU 7