/linux-6.6.21/arch/x86/kernel/apic/ |
D | apic_numachip.c | 26 static void (*numachip_apic_icr_write)(int apicid, unsigned int val) __read_mostly; 64 static void numachip1_apic_icr_write(int apicid, unsigned int val) in numachip1_apic_icr_write() argument 66 write_lcsr(CSR_G3_EXT_IRQ_GEN, (apicid << 16) | val); in numachip1_apic_icr_write() 69 static void numachip2_apic_icr_write(int apicid, unsigned int val) in numachip2_apic_icr_write() argument 71 numachip2_write32_lcsr(NUMACHIP2_APIC_ICR, (apicid << 12) | val); in numachip2_apic_icr_write() 85 int local_apicid, apicid = per_cpu(x86_cpu_to_apicid, cpu); in numachip_send_IPI_one() local 92 if (!((apicid ^ local_apicid) >> NUMACHIP_LAPIC_BITS)) { in numachip_send_IPI_one() 96 __default_send_IPI_dest_field(apicid, vector, in numachip_send_IPI_one() 105 numachip_apic_icr_write(apicid, dmode | vector); in numachip_send_IPI_one()
|
D | x2apic_cluster.c | 12 #define apic_cluster(apicid) ((apicid) >> 4) argument 111 u32 apicid = apic->cpu_present_to_apicid(cpu_i); in prefill_clustermask() local 113 if (apicid == BAD_APICID || cpu_i == cpu || apic_cluster(apicid) != cluster) in prefill_clustermask() 147 u32 apicid = apic->cpu_present_to_apicid(cpu_i); in alloc_clustermask() local 149 if (apicid != BAD_APICID && apic_cluster(apicid) == cluster) { in alloc_clustermask()
|
D | x2apic_phys.c | 13 void __init x2apic_set_max_apicid(u32 apicid) in x2apic_set_max_apicid() argument 15 x2apic_max_apicid = apicid; in x2apic_set_max_apicid() 17 apic->max_apic_id = apicid; in x2apic_set_max_apicid() 110 void __x2apic_send_IPI_dest(unsigned int apicid, int vector, unsigned int dest) in __x2apic_send_IPI_dest() argument 113 native_x2apic_icr_write(cfg, apicid); in __x2apic_send_IPI_dest()
|
D | apic.c | 1768 int apicid = native_apic_msr_read(APIC_ID); in setup_nox2apic() local 1770 if (apicid >= 255) { in setup_nox2apic() 1772 apicid); in setup_nox2apic() 2331 static void cpu_mark_primary_thread(unsigned int cpu, unsigned int apicid) in cpu_mark_primary_thread() argument 2336 if (smp_num_siblings == 1 || !(apicid & mask)) in cpu_mark_primary_thread() 2364 static inline void cpu_mark_primary_thread(unsigned int cpu, unsigned int apicid) { } in cpu_mark_primary_thread() argument 2371 static int allocate_logical_cpuid(int apicid) in allocate_logical_cpuid() argument 2380 if (cpuid_to_apicid[i] == apicid) in allocate_logical_cpuid() 2388 nr_cpu_ids, nr_logical_cpuids, apicid); in allocate_logical_cpuid() 2392 cpuid_to_apicid[nr_logical_cpuids] = apicid; in allocate_logical_cpuid() [all …]
|
D | ipi.c | 297 int apicid, cpuid; in safe_smp_processor_id() local 302 apicid = read_apic_id(); in safe_smp_processor_id() 303 if (apicid == BAD_APICID) in safe_smp_processor_id() 306 cpuid = convert_apicid_to_cpu(apicid); in safe_smp_processor_id()
|
D | apic_common.c | 21 bool default_check_apicid_used(physid_mask_t *map, int apicid) in default_check_apicid_used() argument 23 return physid_isset(apicid, *map); in default_check_apicid_used()
|
D | x2apic_uv_x.c | 730 unsigned long apicid = per_cpu(x86_cpu_to_apicid, cpu); in uv_send_IPI_one() local 731 int pnode = uv_apicid_to_pnode(apicid); in uv_send_IPI_one() 740 (apicid << UVH_IPI_INT_APIC_ID_SHFT) | in uv_send_IPI_one() 1536 int i, lnid, apicid; in build_socket_tables() local 1587 for (apicid = 0; apicid < ARRAY_SIZE(__apicid_to_node); apicid++) { in build_socket_tables() 1588 int nid = __apicid_to_node[apicid]; in build_socket_tables() 1595 sockid = apicid >> uv_cpuid.socketid_shift; in build_socket_tables() 1605 apicid, in build_socket_tables() 1809 int apicid = per_cpu(x86_cpu_to_apicid, cpu); in uv_system_init_hub() local 1813 pnode = uv_apicid_to_pnode(apicid); in uv_system_init_hub()
|
D | local.h | 17 void __x2apic_send_IPI_dest(unsigned int apicid, int vector, unsigned int dest);
|
/linux-6.6.21/arch/x86/kernel/cpu/ |
D | hygon.c | 34 static int nearby_node(int apicid) in nearby_node() argument 38 for (i = apicid - 1; i >= 0; i--) { in nearby_node() 43 for (i = apicid + 1; i < MAX_LOCAL_APIC; i++) { in nearby_node() 95 c->phys_proc_id = c->apicid >> APICID_SOCKET_ID_BIT; in hygon_get_topology() 135 unsigned int apicid = c->apicid; in srat_detect_node() local 174 node = nearby_node(apicid); in srat_detect_node() 308 c->apicid = read_apic_id(); in init_hygon()
|
D | cacheinfo.c | 681 per_cpu(cpu_llc_id, cpu) = c->apicid >> 3; in cacheinfo_amd_init_llc_id() 697 per_cpu(cpu_llc_id, cpu) = c->apicid >> bits; in cacheinfo_amd_init_llc_id() 715 per_cpu(cpu_llc_id, cpu) = c->apicid >> 3; in cacheinfo_hygon_init_llc_id() 779 l2_id = c->apicid & ~((1 << index_msb) - 1); in init_intel_cacheinfo() 785 l3_id = c->apicid & ~((1 << index_msb) - 1); in init_intel_cacheinfo() 915 unsigned int apicid, nshared, first, last; in __cache_amd_cpumap_setup() local 918 apicid = cpu_data(cpu).apicid; in __cache_amd_cpumap_setup() 919 first = apicid - (apicid % nshared); in __cache_amd_cpumap_setup() 927 apicid = cpu_data(i).apicid; in __cache_amd_cpumap_setup() 928 if ((apicid < first) || (apicid > last)) in __cache_amd_cpumap_setup() [all …]
|
D | amd.c | 366 static int nearby_node(int apicid) in nearby_node() argument 370 for (i = apicid - 1; i >= 0; i--) { in nearby_node() 375 for (i = apicid + 1; i < MAX_LOCAL_APIC; i++) { in nearby_node() 484 unsigned apicid = c->apicid; in srat_detect_node() local 524 node = nearby_node(apicid); in srat_detect_node() 1063 c->apicid = read_apic_id(); in init_amd()
|
/linux-6.6.21/arch/x86/include/asm/ |
D | apic.h | 229 extern void __init x2apic_set_max_apicid(u32 apicid); 295 bool (*check_apicid_used)(physid_mask_t *map, int apicid); 305 int (*wakeup_secondary_cpu)(int apicid, unsigned long start_eip); 307 int (*wakeup_secondary_cpu_64)(int apicid, unsigned long start_eip); 325 int (*wakeup_secondary_cpu)(int apicid, unsigned long start_eip); 326 int (*wakeup_secondary_cpu_64)(int apicid, unsigned long start_eip); 528 typedef int (*wakeup_cpu_handler)(int apicid, unsigned long start_eip); 536 extern int default_apic_id_valid(u32 apicid); 541 extern bool default_check_apicid_used(physid_mask_t *map, int apicid);
|
D | numa.h | 31 static inline void set_apicid_to_node(int apicid, s16 node) in set_apicid_to_node() argument 33 __apicid_to_node[apicid] = node; in set_apicid_to_node() 39 static inline void set_apicid_to_node(int apicid, s16 node) in set_apicid_to_node() argument
|
D | apicdef.h | 163 #define APIC_CLUSTER(apicid) ((apicid) & XAPIC_DEST_CLUSTER_MASK) argument 164 #define APIC_CLUSTERID(apicid) (APIC_CLUSTER(apicid) >> XAPIC_DEST_CPUS_SHIFT) argument 165 #define APIC_CPUID(apicid) ((apicid) & XAPIC_DEST_CPUS_MASK) argument
|
D | mpspec_def.h | 70 unsigned char apicid; /* Local APIC number */ member 108 unsigned char apicid; member
|
D | topology.h | 141 int topology_update_package_map(unsigned int apicid, unsigned int cpu); 159 topology_update_package_map(unsigned int apicid, unsigned int cpu) { return 0; } in topology_update_package_map() argument
|
/linux-6.6.21/include/trace/events/ |
D | mce.h | 31 __field( u32, apicid ) 51 __entry->apicid = m->apicid; 69 __entry->apicid)
|
/linux-6.6.21/arch/x86/platform/uv/ |
D | uv_time.c | 73 unsigned long apicid, val; in uv_rtc_send_IPI() local 76 apicid = cpu_physical_id(cpu); in uv_rtc_send_IPI() 77 pnode = uv_apicid_to_pnode(apicid); in uv_rtc_send_IPI() 79 (apicid << UVH_IPI_INT_APIC_ID_SHFT) | in uv_rtc_send_IPI() 96 unsigned long apicid = cpu_physical_id(cpu); in uv_setup_intr() local 107 ((u64)apicid << UVH_RTC1_INT_CONFIG_APIC_ID_SHFT); in uv_setup_intr()
|
/linux-6.6.21/arch/x86/hyperv/ |
D | hv_vtl.c | 199 static int hv_vtl_wakeup_secondary_cpu(int apicid, unsigned long start_eip) in hv_vtl_wakeup_secondary_cpu() argument 203 pr_debug("Bringing up CPU with APIC ID %d in VTL2...\n", apicid); in hv_vtl_wakeup_secondary_cpu() 204 vp_id = hv_vtl_apicid_to_vp_id(apicid); in hv_vtl_wakeup_secondary_cpu() 207 pr_err("Couldn't find CPU with APIC ID %d\n", apicid); in hv_vtl_wakeup_secondary_cpu() 211 pr_err("Invalid CPU id %d for APIC ID %d\n", vp_id, apicid); in hv_vtl_wakeup_secondary_cpu()
|
/linux-6.6.21/arch/x86/kernel/ |
D | smpboot.c | 921 static void announce_cpu(int cpu, int apicid) in announce_cpu() argument 954 node, cpu, apicid); in announce_cpu() 985 static int do_boot_cpu(int apicid, int cpu, struct task_struct *idle) in do_boot_cpu() argument 1009 announce_cpu(cpu, apicid); in do_boot_cpu() 1039 ret = apic->wakeup_secondary_cpu_64(apicid, start_ip); in do_boot_cpu() 1041 ret = apic->wakeup_secondary_cpu(apicid, start_ip); in do_boot_cpu() 1043 ret = wakeup_secondary_cpu_via_init(apicid, start_ip); in do_boot_cpu() 1053 int apicid = apic->cpu_present_to_apicid(cpu); in native_kick_ap() local 1060 if (apicid == BAD_APICID || !physid_isset(apicid, phys_cpu_present_map) || in native_kick_ap() 1061 !apic_id_valid(apicid)) { in native_kick_ap() [all …]
|
D | mpparse.c | 61 pr_info("Processor #%d%s\n", m->apicid, bootup_cpu); in MP_processor_info() 62 generic_processor_info(m->apicid); in MP_processor_info() 111 mp_register_ioapic(m->apicid, m->apicaddr, gsi_top, &cfg); in MP_ioapic_info() 355 ioapic.apicid = 2; in construct_ioapic_table() 390 processor.apicid = i; in construct_default_ISA_mptable()
|
/linux-6.6.21/arch/x86/kvm/ |
D | trace.h | 540 TP_PROTO(__u32 apicid, __u16 dm, __u16 tm, __u8 vec), 541 TP_ARGS(apicid, dm, tm, vec), 544 __field( __u32, apicid ) 551 __entry->apicid = apicid; 558 __entry->apicid, __entry->vec, 568 __field( __u32, apicid ) 573 __entry->apicid = apic->vcpu->vcpu_id; 577 TP_printk("apicid %x vector %d", __entry->apicid, __entry->vector) 585 __field( __u32, apicid ) 590 __entry->apicid = apic->vcpu->vcpu_id; [all …]
|
/linux-6.6.21/drivers/xen/ |
D | mcelog.c | 238 m.apicid = mc_global->mc_apicid; in convert_log() 241 if (g_physinfo[i].mc_apicid == m.apicid) in convert_log() 244 pr_warn("Failed to match cpu with apicid %d\n", m.apicid); in convert_log()
|
/linux-6.6.21/drivers/misc/sgi-gru/ |
D | grukservices.h | 62 void *p, unsigned int bytes, int nasid, int vector, int apicid);
|
/linux-6.6.21/arch/x86/include/uapi/asm/ |
D | mce.h | 32 __u32 apicid; /* CPU initial APIC ID */ member
|