From owner-freebsd-current@FreeBSD.ORG Thu Nov 7 23:05:12 2013 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id ACCB9302; Thu, 7 Nov 2013 23:05:12 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from kib.kiev.ua (kib.kiev.ua [IPv6:2001:470:d5e7:1::1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 3BCC4251E; Thu, 7 Nov 2013 23:05:12 +0000 (UTC) Received: from tom.home (kostik@localhost [127.0.0.1]) by kib.kiev.ua (8.14.7/8.14.7) with ESMTP id rA7N52Sd081611; Fri, 8 Nov 2013 01:05:02 +0200 (EET) (envelope-from kostikbel@gmail.com) DKIM-Filter: OpenDKIM Filter v2.8.3 kib.kiev.ua rA7N52Sd081611 Received: (from kostik@localhost) by tom.home (8.14.7/8.14.7/Submit) id rA7N524l081609; Fri, 8 Nov 2013 01:05:02 +0200 (EET) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: tom.home: kostik set sender to kostikbel@gmail.com using -f Date: Fri, 8 Nov 2013 01:05:02 +0200 From: Konstantin Belousov To: John Baldwin Subject: Re: Add description for some cpuid bits Message-ID: <20131107230502.GR59496@kib.kiev.ua> References: <201311061230.05865.jhb@freebsd.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="QiyF1InLrl7iIFO/" Content-Disposition: inline In-Reply-To: <201311061230.05865.jhb@freebsd.org> User-Agent: Mutt/1.5.22 (2013-10-16) X-Spam-Status: No, score=-2.0 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_ADSP_CUSTOM_MED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED autolearn=no version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on tom.home Cc: freebsd-current@freebsd.org, Dmitry Luhtionov X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 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, 07 Nov 2013 23:05:12 -0000 --QiyF1InLrl7iIFO/ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Nov 06, 2013 at 12:30:05PM -0500, John Baldwin wrote: > On Wednesday, November 06, 2013 4:12:24 am Dmitry Luhtionov wrote: > > --- /usr/src/sys/amd64//amd64/identcpu.c.orig 2013-11-01 > > 14:43:15.000000000 +0200 > > +++ /usr/src/sys/amd64//amd64/identcpu.c 2013-11-04 12:06:06.0000000= 00 > > +0200 > > @@ -366,14 +366,14 @@ > > "\017" > > "\020LWP" /* Lightweight Profiling */ > > "\021FMA4" /* 4-operand FMA instructions */ > > - "\022" > > + "\022TCE" /* Translation Cache Extension */ > > "\023" > > "\024NodeId" /* NodeId MSR support */ > > "\025" > > "\026TBM" /* Trailing Bit Manipulation */ > > "\027Topology" /* Topology Extensions */ > > - "\030" > > - "\031" > > + "\030PCXC" /* Core performance counter extensions */ > > + "\031PNXC" /* NB performance counter extensions */ > > "\032" > > "\033" > > "\034" >=20 > It would be best to also add flags for these in specialreg.h as well. Th= e=20 > i386 identcpu.c might also need updating. There is apparently more bits defined in the BKDG for Kabini. Below is the patch which I plan to commit shortly. diff --git a/sys/amd64/amd64/identcpu.c b/sys/amd64/amd64/identcpu.c index 27ea9a6..3712fc0 100644 --- a/sys/amd64/amd64/identcpu.c +++ b/sys/amd64/amd64/identcpu.c @@ -366,18 +366,18 @@ printcpuinfo(void) "\017" "\020LWP" /* Lightweight Profiling */ "\021FMA4" /* 4-operand FMA instructions */ - "\022" + "\022TCE" /* Translation Cache Extension */ "\023" "\024NodeId" /* NodeId MSR support */ "\025" "\026TBM" /* Trailing Bit Manipulation */ "\027Topology" /* Topology Extensions */ - "\030" - "\031" + "\030PCXC" /* Core perf count */ + "\031PNXC" /* NB perf count */ "\032" - "\033" - "\034" - "\035" + "\033DBE" /* Data Breakpoint extension */ + "\034PTSC" /* Performance TSC */ + "\035PL2I" /* L2I perf count */ "\036" "\037" "\040" diff --git a/sys/i386/i386/identcpu.c b/sys/i386/i386/identcpu.c index beec9b1..1af3ac2 100644 --- a/sys/i386/i386/identcpu.c +++ b/sys/i386/i386/identcpu.c @@ -842,18 +842,18 @@ printcpuinfo(void) "\017" "\020LWP" /* Lightweight Profiling */ "\021FMA4" /* 4-operand FMA instructions */ - "\022" + "\022TCE" /* Translation Cache Extension */ "\023" "\024NodeId" /* NodeId MSR support */ "\025" "\026TBM" /* Trailing Bit Manipulation */ "\027Topology" /* Topology Extensions */ - "\030" - "\031" + "\030PCXC" /* Core perf count */ + "\031PNXC" /* NB perf count */ "\032" - "\033" - "\034" - "\035" + "\033DBE" /* Data Breakpoint extension */ + "\034PTSC" /* Performance TSC */ + "\035PL2I" /* L2I perf count */ "\036" "\037" "\040" diff --git a/sys/x86/include/specialreg.h b/sys/x86/include/specialreg.h index 4247ee2..3d20e61 100644 --- a/sys/x86/include/specialreg.h +++ b/sys/x86/include/specialreg.h @@ -201,9 +201,15 @@ #define AMDID2_WDT 0x00002000 #define AMDID2_LWP 0x00008000 #define AMDID2_FMA4 0x00010000 +#define AMDID2_TCE 0x00020000 #define AMDID2_NODE_ID 0x00080000 #define AMDID2_TBM 0x00200000 #define AMDID2_TOPOLOGY 0x00400000 +#define AMDID2_PCXC 0x00800000 +#define AMDID2_PNXC 0x01000000 +#define AMDID2_DBE 0x04000000 +#define AMDID2_PTSC 0x08000000 +#define AMDID2_PTSCEL2I 0x10000000 =20 /* * CPUID instruction 1 eax info --QiyF1InLrl7iIFO/ Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (FreeBSD) iQIcBAEBAgAGBQJSfBydAAoJEJDCuSvBvK1BzRkP/1LY0w2QPwDwMqVcqdN2oaEf iSMtwIJHt8ZuNR8lohfDwA9T5EFLCFeS1S3FWuRCrQpcB3AgdRq2SQLgJtv6TTId hz6/RPiqENtwK5A/oEEraBUaqAzO1d2V7foaB0aeDSeOSz2DabHiqwUEJs3yX24m u3yZzVEGSmQ5rgdUqgdY0nz+MFYDx5eEWDkzi6vYFqqkkiCLIyk0RMDT4qzj0TLW 0lsuNQlXi0e2G6g+V8QGSaooxcVgx+WhqoqF5JFhHimBqRD1Q6BXuF2nN3Uhp5h7 2dr7yMbgcjbIrpgXj0i6YubGzDophTiwmL7ccsJ/bWJOkvqYG+UiuWHG0EmJ6TKv XDW3SG7cCDtyUhuFvbbCxwDvueNjlX7aF3zhTiMlikUMGhxCtt/ZbteNf9215CAu GZTiyEaxzj5H9NI9duX0MtSQQQCAEMQn4cPKxNQed4jg37WlNYca+oOLOYkOepIx rQpkWyzzmq5FBHH3Xdl13aRsYYMZh8lsdiA5EFLTf//L/A93NI0Mv2Fh7ZXFtbVD h4zzyPY9XI4T9GR5t0gLAYtW/6nwgp1/PKbu9RxMlIn4ADKwF3Axhsn79S281Nl2 N9U5sdk5NYd779/pXZk5Yy3yyXVqfTWJbsRwIL3QPSOJ1tuUADrBNNqy4qLPDmeu BzpuIV4LQ3Oo7yBmOBnH =eLIS -----END PGP SIGNATURE----- --QiyF1InLrl7iIFO/--