From owner-freebsd-amd64@FreeBSD.ORG Sat Feb 4 16:28:34 2012 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2F57F1065677 for ; Sat, 4 Feb 2012 16:28:34 +0000 (UTC) (envelope-from freebsd@penx.com) Received: from btw.pki2.com (btw.pki2.com [IPv6:2001:470:a:6fd::2]) by mx1.freebsd.org (Postfix) with ESMTP id D3AE48FC15 for ; Sat, 4 Feb 2012 16:28:33 +0000 (UTC) Received: from [IPv6:::1] (localhost [IPv6:::1]) by btw.pki2.com (8.14.5/8.14.5) with ESMTP id q14GSQEk012739; Sat, 4 Feb 2012 08:28:26 -0800 (PST) (envelope-from freebsd@penx.com) From: Dennis Glatting To: =?ISO-8859-1?Q?G=F3t_Andr=E1s?= In-Reply-To: <7e0e01cc2b957c417a3f69232b33ebe0@antiszoc.hu> References: <4F2CFFC3.30909@gurgelmail.com> <20120204124952.GK3283@deviant.kiev.zoral.com.ua> <7e0e01cc2b957c417a3f69232b33ebe0@antiszoc.hu> Content-Type: text/plain; charset="ISO-8859-1" Date: Sat, 04 Feb 2012 08:28:26 -0800 Message-ID: <1328372906.15339.98.camel@btw.pki2.com> Mime-Version: 1.0 X-Mailer: Evolution 2.32.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 8bit X-yoursite-MailScanner-Information: Dennis Glatting X-yoursite-MailScanner-ID: q14GSQEk012739 X-yoursite-MailScanner: Found to be clean X-MailScanner-From: freebsd@penx.com Cc: freebsd-amd64@freebsd.org Subject: Re: aesni module with AMD CPUs? X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Feb 2012 16:28:34 -0000 I am confused by the Bulldozer comment and what FreeeBSD 9.0 reports. #1: CPU: AMD FX(tm)-8150 Eight-Core Processor (4017.99-MHz K8-class CPU) Origin = "AuthenticAMD" Id = 0x600f12 Family = 15 Model = 1 Stepping = 2 Features=0x178bfbff Features2=0x1698220b ------------------------------------------------------------------------^^^^^ AMD Features=0x2e500800 AMD Features2=0x1c9bfff,> And #2: CPU: AMD Opteron(TM) Processor 6274 (2200.07-MHz K8-class CPU) Origin = "AuthenticAMD" Id = 0x600f12 Family = 15 Model = 1 Stepping = 2 Features=0x178bfbff Features2=0x1698220b ------------------------------------------------------------------------^^^^^ AMD Features=0x2e500800 AMD Features2=0x1c9bfff,> On Sat, 2012-02-04 at 14:10 +0100, Gót András wrote: > Hi, > > This is from a Linux machine: > > processor : 15 > vendor_id : AuthenticAMD > cpu family : 21 > model : 1 > model name : AMD Opteron(tm) Processor 4280 > stepping : 2 > microcode : 0x6000624 > cpu MHz : 2800.277 > cache size : 2048 KB > physical id : 1 > siblings : 8 > core id : 7 > cpu cores : 4 > apicid : 39 > initial apicid : 23 > fpu : yes > fpu_exception : yes > cpuid level : 13 > wp : yes > flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov > pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt > pdpe1gb rdtscp lm constant_tsc rep_good nopl nonstop_tsc extd_apicid > aperfmperf pni pclmulqdq monitor ssse3 cx16 sse4_1 sse4_2 popcnt aes > xsave avx lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a > misalignsse 3dnowprefetch osvw ibs xop skinit wdt lwp fma4 nodeid_msr > topoext perfctr_core arat cpb npt lbrv svm_lock nrip_save tsc_scale > vmcb_clean flushbyasid decodeassists pausefilter pfthreshold > > AFAIK Bulldozer only has AVX, but unfortunately not AESNI. > > Andras > > On Sat, 4 Feb 2012 14:49:52 +0200, Konstantin Belousov wrote: > > On Sat, Feb 04, 2012 at 10:52:03AM +0100, Mario Fleischmann wrote: > >> Hi Konstantin, > >> I hope you don't mind me writing to you directly, but I'm having a > >> hard > >> time finding information on Google. > > You would get much higher chances of getting response if you post on > > the > > public list Cc:ing corresponding developer. Since the question > > seemingly > > not contain any sensitive information, and discussion may be useful > > to > > the wider audience, I added appropriate ml to Cc:. > > > >> > >> I'm currently in the market for a new system, and I need AES-NI > >> acceleration with FreeBSD 9.0. I'd like to buy an AMD-FX 4100 CPU, > >> which > >> supports the AES-NI instruction set. > > Do you have a reference to the CPU datasheet or programming manual ? > > > >> > >> What I'd like to know is: Does the aesni driver in FreeBSD also > >> support > >> AMD CPUs? The man page explicitly states the driver is for Intel > >> CPUs, > >> but since the AES-NI instruction set is licensed by AMD, I think it > >> should also work with those CPUs? > > The aesni(4) driver attaches on any CPU that reports AESNI support > > through > > the CPUID instruction. If amd implemented bit-to-bit compatible AESNI > > instruction set and report the capability in CPUID, driver shall just > > work. > > > > I never saw any bulldozer live, so this is the most I can answer to > > you. > > > >> > >> > >> A reply would be greatly appreciated, > >> > >> Best Regards, > >> Mario > > _______________________________________________ > freebsd-amd64@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-amd64 > To unsubscribe, send any mail to "freebsd-amd64-unsubscribe@freebsd.org"