Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 19 Mar 2017 16:58:40 +0100
From:      Dimitry Andric <dim@FreeBSD.org>
To:        Rozhuk Ivan <rozhuk.im@gmail.com>
Cc:        "O. Hartmann" <ohartmann@walstatt.org>, Slawa Olhovchenkov <slw@zxy.spb.ru>, freebsd-current <freebsd-current@freebsd.org>
Subject:   Re: CURRENT: FreeBSD not reporting AES-NI on Intel(R) Xeon(R) CPU E5-1650 v3
Message-ID:  <AD58DDA1-235A-4328-BCA6-E3A71DFA9A51@FreeBSD.org>
In-Reply-To: <20170319153658.7f2b0038@rimwks>
References:  <20170317123625.60f1a508@freyja.zeit4.iv.bundesimmobilien.de> <20170317120429.GX15630@zxy.spb.ru> <20170317175324.27f1d59d@thor.intern.walstatt.dynvpn.de> <20170319153658.7f2b0038@rimwks>

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

--Apple-Mail=_E3231C59-6BB4-441A-B802-A6229B55DD7C
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=us-ascii

On 19 Mar 2017, at 13:36, Rozhuk Ivan <rozhuk.im@gmail.com> wrote:
>=20
> On Fri, 17 Mar 2017 17:53:24 +0100
> "O. Hartmann" <ohartmann@walstatt.org> wrote:
>=20
>>> Other OS detect AES-NI on this server?
>>=20
>> I havn't ried so far, the box is in heavy use. I'd like to check with
>> some live USB drive versions and report later.
>>=20
>=20
> You can write or find some program that read and decode CPUID and =
check
> AES-NI support without reboot.

The kernel already does this at boot time, and show the results, e.g.:

CPU: Intel(R) Core(TM) i7-3770 CPU @ 3.40GHz (3391.68-MHz 686-class CPU)
  Origin=3D"GenuineIntel"  Id=3D0x306a9  Family=3D0x6  Model=3D0x3a  =
Stepping=3D9
  =
Features=3D0xfa3fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,=
MCA,CMOV,PAT,PSE36,DTS,MMX,FXSR,SSE,SSE2,SS>
  =
Features2=3D0xffba2203<SSE3,PCLMULQDQ,SSSE3,CX16,PCID,SSE4.1,SSE4.2,x2APIC=
,POPCNT,TSCDLT,AESNI,XSAVE,OSXSAVE,AVX,F16C,RDRAND,HV>
  AMD Features=3D0x28100000<NX,RDTSCP,LM>
  AMD Features2=3D0x1<LAHF>
  Structured Extended Features=3D0x202<TSCADJ,ERMS>
  TSC: P-state invariant

Unfortunately the kernel does not expose this information via any
sysctl, so some time after booting it may have "scrolled away" in
dmesg.

In that case, you can use either the misc/cpuid or the sysutils/cpuid
ports to show this information, and even quite a lot more.

-Dimitry


--Apple-Mail=_E3231C59-6BB4-441A-B802-A6229B55DD7C
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename=signature.asc
Content-Type: application/pgp-signature;
	name=signature.asc
Content-Description: Message signed with OpenPGP

-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.30

iEYEARECAAYFAljOqrcACgkQsF6jCi4glqOw0gCfa41TVzeek6jN0X00//kMk3Wl
lLMAnRCr+KwM5hDyaGTW4TzM5hgL+FGd
=VnTQ
-----END PGP SIGNATURE-----

--Apple-Mail=_E3231C59-6BB4-441A-B802-A6229B55DD7C--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AD58DDA1-235A-4328-BCA6-E3A71DFA9A51>