]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
crypto: qce - fix priority to be less than ARMv8 CE
authorEric Biggers <ebiggers@google.com>
Tue, 3 Dec 2024 18:05:53 +0000 (10:05 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 21 Feb 2025 12:49:47 +0000 (13:49 +0100)
commitb2eb8ceab50b5ad21f56c555045fe6fabe37736b
treea8cd9215f1d5d33911b81c792ad5ac3238f5868e
parent2355c1bdf103582b186b6efbbd80bdfe1d613f2f
crypto: qce - fix priority to be less than ARMv8 CE

commit 49b9258b05b97c6464e1964b6a2fddb3ddb65d17 upstream.

As QCE is an order of magnitude slower than the ARMv8 Crypto Extensions
on the CPU, and is also less well tested, give it a lower priority.
Previously the QCE SHA algorithms had higher priority than the ARMv8 CE
equivalents, and the ciphers such as AES-XTS had the same priority which
meant the QCE versions were chosen if they happened to be loaded later.

Fixes: ec8f5d8f6f76 ("crypto: qce - Qualcomm crypto engine driver")
Cc: stable@vger.kernel.org
Cc: Bartosz Golaszewski <brgl@bgdev.pl>
Cc: Neil Armstrong <neil.armstrong@linaro.org>
Cc: Thara Gopinath <thara.gopinath@gmail.com>
Signed-off-by: Eric Biggers <ebiggers@google.com>
Reviewed-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Reviewed-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/crypto/qce/aead.c
drivers/crypto/qce/sha.c
drivers/crypto/qce/skcipher.c