Lines Matching +full:de +full:- +full:asserting
1 // SPDX-License-Identifier: GPL-2.0-or-later
13 * Pentium Pro and Pentium-II/Xeon MP machines.
19 * Alan Cox : By repeated request 8) - Total BogoMIPS report.
32 * Martin J. Bligh : Added support for multi-quad systems
86 #include <asm/intel-family.h>
88 #include <asm/spec-ctrl.h>
92 #include <asm/spec-ctrl.h>
164 if (!--smpboot_warm_reset_vector_count) { in smpboot_restore_warm_reset_vector()
242 * 32-bit specific. 64-bit reaches this code with the correct page in start_secondary()
273 * synchronization state to ALIVE and spin-waits for the control CPU to in start_secondary()
322 int cpu1 = c->cpu_index, cpu2 = o->cpu_index; in topology_same_node()
330 int cpu1 = c->cpu_index, cpu2 = o->cpu_index; in topology_sane()
333 "sched: CPU #%d's %s-sibling CPU #%d is not on the same node! " in topology_sane()
347 int cpu1 = c->cpu_index, cpu2 = o->cpu_index; in match_smt()
349 if (c->topo.pkg_id == o->topo.pkg_id && in match_smt()
350 c->topo.die_id == o->topo.die_id && in match_smt()
351 c->topo.amd_node_id == o->topo.amd_node_id && in match_smt()
353 if (c->topo.core_id == o->topo.core_id) in match_smt()
356 if ((c->topo.cu_id != 0xff) && in match_smt()
357 (o->topo.cu_id != 0xff) && in match_smt()
358 (c->topo.cu_id == o->topo.cu_id)) in match_smt()
362 } else if (c->topo.pkg_id == o->topo.pkg_id && in match_smt()
363 c->topo.die_id == o->topo.die_id && in match_smt()
364 c->topo.core_id == o->topo.core_id) { in match_smt()
373 if (c->topo.pkg_id != o->topo.pkg_id || c->topo.die_id != o->topo.die_id) in match_die()
377 return c->topo.amd_node_id == o->topo.amd_node_id; in match_die()
384 int cpu1 = c->cpu_index, cpu2 = o->cpu_index; in match_l2c()
404 if (c->topo.pkg_id == o->topo.pkg_id) in match_pkg()
410 * Define intel_cod_cpu[] for Intel COD (Cluster-on-Die) CPUs.
413 * match intel_cod_cpu[] has the SNC (Sub-NUMA Cluster) topology.
416 * by multiple NUMA nodes. The LLC is shared for off-package data
418 * on-package access. CPUID (the source of the information about
433 int cpu1 = c->cpu_index, cpu2 = o->cpu_index; in match_llc()
434 bool intel_snc = id && id->driver_data; in match_llc()
476 * AMD Magny-Cours, Intel Cluster-on-Die, and Intel
477 * Sub-NUMA Clustering have this.
504 * since the NUMA domains will auto-magically create the right spanning in build_sched_topology()
516 BUG_ON(i >= ARRAY_SIZE(x86_topology)-1); in build_sched_topology()
537 c->booted_cores = 1; in set_cpu_sibling_map()
569 * topology_sibling_cpumask links to be set-up. in set_cpu_sibling_map()
587 c->booted_cores++; in set_cpu_sibling_map()
594 } else if (i != cpu && !c->booted_cores) in set_cpu_sibling_map()
595 c->booted_cores = cpu_data(i).booted_cores; in set_cpu_sibling_map()
600 /* maps the cpu to the sched domain representing multi-core */
628 pr_debug("Before bogocount - setting activated=1\n"); in impress_friends()
633 * that there should be a 10ms delay between the BSP asserting INIT
634 * and de-asserting INIT, when starting a remote processor.
798 if (current_node > (-1)) in announce_cpu()
803 node_width - num_digits(node), " ", node); in announce_cpu()
811 pr_cont("%*s#%d", width - num_digits(cpu), " ", cpu); in announce_cpu()
840 * NOTE - on most systems this is a PHYSICAL apic ID, but on multiquad
843 * ->wakeup_secondary_cpu.
847 unsigned long start_ip = real_mode_header->trampoline_start; in do_boot_cpu()
851 /* If 64-bit wakeup method exists, use the 64-bit mode trampoline IP */ in do_boot_cpu()
852 if (apic->wakeup_secondary_cpu_64) in do_boot_cpu()
853 start_ip = real_mode_header->trampoline_start64; in do_boot_cpu()
855 idle->thread.sp = (unsigned long)task_pt_regs(idle); in do_boot_cpu()
860 initial_stack = idle->thread.sp; in do_boot_cpu()
893 * - Use a method from the APIC driver if one defined, with wakeup in do_boot_cpu()
894 * straight to 64-bit mode preferred over wakeup to RM. in do_boot_cpu()
896 * - Use an INIT boot APIC message in do_boot_cpu()
898 if (apic->wakeup_secondary_cpu_64) in do_boot_cpu()
899 ret = apic->wakeup_secondary_cpu_64(apicid, start_ip); in do_boot_cpu()
900 else if (apic->wakeup_secondary_cpu) in do_boot_cpu()
901 ret = apic->wakeup_secondary_cpu(apicid, start_ip); in do_boot_cpu()
913 u32 apicid = apic->cpu_present_to_apicid(cpu); in native_kick_ap()
918 pr_debug("++++++++++++++++++++=_---CPU UP %u\n", cpu); in native_kick_ap()
922 return -EINVAL; in native_kick_ap()
927 return -EINVAL; in native_kick_ap()
978 * arch_disable_smp_support() - Disables SMP support for x86 at boottime
988 * RED-PEN audit/test this more. I bet there is more state messed up here.
1152 cpu_data(sibling).booted_cores--; in remove_siblinginfo()
1173 c->topo.core_id = 0; in remove_siblinginfo()
1174 c->booted_cores = 0; in remove_siblinginfo()
1250 md->status = CPUDEAD_MWAIT_WAIT; in mwait_play_dead()
1251 md->control = CPUDEAD_MWAIT_WAIT; in mwait_play_dead()
1260 * The WBINVD is insufficient due to the spurious-wakeup in mwait_play_dead()
1270 if (READ_ONCE(md->control) == CPUDEAD_MWAIT_KEXEC_HLT) { in mwait_play_dead()
1283 WRITE_ONCE(md->status, CPUDEAD_MWAIT_KEXEC_HLT); in mwait_play_dead()
1304 if (READ_ONCE(md->status) != CPUDEAD_MWAIT_WAIT) in smp_kick_mwait_play_dead()
1308 for (i = 0; READ_ONCE(md->status) != newstate && i < 1000; i++) { in smp_kick_mwait_play_dead()
1310 WRITE_ONCE(md->control, newstate); in smp_kick_mwait_play_dead()
1314 if (READ_ONCE(md->status) != newstate) in smp_kick_mwait_play_dead()
1348 return -ENOSYS; in native_cpu_disable()