From: Michal Suchanek Date: Wed, 6 Nov 2024 12:09:33 +0000 (+0100) Subject: crypto: aes-gcm-p10 - Use the correct bit to test for P10 X-Git-Tag: v6.13-rc1~196^2~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3574a5168ff3b6bddc4cd235878491f75967c8d4;p=thirdparty%2Fkernel%2Flinux.git 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 Signed-off-by: Michal Suchanek Acked-by: Michael Ellerman (powerpc) Signed-off-by: Herbert Xu --- diff --git a/arch/powerpc/crypto/aes-gcm-p10-glue.c b/arch/powerpc/crypto/aes-gcm-p10-glue.c index e52629334cf80..1f8b677756582 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,