Home
last modified time | relevance | path

Searched refs:topo (Results 1 – 25 of 49) sorted by relevance

12

/linux/arch/s390/kernel/
H A Dtopology.c126 struct cpu_topology_s390 *topo; in add_cpus_to_mask() local
139 topo = &cpu_topology[cpu]; in add_cpus_to_mask()
140 topo->drawer_id = drawer->id; in add_cpus_to_mask()
141 topo->book_id = book->id; in add_cpus_to_mask()
142 topo->socket_id = socket->id; in add_cpus_to_mask()
143 topo->core_id = rcore; in add_cpus_to_mask()
144 topo->thread_id = cpu; in add_cpus_to_mask()
145 topo->dedicated = tl_core->d; in add_cpus_to_mask()
262 struct cpu_topology_s390 *topo, *topo_package, *topo_sibling; in update_cpu_masks() local
266 topo = &cpu_topology[cpu]; in update_cpu_masks()
[all …]
/linux/drivers/gpu/drm/i915/
H A Di915_query.c38 struct drm_i915_query_topology_info topo; in fill_topology_info() local
52 total_length = sizeof(topo) + slice_length + subslice_length + in fill_topology_info()
55 ret = copy_query_item(&topo, sizeof(topo), total_length, query_item); in fill_topology_info()
60 memset(&topo, 0, sizeof(topo)); in fill_topology_info()
61 topo.max_slices = sseu->max_slices; in fill_topology_info()
62 topo.max_subslices = sseu->max_subslices; in fill_topology_info()
63 topo.max_eus_per_subslice = sseu->max_eus_per_subslice; in fill_topology_info()
65 topo.subslice_offset = slice_length; in fill_topology_info()
66 topo.subslice_stride = ss_stride; in fill_topology_info()
67 topo.eu_offset = slice_length + subslice_length; in fill_topology_info()
[all …]
/linux/drivers/perf/hisilicon/
H A Dhisi_uncore_pmu.c481 struct hisi_pmu_topology *topo = &hisi_pmu->topo; in hisi_pmu_cpu_is_associated_pmu() local
484 if (topo->ccl_id == -1) { in hisi_pmu_cpu_is_associated_pmu()
488 return sccl_id == topo->sccl_id; in hisi_pmu_cpu_is_associated_pmu()
493 return sccl_id == topo->sccl_id && ccl_id == topo->ccl_id; in hisi_pmu_cpu_is_associated_pmu()
580 struct hisi_pmu_topology *topo = &hisi_pmu->topo; in hisi_uncore_pmu_init_topology() local
582 topo->sccl_id = -1; in hisi_uncore_pmu_init_topology()
583 topo->ccl_id = -1; in hisi_uncore_pmu_init_topology()
584 topo->index_id = -1; in hisi_uncore_pmu_init_topology()
585 topo->sub_id = -1; in hisi_uncore_pmu_init_topology()
587 if (device_property_read_u32(dev, "hisilicon,scl-id", &topo->sccl_id)) in hisi_uncore_pmu_init_topology()
[all …]
H A Dhisi_uncore_ddrc_pmu.c240 &ddrc_pmu->topo.index_id)) { in hisi_ddrc_pmu_init_data()
245 if (ddrc_pmu->topo.sccl_id < 0) { in hisi_ddrc_pmu_init_data()
262 if (ddrc_pmu->topo.sub_id < 0) { in hisi_ddrc_pmu_init_data()
394 ddrc_pmu->topo.sccl_id, ddrc_pmu->topo.index_id, in hisi_ddrc_pmu_probe()
395 ddrc_pmu->topo.sub_id); in hisi_ddrc_pmu_probe()
398 "hisi_sccl%d_ddrc%d", ddrc_pmu->topo.sccl_id, in hisi_ddrc_pmu_probe()
399 ddrc_pmu->topo.index_id); in hisi_ddrc_pmu_probe()
H A Dhisi_uncore_noc_pmu.c293 if (noc_pmu->topo.scl_id < 0) in hisi_noc_pmu_dev_init()
296 if (noc_pmu->topo.index_id < 0) in hisi_noc_pmu_dev_init()
299 if (noc_pmu->topo.sub_id < 0) in hisi_noc_pmu_dev_init()
368 noc_pmu->topo.scl_id, noc_pmu->topo.index_id, in hisi_noc_pmu_probe()
369 noc_pmu->topo.sub_id); in hisi_noc_pmu_probe()
H A Dhisi_uncore_uc_pmu.c374 if (uc_pmu->topo.sccl_id < 0) { in hisi_uc_pmu_init_data()
379 if (uc_pmu->topo.ccl_id < 0) { in hisi_uc_pmu_init_data()
384 if (uc_pmu->topo.sub_id < 0) { in hisi_uc_pmu_init_data()
516 uc_pmu->topo.sccl_id, uc_pmu->topo.ccl_id, in hisi_uc_pmu_probe()
517 uc_pmu->topo.sub_id); in hisi_uc_pmu_probe()
H A Dhisi_uncore_hha_pmu.c304 if (hha_pmu->topo.sccl_id < 0) { in hisi_hha_pmu_init_data()
313 if (hha_pmu->topo.index_id < 0) { in hisi_hha_pmu_init_data()
321 hha_pmu->topo.index_id = id; in hisi_hha_pmu_init_data()
489 hha_pmu->topo.sccl_id, hha_pmu->topo.index_id); in hisi_hha_pmu_probe()
H A Dhisi_uncore_mn_pmu.c257 if (mn_pmu->topo.scl_id < 0) in hisi_mn_pmu_dev_init()
261 if (mn_pmu->topo.index_id < 0) in hisi_mn_pmu_dev_init()
319 mn_pmu->topo.scl_id, mn_pmu->topo.index_id); in hisi_mn_pmu_probe()
H A Dhisi_uncore_pa_pmu.c278 if (pa_pmu->topo.sicl_id < 0) { in hisi_pa_pmu_init_data()
283 if (pa_pmu->topo.index_id < 0) { in hisi_pa_pmu_init_data()
466 pa_pmu->topo.sicl_id, pa_pmu->dev_info->name, in hisi_pa_pmu_probe()
467 pa_pmu->topo.index_id); in hisi_pa_pmu_probe()
H A Dhisi_uncore_sllc_pmu.c341 if (sllc_pmu->topo.sccl_id < 0) { in hisi_sllc_pmu_init_data()
346 if (sllc_pmu->topo.index_id < 0) { in hisi_sllc_pmu_init_data()
502 sllc_pmu->topo.sccl_id, sllc_pmu->topo.index_id); in hisi_sllc_pmu_probe()
/linux/arch/s390/pci/
H A Dpci_bus.c257 static struct zpci_bus *zpci_bus_get(int topo, bool topo_is_tid) in zpci_bus_get() argument
265 if (topo_is_tid == zbus->topo_is_tid && topo == zbus->topo) { in zpci_bus_get()
314 static struct zpci_bus *zpci_bus_alloc(int topo, bool topo_is_tid) in zpci_bus_alloc() argument
322 zbus->topo = topo; in zpci_bus_alloc()
429 int topo, rc = -EBADF; in zpci_bus_device_register() local
437 topo = topo_is_tid ? zdev->tid : zdev->pchid; in zpci_bus_device_register()
438 zbus = zpci_bus_get(topo, topo_is_tid); in zpci_bus_device_register()
449 zbus = zpci_bus_alloc(topo, topo_is_tid); in zpci_bus_device_register()
/linux/drivers/media/mc/
H A Dmc-device.c232 struct media_v2_topology *topo = arg; in media_device_get_topology() local
244 topo->topology_version = mdev->topology_version; in media_device_get_topology()
248 uentity = media_get_uptr(topo->ptr_entities); in media_device_get_topology()
254 if (i > topo->num_entities) { in media_device_get_topology()
271 topo->num_entities = i; in media_device_get_topology()
272 topo->reserved1 = 0; in media_device_get_topology()
276 uintf = media_get_uptr(topo->ptr_interfaces); in media_device_get_topology()
282 if (i > topo->num_interfaces) { in media_device_get_topology()
307 topo->num_interfaces = i; in media_device_get_topology()
308 topo->reserved2 = 0; in media_device_get_topology()
[all …]
/linux/tools/power/x86/turbostat/
H A Dturbostat.c2420 } topo; variable
2450 #define GLOBAL_CORE_ID(core_id, pkg_id) (core_id + pkg_id * (topo.max_core_id + 1))
2481 for (cpu = 0; cpu <= topo.max_cpu_num; ++cpu) { in for_all_cpus()
4343 if ((mp->format == FORMAT_RAW) && (topo.num_packages == 0)) in sum_counters()
4350 if ((pp->format == FORMAT_RAW) && (topo.num_packages == 0)) in sum_counters()
4381 average.threads->tsc /= topo.allowed_cpus; in compute_average()
4382 average.threads->aperf /= topo.allowed_cpus; in compute_average()
4383 average.threads->mperf /= topo.allowed_cpus; in compute_average()
4384 average.threads->instr_count /= topo.allowed_cpus; in compute_average()
4385 average.threads->c1 /= topo.allowed_cpus; in compute_average()
[all …]
/linux/kernel/sched/ext/
H A Dcid.c87 kvfree(tbls->topo); in scx_cid_tables_free()
110 tbls->topo = kvzalloc_objs(*tbls->topo, npossible); in scx_cid_alloc_tables()
113 !tbls->shard_node || !tbls->shard_ranges || !tbls->topo) { in scx_cid_alloc_tables()
138 rcu_assign_pointer(scx_cid_topo, tbls->topo); in scx_cid_publish_tables()
236 * No NUMA info: skip and let the tail loop assign a no-topo in scx_cid_init()
310 tbls->topo[cid] = (struct scx_cid_topo){ in scx_cid_init()
330 * No-topo section: any possible cpu without a cid - normally just the in scx_cid_init()
359 tbls->topo[cid] = SCX_CID_TOPO_NEG; in scx_cid_init()
360 tbls->topo[ci in scx_cid_init()
926 struct scx_cid_topo *topo; scx_bpf_cid_topo() local
[all...]
/linux/tools/power/cpupower/bindings/python/
H A Dtest_raw_pylibcpupower.py53 topo = p.cpupower_topology() variable
54 total_cpus = p.get_cpu_topology(topo)
/linux/drivers/ntb/hw/intel/
H A Dntb_hw_gen3.c187 switch (ndev->ntb.topo) { in gen3_init_ntb()
194 if (ndev->ntb.topo == NTB_TOPO_B2B_USD) { in gen3_init_ntb()
243 ndev->ntb.topo = xeon_ppd_topo(ndev, ppd); in gen3_init_dev()
245 ntb_topo_string(ndev->ntb.topo)); in gen3_init_dev()
246 if (ndev->ntb.topo == NTB_TOPO_NONE) in gen3_init_dev()
284 ntb_topo_string(ndev->ntb.topo)); in ndev_ntb3_debugfs_read()
350 if (ntb_topo_is_b2b(ndev->ntb.topo)) { in ndev_ntb3_debugfs_read()
H A Dntb_hw_gen4.c151 if (ndev->ntb.topo == NTB_TOPO_B2B_USD) in gen4_init_ntb()
209 ndev->ntb.topo = gen4_ppd_topo(ndev, ppd1); in gen4_init_dev()
211 ndev->ntb.topo = spr_ppd_topo(ndev, ppd1); in gen4_init_dev()
213 ntb_topo_string(ndev->ntb.topo)); in gen4_init_dev()
214 if (ndev->ntb.topo == NTB_TOPO_NONE) in gen4_init_dev()
255 ntb_topo_string(ndev->ntb.topo)); in ndev_ntb4_debugfs_read()
H A Dntb_hw_gen1.c152 if (!ntb_topo_is_b2b(ndev->ntb.topo)) in ndev_reset_unsafe_flags()
519 ntb_topo_string(ndev->ntb.topo)); in ndev_ntb_debugfs_read()
651 if (ntb_topo_is_b2b(ndev->ntb.topo)) { in ndev_ntb_debugfs_read()
975 if (ndev->ntb.topo == NTB_TOPO_SEC) in intel_ntb_link_enable()
1004 if (ndev->ntb.topo == NTB_TOPO_SEC) in intel_ntb_link_disable()
1243 if (ndev->ntb.topo == NTB_TOPO_SEC) in xeon_link_is_up()
1553 switch (ndev->ntb.topo) { in xeon_init_ntb()
1613 if (ndev->ntb.topo == NTB_TOPO_B2B_USD) { in xeon_init_ntb()
1725 ndev->ntb.topo = xeon_ppd_topo(ndev, ppd); in xeon_init_dev()
1727 ntb_topo_string(ndev->ntb.topo)); in xeon_init_dev()
[all …]
/linux/drivers/ntb/hw/amd/
H A Dntb_hw_amd.c206 if (ndev->ntb.topo == NTB_TOPO_SEC) { in amd_ntb_get_link_status()
236 } else if (ndev->ntb.topo == NTB_TOPO_PRI) { in amd_ntb_get_link_status()
304 if (ndev->ntb.topo == NTB_TOPO_PRI) { in amd_link_is_up()
361 if (ndev->ntb.topo == NTB_TOPO_SEC) in amd_ntb_link_enable()
377 if (ndev->ntb.topo == NTB_TOPO_SEC) in amd_ntb_link_disable()
873 ntb_topo_string(ndev->ntb.topo)); in ndev_debugfs_read()
969 ndev->ntb.topo = NTB_TOPO_NONE; in ndev_init_struct()
1075 switch (ndev->ntb.topo) { in amd_init_ntb()
1079 if (ndev->ntb.topo == NTB_TOPO_PRI) { in amd_init_ntb()
1123 ndev->ntb.topo = amd_get_topo(ndev); in amd_init_dev()
[all …]
/linux/include/linux/
H A Dntb.h88 static inline int ntb_topo_is_b2b(enum ntb_topo topo) in ntb_topo_is_b2b() argument
90 switch ((int)topo) { in ntb_topo_is_b2b()
98 static inline char *ntb_topo_string(enum ntb_topo topo) in ntb_topo_string() argument
100 switch (topo) { in ntb_topo_string()
424 enum ntb_topo topo; member
/linux/drivers/ntb/
H A Dcore.c215 switch (ntb->topo) { in ntb_default_port_number()
239 switch (ntb->topo) { in ntb_default_peer_port_number()
/linux/arch/x86/kernel/
H A Damd_nb.c181 return (mask >> (4 * cpu_data(cpu).topo.core_id)) & 0xf; in amd_get_subcaches()
207 cuid = cpu_data(cpu).topo.core_id; in amd_set_subcaches()
/linux/tools/perf/
H A Dbuiltin-record.c3897 struct cpu_topology *topo; in record__init_thread_masks_spec()
3899 topo = cpu_topology__new(); in record__init_thread_masks_spec()
3900 if (!topo) { in record__init_thread_masks_spec()
3905 ret = record__init_thread_masks_spec(rec, cpus, topo->core_cpus_list, in record__init_thread_masks_spec()
3906 topo->core_cpus_list, topo->core_cpus_lists);
3907 cpu_topology__delete(topo); in record__init_thread_core_masks()
3915 struct cpu_topology *topo; in record__init_thread_core_masks()
3917 topo = cpu_topology__new(); in record__init_thread_core_masks()
3918 if (!topo) { in record__init_thread_core_masks()
3910 struct cpu_topology *topo; record__init_thread_core_masks() local
3928 struct cpu_topology *topo; record__init_thread_package_masks() local
3948 struct numa_topology *topo; record__init_thread_numa_masks() local
[all...]
/linux/arch/x86/xen/
H A Dapic.c108 return cpu_data(cpu).topo.apicid; in xen_cpu_present_to_apicid()
/linux/Documentation/arch/x86/
H A Dtopology.rst62 - cpuinfo_x86.topo.die_id:
66 - cpuinfo_x86.topo.pkg_id:
72 packages within a socket. This value may differ from topo.die_id.
74 - cpuinfo_x86.topo.logical_pkg_id:
86 - cpuinfo_x86.topo.llc_id:

12