Patch "crypto: aes-gcm-p10 - Use the correct bit to test for P10" has been added to the 6.6-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    crypto: aes-gcm-p10 - Use the correct bit to test for P10

to the 6.6-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     crypto-aes-gcm-p10-use-the-correct-bit-to-test-for-p.patch
and it can be found in the queue-6.6 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit edb5869b99ea5b2b0f7a5b2d3e1978d8c51605fb
Author: Michal Suchanek <msuchanek@xxxxxxx>
Date:   Wed Nov 6 13:09:33 2024 +0100

    crypto: aes-gcm-p10 - Use the correct bit to test for P10
    
    [ Upstream commit 3574a5168ff3b6bddc4cd235878491f75967c8d4 ]
    
    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@xxxxxxxx>
    Signed-off-by: Michal Suchanek <msuchanek@xxxxxxx>
    Acked-by: Michael Ellerman <mpe@xxxxxxxxxxxxxx> (powerpc)
    Signed-off-by: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

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,




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux