Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Sep 2011 13:59:03 -0400
From:      Andrew Boyer <aboyer@averesystems.com>
To:        Andriy Gapon <avg@FreeBSD.org>
Cc:        freebsd-current@freebsd.org
Subject:   Identification of HTT cores on newer (CPUID leaf 11) Intel processors
Message-ID:  <2C3C4570-C5F9-42F5-AA81-900151590DB8@averesystems.com>

next in thread | raw e-mail | index | archive | help
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 =3D 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@averesystems.com







Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2C3C4570-C5F9-42F5-AA81-900151590DB8>