From: Herbert Xu <herbert@gondor.apana.org.au>
To: Huang Ying <ying.huang@intel.com>
Cc: Mathias Krause <minipli@googlemail.com>,
"linux-crypto@vger.kernel.org" <linux-crypto@vger.kernel.org>
Subject: Re: [PATCH v4] x86, crypto: ported aes-ni implementation to x86
Date: Sat, 27 Nov 2010 16:35:24 +0800 [thread overview]
Message-ID: <20101127083524.GC2364@gondor.apana.org.au> (raw)
In-Reply-To: <1290066268.3122.6.camel@yhuang-dev>
On Thu, Nov 18, 2010 at 03:44:28PM +0800, Huang Ying wrote:
> On Thu, 2010-11-18 at 15:41 +0800, Mathias Krause wrote:
> > On 11.11.2010, 23:20 Mathias Krause wrote:
> > > The AES-NI instructions are also available in legacy mode so the 32-bit
> > > architecture may profit from those, too.
> > >
> > > To illustrate the performance gain here's a short summary of a dm-crypt
> > > speed test on a Core i7 M620 running at 2.67GHz comparing both assembler
> > > implementations:
> > >
> > > x86: i568 aes-ni delta
> > > ECB, 256 bit: 93.8 MB/s 123.3 MB/s +31.4%
> > > CBC, 256 bit: 84.8 MB/s 262.3 MB/s +209.3%
> > > LRW, 256 bit: 108.6 MB/s 222.1 MB/s +104.5%
> > > XTS, 256 bit: 105.0 MB/s 205.5 MB/s +95.7%
> > >
> > > Additionally, due to some minor optimizations, the 64-bit version also
> > > got a minor performance gain as seen below:
> > >
> > > x86-64: old impl. new impl. delta
> > > ECB, 256 bit: 121.1 MB/s 123.0 MB/s +1.5%
> > > CBC, 256 bit: 285.3 MB/s 290.8 MB/s +1.9%
> > > LRW, 256 bit: 263.7 MB/s 265.3 MB/s +0.6%
> > > XTS, 256 bit: 251.1 MB/s 255.3 MB/s +1.7%
> > >
> > > Signed-off-by: Mathias Krause <minipli@googlemail.com>
> > > ---
> > > v4 changes:
> > > * adapted CBC implementation to be useable on x86, too
> > > * redo the measurement using dm-crypt
> > >
> > > v3 changes:
> > > * fixed 32-bit implementation of aesni_ecb_enc (a hunk somehow moved to the end
> > > of another function)
> > >
> > > v2 changes:
> > > * hide almost all register names in macros so the same code base can be shared
> > > between x86 and x86_64
> > > * unified Kconfig documentation again
> > > * added alignment constraints for internal functions.
> > >
> > >
> > > arch/x86/crypto/aesni-intel_asm.S | 197 ++++++++++++++++++++++++++++++------
> > > arch/x86/crypto/aesni-intel_glue.c | 22 +++-
> > > crypto/Kconfig | 12 ++-
> > > 3 files changed, 191 insertions(+), 40 deletions(-)
> >
> > No comments so far? :(
> > What's wrong with the patch?
>
> Reviewed-by: Huang Ying <ying.huang@intel.com>
Patch applied. Thanks a lot everyone!
--
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
next prev parent reply other threads:[~2010-11-27 8:35 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-11 22:20 [PATCH v4] x86, crypto: ported aes-ni implementation to x86 Mathias Krause
2010-11-18 7:41 ` Mathias Krause
2010-11-18 7:44 ` Huang Ying
2010-11-27 8:35 ` Herbert Xu [this message]
2010-11-28 18:31 ` [PATCH] crypto: aesni-intel - Fixed build error on x86-32 Mathias Krause
2010-11-28 18:39 ` [PATCH v2] " Mathias Krause
2010-11-29 0:36 ` Herbert Xu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20101127083524.GC2364@gondor.apana.org.au \
--to=herbert@gondor.apana.org.au \
--cc=linux-crypto@vger.kernel.org \
--cc=minipli@googlemail.com \
--cc=ying.huang@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox