]> www.infradead.org Git - users/jedix/linux-maple.git/commit
riscv/crc-t10dif: add Zbc optimized CRC-T10DIF function
authorEric Biggers <ebiggers@google.com>
Sun, 16 Feb 2025 22:55:29 +0000 (14:55 -0800)
committerEric Biggers <ebiggers@google.com>
Mon, 10 Mar 2025 16:29:25 +0000 (09:29 -0700)
commit8bf3e17898eb3dbf1bd07f857a6b06d04602ce78
treedf5974b10944b0e665e88649a6fc5db867d98169
parent72acff5f81851fe0858d2430b35b4b08f8f27a72
riscv/crc-t10dif: add Zbc optimized CRC-T10DIF function

Wire up crc_t10dif_arch() for RISC-V using crc-clmul-template.h.  This
greatly improves CRC-T10DIF performance on Zbc-capable CPUs.

Tested-by: Björn Töpel <bjorn@rivosinc.com>
Acked-by: Alexandre Ghiti <alexghiti@rivosinc.com>
Link: https://lore.kernel.org/r/20250216225530.306980-4-ebiggers@kernel.org
Signed-off-by: Eric Biggers <ebiggers@google.com>
arch/riscv/Kconfig
arch/riscv/lib/Makefile
arch/riscv/lib/crc-clmul-consts.h
arch/riscv/lib/crc-clmul.h
arch/riscv/lib/crc-t10dif.c [new file with mode: 0644]
arch/riscv/lib/crc16_msb.c [new file with mode: 0644]