| /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 …]
|
| H A D | s390-virtio-ccw.c | 690 props->socket_id = s390_std_socket(i, &ms->smp); in s390_possible_cpu_arch_ids()
|
| /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/openbmc/meta-ampere/meta-common/recipes-phosphor/gpio/phosphor-gpio-monitor/ |
| H A D | ampere_hightemp.sh | 6 socket_id=$1 11 add_ampere_warning_sel "The S$socket_id High temperature GPIO" "CPU$socket_id HighTemp asserted" 14 add_ampere_info_sel "The S$socket_id High temperature GPIO" "CPU$socket_id HighTemp deasserted"
|
| /openbmc/qemu/hw/loongarch/ |
| H A D | virt.c | 955 topo->socket_id = index / (ms->smp.cores * ms->smp.threads); in virt_cpu_pre_plug() 990 arch_id += topo->socket_id * threads * cores; in virt_cpu_unplug_request() 1046 if ((cpu->socket_id < 0) || (cpu->socket_id >= ms->smp.sockets)) { in memhp_type_supported() 1049 cpu->socket_id, ms->smp.sockets - 1); in memhp_type_supported() 1053 topo.socket_id = cpu->socket_id; in virt_mem_pre_plug() 1061 cs->cpu_index, cpu->socket_id, cpu->core_id, in virt_device_pre_plug() 1068 topo.socket_id = cpu_slot->props.socket_id; in virt_mem_unplug_request() 1192 int64_t socket_id; virt_get_default_cpu_node_id() local [all...] |
| /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/qemu/tests/functional/ |
| H A D | test_x86_64_hotplug_cpu.py | |
| /openbmc/qemu/hw/i386/ |
| H A D | x86-common.c | 313 if (cpu->socket_id < 0) { in x86_cpu_pre_plug() 316 } else if (cpu->socket_id > ms->smp.sockets - 1) { in x86_cpu_pre_plug() 318 cpu->socket_id, ms->smp.sockets - 1); in x86_cpu_pre_plug() 354 topo_ids.pkg_id = cpu->socket_id; in x86_cpu_pre_plug() 384 /* TODO: move socket_id/core_id/thread_id checks into x86_cpu_realizefn() in x86_cpu_pre_plug() 388 if (cpu->socket_id != -1 && cpu->socket_id != topo_ids.pkg_id) { in x86_cpu_pre_plug() 390 " 0x%x (socket-id: %u)", cpu->socket_id, cpu->apic_id, in x86_cpu_pre_plug() 394 cpu->socket_id = topo_ids.pkg_id; in x86_cpu_pre_plug()
|
| H A D | x86.c | 133 ms->possible_cpus->cpus[i].props.socket_id = topo_ids.pkg_id; in x86_possible_cpu_arch_ids()
|
| /openbmc/qemu/hw/core/ |
| H A D | machine.c | 818 * -numa cpu,node-id=0,socket_id=0 \ 819 * -numa cpu,node-id=1,socket_id=1 903 if (props->has_socket_id && props->socket_id != slot->props.socket_id) { in machine_set_cpu_numa_node() 1388 g_string_append_printf(s, "socket-id: %"PRId64, cpu->props.socket_id); in cpu_slot_to_string() 1527 cpus[i].props.socket_id == cpus[j].props.socket_id && in validate_cpu_cluster_to_numa_boundary() 1533 " misbehave", i, j, cpus[i].props.socket_id, in machine_consume_memdev()
|
| H A D | machine-hmp-cmds.c | 84 monitor_printf(mon, " socket-id: \"%" PRIu64 "\"\n", c->socket_id); in hmp_hotpluggable_cpus()
|
| /openbmc/qemu/target/loongarch/ |
| H A D | cpu.h | 388 int32_t socket_id; /* socket-id of this VCPU */ 413 int32_t socket_id; /* socket-id of this CPU */ 399 int32_t socket_id; /* socket-id of this VCPU */ global() member 422 int32_t socket_id; /* socket-id of this CPU */ global() member
|
| H A D | cpu.c | 668 DEFINE_PROP_INT32("socket-id", LoongArchCPU, socket_id, 0), in loongarch_cpu_realizefn()
|
| /openbmc/qemu/hw/acpi/ |
| H A D | aml-build.c | 2152 int64_t socket_id = -1, cluster_id = -1, core_id = -1; in build_pptt() local 2181 if (cpus->cpus[n].props.socket_id != socket_id) { in build_pptt() 2182 assert(cpus->cpus[n].props.socket_id > socket_id); in build_pptt() 2183 socket_id = cpus->cpus[n].props.socket_id; in build_pptt() 2190 root_offset, socket_id, NULL, 0); in build_pptt()
|
| /openbmc/qemu/target/s390x/ |
| H A D | cpu.c | 294 DEFINE_PROP_INT32("socket-id", S390CPU, env.socket_id, -1),
|
| H A D | cpu.h | 130 int32_t socket_id; member
|
| /openbmc/qemu/hw/arm/ |
| H A D | virt.c | 2916 int64_t socket_id = ms->possible_cpus->cpus[idx].props.socket_id; in virt_memory_pre_plug() 2918 return socket_id % ms->numa_state->num_nodes; in virt_memory_pre_plug() 2943 ms->possible_cpus->cpus[n].props.socket_id = in virt_memory_plug() 2871 int64_t socket_id = ms->possible_cpus->cpus[idx].props.socket_id; virt_get_default_cpu_node_id() local
|
| /openbmc/qemu/target/i386/ |
| H A D | cpu.h | 2360 int32_t socket_id; 2349 int32_t socket_id; global() member
|
| H A D | cpu.c | 626 * NodeId is combination of node and socket_id which is already decoded in encode_topo_cpuid8000001e() 9919 DEFINE_PROP_INT32("socket-id", X86CPU, socket_id, 0), 9926 DEFINE_PROP_INT32("socket-id", X86CPU, socket_id, -1),
|