From owner-freebsd-current@FreeBSD.ORG Sun Mar 7 17:59:19 2010 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0BF36106566C for ; Sun, 7 Mar 2010 17:59:19 +0000 (UTC) (envelope-from ehrmann@gmail.com) Received: from mxout-07.mxes.net (mxout-07.mxes.net [216.86.168.182]) by mx1.freebsd.org (Postfix) with ESMTP id D394E8FC1C for ; Sun, 7 Mar 2010 17:59:18 +0000 (UTC) Received: from exobytes-macbook-pro.local (unknown [64.9.233.134]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id 9896522E253; Sun, 7 Mar 2010 12:59:16 -0500 (EST) Message-ID: <4B93E96B.8090002@gmail.com> Date: Sun, 07 Mar 2010 09:59:07 -0800 From: David Ehrmann User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1.8) Gecko/20100227 Thunderbird/3.0.3 MIME-Version: 1.0 To: Norikatsu Shigemura References: <4B934015.8000908@gmail.com> <4B934354.4030002@elischer.org> <20100307184422.7007747d.nork@FreeBSD.org> In-Reply-To: <20100307184422.7007747d.nork@FreeBSD.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-current@freebsd.org, Julian Elischer Subject: Re: Core i5 AES acceleration X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 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: Sun, 07 Mar 2010 17:59:19 -0000 On 3/7/10 1:44 AM, Norikatsu Shigemura wrote: > Hi Devid and Julian. > > On Sat, 06 Mar 2010 22:10:28 -0800 > Julian Elischer wrote: > >> David Ehrmann wrote: >> >>> Does FreeBSD currently support cryptographic acceleration for AES on the >>> Core i5 CPU? I searched, but couldn't find anything, and the crypto(4) >>> manpage only lists these divers in "see also:" >>> >> no, but if you write a driver for it we will... :-) >> (most things in open source happen because someone needs it.) >> > I found Linux's code: http://lwn.net/Articles/311094/ > I think that it looks too easy, maybe, we should implement aesni(4) > like padlock(4). > I was thinking that if I did do it, I'd start with padlock as a base. It looks like there are maybe 6 new opcodes. Maybe we could ask the contributor of the Linux code (an Intel employee) if he'd be willing to also release the code under a BSD license. My problem is that I don't have a Core i5 system--I was asking because it's an option for my new system--and I'm far from an x86 assembly expert.