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: c954b252de ("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>
This commit is contained in:
Michal Suchanek 2024-11-06 13:09:33 +01:00 committed by Herbert Xu
parent 5465951e3f
commit 3574a5168f

View File

@ -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,