From owner-freebsd-current@FreeBSD.ORG Thu Jan 8 16:51:24 2015 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 30CE07C2 for ; Thu, 8 Jan 2015 16:51:24 +0000 (UTC) Received: from mail.ignoranthack.me (ignoranthack.me [199.102.79.106]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 0A9A18F4 for ; Thu, 8 Jan 2015 16:51:23 +0000 (UTC) Received: from [10.12.76.76] (llnw-corp-src.phx2.llnw.com [69.164.56.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: sbruno@ignoranthack.me) by mail.ignoranthack.me (Postfix) with ESMTPSA id 792D8192A3B for ; Thu, 8 Jan 2015 16:51:22 +0000 (UTC) Message-ID: <54AEB588.7010109@ignoranthack.me> Date: Thu, 08 Jan 2015 09:51:20 -0700 From: Sean Bruno Reply-To: sbruno@freebsd.org User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 MIME-Version: 1.0 To: freebsd-current@freebsd.org Subject: Re: Haswell CPU Feature References: <54AB306F.2070509@ignoranthack.me> <54AB394E.5040601@ignoranthack.me> <54AB49C2.9020005@ignoranthack.me> <54ABF5A0.7020709@FreeBSD.org> In-Reply-To: <54ABF5A0.7020709@FreeBSD.org> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.18-1 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: Thu, 08 Jan 2015 16:51:24 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 On 01/06/15 07:48, John Baldwin wrote: > On 1/6/15 12:44 AM, Jia-Shiun Li wrote: >> On Tue, Jan 6, 2015 at 1:23 PM, Neel Natu >> wrote: >> >>> Hi Sean, >>> >>> On Mon, Jan 5, 2015 at 6:34 PM, Sean Bruno >>> wrote: >>>> I'm thinking something like this: >>>> >>>> Index: sys/x86/x86/identcpu.c >>>> =================================================================== >>>> >>>> - - --- sys/x86/x86/identcpu.c (revision 276729) >>>> +++ sys/x86/x86/identcpu.c (working copy) @@ -781,7 >>>> +781,7 @@ "\011TM2" /* Thermal Monitor 2 */ "\012SSSE3" >>>> /* SSSE3 */ "\013CNXT-ID" /* L1 context ID >>> available */ >>>> - - "\014" + >>>> "\014SDBG" /* IA32_DEBUG_INTERFACE >>> debug*/ >>>> "\015FMA" /* Fused Multiply Add */ "\016CX16" /* >>>> CMPXCHG16B >>> Instruction */ >>>> "\017xTPR" /* Send Task Priority >>> Messages*/ >>>> >>>> >>> >>> Looks good. >>> >> >> Maybe also this for completeness? >> >> # svnlite diff Index: sys/x86/include/specialreg.h >> =================================================================== >> >> - --- sys/x86/include/specialreg.h (revision 276737) >> +++ sys/x86/include/specialreg.h (working copy) @@ -154,6 >> +154,7 @@ #define CPUID2_TM2 0x00000100 #define >> CPUID2_SSSE3 0x00000200 #define CPUID2_CNXTID >> 0x00000400 +#define CPUID2_SDBG 0x00000800 #define >> CPUID2_FMA 0x00001000 #define CPUID2_CX16 >> 0x00002000 #define CPUID2_XTPR 0x00004000 > > Yes, please include both. SDBG matches the label in the Intel SDM, > so that's the preferred name. > Thanks folks, I've committed all of this to head after a quick download and read of the SDM. sean -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQF8BAEBCgBmBQJUrrWGXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRCQUFENDYzMkU3MTIxREU4RDIwOTk3REQx MjAxRUZDQTFFNzI3RTY0AAoJEBIB78oecn5kvBEH/0XgaqmdXENMYYnq18nBdSrt lEs8qJuZXwvJPJbKxYLXrL6UFp4Yprw+Z4I6aeJp0zXmQP3Kv6yT+yd/ATYt7E5t rf6ytd/qStLaq2FZu4rNQdePVWyMA4qXT0dINMChA0SishDef80WSY2J8LA7sExV EyuD+nBmpr8/oB3UImAbihK2/YGcdi7FEjJe1hWtzcBAp655A5I5fakxDwsQz4iE kqKaCMT50ib9D4G4JicWx1L72hcOAPWpvj9oOplHzp89ZtkuLSrWeKfKX4GriWEY gg6jcKSds6TYCs/3wuMM63YaimJ1wZbpGhvb09at1DPFT8CamqhMspAe70yr5a8= =KAfi -----END PGP SIGNATURE-----