Re: CURRENT: FreeBSD not reporting AES-NI on Intel(R) Xeon(R) CPU E5-1650 v3

From: Slawa Olhovchenkov <slw_at_zxy.spb.ru>
Date: Fri, 17 Mar 2017 20:07:35 +0300
On Fri, Mar 17, 2017 at 05:53:24PM +0100, O. Hartmann wrote:

> Am Fri, 17 Mar 2017 15:04:29 +0300
> Slawa Olhovchenkov <slw_at_zxy.spb.ru> schrieb:
> 
> > On Fri, Mar 17, 2017 at 12:36:25PM +0100, O. Hartmann wrote:
> > 
> > > Running recent CURRENT on a Fujitsu Celsius M740 equipted with an Intel(R)
> > > Xeon(R) CPU E5-1650 v3 _at_ 3.50GHz CPU makes me some trouble.
> > > 
> > > FreeBSD does not report the existence or availability of AES-NI feature, which
> > > is supposed to be a feature of this type of CPU:  
> > 
> > What reassons to detect AES-NI by FreeBSD?
> 
> What do you mean? I do not understand! FreeBSD is supposed to read the CPUID and
> therefore the capabilities as every other OS, too. But there may some circumstances why
> FBSD won't. I do not know, that is the reason why I'm asking here.

This sample can have disabled AES-NI by vendor, in BIOS, for example.
As I show by links this is posible.

CPUID in you example don't show AES-NI capabilities, for example
1650v4 w/ AES-NI

CPU: Intel(R) Xeon(R) CPU E5-1650 v4 _at_ 3.60GHz (3600.07-MHz K8-class CPU)
  Origin="GenuineIntel"  Id=0x406f1  Family=0x6  Model=0x4f  Stepping=1
  Features=0xbfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE>
  Features2=0x7ffefbff<SSE3,PCLMULQDQ,DTES64,MON,DS_CPL,VMX,SMX,EST,TM2,SSSE3,SDBG,FMA,CX16,xTPR,PDCM,PCID,DCA,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,TSCDLT,AESNI,XSAVE,OSXSAVE,AVX,F16C,RDRAND>
                                                                                                                                                       ^^^^^^
  AMD Features=0x2c100800<SYSCALL,NX,Page1GB,RDTSCP,LM>
  AMD Features2=0x121<LAHF,ABM,Prefetch>
  Structured Extended Features=0x21cbfbb<FSGSBASE,TSCADJ,BMI1,HLE,AVX2,SMEP,BMI2,ERMS,INVPCID,RTM,PQM,NFPUSG,PQE,RDSEED,ADX,SMAP,PROCTRACE>
  XSAVE Features=0x1<XSAVEOPT>
  VT-x: PAT,HLT,MTF,PAUSE,EPT,UG,VPID,VID,PostIntr
  TSC: P-state invariant, performance statistics

In you sample: "TSCDLT,XSAVE"

May be AES-NI disabled by vendor and FreeBSD correct show this. Or some bug in FreeBSD, AES-NI work and other OS
show AES-NI capabilities.
Received on Fri Mar 17 2017 - 16:07:39 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:10 UTC