Lines Matching +full:multi +full:- +full:socket

1 // SPDX-License-Identifier: GPL-2.0+
15 #include <asm/spec-ctrl.h>
26 * nodes_per_socket: Stores the number of nodes per socket.
40 for (i = apicid - 1; i >= 0; i--) { in nearby_node()
62 * (1) Hygon multi-node processors
71 /* get information required for multi-node processors */ in hygon_get_topology()
80 c->cpu_core_id = ebx & 0xff; in hygon_get_topology()
83 c->x86_max_cores /= smp_num_siblings; in hygon_get_topology()
91 c->x86_coreid_bits = get_count_order(c->x86_max_cores); in hygon_get_topology()
93 /* Socket ID is ApicId[6] for these processors. */ in hygon_get_topology()
94 c->phys_proc_id = c->apicid >> APICID_SOCKET_ID_BIT; in hygon_get_topology()
120 bits = c->x86_coreid_bits; in hygon_detect_cmp()
121 /* Low order bits define the core id (index of core in socket) */ in hygon_detect_cmp()
122 c->cpu_core_id = c->initial_apicid & ((1 << bits)-1); in hygon_detect_cmp()
123 /* Convert the initial APIC ID into the socket ID */ in hygon_detect_cmp()
124 c->phys_proc_id = c->initial_apicid >> bits; in hygon_detect_cmp()
125 /* use socket ID also for last level cache */ in hygon_detect_cmp()
126 per_cpu(cpu_llc_id, cpu) = c->phys_proc_id; in hygon_detect_cmp()
134 unsigned int apicid = c->apicid; in srat_detect_node()
141 * On multi-fabric platform (e.g. Numascale NumaChip) a in srat_detect_node()
142 * platform-specific handler needs to be called to fixup some in srat_detect_node()
152 * - The CPU is missing memory and no node was created. In in srat_detect_node()
155 * - The APIC IDs differ from the HyperTransport node IDs. in srat_detect_node()
167 int ht_nodeid = c->initial_apicid; in srat_detect_node()
184 /* Multi core CPU? */ in early_init_hygon_mc()
185 if (c->extended_cpuid_level < 0x80000008) in early_init_hygon_mc()
190 c->x86_max_cores = (ecx & 0xff) + 1; in early_init_hygon_mc()
197 while ((1 << bits) < c->x86_max_cores) in early_init_hygon_mc()
201 c->x86_coreid_bits = bits; in early_init_hygon_mc()
269 rdmsr_safe(MSR_AMD64_PATCH_LEVEL, &c->microcode, &dummy); in early_init_hygon()
272 * c->x86_power is 8000_0007 edx. Bit 8 is TSC runs at constant rate in early_init_hygon()
273 * with P/T states and does not stop in deep C-states in early_init_hygon()
275 if (c->x86_power & (1 << 8)) { in early_init_hygon()
281 if (c->x86_power & BIT(12)) in early_init_hygon()
290 * ApicID can always be treated as an 8-bit value for Hygon APIC So, we in early_init_hygon()
320 c->apicid = hard_smp_processor_id(); in init_hygon()
362 if (c->extended_cpuid_level < 0x80000006) in cpu_detect_tlb_hygon()