Linux cryptographic layer development
 help / color / mirror / Atom feed
* [PATCH] crypto: x86: restore avx2_supported check
@ 2013-09-03 13:49 Jussi Kivilinna
  2013-09-13 12:22 ` Herbert Xu
  0 siblings, 1 reply; 2+ messages in thread
From: Jussi Kivilinna @ 2013-09-03 13:49 UTC (permalink / raw)
  To: linux-crypto; +Cc: Herbert Xu

Commit 3d387ef08c4 (Revert "crypto: blowfish - add AVX2/x86_64 implementation
of blowfish cipher") reverted too much as it removed the 'assembler supports
AVX2' check and therefore disabled remaining AVX2 implementations of Camellia
and Serpent. Patch restores the check and enables these implementations.

Signed-off-by: Jussi Kivilinna <jussi.kivilinna@iki.fi>
---
 arch/x86/crypto/Makefile |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/x86/crypto/Makefile b/arch/x86/crypto/Makefile
index 7d6ba9d..75b08e1e 100644
--- a/arch/x86/crypto/Makefile
+++ b/arch/x86/crypto/Makefile
@@ -3,6 +3,8 @@
 #
 
 avx_supported := $(call as-instr,vpxor %xmm0$(comma)%xmm0$(comma)%xmm0,yes,no)
+avx2_supported := $(call as-instr,vpgatherdd %ymm0$(comma)(%eax$(comma)%ymm1\
+				$(comma)4)$(comma)%ymm2,yes,no)
 
 obj-$(CONFIG_CRYPTO_ABLK_HELPER_X86) += ablk_helper.o
 obj-$(CONFIG_CRYPTO_GLUE_HELPER_X86) += glue_helper.o

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] crypto: x86: restore avx2_supported check
  2013-09-03 13:49 [PATCH] crypto: x86: restore avx2_supported check Jussi Kivilinna
@ 2013-09-13 12:22 ` Herbert Xu
  0 siblings, 0 replies; 2+ messages in thread
From: Herbert Xu @ 2013-09-13 12:22 UTC (permalink / raw)
  To: Jussi Kivilinna; +Cc: linux-crypto

On Tue, Sep 03, 2013 at 04:49:47PM +0300, Jussi Kivilinna wrote:
> Commit 3d387ef08c4 (Revert "crypto: blowfish - add AVX2/x86_64 implementation
> of blowfish cipher") reverted too much as it removed the 'assembler supports
> AVX2' check and therefore disabled remaining AVX2 implementations of Camellia
> and Serpent. Patch restores the check and enables these implementations.
> 
> Signed-off-by: Jussi Kivilinna <jussi.kivilinna@iki.fi>

Also applied.
-- 
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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-09-13 12:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-03 13:49 [PATCH] crypto: x86: restore avx2_supported check Jussi Kivilinna
2013-09-13 12:22 ` Herbert Xu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox