Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 31 May 2010 11:34:50 +0300
From:      Kostik Belousov <kostikbel@gmail.com>
To:        d@delphij.net
Cc:        FreeBSD Current <freebsd-current@freebsd.org>
Subject:   Re: AES NI vs BIOS settings
Message-ID:  <20100531083450.GQ83316@deviant.kiev.zoral.com.ua>
In-Reply-To: <4C034F5B.10806@delphij.net>
References:  <4C034F5B.10806@delphij.net>

index | next in thread | previous in thread | raw e-mail

[-- Attachment #1 --]
On Sun, May 30, 2010 at 10:55:39PM -0700, Xin LI wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA256
> 
> Hi,
> 
> I just found that if I disable "AES NI" in BIOS setting, FreeBSD would
> be able to detect it on boot with:
> 
> Features2=0x29ee3ff<SSE3,PCLMULQDQ,DTES64,MON,DS_CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,<b17>,DCA,SSE4.1,SSE4.2,POPCNT,AESNI>
> 
> However if it's set to "enabled" I got:
> 
> Features2=0x9ee3fd<SSE3,DTES64,MON,DS_CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,<b17>,DCA,SSE4.1,SSE4.2,POPCNT>
> 
> 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.

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (FreeBSD)

iEYEARECAAYFAkwDdKkACgkQC3+MBN1Mb4jsaQCgjk7FlSDrVmiEL2G1G0VS0pd7
bWcAoIyj/7Y2qIuMZfrx+6KBNfsLoBP0
=2ukd
-----END PGP SIGNATURE-----
help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100531083450.GQ83316>