Home
last modified time | relevance | path

Searched refs:apic_id (Results 1 – 25 of 46) sorted by relevance

12

/openbmc/linux/arch/x86/mm/
H A Dsrat.c31 int apic_id; in acpi_numa_x2apic_affinity_init() local
42 apic_id = pa->apic_id; in acpi_numa_x2apic_affinity_init()
43 if (!apic_id_valid(apic_id)) { in acpi_numa_x2apic_affinity_init()
44 pr_info("SRAT: PXM %u -> X2APIC 0x%04x ignored\n", pxm, apic_id); in acpi_numa_x2apic_affinity_init()
54 if (apic_id >= MAX_LOCAL_APIC) { in acpi_numa_x2apic_affinity_init()
55 …NFO "SRAT: PXM %u -> APIC 0x%04x -> Node %u skipped apicid that is too big\n", pxm, apic_id, node); in acpi_numa_x2apic_affinity_init()
58 set_apicid_to_node(apic_id, node); in acpi_numa_x2apic_affinity_init()
61 pxm, apic_id, node); in acpi_numa_x2apic_affinity_init()
69 int apic_id; in acpi_numa_processor_affinity_init() local
90 apic_id = (pa->apic_id << 8) | pa->local_sapic_eid; in acpi_numa_processor_affinity_init()
[all …]
/openbmc/linux/drivers/acpi/
H A Dprocessor_core.c33 u32 acpi_id, phys_cpuid_t *apic_id) in map_lapic_id() argument
44 *apic_id = lapic->id; in map_lapic_id()
49 int device_declaration, u32 acpi_id, phys_cpuid_t *apic_id) in map_x2apic_id() argument
58 *apic_id = apic->local_apic_id; in map_x2apic_id()
66 int device_declaration, u32 acpi_id, phys_cpuid_t *apic_id) in map_lsapic_id() argument
80 *apic_id = (lsapic->id << 8) | lsapic->eid; in map_lsapic_id()
341 int apic_id = -1; in parse_madt_ioapic_entry() local
345 return apic_id; in parse_madt_ioapic_entry()
355 get_ioapic_id(hdr, gsi_base, phys_addr, &apic_id)) in parse_madt_ioapic_entry()
361 return apic_id; in parse_madt_ioapic_entry()
[all …]
/openbmc/u-boot/arch/x86/cpu/
H A Dmp_init.c52 int apic_id; member
110 static int find_cpu_by_apic_id(int apic_id, struct udevice **devp) in find_cpu_by_apic_id() argument
120 if (plat->cpu_id == apic_id) { in find_cpu_by_apic_id()
136 int apic_id; in ap_init() local
142 apic_id = lapicid(); in ap_init()
143 ret = find_cpu_by_apic_id(apic_id, &dev); in ap_init()
145 debug("Unknown CPU apic_id %x\n", apic_id); in ap_init()
149 debug("AP: slot %d apic_id %x, dev %s\n", cpu_index, apic_id, in ap_init()
405 int apic_id; in init_bsp() local
411 apic_id = lapicid(); in init_bsp()
[all …]
/openbmc/qemu/hw/i386/
H A Dx86-common.c56 static void x86_cpu_new(X86MachineState *x86ms, int64_t apic_id, Error **errp) in x86_cpu_new() argument
60 if (!object_property_set_uint(cpu, "apic-id", apic_id, errp)) { in x86_cpu_new()
149 CPUArchId apic_id, *found_cpu; in x86_find_cpu_slot() local
151 apic_id.arch_id = id; in x86_find_cpu_slot()
152 found_cpu = bsearch(&apic_id, ms->possible_cpus->cpus, in x86_find_cpu_slot()
185 found_cpu = x86_find_cpu_slot(MACHINE(x86ms), cpu->apic_id, NULL); in x86_cpu_plug()
203 x86_find_cpu_slot(MACHINE(x86ms), cpu->apic_id, &idx); in x86_cpu_unplug_request_cb()
227 found_cpu = x86_find_cpu_slot(MACHINE(x86ms), cpu->apic_id, NULL); in x86_cpu_unplug_cb()
288 if (cpu->apic_id == UNASSIGNED_APIC_ID) { in x86_cpu_pre_plug()
351 cpu->apic_id = x86_apicid_from_topo_ids(&topo_info, &topo_ids); in x86_cpu_pre_plug()
[all …]
H A Dacpi-common.c38 uint32_t apic_id = apic_ids->cpus[uid].arch_id; in pc_madt_cpu_entry() local
49 if (apic_id < 255) { in pc_madt_cpu_entry()
54 build_append_int_noprefix(entry, apic_id, 1); /* APIC ID */ in pc_madt_cpu_entry()
61 build_append_int_noprefix(entry, apic_id, 4); /* X2APIC ID */ in pc_madt_cpu_entry()
H A Dfw_cfg.c160 unsigned int apic_id = cpus->cpus[i].arch_id; in fw_cfg_arch_create() local
161 assert(apic_id < apic_id_limit); in fw_cfg_arch_create()
162 numa_fw_cfg[apic_id + 1] = cpu_to_le64(cpus->cpus[i].props.node_id); in fw_cfg_arch_create()
/openbmc/linux/arch/ia64/include/asm/uv/
H A Duv_mmrs.h51 unsigned long apic_id : 32; /* RW */ member
279 unsigned long apic_id : 32; /* RW */ member
317 unsigned long apic_id : 32; /* RW */ member
355 unsigned long apic_id : 32; /* RW */ member
393 unsigned long apic_id : 32; /* RW */ member
633 unsigned long apic_id : 32; /* RW */ member
671 unsigned long apic_id : 32; /* RW */ member
709 unsigned long apic_id : 32; /* RW */ member
/openbmc/linux/arch/x86/kernel/
H A Dkvm.c503 int cpu, apic_id, icr; in __send_ipi_mask() local
527 apic_id = per_cpu(x86_cpu_to_apicid, cpu); in __send_ipi_mask()
529 min = max = apic_id; in __send_ipi_mask()
530 } else if (apic_id < min && max - apic_id < KVM_IPI_CLUSTER_SIZE) { in __send_ipi_mask()
531 ipi_bitmap <<= min - apic_id; in __send_ipi_mask()
532 min = apic_id; in __send_ipi_mask()
533 } else if (apic_id > min && apic_id < min + KVM_IPI_CLUSTER_SIZE) { in __send_ipi_mask()
534 max = apic_id < max ? max : apic_id; in __send_ipi_mask()
540 min = max = apic_id; in __send_ipi_mask()
543 __set_bit(apic_id - min, (unsigned long *)&ipi_bitmap); in __send_ipi_mask()
H A Ddevicetree.c131 u32 apic_id; in dtb_cpu_setup() local
134 apic_id = of_get_cpu_hwid(dn, 0); in dtb_cpu_setup()
135 if (apic_id == ~0U) { in dtb_cpu_setup()
139 generic_processor_info(apic_id); in dtb_cpu_setup()
/openbmc/qemu/hw/intc/
H A Dloongarch_ipi.c28 CPUArchId apic_id, *found_cpu; in find_cpu_by_archid() local
30 apic_id.arch_id = id; in find_cpu_by_archid()
31 found_cpu = bsearch(&apic_id, ms->possible_cpus->cpus, in find_cpu_by_archid()
/openbmc/linux/arch/loongarch/kernel/
H A Dacpi.c269 if (pa->apic_id >= CONFIG_NR_CPUS) { in acpi_numa_processor_affinity_init()
271 pxm, pa->apic_id, node); in acpi_numa_processor_affinity_init()
275 early_numa_add_cpu(pa->apic_id, node); in acpi_numa_processor_affinity_init()
277 set_cpuid_to_node(pa->apic_id, node); in acpi_numa_processor_affinity_init()
279 pr_info("SRAT: PXM %u -> CPU 0x%02x -> Node %u\n", pxm, pa->apic_id, node); in acpi_numa_processor_affinity_init()
/openbmc/linux/arch/x86/include/asm/uv/
H A Duv_mmrs.h2290 unsigned long apic_id:32; /* RW */ member
2304 unsigned long apic_id:32; /* RW */ member
2318 unsigned long apic_id:32; /* RW */ member
2332 unsigned long apic_id:32; /* RW */ member
2346 unsigned long apic_id:32; /* RW */ member
2393 unsigned long apic_id:32; /* RW */ member
2407 unsigned long apic_id:32; /* RW */ member
2421 unsigned long apic_id:32; /* RW */ member
2435 unsigned long apic_id:32; /* RW */ member
2449 unsigned long apic_id:32; /* RW */ member
[all …]
/openbmc/linux/tools/testing/selftests/kvm/x86_64/
H A Dxapic_state_test.c137 uint32_t apic_id, expected; in __test_apic_id() local
145 apic_id = *((u32 *)&xapic.regs[APIC_ID]); in __test_apic_id()
147 TEST_ASSERT(apic_id == expected, in __test_apic_id()
150 expected, apic_id); in __test_apic_id()
H A Dfix_hypercall_test.c32 static uint64_t do_sched_yield(uint8_t apic_id) in do_sched_yield() argument
39 : "a"((uint64_t)KVM_HC_SCHED_YIELD), "b"((uint64_t)apic_id) in do_sched_yield()
/openbmc/linux/arch/x86/hyperv/
H A Dhv_proc.c117 int hv_call_add_logical_proc(int node, u32 lp_index, u32 apic_id) in hv_call_add_logical_proc() argument
139 input->apic_id = apic_id; in hv_call_add_logical_proc()
152 lp_index, apic_id, status); in hv_call_add_logical_proc()
H A Dhv_vtl.c177 static int hv_vtl_apicid_to_vp_id(u32 apic_id) in hv_vtl_apicid_to_vp_id() argument
190 input->apic_ids[0] = apic_id; in hv_vtl_apicid_to_vp_id()
202 apic_id, status); in hv_vtl_apicid_to_vp_id()
/openbmc/linux/drivers/dma/ioat/
H A Ddca.c181 int i, apic_id, bit, value; in ioat_dca_get_tag() local
185 apic_id = cpu_physical_id(cpu); in ioat_dca_get_tag()
192 value = (apic_id & (1 << bit)) ? 1 : 0; in ioat_dca_get_tag()
195 value = (apic_id & (1 << bit)) ? 0 : 1; in ioat_dca_get_tag()
/openbmc/qemu/hw/i386/xen/
H A Dxen-pvh.c29 int64_t apic_id) in xen_pvh_cpu_new() argument
34 object_property_set_uint(cpu, "apic-id", apic_id, &error_fatal); in xen_pvh_cpu_new()
/openbmc/linux/arch/x86/xen/
H A Dapic.c68 op.u.pcpu_info.apic_id = BAD_APICID; in xen_apic_read()
70 return op.u.pcpu_info.apic_id << 24; in xen_apic_read()
/openbmc/linux/arch/x86/kernel/apic/
H A Dio_apic.c1416 u32 apic_id = read_apic_id(); in native_restore_boot_irq_mode() local
1424 entry.destid_0_7 = apic_id & 0xFF; in native_restore_boot_irq_mode()
1425 entry.virt_destid_8_14 = apic_id >> 8; in native_restore_boot_irq_mode()
2069 u32 apic_id; in unlock_ExtINT_logic() local
2085 apic_id = read_apic_id(); in unlock_ExtINT_logic()
2090 entry1.destid_0_7 = apic_id & 0xFF; in unlock_ExtINT_logic()
2091 entry1.virt_destid_8_14 = apic_id >> 8; in unlock_ExtINT_logic()
2486 static int io_apic_get_unique_id(int ioapic, int apic_id) in io_apic_get_unique_id() argument
2510 if (apic_id >= get_physical_broadcast()) { in io_apic_get_unique_id()
2512 "%d\n", ioapic, apic_id, reg_00.bits.ID); in io_apic_get_unique_id()
[all …]
H A Dipi.c292 static int convert_apicid_to_cpu(int apic_id) in convert_apicid_to_cpu() argument
297 if (per_cpu(x86_cpu_to_apicid, i) == apic_id) in convert_apicid_to_cpu()
/openbmc/qemu/hw/acpi/
H A Dcpu_hotplug.c135 Aml *apic_id = aml_arg(0); in build_legacy_cpu_hotplug_aml() local
154 aml_store(aml_derefof(aml_index(cpus_map, apic_id)), cpu_on)); in build_legacy_cpu_hotplug_aml()
159 aml_append(method, aml_store(apic_id, aml_index(madt, aml_int(3)))); in build_legacy_cpu_hotplug_aml()
171 aml_store(aml_derefof(aml_index(cpus_map, apic_id)), cpu_on)); in build_legacy_cpu_hotplug_aml()
/openbmc/linux/drivers/acpi/numa/
H A Dsrat.c90 p->apic_id, p->local_sapic_eid, in acpi_table_print_srat_entry()
119 p->apic_id, in acpi_table_print_srat_entry()
370 pr_warn("Found unsupported x2apic [0x%08x] SRAT entry\n", pa->apic_id); in acpi_numa_x2apic_affinity_init()
/openbmc/linux/arch/x86/kernel/acpi/
H A Dboot.c212 u32 apic_id; in acpi_parse_x2apic() local
224 apic_id = processor->local_apic_id; in acpi_parse_x2apic()
228 if (apic_id == 0xffffffff) in acpi_parse_x2apic()
242 if (!apic_id_valid(apic_id)) { in acpi_parse_x2apic()
248 acpi_register_lapic(apic_id, processor->uid, enabled); in acpi_parse_x2apic()
388 acpi_mp_wake_mailbox->apic_id = apicid; in acpi_wakeup_cpu()
/openbmc/qemu/target/i386/
H A Dcpu-apic.c66 qdev_prop_set_uint32(cpu->apic_state, "id", cpu->apic_id); in x86_cpu_apic_create()

12