aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Motin <mav@FreeBSD.org>2026-07-04 09:14:02 +0000
committerAlexander Motin <mav@FreeBSD.org>2026-07-04 09:14:02 +0000
commitb77f6ae68941c0a1f624fe351becd3726bac1cee (patch)
treebc3914a216bd2b64c7dc4c1c3a695f06a8a90a80
parentbcb471cfb499f61d98abdc7bfd48bee0e229b02b (diff)
Revert "zfs: Wire sha512 offload to the build"
This reverts commit cd61eb4f6681b13d98b6a7be252500ad30f05f74. Some people report module load failure due to undefined symbol. I don't have those problems myself, so it might be a question of full rebuild. But I don't have time right now, so just revert.
-rw-r--r--sys/conf/kern.pre.mk3
-rw-r--r--sys/contrib/openzfs/include/os/freebsd/spl/sys/simd_x86.h14
-rw-r--r--sys/contrib/openzfs/module/Makefile.bsd2
-rw-r--r--sys/modules/zfs/Makefile2
4 files changed, 4 insertions, 17 deletions
diff --git a/sys/conf/kern.pre.mk b/sys/conf/kern.pre.mk
index 81108f29f0bb..19a7b45f4b6a 100644
--- a/sys/conf/kern.pre.mk
+++ b/sys/conf/kern.pre.mk
@@ -212,7 +212,8 @@ ZFS_CFLAGS+= -I$S/contrib/openzfs/module/icp/include \
ZFS_CFLAGS+= -D__x86_64 -DHAVE_TOOLCHAIN_SSE2 -DHAVE_TOOLCHAIN_SSSE3 \
-DHAVE_TOOLCHAIN_SSE4_1 -DHAVE_TOOLCHAIN_AVX -DHAVE_TOOLCHAIN_AVX2 \
-DHAVE_TOOLCHAIN_AVX512F -DHAVE_TOOLCHAIN_AVX512VL \
- -DHAVE_TOOLCHAIN_AVX512BW -DHAVE_TOOLCHAIN_SHA512EXT
+ -DHAVE_TOOLCHAIN_AVX512BW \
+ -DHAVE_TOOLCHAIN_VAES -DHAVE_TOOLCHAIN_VPCLMULQDQ
.endif
.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "powerpc" || \
diff --git a/sys/contrib/openzfs/include/os/freebsd/spl/sys/simd_x86.h b/sys/contrib/openzfs/include/os/freebsd/spl/sys/simd_x86.h
index ced6ac1f9eab..c562fb0171d0 100644
--- a/sys/contrib/openzfs/include/os/freebsd/spl/sys/simd_x86.h
+++ b/sys/contrib/openzfs/include/os/freebsd/spl/sys/simd_x86.h
@@ -192,20 +192,6 @@ zfs_shani_available(void)
}
/*
- * Check if SHA-512 extension is available
- */
-static inline boolean_t
-zfs_sha512ext_available(void)
-{
-#if defined(CPUID_STDEXT4_SHA512)
- return ((cpu_stdext_feature4 & CPUID_STDEXT4_SHA512) != 0 &&
- __ymm_enabled());
-#else
- return (B_FALSE);
-#endif
-}
-
-/*
* AVX-512 family of instruction sets:
*
* AVX512F Foundation
diff --git a/sys/contrib/openzfs/module/Makefile.bsd b/sys/contrib/openzfs/module/Makefile.bsd
index 436b090d9a00..a0ddbeb9ae68 100644
--- a/sys/contrib/openzfs/module/Makefile.bsd
+++ b/sys/contrib/openzfs/module/Makefile.bsd
@@ -50,7 +50,7 @@ CFLAGS+= -D__KERNEL__ -DFREEBSD_NAMECACHE -DBUILDING_ZFS -D__BSD_VISIBLE=1 \
CFLAGS+= -D__x86_64 -DHAVE_TOOLCHAIN_SSE2 -DHAVE_TOOLCHAIN_SSSE3 \
-DHAVE_TOOLCHAIN_SSE4_1 -DHAVE_TOOLCHAIN_AVX -DHAVE_TOOLCHAIN_AVX2 \
-DHAVE_TOOLCHAIN_AVX512F -DHAVE_TOOLCHAIN_AVX512VL \
- -DHAVE_TOOLCHAIN_AVX512BW -DHAVE_TOOLCHAIN_SHA512EXT
+ -DHAVE_TOOLCHAIN_AVX512BW
.endif
.if defined(WITH_DEBUG) && ${WITH_DEBUG} == "true"
diff --git a/sys/modules/zfs/Makefile b/sys/modules/zfs/Makefile
index 32231d10a99a..44a63977f288 100644
--- a/sys/modules/zfs/Makefile
+++ b/sys/modules/zfs/Makefile
@@ -42,7 +42,7 @@ CFLAGS+= -D__KERNEL__ -DFREEBSD_NAMECACHE -DBUILDING_ZFS -D__BSD_VISIBLE=1 \
CFLAGS+= -D__x86_64 -DHAVE_TOOLCHAIN_SSE2 -DHAVE_TOOLCHAIN_SSSE3 \
-DHAVE_TOOLCHAIN_SSE4_1 -DHAVE_TOOLCHAIN_AVX -DHAVE_TOOLCHAIN_AVX2 \
-DHAVE_TOOLCHAIN_AVX512F -DHAVE_TOOLCHAIN_AVX512VL \
- -DHAVE_TOOLCHAIN_AVX512BW -DHAVE_TOOLCHAIN_SHA512EXT
+ -DHAVE_TOOLCHAIN_AVX512BW
.endif
.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "powerpc" || \