Commit graph

4 commits

Author SHA1 Message Date
rsuntk
5681c7c08d Revert "crypto: arm64/aes-modes: Import from https://github.com/itejo443/android_kernel_samsung_sm7225/blob/ksm/arch/arm64/crypto/aes-modes.S"
This reverts commit 1f675ae3f3.
2025-03-20 14:19:01 +00:00
rsuntk
1f675ae3f3 crypto: arm64/aes-modes: Import from https://github.com/itejo443/android_kernel_samsung_sm7225/blob/ksm/arch/arm64/crypto/aes-modes.S
Signed-off-by: rsuntk <rissu.ntk@gmail.com>
2025-03-11 12:01:52 +00:00
Ard Biesheuvel
c5517117ef crypto: arm64/aes-modes - get rid of literal load of addend vector
commit ed6ed11830a9ded520db31a6e2b69b6b0a1eb0e2 upstream.

Replace the literal load of the addend vector with a sequence that
performs each add individually. This sequence is only 2 instructions
longer than the original, and 2% faster on Cortex-A53.

This is an improvement by itself, but also works around a Clang issue,
whose integrated assembler does not implement the GNU ARM asm syntax
completely, and does not support the =literal notation for FP registers
(more info at https://bugs.llvm.org/show_bug.cgi?id=38642)

Cc: Nick Desaulniers <ndesaulniers@google.com>
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-03-11 11:58:13 +00:00
rsuntk
f8c4f3d6f4 Import from latest A23q source
Signed-off-by: rsuntk <rissu.ntk@gmail.com>
2025-03-08 14:06:30 +00:00