Identification of HTT cores on newer (CPUID leaf 11) Intel processors

From: Andrew Boyer <aboyer_at_averesystems.com>
Date: Wed, 14 Sep 2011 13:59:03 -0400
When FreeBSD examines the CPU topology using CPUID leaf 11 in topo_probe_0xb(), it never sets hyperthreading_cpus.  At the end of topo_probe_0x4() it sets hyperthreading_cpus = cpu_logical.

Adding that assignment to line 316 of sys/amd64/amd64/mp_machdep.c seems to do the right thing on a system with two quad-core E5620 CPUs.  The APIC IDs that appear when SMT is enabled in the BIOS get marked AP/HT.

Do you agree?

Thanks,
  Andrew

--------------------------------------------------
Andrew Boyer	aboyer_at_averesystems.com
Received on Wed Sep 14 2011 - 15:59:06 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:17 UTC