[PATCH v2 1/1] crypto: AES CTR x86_64 "by8" AVX optimization

2014-06-03 Thread chandramouli narayanan
515 cycles (256 bytes) test 13 (256 bit key, 1024 byte blocks): 1 operation in 1284 cycles (1024 bytes) test 14 (256 bit key, 8192 byte blocks): 1 operation in 8681 cycles (8192 bytes) Signed-off-by: Chandramouli Narayanan --- arch/x86/crypto/Makefile| 2 +- arch/x86/crypto/aes_c

Re: [PATCH v2 1/1] crypto: AES CTR x86_64 "by8" AVX optimization

2014-06-04 Thread chandramouli narayanan
On Wed, 2014-06-04 at 08:53 +0200, Mathias Krause wrote: > On Tue, Jun 03, 2014 at 05:41:14PM -0700, chandramouli narayanan wrote: > > This patch introduces "by8" AES CTR mode AVX optimization inspired by > > Intel Optimized IPSEC Cryptograhpic library. For additional in

[PATCH v3 1/1] crypto: AES CTR x86_64 "by8" AVX optimization

2014-06-06 Thread chandramouli narayanan
073 cycles (8192 bytes) test 10 (256 bit key, 16 byte blocks): 1 operation in 415 cycles (16 bytes) test 11 (256 bit key, 64 byte blocks): 1 operation in 454 cycles (64 bytes) test 12 (256 bit key, 256 byte blocks): 1 operation in 598 cycles (256 bytes) test 13 (256 bit key, 1024 byte blocks): 1

Re: [PATCH v3 1/1] crypto: AES CTR x86_64 "by8" AVX optimization

2014-06-09 Thread chandramouli narayanan
On Sat, 2014-06-07 at 08:37 +0200, Mathias Krause wrote: > On Fri, Jun 06, 2014 at 05:12:05PM -0700, chandramouli narayanan wrote: > > This patch introduces "by8" AES CTR mode AVX optimization inspired by > > Intel Optimized IPSEC Cryptograhpic library. For additional in

[PATCH v4 1/1] crypto: AES CTR x86_64 "by8" AVX optimization

2014-06-09 Thread chandramouli narayanan
(8192 bytes) crypto: Fix redundant checks a) Fix the redundant check for cpu_has_aes b) Fix the key length check when invoking the CTR mode "by8" encryptor/decryptor. Signed-off-by: Chandramouli Narayanan --- arch/x86/crypto/Makefile| 2 +- arch/x86/crypto/aes_ctrb

[PATCH v5 1/1] crypto: AES CTR x86_64 "by8" AVX optimization

2014-06-10 Thread chandramouli narayanan
(8192 bytes) crypto: Fix redundant checks a) Fix the redundant check for cpu_has_aes b) Fix the key length check when invoking the CTR mode "by8" encryptor/decryptor. crypto: fix typo in AES ctr mode transform Signed-off-by: Chandramouli Narayanan --- arch/x86/crypto/Makefile

Re: [PATCH v5 1/1] crypto: AES CTR x86_64 "by8" AVX optimization

2014-06-10 Thread chandramouli narayanan
On Tue, 2014-06-10 at 22:34 +0200, Mathias Krause wrote: > On 10 June 2014 18:22, chandramouli narayanan wrote: > > This patch introduces "by8" AES CTR mode AVX optimization inspired by > > Intel Optimized IPSEC Cryptograhpic library. For additional information,

Re: v3.17-rc5: alg: skcipher: Test 4 failed on encryption for ctr-aes-aesni

2014-09-24 Thread chandramouli narayanan
On Mon, 2014-09-22 at 00:28 +0200, Mathias Krause wrote: > On 17 September 2014 13:29, Herbert Xu wrote: > > On Tue, Sep 16, 2014 at 10:01:07PM +0200, Romain Francoise wrote: > >> On Mon, Sep 15, 2014 at 10:36:46AM +0200, Romain Francoise wrote: > >> > I upgraded from v3.16 to v3.17-rc5 and the ct

[PATCH 2/2] SHA1 transform: x86_64 AVX2 optimization - glue & build

2014-02-27 Thread chandramouli narayanan
performance improvement from 3% for 256 bytes update to 16% for 1024 bytes update over AVX implementation. Signed-off-by: Chandramouli Narayanan diff --git a/arch/x86/crypto/Makefile b/arch/x86/crypto/Makefile index 6ba54d6..61d6e28 100644 --- a/arch/x86/crypto/Makefile +++ b/arch/x86/crypto/Makefile

[PATCH 1/2] SHA1 transform: x86_64 AVX2 optimization - assembly code

