Skip to content

Improve crc32c() performance on newer x86_64 CPUs

Eric Biggers linux-crypto lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2lib/crc: x86: Reorganize crc-pclmul static_call initializationlib/crc/x86/crc-pclmul-template.h lib/crc/x86/crc-t10dif.h lib/crc/x86/crc32.h +1 more+44 -210 replies
2/2lib/crc: x86/crc32c: Enable VPCLMULQDQ optimization where beneficiallib/crc/x86/crc-pclmul-consts.h lib/crc/x86/crc32.h+83 -20 replies

Reviews trailers per patch

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

PatchArd Biesheuvel
SeriesA-b
1/2
2/2

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/2] Improve crc32c() performance on newer x86_64 CPUs

This series improves crc32c() performance on lengths >= 512 bytes on newer x86_64 CPUs by enabling the VPCLMULQDQ (vector carryless multiplication) optimized CRC code.

This series targets crc-next.

Eric Biggers (2):
lib/crc: x86: Reorganize crc-pclmul static_call initialization lib/crc: x86/crc32c: Enable VPCLMULQDQ optimization where beneficial

 lib/crc/x86/crc-pclmul-consts.h   | 47 +++++++++++++++++++++++++++++-
 lib/crc/x86/crc-pclmul-template.h | 31 +++++++++-----------
 lib/crc/x86/crc-t10dif.h          |  9 +++++-
 lib/crc/x86/crc32.h               | 48 +++++++++++++++++++++++++++++--
 lib/crc/x86/crc64.h               | 15 ++++++++--
 5 files changed, 127 insertions(+), 23 deletions(-)

base-commit: 9b0236f4efb889869f7d4f3f084f508cc0433ec9

Signature · 1 line
2.50.1