From owner-freebsd-current@FreeBSD.ORG Mon May 31 08:35:16 2010 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 F2EF81065678 for ; Mon, 31 May 2010 08:35:16 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mail.zoral.com.ua (mx0.zoral.com.ua [91.193.166.200]) by mx1.freebsd.org (Postfix) with ESMTP id 6E48F8FC1A for ; Mon, 31 May 2010 08:35:15 +0000 (UTC) Received: from deviant.kiev.zoral.com.ua (root@deviant.kiev.zoral.com.ua [10.1.1.148]) by mail.zoral.com.ua (8.14.2/8.14.2) with ESMTP id o4V8Z3oM028748 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 31 May 2010 11:35:03 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.14.4/8.14.4) with ESMTP id o4V8Yoc6054613; Mon, 31 May 2010 11:34:50 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.14.4/8.14.4/Submit) id o4V8YosD054612; Mon, 31 May 2010 11:34:50 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Mon, 31 May 2010 11:34:50 +0300 From: Kostik Belousov To: d@delphij.net Message-ID: <20100531083450.GQ83316@deviant.kiev.zoral.com.ua> References: <4C034F5B.10806@delphij.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="mhFomgJQ1VTZ9Fr0" Content-Disposition: inline In-Reply-To: <4C034F5B.10806@delphij.net> User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: clamav-milter 0.95.2 at skuns.kiev.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=-2.7 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_20, DNS_FROM_OPENWHOIS autolearn=no version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on skuns.kiev.zoral.com.ua Cc: FreeBSD Current Subject: Re: AES NI vs BIOS settings 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: Mon, 31 May 2010 08:35:17 -0000 --mhFomgJQ1VTZ9Fr0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, May 30, 2010 at 10:55:39PM -0700, Xin LI wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA256 >=20 > Hi, >=20 > I just found that if I disable "AES NI" in BIOS setting, FreeBSD would > be able to detect it on boot with: >=20 > Features2=3D0x29ee3ff,DCA,SSE4.1,SSE4.2,POPCNT,AESNI> >=20 > However if it's set to "enabled" I got: >=20 > Features2=3D0x9ee3fd,DCA,SSE4.1,SSE4.2,POPCNT> >=20 > The CPU was Xeon L5630 and motherboard is Supermicro X8STi with BIOS > 1.00c. Should I consider this a BIOS issue with known workaround that I > consider "Disable" as "Enabled"? :) On the only machine with AESNI-capable Core i5 I have access to thanks to Sentex Communications, AESNI bit is reported as 1 and aesni instructions do work. You could try to actually use aesni and see what is broken. I failed to find a magic bit to enable/disable AESNI in the MSRs. --mhFomgJQ1VTZ9Fr0 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (FreeBSD) iEYEARECAAYFAkwDdKkACgkQC3+MBN1Mb4jsaQCgjk7FlSDrVmiEL2G1G0VS0pd7 bWcAoIyj/7Y2qIuMZfrx+6KBNfsLoBP0 =2ukd -----END PGP SIGNATURE----- --mhFomgJQ1VTZ9Fr0--