crypto: powerpc - convert to use crypto_simd_usable()
authorEric Biggers <ebiggers@google.com>
Sat, 13 Apr 2019 05:33:12 +0000 (22:33 -0700)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 18 Apr 2019 14:15:04 +0000 (22:15 +0800)
commit626ddb2fbe7931a2996bd7fe88bd1ffd5daf7143
tree132a14ae7204569d22896438fda6204af098a1e1
parent0edf8593eb0985c88aa668b00befcdc1183d004d
crypto: powerpc - convert to use crypto_simd_usable()

Replace all calls to in_interrupt() in the PowerPC crypto code with
!crypto_simd_usable().  This causes the crypto self-tests to test the
no-SIMD code paths when CONFIG_CRYPTO_MANAGER_EXTRA_TESTS=y.

The p8_ghash algorithm is currently failing and needs to be fixed, as it
produces the wrong digest when no-SIMD updates are mixed with SIMD ones.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
arch/powerpc/crypto/crc32c-vpmsum_glue.c
arch/powerpc/crypto/crct10dif-vpmsum_glue.c
arch/powerpc/include/asm/Kbuild
drivers/crypto/vmx/aes.c
drivers/crypto/vmx/aes_cbc.c
drivers/crypto/vmx/aes_ctr.c
drivers/crypto/vmx/aes_xts.c
drivers/crypto/vmx/ghash.c