Skip to content

arm64: use SHA3 instructions to speed up XOR

Ard Biesheuvel linux-arm-kernel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2arm64/xor: use static calls for inner NEON helpersarch/arm64/include/asm/xor.h arch/arm64/lib/xor-neon.c+31 -130 replies
2/2arm64/xor: use EOR3 instructions when availablearch/arm64/Kconfig arch/arm64/lib/xor-neon.c+148 -04 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] arm64: use SHA3 instructions to speed up XOR

If available, use the 3-way EOR3 instruction that is part of the SHA3 extension rather than the ordinary 2-way EOR NEON instruction. Doing so speeds up XOR processing by ~20% on Apple M1 when using the 5-way version.

This is also useful as a canary for spotting regressions in the static call API, as we export a static call from one module and consume it in another.

Cc Mark Rutland <[email protected]>
Cc Peter Zijlstra <[email protected]>

Ard Biesheuvel (2):
arm64/xor: use static calls for inner NEON helpers arm64/xor: use EOR3 instructions when available

 arch/arm64/Kconfig           |   3 +
 arch/arm64/include/asm/xor.h |  24 ++-
 arch/arm64/lib/xor-neon.c    | 165 +++++++++++++++++++-
 3 files changed, 179 insertions(+), 13 deletions(-)
Signature · 7 lines
2.30.2


_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel