crypto: aes-gcm-p10 - Use the correct bit to test for P10
JIRA: https://issues.redhat.com/browse/RHEL-58802 commit 3574a5168ff3b6bddc4cd235878491f75967c8d4 Author: Michal Suchanek <msuchanek@suse.de> Date: Wed Nov 6 13:09:33 2024 +0100 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> Signed-off-by: Mamatha Inamdar <minamdar@redhat.com>
This commit is contained in:
parent
eab4b17e20
commit
5c4ebcb5b8
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue