/openbmc/qemu/hw/riscv/ |
H A D | numa.c | 38 int riscv_socket_first_hartid(const MachineState *ms, int socket_id) in riscv_socket_first_hartid() argument 43 return (!socket_id) ? 0 : -1; in riscv_socket_first_hartid() 47 if (ms->possible_cpus->cpus[i].props.node_id != socket_id) { in riscv_socket_first_hartid() 58 int riscv_socket_last_hartid(const MachineState *ms, int socket_id) in riscv_socket_last_hartid() argument 63 return (!socket_id) ? ms->smp.cpus - 1 : -1; in riscv_socket_last_hartid() 67 if (ms->possible_cpus->cpus[i].props.node_id != socket_id) { in riscv_socket_last_hartid() 78 int riscv_socket_hart_count(const MachineState *ms, int socket_id) in riscv_socket_hart_count() argument 83 return (!socket_id) ? ms->smp.cpus : -1; in riscv_socket_hart_count() 86 first_hartid = riscv_socket_first_hartid(ms, socket_id); in riscv_socket_hart_count() 91 last_hartid = riscv_socket_last_hartid(ms, socket_id); in riscv_socket_hart_count() [all …]
|
H A D | virt-acpi-build.c | 71 uint32_t imsic_size, local_cpu_id, socket_id; in riscv_acpi_madt_add_rintc() local 75 socket_id = arch_ids->cpus[uid].props.node_id; in riscv_acpi_madt_add_rintc() 77 riscv_socket_first_hartid(ms, socket_id)) % in riscv_acpi_madt_add_rintc() 78 riscv_socket_hart_count(ms, socket_id); in riscv_acpi_madt_add_rintc() 80 (socket_id * VIRT_IMSIC_GROUP_MAX_SIZE); in riscv_acpi_madt_add_rintc()
|
/openbmc/qemu/hw/s390x/ |
H A D | cpu-topology.c | 48 static int s390_socket_nb_from_ids(int drawer_id, int book_id, int socket_id) in s390_socket_nb_from_ids() argument 51 current_machine->smp.sockets + socket_id; in s390_socket_nb_from_ids() 64 cpu->env.socket_id); in s390_socket_nb() 188 if ((env->socket_id < 0 || env->book_id < 0 || env->drawer_id < 0) && in s390_topology_cpu_default() 189 (env->socket_id >= 0 || env->book_id >= 0 || env->drawer_id >= 0)) { in s390_topology_cpu_default() 196 if (env->socket_id < 0) { in s390_topology_cpu_default() 197 env->socket_id = s390_std_socket(env->core_id, smp); in s390_topology_cpu_default() 233 static bool s390_topology_check(uint16_t socket_id, uint16_t book_id, in s390_topology_check() argument 239 if (socket_id >= smp->sockets) { in s390_topology_check() 240 error_setg(errp, "Unavailable socket: %d", socket_id); in s390_topology_check() [all …]
|
/openbmc/qemu/include/hw/riscv/ |
H A D | numa.h | 41 int riscv_socket_first_hartid(const MachineState *ms, int socket_id); 50 int riscv_socket_last_hartid(const MachineState *ms, int socket_id); 59 int riscv_socket_hart_count(const MachineState *ms, int socket_id); 68 uint64_t riscv_socket_mem_offset(const MachineState *ms, int socket_id); 77 uint64_t riscv_socket_mem_size(const MachineState *ms, int socket_id); 86 bool riscv_socket_check_hartids(const MachineState *ms, int socket_id); 96 int socket_id);
|
/openbmc/linux/include/uapi/linux/ |
H A D | isst_if.h | 179 __u8 socket_id; member 201 __u8 socket_id; member 219 __u8 socket_id; member 252 __u8 socket_id; member 276 __u8 socket_id; member 298 __u8 socket_id; member 312 __u8 socket_id; member 352 __u8 socket_id; member 397 __u8 socket_id; member 420 __u8 socket_id; member [all …]
|
/openbmc/linux/tools/power/x86/intel-speed-select/ |
H A D | isst-core-tpmi.c | 123 info.socket_id = id->pkg; in tpmi_is_punit_valid() 140 info.socket_id = id->pkg; in tpmi_read_pm_config() 157 info.socket_id = id->pkg; in tpmi_get_config_levels() 182 info.socket_id = id->pkg; in tpmi_get_ctdp_control() 203 core_power_info.socket_id = id->pkg; in tpmi_get_ctdp_control() 227 info.socket_id = id->pkg; in tpmi_get_tdp_info() 279 info.socket_id = id->pkg; in tpmi_get_coremask_info() 305 info.socket_id = id->pkg; in tpmi_get_get_trls() 350 info.socket_id = id->pkg; in tpmi_get_trl_bucket_info() 375 info.socket_id = id->pkg; in tpmi_set_tdp_level() [all …]
|
/openbmc/linux/drivers/gpu/drm/amd/amdgpu/ |
H A D | smuio_v13_0_3.c | 57 u32 data, socket_id; in smuio_v13_0_3_get_socket_id() local 60 socket_id = REG_GET_FIELD(data, SMUIO_MCM_CONFIG, SOCKET_ID); in smuio_v13_0_3_get_socket_id() 62 return socket_id; in smuio_v13_0_3_get_socket_id()
|
H A D | smuio_v13_0.c | 100 u32 data, socket_id; in smuio_v13_0_get_socket_id() local 103 socket_id = REG_GET_FIELD(data, SMUIO_MCM_CONFIG, SOCKET_ID); in smuio_v13_0_get_socket_id() 105 return socket_id; in smuio_v13_0_get_socket_id()
|
/openbmc/linux/tools/perf/tests/ |
H A D | topology.c | 122 session->header.env.cpu[i].socket_id); in check_cpu_topology() 134 session->header.env.cpu[perf_cpu_map__cpu(map, i).cpu].socket_id == in check_cpu_topology() 150 session->header.env.cpu[perf_cpu_map__cpu(map, i).cpu].socket_id == in check_cpu_topology() 163 session->header.env.cpu[perf_cpu_map__cpu(map, i).cpu].socket_id == in check_cpu_topology() 179 session->header.env.cpu[perf_cpu_map__cpu(map, i).cpu].socket_id == in check_cpu_topology()
|
/openbmc/linux/drivers/platform/x86/intel/speed_select_if/ |
H A D | isst_tpmi_core.c | 464 power_domain_info = get_instance(core_power.socket_id, core_power.power_domain_id); in isst_if_core_power_state() 508 power_domain_info = get_instance(clos_param.socket_id, clos_param.power_domain_id); in isst_if_clos_param() 576 if (clos_assoc.socket_id > topology_max_packages()) in isst_if_clos_assoc() 591 pkg_id = clos_assoc.socket_id; in isst_if_clos_assoc() 702 power_domain_info = get_instance(perf_level.socket_id, perf_level.power_domain_id); in isst_if_get_perf_level() 746 power_domain_info = get_instance(perf_level.socket_id, perf_level.power_domain_id); in isst_if_set_perf_level() 803 power_domain_info = get_instance(perf_feature.socket_id, perf_feature.power_domain_id); in isst_if_set_perf_feature() 898 power_domain_info = get_instance(perf_level.socket_id, perf_level.power_domain_id); in isst_if_get_perf_level_info() 1006 power_domain_info = get_instance(cpumask.socket_id, cpumask.power_domain_id); in isst_if_get_perf_level_mask() 1048 power_domain_info = get_instance(base_freq.socket_id, base_freq.power_domain_id); in isst_if_get_base_freq_info() [all …]
|
/openbmc/linux/tools/perf/tests/shell/lib/ |
H A D | stat_output.sh | 163 socket_id=`cat $socket_file` 164 [ $socket_id == -1 ] && {
|
/openbmc/linux/drivers/pci/controller/ |
H A D | pcie-hisi-error.c | 49 u8 socket_id; member 210 dev_info(dev, "Socket ID = %d\n", edata->socket_id); in hisi_pcie_handle_error() 243 rc = hisi_pcie_port_do_recovery(pdev, edata->socket_id, in hisi_pcie_handle_error() 270 if (error_data->socket_id != socket) in hisi_pcie_notify_error()
|
/openbmc/qemu/target/s390x/kvm/ |
H A D | stsi-topology.c | 95 int socket_id = 0; in stsi_topology_fill_sysib() local 111 socket_id = 0; in stsi_topology_fill_sysib() 115 p = fill_container(p, 1, socket_id++); in stsi_topology_fill_sysib() 189 .socket = cpu->env.socket_id, in s390_topology_from_cpu()
|
/openbmc/linux/arch/s390/include/asm/ |
H A D | topology.h | 16 unsigned short socket_id; member 29 #define topology_physical_package_id(cpu) (cpu_topology[cpu].socket_id)
|
/openbmc/linux/arch/ia64/kernel/ |
H A D | topology.c | 34 if (cpu_data(num)->socket_id == -1) in arch_fix_phys_package_id() 35 cpu_data(num)->socket_id = slot; in arch_fix_phys_package_id() 149 if (cpu_data(cpu)->socket_id == cpu_data(j)->socket_id in cache_shared_cpu_map_setup()
|
H A D | smpboot.c | 699 if ((cpu_data(cpu)->socket_id == cpu_data(i)->socket_id)) { in set_cpu_sibling_map() 804 c->socket_id = (pltid << 8) | info.overview_ppid; in identify_siblings() 831 if ((cpu_data(j)->socket_id == cpu_data(i)->socket_id)) { in is_multithreading_enabled()
|
/openbmc/linux/tools/perf/tests/shell/ |
H A D | stat+json_output.sh | 195 socket_id=`cat $socket_file` 196 [ $socket_id == -1 ] && skip_test=1
|
/openbmc/qemu/hw/i386/ |
H A D | x86-common.c | 305 if (cpu->socket_id < 0) { in x86_cpu_pre_plug() 308 } else if (cpu->socket_id > ms->smp.sockets - 1) { in x86_cpu_pre_plug() 310 cpu->socket_id, ms->smp.sockets - 1); in x86_cpu_pre_plug() 346 topo_ids.pkg_id = cpu->socket_id; in x86_cpu_pre_plug() 380 if (cpu->socket_id != -1 && cpu->socket_id != topo_ids.pkg_id) { in x86_cpu_pre_plug() 382 " 0x%x (socket-id: %u)", cpu->socket_id, cpu->apic_id, in x86_cpu_pre_plug() 386 cpu->socket_id = topo_ids.pkg_id; in x86_cpu_pre_plug()
|
/openbmc/qemu/tests/avocado/ |
H A D | hotplug_cpu.py | 34 socket_id=0,
|
/openbmc/linux/arch/ia64/include/asm/ |
H A D | topology.h | 42 #define topology_physical_package_id(cpu) (cpu_data(cpu)->socket_id)
|
/openbmc/linux/include/linux/ |
H A D | peci.h | 80 u8 socket_id; member
|
H A D | tifm.h | 91 unsigned int socket_id; member
|
/openbmc/linux/drivers/misc/ |
H A D | tifm_7xx1.c | 31 fm->socket_change_set |= 1 << sock->socket_id; in tifm_7xx1_eject() 300 if (((fm->num_sockets == 4) && (sock->socket_id == 2)) in tifm_7xx1_has_ms_pif() 301 || ((fm->num_sockets == 2) && (sock->socket_id == 0))) in tifm_7xx1_has_ms_pif()
|
/openbmc/linux/tools/arch/x86/intel_sdsi/ |
H A D | intel_sdsi.c | 108 uint64_t socket_id; member 112 uint64_t socket_id; member 293 printf("Socket ID: %ld\n", s->regs.extra.v1.socket_id & 0xF); in sdsi_read_reg() 295 printf("Socket ID: %ld\n", s->regs.extra.v2.socket_id & 0xF); in sdsi_read_reg()
|
/openbmc/qemu/hw/core/ |
H A D | machine.c | 848 if (props->has_socket_id && props->socket_id != slot->props.socket_id) { in machine_set_cpu_numa_node() 1312 g_string_append_printf(s, "socket-id: %"PRId64, cpu->props.socket_id); in cpu_slot_to_string() 1451 cpus[i].props.socket_id == cpus[j].props.socket_id && in validate_cpu_cluster_to_numa_boundary() 1457 " misbehave", i, j, cpus[i].props.socket_id, in validate_cpu_cluster_to_numa_boundary()
|