Home
last modified time | relevance | path

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

12

/linux-6.15/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()
58 set_apicid_to_node(apic_id, node); in acpi_numa_x2apic_affinity_init()
68 int apic_id; in acpi_numa_processor_affinity_init() local
89 apic_id = (pa->apic_id << 8) | pa->local_sapic_eid; in acpi_numa_processor_affinity_init()
91 apic_id = pa->apic_id; in acpi_numa_processor_affinity_init()
93 if (apic_id >= MAX_LOCAL_APIC) { in acpi_numa_processor_affinity_init()
[all …]
/linux-6.15/arch/x86/kernel/cpu/
H A Dtopology.c104 if (cpuid_to_apicid[i] == apic_id) in topo_lookup_cpuid()
112 int cpu = topo_lookup_cpuid(apic_id); in topo_get_cpunr()
237 cpu = topo_get_cpunr(apic_id); in topo_register_apic()
239 cpuid_to_apicid[cpu] = apic_id; in topo_register_apic()
251 apic_id); in topo_register_apic()
276 if (apic_id >= MAX_LOCAL_APIC) { in topology_register_apic()
282 if (check_for_real_bsp(apic_id)) { in topology_register_apic()
384 if (apic_id >= MAX_LOCAL_APIC) in topology_hotplug_apic()
391 cpu = topo_lookup_cpuid(apic_id); in topology_hotplug_apic()
407 u32 apic_id = cpuid_to_apicid[cpu]; in topology_hotunplug_apic() local
[all …]
/linux-6.15/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()
58 *apic_id = apic->local_apic_id; in map_x2apic_id()
357 int apic_id = -1; in parse_madt_ioapic_entry() local
361 return apic_id; in parse_madt_ioapic_entry()
377 return apic_id; in parse_madt_ioapic_entry()
386 int apic_id = -1; in parse_mat_ioapic_entry() local
405 return apic_id; in parse_mat_ioapic_entry()
421 int apic_id; in acpi_get_ioapic_id() local
424 if (apic_id == -1) in acpi_get_ioapic_id()
[all …]
/linux-6.15/arch/x86/kernel/
H A Dkvm.c512 u32 apic_id, icr; in __send_ipi_mask() local
530 apic_id = per_cpu(x86_cpu_to_apicid, cpu); in __send_ipi_mask()
532 min = max = apic_id; in __send_ipi_mask()
533 } else if (apic_id < min && max - apic_id < KVM_IPI_CLUSTER_SIZE) { in __send_ipi_mask()
534 ipi_bitmap <<= min - apic_id; in __send_ipi_mask()
535 min = apic_id; in __send_ipi_mask()
536 } else if (apic_id > min && apic_id < min + KVM_IPI_CLUSTER_SIZE) { in __send_ipi_mask()
537 max = apic_id < max ? max : apic_id; in __send_ipi_mask()
543 min = max = apic_id; in __send_ipi_mask()
546 __set_bit(apic_id - min, (unsigned long *)&ipi_bitmap); in __send_ipi_mask()
H A Ddevicetree.c133 u32 apic_id; in dtb_cpu_setup() local
136 apic_id = of_get_cpu_hwid(dn, 0); in dtb_cpu_setup()
137 if (apic_id == ~0U) { in dtb_cpu_setup()
141 topology_register_apic(apic_id, CPU_ACPIID_INVALID, true); in dtb_cpu_setup()
142 set_apicid_to_node(apic_id, of_node_to_nid(dn)); in dtb_cpu_setup()
H A Dirq.c370 u32 apic_id; in intel_posted_msi_init() local
378 apic_id = this_cpu_read(x86_cpu_to_apicid); in intel_posted_msi_init()
379 destination = x2apic_enabled() ? apic_id : apic_id << 8; in intel_posted_msi_init()
/linux-6.15/drivers/hv/
H A Dhv_proc.c112 int hv_call_add_logical_proc(int node, u32 lp_index, u32 apic_id) in hv_call_add_logical_proc() argument
133 input->apic_id = apic_id; in hv_call_add_logical_proc()
142 lp_index, apic_id); in hv_call_add_logical_proc()
/linux-6.15/arch/loongarch/kernel/
H A Dacpi.c290 if (pa->apic_id >= CONFIG_NR_CPUS) { in acpi_numa_processor_affinity_init()
292 pxm, pa->apic_id, node); in acpi_numa_processor_affinity_init()
296 early_numa_add_cpu(pa->apic_id, node); in acpi_numa_processor_affinity_init()
298 set_cpuid_to_node(pa->apic_id, node); in acpi_numa_processor_affinity_init()
300 pr_info("SRAT: PXM %u -> CPU 0x%02x -> Node %u\n", pxm, pa->apic_id, node); in acpi_numa_processor_affinity_init()
/linux-6.15/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 …]
/linux-6.15/tools/testing/selftests/kvm/x86/
H A Dxapic_state_test.c147 uint32_t apic_id, expected; in __test_apic_id() local
155 apic_id = *((u32 *)&xapic.regs[APIC_ID]); in __test_apic_id()
157 TEST_ASSERT(apic_id == expected, in __test_apic_id()
160 expected, apic_id); in __test_apic_id()
H A Dfix_hypercall_test.c33 static uint64_t do_sched_yield(uint8_t apic_id) in do_sched_yield() argument
40 : "a"((uint64_t)KVM_HC_SCHED_YIELD), "b"((uint64_t)apic_id) in do_sched_yield()
/linux-6.15/drivers/dma/ioat/
H A Ddca.c183 int i, apic_id, bit, value; in ioat_dca_get_tag() local
187 apic_id = cpu_physical_id(cpu); in ioat_dca_get_tag()
194 value = (apic_id & (1 << bit)) ? 1 : 0; in ioat_dca_get_tag()
197 value = (apic_id & (1 << bit)) ? 0 : 1; in ioat_dca_get_tag()
/linux-6.15/arch/x86/include/asm/
H A Dapic.h179 extern void topology_register_apic(u32 apic_id, u32 acpi_id, bool present);
180 extern void topology_register_boot_apic(u32 apic_id);
181 extern int topology_hotplug_apic(u32 apic_id, u32 acpi_id);
468 static __always_inline bool apic_id_valid(u32 apic_id) in apic_id_valid() argument
470 return apic_id <= apic->max_apic_id; in apic_id_valid()
/linux-6.15/arch/x86/xen/
H A Dapic.c60 op.u.pcpu_info.apic_id = BAD_APICID; in xen_apic_read()
62 return op.u.pcpu_info.apic_id << 24; in xen_apic_read()
/linux-6.15/arch/x86/kernel/apic/
H A Dio_apic.c1329 u32 apic_id = read_apic_id(); in native_restore_boot_irq_mode() local
1950 u32 apic_id; in unlock_ExtINT_logic() local
1966 apic_id = read_apic_id(); in unlock_ExtINT_logic()
2383 if (apic_id >= broadcast_id) { in io_apic_get_unique_id()
2386 apic_id = reg_00.bits.ID; in io_apic_get_unique_id()
2400 apic_id = i; in io_apic_get_unique_id()
2403 set_bit(apic_id, apic_id_map); in io_apic_get_unique_id()
2405 if (reg_00.bits.ID != apic_id) { in io_apic_get_unique_id()
2406 reg_00.bits.ID = apic_id; in io_apic_get_unique_id()
2414 if (reg_00.bits.ID != apic_id) { in io_apic_get_unique_id()
[all …]
H A Dapic.c2362 u32 apic_id; member
2388 apic_pm_state.apic_id = apic_read(APIC_ID); in lapic_suspend()
2465 apic_write(APIC_ID, apic_pm_state.apic_id); in lapic_resume()
/linux-6.15/arch/x86/hyperv/
H A Dhv_vtl.c209 static int hv_vtl_apicid_to_vp_id(u32 apic_id) in hv_vtl_apicid_to_vp_id() argument
222 input->apic_ids[0] = apic_id; in hv_vtl_apicid_to_vp_id()
234 apic_id, status); in hv_vtl_apicid_to_vp_id()
/linux-6.15/arch/x86/kernel/acpi/
H A Dmadt_wakeup.c49 acpi_mp_wake_mailbox->apic_id = apicid; in acpi_mp_cpu_die()
157 acpi_mp_wake_mailbox->apic_id = apicid; in acpi_wakeup_cpu()
H A Dboot.c179 u32 apic_id; in acpi_parse_x2apic() local
191 apic_id = processor->local_apic_id; in acpi_parse_x2apic()
195 if (apic_id == 0xffffffff) in acpi_parse_x2apic()
207 if (has_lapic_cpus && apic_id < 0xff) in acpi_parse_x2apic()
217 if (!apic_id_valid(apic_id)) { in acpi_parse_x2apic()
223 topology_register_apic(apic_id, processor->uid, enabled); in acpi_parse_x2apic()
/linux-6.15/drivers/gpu/drm/amd/include/
H A Damd_cper.h160 uint64_t apic_id : 1; member
167 uint64_t apic_id; member
/linux-6.15/arch/x86/coco/sev/
H A Dcore.c981 ((u64)apic_id << 32) | in vmgexit_ap_control()
1019 call.r8 = apic_id; in snp_set_vmsa()
1051 err = snp_set_vmsa(vmsa, NULL, apic_id, false); in snp_cleanup_vmsa()
1163 int apic_id, this_cpu, cpu; in shutdown_all_aps() local
1200 apic_id = cpuid_to_apicid[cpu]; in shutdown_all_aps()
1207 vmgexit_ap_control(SVM_VMGEXIT_AP_DESTROY, vmsa, apic_id); in shutdown_all_aps()
1208 snp_cleanup_vmsa(vmsa, apic_id); in shutdown_all_aps()
1313 if (arch_match_cpu_phys_id(cpu, apic_id)) in wakeup_cpu_via_vmgexit()
1392 ret = snp_set_vmsa(vmsa, caa, apic_id, true); in wakeup_cpu_via_vmgexit()
1403 snp_cleanup_vmsa(vmsa, apic_id); in wakeup_cpu_via_vmgexit()
[all …]
/linux-6.15/drivers/acpi/numa/
H A Dsrat.c190 p->apic_id, p->local_sapic_eid, in acpi_table_print_srat_entry()
217 p->apic_id, in acpi_table_print_srat_entry()
471 pr_warn("Found unsupported x2apic [0x%08x] SRAT entry\n", pa->apic_id); in acpi_numa_x2apic_affinity_init()
/linux-6.15/include/xen/interface/
H A Dplatform.h430 uint32_t apic_id; member
444 uint32_t apic_id; member
/linux-6.15/include/acpi/
H A Dactbl3.h212 u8 apic_id; member
248 u32 apic_id; member
/linux-6.15/include/hyperv/
H A Dhvhdk_mini.h249 u32 apic_id; member

12