/linux-6.12.1/arch/x86/mm/ |
D | srat.c | 31 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() 60 pr_debug("SRAT: PXM %u -> APIC 0x%04x -> Node %u\n", pxm, 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() [all …]
|
/linux-6.12.1/arch/x86/kernel/cpu/ |
D | topology.c | 98 static int topo_lookup_cpuid(u32 apic_id) in topo_lookup_cpuid() argument 104 if (cpuid_to_apicid[i] == apic_id) in topo_lookup_cpuid() 110 static __init int topo_get_cpunr(u32 apic_id) in topo_get_cpunr() argument 112 int cpu = topo_lookup_cpuid(apic_id); in topo_get_cpunr() 120 static void topo_set_cpuids(unsigned int cpu, u32 apic_id, u32 acpi_id) in topo_set_cpuids() argument 123 early_per_cpu(x86_cpu_to_apicid, cpu) = apic_id; in topo_set_cpuids() 129 static __init bool check_for_real_bsp(u32 apic_id) in check_for_real_bsp() argument 161 if (apic_id == topo_info.boot_cpu_apic_id) { in check_for_real_bsp() 169 topo_info.real_bsp_apic_id = apic_id; in check_for_real_bsp() 179 pr_warn("Enumerated BSP APIC %x is not marked in APICBASE MSR\n", apic_id); in check_for_real_bsp() [all …]
|
/linux-6.12.1/drivers/acpi/ |
D | processor_core.c | 33 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() 357 int apic_id = -1; in parse_madt_ioapic_entry() local 361 return apic_id; in parse_madt_ioapic_entry() 371 get_ioapic_id(hdr, gsi_base, phys_addr, &apic_id)) in parse_madt_ioapic_entry() 377 return apic_id; in parse_madt_ioapic_entry() [all …]
|
/linux-6.12.1/arch/x86/kernel/ |
D | kvm.c | 512 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()
|
D | devicetree.c | 132 u32 apic_id; in dtb_cpu_setup() local 135 apic_id = of_get_cpu_hwid(dn, 0); in dtb_cpu_setup() 136 if (apic_id == ~0U) { in dtb_cpu_setup() 140 topology_register_apic(apic_id, CPU_ACPIID_INVALID, true); in dtb_cpu_setup() 141 set_apicid_to_node(apic_id, of_node_to_nid(dn)); in dtb_cpu_setup()
|
D | irq.c | 363 u32 apic_id; in intel_posted_msi_init() local 371 apic_id = this_cpu_read(x86_cpu_to_apicid); in intel_posted_msi_init() 372 destination = x2apic_enabled() ? apic_id : apic_id << 8; in intel_posted_msi_init()
|
/linux-6.12.1/arch/x86/hyperv/ |
D | hv_proc.c | 116 int hv_call_add_logical_proc(int node, u32 lp_index, u32 apic_id) in hv_call_add_logical_proc() argument 137 input->apic_id = apic_id; in hv_call_add_logical_proc() 146 lp_index, apic_id, status); in hv_call_add_logical_proc()
|
D | hv_vtl.c | 177 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()
|
/linux-6.12.1/arch/x86/include/asm/uv/ |
D | uv_mmrs.h | 2290 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.12.1/arch/loongarch/kernel/ |
D | acpi.c | 302 if (pa->apic_id >= CONFIG_NR_CPUS) { in acpi_numa_processor_affinity_init() 304 pxm, pa->apic_id, node); in acpi_numa_processor_affinity_init() 308 early_numa_add_cpu(pa->apic_id, node); in acpi_numa_processor_affinity_init() 310 set_cpuid_to_node(pa->apic_id, node); in acpi_numa_processor_affinity_init() 312 pr_info("SRAT: PXM %u -> CPU 0x%02x -> Node %u\n", pxm, pa->apic_id, node); in acpi_numa_processor_affinity_init()
|
/linux-6.12.1/tools/testing/selftests/kvm/x86_64/ |
D | xapic_state_test.c | 147 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()
|
D | fix_hypercall_test.c | 33 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.12.1/drivers/dma/ioat/ |
D | dca.c | 181 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()
|
/linux-6.12.1/arch/x86/include/asm/ |
D | apic.h | 179 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.12.1/arch/x86/xen/ |
D | apic.c | 60 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.12.1/arch/x86/kernel/apic/ |
D | io_apic.c | 1329 u32 apic_id = read_apic_id(); in native_restore_boot_irq_mode() local 1337 entry.destid_0_7 = apic_id & 0xFF; in native_restore_boot_irq_mode() 1338 entry.virt_destid_8_14 = apic_id >> 8; in native_restore_boot_irq_mode() 1950 u32 apic_id; in unlock_ExtINT_logic() local 1966 apic_id = read_apic_id(); in unlock_ExtINT_logic() 1971 entry1.destid_0_7 = apic_id & 0xFF; in unlock_ExtINT_logic() 1972 entry1.virt_destid_8_14 = apic_id >> 8; in unlock_ExtINT_logic() 2369 static int io_apic_get_unique_id(int ioapic, int apic_id) in io_apic_get_unique_id() argument 2383 if (apic_id >= broadcast_id) { in io_apic_get_unique_id() 2385 ioapic, apic_id, reg_00.bits.ID); in io_apic_get_unique_id() [all …]
|
D | ipi.c | 292 static int convert_apicid_to_cpu(u32 apic_id) in convert_apicid_to_cpu() argument 297 if (per_cpu(x86_cpu_to_apicid, i) == apic_id) in convert_apicid_to_cpu()
|
D | apic.c | 2365 u32 apic_id; member 2391 apic_pm_state.apic_id = apic_read(APIC_ID); in lapic_suspend() 2468 apic_write(APIC_ID, apic_pm_state.apic_id); in lapic_resume()
|
/linux-6.12.1/arch/x86/kernel/acpi/ |
D | madt_wakeup.c | 49 acpi_mp_wake_mailbox->apic_id = apicid; in acpi_mp_cpu_die() 200 acpi_mp_wake_mailbox->apic_id = apicid; in acpi_wakeup_cpu()
|
D | boot.c | 177 u32 apic_id; in acpi_parse_x2apic() local 189 apic_id = processor->local_apic_id; in acpi_parse_x2apic() 193 if (apic_id == 0xffffffff) in acpi_parse_x2apic() 205 if (has_lapic_cpus && apic_id < 0xff) in acpi_parse_x2apic() 215 if (!apic_id_valid(apic_id)) { in acpi_parse_x2apic() 221 topology_register_apic(apic_id, processor->uid, enabled); in acpi_parse_x2apic()
|
/linux-6.12.1/drivers/acpi/numa/ |
D | srat.c | 93 p->apic_id, p->local_sapic_eid, in acpi_table_print_srat_entry() 122 p->apic_id, in acpi_table_print_srat_entry() 381 pr_warn("Found unsupported x2apic [0x%08x] SRAT entry\n", pa->apic_id); in acpi_numa_x2apic_affinity_init()
|
/linux-6.12.1/arch/x86/coco/sev/ |
D | core.c | 1013 static int snp_set_vmsa(void *va, void *caa, int apic_id, bool make_vmsa) in snp_set_vmsa() argument 1030 call.r8 = apic_id; in snp_set_vmsa() 1089 static void snp_cleanup_vmsa(struct sev_es_save_area *vmsa, int apic_id) in snp_cleanup_vmsa() argument 1093 err = snp_set_vmsa(vmsa, NULL, apic_id, false); in snp_cleanup_vmsa() 1100 static int wakeup_cpu_via_vmgexit(u32 apic_id, unsigned long start_ip) in wakeup_cpu_via_vmgexit() argument 1132 if (arch_match_cpu_phys_id(cpu, apic_id)) in wakeup_cpu_via_vmgexit() 1205 ret = snp_set_vmsa(vmsa, caa, apic_id, true); in wakeup_cpu_via_vmgexit() 1222 ((u64)apic_id << 32) | in wakeup_cpu_via_vmgexit() 1242 snp_cleanup_vmsa(vmsa, apic_id); in wakeup_cpu_via_vmgexit() 1248 snp_cleanup_vmsa(cur_vmsa, apic_id); in wakeup_cpu_via_vmgexit()
|
/linux-6.12.1/include/xen/interface/ |
D | platform.h | 430 uint32_t apic_id; member 444 uint32_t apic_id; member
|
/linux-6.12.1/include/acpi/ |
D | actbl3.h | 212 u8 apic_id; member 248 u32 apic_id; member
|
/linux-6.12.1/include/asm-generic/ |
D | hyperv-tlfs.h | 533 u32 apic_id; member
|