From owner-freebsd-current@freebsd.org Fri Mar 17 18:27:25 2017 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D4C92D10CAF for ; Fri, 17 Mar 2017 18:27:25 +0000 (UTC) (envelope-from bsd-lists@bsdforge.com) Received: from udns.ultimatedns.net (static-24-113-41-81.wavecable.com [24.113.41.81]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id BE32710F1 for ; Fri, 17 Mar 2017 18:27:24 +0000 (UTC) (envelope-from bsd-lists@bsdforge.com) Received: from ultimatedns.net (localhost [127.0.0.1]) by udns.ultimatedns.net (8.14.9/8.14.9) with ESMTP id v2HIRcGR093765 for ; Fri, 17 Mar 2017 11:27:44 -0700 (PDT) (envelope-from bsd-lists@bsdforge.com) To: In-Reply-To: <20170317170735.GO70430@zxy.spb.ru> References: <20170317123625.60f1a508@freyja.zeit4.iv.bundesimmobilien.de> <20170317120429.GX15630@zxy.spb.ru> <20170317175324.27f1d59d@thor.intern.walstatt.dynvpn.de>, <20170317170735.GO70430@zxy.spb.ru> From: "Chris H" Subject: Re: CURRENT: FreeBSD not reporting AES-NI on Intel(R) Xeon(R) CPU E5-1650 v3 Date: Fri, 17 Mar 2017 11:27:44 -0700 Content-Type: text/plain; charset=UTF-8; format=fixed MIME-Version: 1.0 Message-id: <5882ca088f34336fd3fd75667b3d3342@ultimatedns.net> Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.23 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: Fri, 17 Mar 2017 18:27:25 -0000 Apologies for top posting (I generally HATE that too), and also, if someone already shared this link. BUT; I performed a search at my favorite CPU spec site, and it appears that your CPU *does* have AES-NI ( AESNI ): http://www.cpu-world.com/CPUs/Xeon/Intel-Xeon%20E5-1650%20v3.html TL,DR: MMX instructions SSE / Streaming SIMD Extensions SSE2 / Streaming SIMD Extensions SSE3 / Streaming SIMD Extensions SSSE3 / Supplemental Streaming SIMD Extensions 3 SSE4 / SSE4.1 + SSE4.2 / Streaming SIMD Extensions 4 AES / Advanced Encryption Standard instructions ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AVX / Advanced Vector Extensions AVX2 / Advanced Vector Extensions 2.0 BMI / BMI1 + BMI2 / Bit Manipulation instructions F16C / 16-bit Floating-Point conversion instructions FMA3 / 3-operand Fused Multiply-Add instructions EM64T / Extended Memory 64 technology / Intel 64 NX / XD / Execute disable bit HT / Hyper-Threading technology VT-x / Virtualization technology VT-d / Virtualization for directed I/O TBT 2.0 / Turbo Boost technology 2.0 TXT / Trusted Execution technology You also indicated that sysutils/dmidecode failed for you. Could that mean that your lib(s) aren't in sync? Which might contribute to this anomaly? Just a thought. HTH --Chris On Fri, 17 Mar 2017 20:07:35 +0300 Slawa Olhovchenkov wrote > On Fri, Mar 17, 2017 at 05:53:24PM +0100, O. Hartmann wrote: > > > Am Fri, 17 Mar 2017 15:04:29 +0300 > > Slawa Olhovchenkov 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 @ 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 @ 3.60GHz (3600.07-MHz K8-class CPU) > Origin="GenuineIntel" Id=0x406f1 Family=0x6 Model=0x4f Stepping=1 > > Features=0xbfebfbff CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE> > Features2=0x7ffefbff DBG,FMA,CX16,xTPR,PDCM,PCID,DCA,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,TSCDLT,AESN > I,XSAVE,OSXSAVE,AVX,F16C,RDRAND> > > ^^^^^^ AMD > Features=0x2c100800 AMD > Features2=0x121 Structured Extended > Features=0x21cbfbb QM,NFPUSG,PQE,RDSEED,ADX,SMAP,PROCTRACE> XSAVE Features=0x1 > 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.