2014-02-27 Thread chandramouli narayanan
% for 1024 bytes update over AVX implementation. Signed-off-by: Chandramouli Narayanan diff --git a/arch/x86/crypto/sha1_avx2_x86_64_asm.S b/arch/x86/crypto/sha1_avx2_x86_64_asm.S new file mode 100644 index 000..2f71294 --- /dev/null +++ b/arch/x86/crypto/sha1_avx2_x86_64_asm.S @@ -0,0 +1,732

[PATCH 2/2] SHA1 transform: x86_64 AVX2 optimization - glue & build - resend with email correction

2014-02-27 Thread chandramouli narayanan
performance improvement from 3% for 256 bytes update to 16% for 1024 bytes update over AVX implementation. Signed-off-by: Chandramouli Narayanan diff --git a/arch/x86/crypto/Makefile b/arch/x86/crypto/Makefile index 6ba54d6..61d6e28 100644 --- a/arch/x86/crypto/Makefile +++ b/arch/x86/crypto/Makefile

Re: [PATCH 2/2] SHA1 transform: x86_64 AVX2 optimization - glue & build - resend with email correction

2014-02-27 Thread chandramouli narayanan
On Thu, 2014-02-27 at 21:21 +0200, Jussi Kivilinna wrote: > On 27.02.2014 19:42, chandramouli narayanan wrote: > > This git patch adds the glue, build and configuration changes > > to include x86_64 AVX2 optimization of SHA1 transform to > > crypto support. The patch has be

[PATCH 2/2] SHA1 transform: x86_64 AVX2 optimization - glue & build - version2

2014-02-27 Thread chandramouli narayanan
bytes update over AVX implementation. Signed-off-by: Chandramouli Narayanan diff --git a/arch/x86/crypto/Makefile b/arch/x86/crypto/Makefile index 6ba54d6..61d6e28 100644 --- a/arch/x86/crypto/Makefile +++ b/arch/x86/crypto/Makefile @@ -79,6 +79,9 @@ aesni-intel-y := aesni-intel_asm.o aesni

Re: [PATCH 1/2] SHA1 transform: x86_64 AVX2 optimization - assembly code

2014-03-12 Thread chandramouli narayanan
On Mon, 2014-03-10 at 20:15 +0800, Herbert Xu wrote: > On Thu, Feb 27, 2014 at 09:06:55AM -0800, chandramouli narayanan wrote: > > This git patch adds x86_64 AVX2 optimization of SHA1 transform > > to crypto support. The patch has been tested with 3.14.0-rc1 > > kernel.

Re: [PATCH 1/2] SHA1 transform: x86_64 AVX2 optimization - assembly code

2014-03-12 Thread chandramouli narayanan
On Thu, 2014-03-13 at 02:04 +0800, Herbert Xu wrote: > On Wed, Mar 12, 2014 at 11:02:08AM -0700, chandramouli narayanan wrote: > > On Mon, 2014-03-10 at 20:15 +0800, Herbert Xu wrote: > > > On Thu, Feb 27, 2014 at 09:06:55AM -0800, chandramouli narayanan wrote: > > > &

[PATCH 2/2] SHA1 transform: x86_64 AVX2 optimization - glue & build-v2

2014-03-12 Thread chandramouli narayanan
bytes update over AVX implementation. Signed-off-by: Chandramouli Narayanan diff --git a/arch/x86/crypto/Makefile b/arch/x86/crypto/Makefile index 6ba54d6..61d6e28 100644 --- a/arch/x86/crypto/Makefile +++ b/arch/x86/crypto/Makefile @@ -79,6 +79,9 @@ aesni-intel-y := aesni-intel_asm.o aesni

[PATCH 1/2] SHA1 transform: x86_64 AVX2 optimization - assembly code-v2

2014-03-12 Thread chandramouli narayanan
% for 1024 bytes update over AVX implementation. Signed-off-by: Chandramouli Narayanan diff --git a/arch/x86/crypto/sha1_avx2_x86_64_asm.S b/arch/x86/crypto/sha1_avx2_x86_64_asm.S new file mode 100644 index 000..2f71294 --- /dev/null +++ b/arch/x86/crypto/sha1_avx2_x86_64_asm.S @@ -0,0 +1,732

Re: [PATCH 2/2] SHA1 transform: x86_64 AVX2 optimization - glue & build-v2

2014-03-17 Thread chandramouli narayanan
On Fri, 2014-03-14 at 06:40 +0100, Marek Vasut wrote: > On Wednesday, March 12, 2014 at 07:47:50 PM, chandramouli narayanan wrote: > > This git patch adds the glue, build and configuration changes > > to include x86_64 AVX2 optimization of SHA1 transform to > > crypto suppor

Re: [PATCH 1/2] SHA1 transform: x86_64 AVX2 optimization - assembly code-v2

