Skip to content

Commit 3574a51

Browse files
hramrachherbertx
authored andcommitted
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: c954b25 ("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>
1 parent 5465951 commit 3574a51

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/powerpc/crypto/aes-gcm-p10-glue.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ static int __init p10_init(void)
414414
{
415415
int ret;
416416

417-
if (!cpu_has_feature(PPC_FEATURE2_ARCH_3_1))
417+
if (!cpu_has_feature(CPU_FTR_ARCH_31))
418418
return 0;
419419

420420
ret = simd_register_aeads_compat(gcm_aes_algs,

0 commit comments

Comments
 (0)