From owner-freebsd-current@FreeBSD.ORG Wed Sep 14 17:59:06 2011 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 41608106566B; Wed, 14 Sep 2011 17:59:06 +0000 (UTC) (envelope-from aboyer@averesystems.com) Received: from zimbra.averesystems.com (75-149-8-245-Pennsylvania.hfc.comcastbusiness.net [75.149.8.245]) by mx1.freebsd.org (Postfix) with ESMTP id 13DB38FC14; Wed, 14 Sep 2011 17:59:05 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by zimbra.averesystems.com (Postfix) with ESMTP id 16F698BC023; Wed, 14 Sep 2011 14:01:43 -0400 (EDT) X-Virus-Scanned: amavisd-new at averesystems.com Received: from zimbra.averesystems.com ([127.0.0.1]) by localhost (zimbra.averesystems.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id p7PnDInFPL8g; Wed, 14 Sep 2011 14:01:41 -0400 (EDT) Received: from riven.arriad.com (fw.arriad.com [10.0.0.16]) by zimbra.averesystems.com (Postfix) with ESMTPSA id 3D8668BC003; Wed, 14 Sep 2011 14:01:41 -0400 (EDT) From: Andrew Boyer Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Date: Wed, 14 Sep 2011 13:59:03 -0400 Message-Id: <2C3C4570-C5F9-42F5-AA81-900151590DB8@averesystems.com> To: Andriy Gapon Mime-Version: 1.0 (Apple Message framework v1084) X-Mailer: Apple Mail (2.1084) Cc: freebsd-current@freebsd.org Subject: Identification of HTT cores on newer (CPUID leaf 11) Intel processors X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Sep 2011 17:59:06 -0000 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