2014-03-17 Thread chandramouli narayanan
On Fri, 2014-03-14 at 06:34 +0100, Marek Vasut wrote: > On Wednesday, March 12, 2014 at 07:47:43 PM, chandramouli narayanan wrote: > > This git patch adds x86_64 AVX2 optimization of SHA1 transform > > to crypto support. The patch has been tested with 3.14.0-rc1 > > kernel.

Re: [PATCH 2/2] SHA1 transform: x86_64 AVX2 optimization - glue & build-v2

2014-03-17 Thread chandramouli narayanan
On Mon, 2014-03-17 at 17:06 +0100, Marek Vasut wrote: > On Monday, March 17, 2014 at 04:53:12 PM, chandramouli narayanan wrote: > > On Fri, 2014-03-14 at 06:40 +0100, Marek Vasut wrote: > > > On Wednesday, March 12, 2014 at 07:47:50 PM, chandramouli narayanan wrote: > > >

Re: [PATCH 2/2] SHA1 transform: x86_64 AVX2 optimization - glue & build-v2

2014-03-17 Thread chandramouli narayanan
On Mon, 2014-03-17 at 19:11 +0100, Marek Vasut wrote: > On Monday, March 17, 2014 at 05:53:52 PM, chandramouli narayanan wrote: > > On Mon, 2014-03-17 at 17:06 +0100, Marek Vasut wrote: > > > On Monday, March 17, 2014 at 04:53:12 PM, chandramouli narayanan wrote: > > >

[PATCH 1/1] SHA1 transform: x86_64 AVX2 optimization -v3

2014-03-18 Thread chandramouli narayanan
linkage. Due to this, the patch appends AVX2 transform to the build mix and leaves the configuration build support as is. Signed-off-by: Chandramouli Narayanan diff --git a/arch/x86/crypto/Makefile b/arch/x86/crypto/Makefile index 6ba54d6..61d6e28 100644 --- a/arch/x86/crypto/Makefile +++ b/arch

Re: [PATCH 1/1] SHA1 transform: x86_64 AVX2 optimization -v3

2014-03-18 Thread chandramouli narayanan
Sorry, there seems to be a problem with the patch. Let me retest from the list again and repost. thanks - mouli On Tue, 2014-03-18 at 17:12 -0700, chandramouli narayanan wrote: > This git patch adds x86_64 AVX2 optimization of SHA1 transform > to crypto support. The patch has been teste

[PATCH v4 1/1] crypto: SHA1 transform x86_64 AVX2

2014-03-19 Thread chandramouli narayanan
>From 8948c828aa929a3e2531ca88e3f05fbeb1ff53db Mon Sep 17 00:00:00 2001 From: Chandramouli Narayanan Date: Wed, 19 Mar 2014 09:30:12 -0700 Subject: [PATCH v4 1/1] crypto: SHA1 transform x86_64 AVX2 This git patch adds x86_64 AVX2 optimization of SHA1 transform to crypto support. The patch

[PATCH v5 1/1] crypto: SHA1 transform x86_64 AVX2

2014-03-20 Thread chandramouli narayanan
necessary objects to the linkage. Due to this, the patch merely appends AVX2 transform to the existing build mix and Kconfig support and leaves the configuration build support as is. Signed-off-by: Chandramouli Narayanan --- arch/x86/crypto/Makefile | 3 + arch/x86/crypto

[PATCH v6 1/1] crypto: SHA1 transform x86_64 AVX2

2014-03-20 Thread chandramouli narayanan
necessary objects to the linkage. Due to this, the patch merely appends AVX2 transform to the existing build mix and Kconfig support and leaves the configuration build support as is. Signed-off-by: Chandramouli Narayanan --- arch/x86/crypto/Makefile | 3 + arch/x86/crypto

Re: [PATCH v6 1/1] crypto: SHA1 transform x86_64 AVX2

2014-03-20 Thread chandramouli narayanan
On Thu, 2014-03-20 at 23:24 +0100, Marek Vasut wrote: > On Thursday, March 20, 2014 at 11:14:00 PM, chandramouli narayanan wrote: > > This git patch adds x86_64 AVX2 optimization of SHA1 > > transform to crypto support. The patch has been tested with 3.14.0-rc1 > > kernel.

Re: [PATCH 0/3] crypto: x86/sha1 - regression and other fixes

2014-03-24 Thread chandramouli narayanan
On Mon, 2014-03-24 at 17:10 +0100, Mathias Krause wrote: > The recent addition of the AVX2 variant of the SHA1 hash function wrongly > disabled the AVX variant by introducing a flaw in the feature test. Fixed > in patch 1. > > The alignment calculations of the AVX2 assembler implementation are > q