Re: [PATCH v4 0/6] x86 CRC optimizations

From: Eric Biggers
Date: Mon Feb 10 2025 - 13:01:44 EST


On Mon, Feb 10, 2025 at 09:45:34AM -0800, Eric Biggers wrote:
> This patchset applies to the crc tree and is also available at:
>
> git fetch https://git.kernel.org/pub/scm/linux/kernel/git/ebiggers/linux.git crc-x86-v4
>
> This series replaces the existing x86 PCLMULQDQ optimized CRC code with
> new code that is shared among the different CRC variants and also adds
> VPCLMULQDQ support, greatly improving performance on recent CPUs. The
> last patch wires up the same optimization to crc64_be() and crc64_nvme()
> (a.k.a. the old "crc64_rocksoft") which previously were unoptimized,
> improving the performance of those CRC functions by as much as 100x.
> crc64_be is used by bcachefs, and crc64_nvme is used by blk-integrity.
>

FYI, I've applied this to crc-next.

- Eric