Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

x86/crc: drop checks of CONFIG_AS_VPCLMULQDQ

Now that the minimum binutils version supports VPCLMULQDQ (and the
minimum clang version does too), there is no need to check for assembler
support before compiling code that uses these instructions.

Link: https://lore.kernel.org/r/20250531211318.83677-1-ebiggers@kernel.org
Signed-off-by: Eric Biggers <ebiggers@kernel.org>

+1 -9
-7
arch/x86/lib/crc-pclmul-template.S
··· 561 561 RET 562 562 .endm 563 563 564 - #ifdef CONFIG_AS_VPCLMULQDQ 565 564 #define DEFINE_CRC_PCLMUL_FUNCS(prefix, bits, lsb) \ 566 565 SYM_FUNC_START(prefix##_pclmul_sse); \ 567 566 _crc_pclmul n=bits, lsb_crc=lsb, vl=16, avx_level=0; \ ··· 573 574 SYM_FUNC_START(prefix##_vpclmul_avx512); \ 574 575 _crc_pclmul n=bits, lsb_crc=lsb, vl=64, avx_level=512; \ 575 576 SYM_FUNC_END(prefix##_vpclmul_avx512); 576 - #else 577 - #define DEFINE_CRC_PCLMUL_FUNCS(prefix, bits, lsb) \ 578 - SYM_FUNC_START(prefix##_pclmul_sse); \ 579 - _crc_pclmul n=bits, lsb_crc=lsb, vl=16, avx_level=0; \ 580 - SYM_FUNC_END(prefix##_pclmul_sse); 581 - #endif // !CONFIG_AS_VPCLMULQDQ
+1 -2
arch/x86/lib/crc-pclmul-template.h
··· 27 27 28 28 #define INIT_CRC_PCLMUL(prefix) \ 29 29 do { \ 30 - if (IS_ENABLED(CONFIG_AS_VPCLMULQDQ) && \ 31 - boot_cpu_has(X86_FEATURE_VPCLMULQDQ) && \ 30 + if (boot_cpu_has(X86_FEATURE_VPCLMULQDQ) && \ 32 31 boot_cpu_has(X86_FEATURE_AVX2) && \ 33 32 cpu_has_xfeatures(XFEATURE_MASK_YMM, NULL)) { \ 34 33 if (boot_cpu_has(X86_FEATURE_AVX512BW) && \