linux/arch/x86/crypto
Ingo Molnar b54b4bbbf5 x86/fpu, crypto: Fix AVX2 feature tests
For some CPU models I broke the AVX2 feature detection in:

  7bc371faa9 ("x86/fpu, crypto x86/camellia_aesni_avx2: Simplify the camellia_aesni_init() xfeature checks")
  534ff06e39 ("x86/fpu, crypto x86/serpent_avx2: Simplify the init() xfeature checks")

... because I did not realize that it's possible for a CPU to support
the xstate necessary for AVX2 execution (XSTATE_YMM), but not have
the AVX2 instructions themselves.

Restore the necessary CPUID checks as well.

Cc: Andy Lutomirski <luto@amacapital.net>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Dave Hansen <dave.hansen@linux.intel.com>
Cc: Fenghua Yu <fenghua.yu@intel.com>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Oleg Nesterov <oleg@redhat.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
2015-05-22 10:58:45 +02:00
..
sha-mb x86/fpu, crypto x86/sha1_mb: Remove FPU internal headers from sha1_mb.c 2015-05-19 15:47:59 +02:00
aes_ctrby8_avx-x86_64.S
aes_glue.c
aes-i586-asm_32.S
aes-x86_64-asm_64.S
aesni-intel_asm.S crypto: aesni - Add support for 192 & 256 bit keys to AESNI RFC4106 2015-01-14 21:56:51 +11:00
aesni-intel_avx-x86_64.S
aesni-intel_glue.c x86/fpu: Rename i387.h to fpu/api.h 2015-05-19 15:47:30 +02:00
blowfish_glue.c
blowfish-x86_64-asm_64.S
camellia_aesni_avx2_glue.c x86/fpu, crypto: Fix AVX2 feature tests 2015-05-22 10:58:45 +02:00
camellia_aesni_avx_glue.c x86/fpu, crypto x86/camellia_aesni_avx: Simplify the camellia_aesni_init() xfeature checks 2015-05-19 15:47:56 +02:00
camellia_glue.c
camellia-aesni-avx2-asm_64.S
camellia-aesni-avx-asm_64.S
camellia-x86_64-asm_64.S
cast5_avx_glue.c x86/fpu, crypto x86/cast5_avx: Simplify the cast5_init() xfeature checks 2015-05-19 15:47:58 +02:00
cast5-avx-x86_64-asm_64.S
cast6_avx_glue.c x86/fpu, crypto x86/cast6_avx: Simplify the cast6_init() xfeature checks 2015-05-19 15:47:58 +02:00
cast6-avx-x86_64-asm_64.S
crc32-pclmul_asm.S
crc32-pclmul_glue.c x86/fpu: Rename i387.h to fpu/api.h 2015-05-19 15:47:30 +02:00
crc32c-intel_glue.c x86/fpu: Rename fpu-internal.h to fpu/internal.h 2015-05-19 15:47:31 +02:00
crc32c-pcl-intel-asm_64.S x86/asm: Replace "MOVQ $imm, %reg" with MOVL 2015-04-01 13:17:39 +02:00
crct10dif-pcl-asm_64.S
crct10dif-pclmul_glue.c x86/fpu: Rename i387.h to fpu/api.h 2015-05-19 15:47:30 +02:00
des3_ede_glue.c
des3_ede-asm_64.S
fpu.c x86/fpu: Rename i387.h to fpu/api.h 2015-05-19 15:47:30 +02:00
ghash-clmulni-intel_asm.S
ghash-clmulni-intel_glue.c x86/fpu: Rename i387.h to fpu/api.h 2015-05-19 15:47:30 +02:00
glue_helper-asm-avx2.S
glue_helper-asm-avx.S
glue_helper.c crypto: don't export static symbol 2015-03-13 21:37:15 +11:00
Makefile
salsa20_glue.c
salsa20-i586-asm_32.S
salsa20-x86_64-asm_64.S
serpent_avx2_glue.c x86/fpu, crypto: Fix AVX2 feature tests 2015-05-22 10:58:45 +02:00
serpent_avx_glue.c x86/fpu, crypto x86/serpent_avx: Simplify the serpent_init() xfeature checks 2015-05-19 15:47:57 +02:00
serpent_sse2_glue.c crypto: serpent_sse2 - mark Serpent SSE2 helper ciphers 2015-03-31 21:21:10 +08:00
serpent-avx2-asm_64.S
serpent-avx-x86_64-asm_64.S
serpent-sse2-i586-asm_32.S
serpent-sse2-x86_64-asm_64.S
sha1_avx2_x86_64_asm.S
sha1_ssse3_asm.S
sha1_ssse3_glue.c x86/fpu, crypto x86/sha1_ssse3: Simplify the sha1_ssse3_mod_init() xfeature checks 2015-05-19 15:47:59 +02:00
sha256_ssse3_glue.c x86/fpu, crypto x86/sha256_ssse3: Simplify the sha256_ssse3_mod_init() xfeature checks 2015-05-19 15:47:57 +02:00
sha256-avx2-asm.S crypto: x86/sha256_ssse3 - move SHA-224/256 SSSE3 implementation to base layer 2015-04-10 21:39:47 +08:00
sha256-avx-asm.S crypto: x86/sha256_ssse3 - move SHA-224/256 SSSE3 implementation to base layer 2015-04-10 21:39:47 +08:00
sha256-ssse3-asm.S crypto: x86/sha256_ssse3 - move SHA-224/256 SSSE3 implementation to base layer 2015-04-10 21:39:47 +08:00
sha512_ssse3_glue.c x86/fpu, crypto x86/sha512_ssse3: Simplify the sha512_ssse3_mod_init() xfeature checks 2015-05-19 15:47:58 +02:00
sha512-avx2-asm.S crypto: x86/sha512_ssse3 - fixup for asm function prototype change 2015-04-24 20:09:01 +08:00
sha512-avx-asm.S crypto: x86/sha512_ssse3 - move SHA-384/512 SSSE3 implementation to base layer 2015-04-10 21:39:48 +08:00
sha512-ssse3-asm.S crypto: x86/sha512_ssse3 - move SHA-384/512 SSSE3 implementation to base layer 2015-04-10 21:39:48 +08:00
twofish_avx_glue.c x86/fpu, crypto x86/twofish_avx: Simplify the twofish_init() xfeature checks 2015-05-19 15:47:57 +02:00
twofish_glue_3way.c
twofish_glue.c
twofish-avx-x86_64-asm_64.S
twofish-i586-asm_32.S
twofish-x86_64-asm_64-3way.S
twofish-x86_64-asm_64.S x86/asm: Replace "MOVQ $imm, %reg" with MOVL 2015-04-01 13:17:39 +02:00