summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorMichal Suchanek <msuchanek@suse.de>2024-11-06 13:09:33 +0100
committerHerbert Xu <herbert@gondor.apana.org.au>2024-11-15 19:52:51 +0800
commit3574a5168ff3b6bddc4cd235878491f75967c8d4 (patch)
tree082a9b362c2c1c37f5b26f0982c8706aa6503a6d /arch
parent5465951e3f539aaff21823706d631b75407fb8d5 (diff)
crypto: aes-gcm-p10 - Use the correct bit to test for P10
A hwcap feature bit is passed to cpu_has_feature, resulting in testing for CPU_FTR_MMCRA instead of the 3.1 platform revision. Fixes: c954b252dee9 ("crypto: powerpc/p10-aes-gcm - Register modules as SIMD") Reported-by: Nicolai Stange <nstange@suse.com> Signed-off-by: Michal Suchanek <msuchanek@suse.de> Acked-by: Michael Ellerman <mpe@ellerman.id.au> (powerpc) Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'arch')
-rw-r--r--arch/powerpc/crypto/aes-gcm-p10-glue.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/crypto/aes-gcm-p10-glue.c b/arch/powerpc/crypto/aes-gcm-p10-glue.c
index e52629334cf8..1f8b67775658 100644
--- a/arch/powerpc/crypto/aes-gcm-p10-glue.c
+++ b/arch/powerpc/crypto/aes-gcm-p10-glue.c
@@ -414,7 +414,7 @@ static int __init p10_init(void)
{
int ret;
- if (!cpu_has_feature(PPC_FEATURE2_ARCH_3_1))
+ if (!cpu_has_feature(CPU_FTR_ARCH_31))
return 0;
ret = simd_register_aeads_compat(gcm_aes_algs,