Skip to content

lib/crypto: arm64: Remove obsolete chunking logic

Eric Biggers linux-arm-kernel linux-crypto lkml 1 version Applied

Status from this message: Applied to https://git.kernel.org/pub/scm/linux/kernel/git/ebiggers/linux.git/log/?h=libcrypto-next

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest9 patches 2 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/9lib/crypto: arm64/aes: Remove obsolete chunking logicarch/arm64/crypto/aes-ce-ccm-glue.c include/crypto/aes.h lib/crypto/arm64/aes-modes.S +1 more+23 -390 replies
2/9lib/crypto: arm64/chacha: Remove obsolete chunking logiclib/crypto/arm64/chacha.h+4 -120 replies
3/9lib/crypto: arm64/gf128hash: Remove obsolete chunking logiclib/crypto/arm64/gf128hash.h+4 -200 replies
4/9lib/crypto: arm64/poly1305: Remove obsolete chunking logiclib/crypto/arm64/poly1305.h+4 -100 replies
5/9lib/crypto: arm64/sha1: Remove obsolete chunking logiclib/crypto/arm64/sha1-ce-core.S lib/crypto/arm64/sha1.h+9 -200 replies
6/9lib/crypto: arm64/sha256: Remove obsolete chunking logiclib/crypto/arm64/sha256-ce.S lib/crypto/arm64/sha256.h+13 -300 replies
7/9lib/crypto: arm64/sha512: Remove obsolete chunking logiclib/crypto/arm64/sha512-ce-core.S lib/crypto/arm64/sha512.h+9 -180 replies
8/9lib/crypto: arm64/sha3: Remove obsolete chunking logiclib/crypto/arm64/sha3-ce-core.S lib/crypto/arm64/sha3.h+7 -160 replies
9/9arm64: fpsimd: Remove obsolete cond_yield macroarch/arm64/include/asm/assembler.h+0 -220 replies

Reviews trailers per patch

None of the 9 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchArd Biesheuvel
SeriesR-b
1/9
2/9
3/9
4/9
5/9
6/9
7/9
8/9
9/9

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/9] lib/crypto: arm64: Remove obsolete chunking logic

Since commit aefbab8e77eb ("arm64: fpsimd: Preserve/restore kernel mode NEON at context switch"), kernel-mode NEON sections have been preemptible on arm64. And since commit 7dadeaa6e851 ("sched: Further restrict the preemption modes"), voluntary preemption is no longer supported on arm64 either. Therefore, there's no longer any need to limit the length of kernel-mode NEON sections on arm64.

This series simplifies the code in lib/crypto/arm64/ accordingly by using longer kernel-mode NEON sections instead of multiple shorter ones.

This series is targeting libcrypto-next.

Eric Biggers (9):
lib/crypto: arm64/aes: Remove obsolete chunking logic lib/crypto: arm64/chacha: Remove obsolete chunking logic lib/crypto: arm64/gf128hash: Remove obsolete chunking logic lib/crypto: arm64/poly1305: Remove obsolete chunking logic lib/crypto: arm64/sha1: Remove obsolete chunking logic lib/crypto: arm64/sha256: Remove obsolete chunking logic lib/crypto: arm64/sha512: Remove obsolete chunking logic lib/crypto: arm64/sha3: Remove obsolete chunking logic
arm64: fpsimd: Remove obsolete cond_yield macro

 arch/arm64/crypto/aes-ce-ccm-glue.c | 13 ++++-------
 arch/arm64/include/asm/assembler.h  | 22 ------------------
 include/crypto/aes.h                |  6 ++---
 lib/crypto/arm64/aes-modes.S        |  8 +++----
 lib/crypto/arm64/aes.h              | 35 +++++++++++------------------
 lib/crypto/arm64/chacha.h           | 16 ++++---------
 lib/crypto/arm64/gf128hash.h        | 24 ++++----------------
 lib/crypto/arm64/poly1305.h         | 14 ++++--------
 lib/crypto/arm64/sha1-ce-core.S     | 14 +++++-------
 lib/crypto/arm64/sha1.h             | 15 ++++---------
 lib/crypto/arm64/sha256-ce.S        | 14 +++++-------
 lib/crypto/arm64/sha256.h           | 29 +++++++-----------------
 lib/crypto/arm64/sha3-ce-core.S     |  8 +++----
 lib/crypto/arm64/sha3.h             | 15 ++++---------
 lib/crypto/arm64/sha512-ce-core.S   | 12 +++++-----
 lib/crypto/arm64/sha512.h           | 15 ++++---------
 16 files changed, 73 insertions(+), 187 deletions(-)

base-commit: 7ac21b4032e5b9b8a6a312b6f1d54f4ba24d1c16

Signature · 1 line
2.53.0