crypto: x86/sha1 - re-enable the AVX variant
authorMathias Krause <minipli@googlemail.com>
Mon, 24 Mar 2014 16:10:37 +0000 (17:10 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Tue, 25 Mar 2014 12:25:42 +0000 (20:25 +0800)
commit6ca5afb8c26991cf4f13a8bcca870ec2a9522bf7
tree095efa7d609b3c8e1c7d85e56480a22f5354ea46
parent7c1da8d0d046174a4188b5729d7579abf3d29427
crypto: x86/sha1 - re-enable the AVX variant

Commit 7c1da8d0d0 "crypto: sha - SHA1 transform x86_64 AVX2"
accidentally disabled the AVX variant by making the avx_usable() test
not only fail in case the CPU doesn't support AVX or OSXSAVE but also
if it doesn't support AVX2.

Fix that regression by splitting up the AVX/AVX2 test into two
functions. Also test for the BMI1 extension in the avx2_usable() test
as the AVX2 implementation not only makes use of BMI2 but also BMI1
instructions.

Cc: Chandramouli Narayanan <mouli@linux.intel.com>
Signed-off-by: Mathias Krause <minipli@googlemail.com>
Reviewed-by: H. Peter Anvin <hpa@linux.intel.com>
Reviewed-by: Marek Vasut <marex@denx.de>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
arch/x86/crypto/sha1_ssse3_glue.c
This page took 0.025533 seconds and 5 git commands to generate.