crypto: algapi - Move larval completion into algboss

2012-06-18 Thread Herbert Xu
Hi: crypto: algapi - Move larval completion into algboss It has been observed that sometimes the crypto allocation code will get stuck for 60 seconds or multiples thereof. This is usually caused by an algorithm failing to pass the self-test. If an algorithm fails to be constructed, we will imme

Re: [PATCH 0/2] Fixes for MV_CESA with IDMA or TDMA

2012-06-18 Thread Simon Baatz
Hi Phil, On Mon, Jun 18, 2012 at 03:47:18PM +0200, Phil Sutter wrote: > On Sat, Jun 16, 2012 at 02:20:19AM +0200, Simon Baatz wrote: > > thanks for providing these patches; it's great to finally see DMA > > support for CESA in the kernel. Additionally, the implementation seems > > to be fine regar

Re: [PATCH 0/2] Fixes for MV_CESA with IDMA or TDMA

2012-06-18 Thread Phil Sutter
Hi Simon, On Sat, Jun 16, 2012 at 02:20:19AM +0200, Simon Baatz wrote: > thanks for providing these patches; it's great to finally see DMA > support for CESA in the kernel. Additionally, the implementation seems > to be fine regarding cache incoherencies (at least my test in [*] > works). Thanks

[PATCH 11/11] crypto: move arch/x86/include/asm/aes.h to arch/x86/include/asm/crypto/

2012-06-18 Thread Jussi Kivilinna
Move AES header to the new asm/crypto directory. Signed-off-by: Jussi Kivilinna --- arch/x86/crypto/aes_glue.c |2 +- arch/x86/crypto/aesni-intel_glue.c |2 +- arch/x86/include/asm/aes.h | 11 --- arch/x86/include/asm/crypto/aes.h | 11 +++ 4 files ch

[PATCH 10/11] crypto: move arch/x86/include/asm/serpent-{sse2|avx}.h to arch/x86/include/asm/crypto/

2012-06-18 Thread Jussi Kivilinna
Move serpent crypto headers to the new asm/crypto/ directory. Signed-off-by: Jussi Kivilinna --- arch/x86/crypto/serpent_avx_glue.c |2 - arch/x86/crypto/serpent_sse2_glue.c|2 - arch/x86/include/asm/crypto/serpent-avx.h | 32 ++ arch/x86/include/asm/crypto

[PATCH 09/11] crypto: twofish-avx - remove duplicated glue code and use shared glue code from glue_helper

2012-06-18 Thread Jussi Kivilinna
Now that shared glue code is available, convert twofish-avx to use it. Cc: Johannes Goetzfried Signed-off-by: Jussi Kivilinna --- arch/x86/crypto/twofish_avx_glue.c| 556 ++--- arch/x86/crypto/twofish_glue_3way.c | 46 +-- arch/x86/include/asm/crypto/twofish

[PATCH 08/11] crypto: twofish-x86_64-3way - remove duplicated glue code and use shared glue code from glue_helper

2012-06-18 Thread Jussi Kivilinna
Now that shared glue code is available, convert twofish-x86_64-3way to use it. Signed-off-by: Jussi Kivilinna --- arch/x86/crypto/twofish_glue_3way.c | 365 +-- crypto/Kconfig |1 2 files changed, 94 insertions(+), 272 deletions(-) diff

[PATCH 07/11] crypto: camellia-x86_64 - remove duplicated glue code and use shared glue code from glue_helper

2012-06-18 Thread Jussi Kivilinna
Now that shared glue code is available, convert camellia-x86_64 to use it. Signed-off-by: Jussi Kivilinna --- arch/x86/crypto/camellia_glue.c | 355 +-- crypto/Kconfig |1 2 files changed, 87 insertions(+), 269 deletions(-) diff --git a

[PATCH 06/11] crypto: serpent-avx: remove duplicated glue code and use shared glue code from glue_helper

2012-06-18 Thread Jussi Kivilinna
Now that shared glue code is available, convert serpent-avx to use it. Cc: Johannes Goetzfried Signed-off-by: Jussi Kivilinna --- arch/x86/crypto/serpent_avx_glue.c | 398 +--- crypto/Kconfig |1 2 files changed, 95 insertions(+), 304 de

[PATCH 05/11] crypto: serpent-sse2 - split generic glue code to new helper module

2012-06-18 Thread Jussi Kivilinna
Now that serpent-sse2 glue code has been made generic, it can be split to separate module. Signed-off-by: Jussi Kivilinna --- arch/x86/crypto/Makefile |1 arch/x86/crypto/glue_helper.c | 307 + arch/x86/crypto/serpent_sse2_glue.c |

[PATCH 04/11] crypto: serpent-sse2 - prepare serpent-sse2 glue code into generic x86 glue code for 128bit block ciphers

2012-06-18 Thread Jussi Kivilinna
Block cipher implementations in arch/x86/crypto/ contain common glue code that is currently duplicated in each module (camellia-x86_64, twofish-x86_64-3way, twofish-avx, serpent-sse2 and serpent-avx). This patch prepares serpent-sse2 glue into generic glue code for all 128bit block ciphers to use i

[PATCH 03/11] crypto: aes_ni - change to use shared ablk_* functions

2012-06-18 Thread Jussi Kivilinna
Remove duplicate ablk_* functions and make use of ablk_helper module instead. Signed-off-by: Jussi Kivilinna --- arch/x86/crypto/ablk_helper.c | 19 +++--- arch/x86/crypto/aesni-intel_glue.c| 100 ++--- arch/x86/include/asm/crypto/ablk_helper.h |

[PATCH 02/11] crypto: twofish-avx - change to use shared ablk_* functions

2012-06-18 Thread Jussi Kivilinna
Remove duplicate ablk_* functions and make use of ablk_helper module instead. Signed-off-by: Jussi Kivilinna --- arch/x86/crypto/twofish_avx_glue.c | 116 ++-- crypto/Kconfig |1 2 files changed, 7 insertions(+), 110 deletions(-) diff --

[PATCH 01/11] crypto: ablk_helper - move ablk_* functions from serpent-sse2/avx glue code to shared module

2012-06-18 Thread Jussi Kivilinna
Move ablk-* functions to separate module to share common code between cipher implementations. Signed-off-by: Jussi Kivilinna --- arch/x86/crypto/Makefile |2 arch/x86/crypto/ablk_helper.c | 150 + arch/x86/crypto/serpent_avx_glue.c

[PATCH 00/11] crypto: x86 - split common glue code into helper modules

2012-06-18 Thread Jussi Kivilinna
Currently several block-ciphers in arch/x86/crypto duplicate glue code for using assembler implementations that process multiple blocks parallel. This patchset adds shared glue_helper module for these 128bit cipher modules to use. Downside of generalisation of glue code is slightly increased overh

Re: [PATCH] crypto: aes - make assembler implementation default for i386 and x86-64

2012-06-18 Thread Herbert Xu
On Tue, Jun 12, 2012 at 09:25:18PM +0300, Jussi Kivilinna wrote: > > Well, how about letting arch specific assembler implementations > replace aes-generic > completely.. in this case add "depends on !X86" on > CRYPTO_AES_GENERIC. Hardware > modules get autoloaded (cpuid/pci/platform/etc) but generi

Re: Crypto Fixes for 3.5

2012-06-18 Thread Herbert Xu
Hi Linus: This push fixes another bug in the atmel-rng that made it produce completely useless output. Please pull from git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6.git or master.kernel.org:/pub/scm/linux/kernel/git/herbert/crypto-2.6.git Peter Korsgaard (1): hwrng