Home
last modified time | relevance | path

Searched refs:apicid (Results 1 – 25 of 35) sorted by relevance

12

/linux/arch/x86/kernel/cpu/
H A Dtopology.h26 static inline u32 topo_shift_apicid(u32 apicid, enum x86_topology_domains dom) in topo_shift_apicid() argument
29 return apicid; in topo_shift_apicid()
30 return apicid >> x86_topo_system.dom_shifts[dom - 1]; in topo_shift_apicid()
33 static inline u32 topo_relative_domain_id(u32 apicid, enum x86_topology_domains dom) in topo_relative_domain_id() argument
36 apicid >>= x86_topo_system.dom_shifts[dom - 1]; in topo_relative_domain_id()
37 return apicid & (x86_topo_system.dom_size[dom] - 1); in topo_relative_domain_id()
57 unsigned int topology_unit_count(u32 apicid, enum x86_topology_domains which_units,
60 static inline unsigned int topology_unit_count(u32 apicid, enum x86_topology_domains which_units, in topology_unit_count() argument
H A Dcacheinfo.c297 static unsigned int get_cache_id(u32 apicid, const struct _cpuid4_info *id4) in get_cache_id() argument
305 return apicid >> index_msb; in get_cache_id()
325 c->topo.llc_id = c->topo.apicid >> 3; in cacheinfo_amd_init_llc_id()
335 c->topo.llc_id = get_cache_id(c->topo.apicid, &id4); in cacheinfo_amd_init_llc_id()
348 c->topo.llc_id = c->topo.apicid >> 3; in cacheinfo_hygon_init_llc_id()
420 return c->topo.apicid & ~((1 << index_msb) - 1); in calc_cache_topo_id()
513 unsigned int apicid, nshared, first, last; in __cache_amd_cpumap_setup() local
516 apicid = cpu_data(cpu).topo.apicid; in __cache_amd_cpumap_setup()
517 first = apicid - (apicid % nshared); in __cache_amd_cpumap_setup()
525 apicid = cpu_data(i).topo.apicid; in __cache_amd_cpumap_setup()
[all …]
H A Dhygon.c28 static int nearby_node(int apicid) in nearby_node() argument
32 for (i = apicid - 1; i >= 0; i--) { in nearby_node()
37 for (i = apicid + 1; i < MAX_LOCAL_APIC; i++) { in nearby_node()
51 unsigned int apicid = c->topo.apicid; in srat_detect_node() local
90 node = nearby_node(apicid); in srat_detect_node()
H A Dtopology_amd.c149 unsigned int apicid = tscan->c->topo.initial_apicid; in legacy_set_llc() local
153 tscan->c->topo.llc_id = apicid >> tscan->dom_shifts[TOPO_CORE_DOMAIN]; in legacy_set_llc()
H A Damd.c284 static int nearby_node(int apicid) in nearby_node() argument
288 for (i = apicid - 1; i >= 0; i--) { in nearby_node()
293 for (i = apicid + 1; i < MAX_LOCAL_APIC; i++) { in nearby_node()
307 unsigned apicid = c->topo.apicid; in srat_detect_node() local
347 node = nearby_node(apicid); in srat_detect_node()
/linux/arch/x86/kernel/apic/
H A Dx2apic_cluster.c12 #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()
H A Dx2apic_phys.c13 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()
/linux/arch/x86/include/asm/
H A Dapicdef.h172 #define APIC_CLUSTER(apicid) ((apicid) & XAPIC_DEST_CLUSTER_MASK) argument
173 #define APIC_CLUSTERID(apicid) (APIC_CLUSTER(apicid) >> XAPIC_DEST_CPUS_SHIFT) argument
174 #define APIC_CPUID(apicid) ((apicid) & XAPIC_DEST_CPUS_MASK) argument
H A Dmpspec.h66 static inline void reset_phys_cpu_present_map(u32 apicid) in reset_phys_cpu_present_map() argument
69 set_bit(apicid, phys_cpu_present_map); in reset_phys_cpu_present_map()
H A Dapic.h246 extern void __init x2apic_set_max_apicid(u32 apicid);
318 int (*wakeup_secondary_cpu)(u32 apicid, unsigned long start_eip, unsigned int cpu);
320 int (*wakeup_secondary_cpu_64)(u32 apicid, unsigned long start_eip, unsigned int cpu);
340 int (*wakeup_secondary_cpu)(u32 apicid, unsigned long start_eip, unsigned int cpu);
341 int (*wakeup_secondary_cpu_64)(u32 apicid, unsigned long start_eip, unsigned int cpu);
596 typedef int (*wakeup_cpu_handler)(int apicid, unsigned long start_eip);
H A Dmpspec_def.h70 unsigned char apicid; /* Local APIC number */ member
108 unsigned char apicid; member
H A Dtopology.h183 int topology_get_logical_id(u32 apicid, enum x86_topology_domains at_level);
185 static inline int topology_get_logical_id(u32 apicid, enum x86_topology_domains at_level) in topology_get_logical_id() argument
/linux/arch/x86/kernel/
H A Dsmpboot.c845 static void announce_cpu(int cpu, int apicid) in announce_cpu() argument
878 node, cpu, apicid); in announce_cpu()
909 static int do_boot_cpu(u32 apicid, unsigned int cpu, struct task_struct *idle) in do_boot_cpu() argument
933 announce_cpu(cpu, apicid); in do_boot_cpu()
963 ret = apic->wakeup_secondary_cpu_64(apicid, start_ip, cpu); in do_boot_cpu()
965 ret = apic->wakeup_secondary_cpu(apicid, start_ip, cpu); in do_boot_cpu()
967 ret = wakeup_secondary_cpu_via_init(apicid, start_ip, cpu); in do_boot_cpu()
977 u32 apicid = apic->cpu_present_to_apicid(cpu); in native_kick_ap() local
984 if (apicid == BAD_APICID || !apic_id_valid(apicid)) { in native_kick_ap()
985 pr_err("CPU %u has invalid APIC ID %x. Aborting bringup\n", cpu, apicid); in native_kick_ap()
[all …]
H A Dmpparse.c55 topology_register_apic(m->apicid, CPU_ACPIID_INVALID, m->cpuflag & CPU_ENABLED); in MP_processor_info()
62 pr_info("Processor #%d%s\n", m->apicid, bootup_cpu); in MP_processor_info()
112 mp_register_ioapic(m->apicid, m->apicaddr, gsi_top, &cfg); in MP_ioapic_info()
356 ioapic.apicid = 2; in construct_ioapic_table()
391 processor.apicid = i; in construct_default_ISA_mptable()
H A Dkvm.c1059 u32 apicid; in kvm_kick_cpu() local
1061 apicid = per_cpu(x86_cpu_to_apicid, cpu); in kvm_kick_cpu()
1062 kvm_hypercall2(KVM_HC_KICK_CPU, flags, apicid); in kvm_kick_cpu()
/linux/arch/x86/platform/uv/
H A Duv_time.c73 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/arch/x86/hyperv/
H A Dhv_vtl.c220 static int hv_vtl_wakeup_secondary_cpu(u32 apicid, unsigned long start_eip, unsigned int cpu) in hv_vtl_wakeup_secondary_cpu() argument
224 pr_debug("Bringing up CPU with APIC ID %d in VTL2...\n", apicid); in hv_vtl_wakeup_secondary_cpu()
225 vp_index = hv_apicid_to_vp_index(apicid); in hv_vtl_wakeup_secondary_cpu()
228 pr_err("Couldn't find CPU with APIC ID %d\n", apicid); in hv_vtl_wakeup_secondary_cpu()
232 pr_err("Invalid CPU id %d for APIC ID %d\n", vp_index, apicid); in hv_vtl_wakeup_secondary_cpu()
/linux/arch/x86/kvm/
H A Dtrace.h642 TP_PROTO(__u32 apicid, __u16 dm, __u16 tm, __u8 vec),
643 TP_ARGS(apicid, dm, tm, vec),
646 __field( __u32, apicid )
653 __entry->apicid = apicid;
660 __entry->apicid, __entry->vec,
670 __field( __u32, apicid )
675 __entry->apicid = apic->vcpu->vcpu_id;
679 TP_printk("apicid %x vector %d", __entry->apicid, __entry->vector)
687 __field( __u32, apicid )
692 __entry->apicid = apic->vcpu->vcpu_id;
[all …]
/linux/arch/x86/mm/
H A Dnuma.c53 u32 apicid = early_per_cpu(x86_cpu_to_apicid, cpu); in numa_cpu_node() local
55 if (apicid != BAD_APICID) in numa_cpu_node()
56 return __apicid_to_node[apicid]; in numa_cpu_node()
/linux/drivers/xen/
H A Dmcelog.c237 m.apicid = mc_global->mc_apicid; in convert_log()
240 if (g_physinfo[i].mc_apicid == m.apicid) in convert_log()
243 pr_warn("Failed to match cpu with apicid %d\n", m.apicid); in convert_log()
/linux/arch/x86/xen/
H A Dsmp_pv.c151 u32 apicid = 0; in xen_pv_smp_config() local
154 topology_register_boot_apic(apicid); in xen_pv_smp_config()
157 topology_register_apic(apicid++, CPU_ACPIID_INVALID, true); in xen_pv_smp_config()
H A Dapic.c108 return cpu_data(cpu).topo.apicid; in xen_cpu_present_to_apicid()
/linux/drivers/misc/sgi-gru/
H A Dgrukservices.h62 void *p, unsigned int bytes, int nasid, int vector, int apicid);
/linux/drivers/platform/x86/amd/hfi/
H A Dhfi.c130 if (info->topo.apicid == target_apicid) { in find_cpu_index_by_apicid()
132 info->topo.apicid, cpu_index); in find_cpu_index_by_apicid()
/linux/arch/x86/include/asm/uv/
H A Duv_hub.h551 static inline int uv_apicid_to_pnode(int apicid) in uv_apicid_to_pnode() argument
553 int pnode = apicid >> uv_hub_info->apic_pnode_shift; in uv_apicid_to_pnode()

12