git: b77f6ae68941 - main - Revert "zfs: Wire sha512 offload to the build"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 04 Jul 2026 09:15:46 UTC
The branch main has been updated by mav:
URL: https://cgit.FreeBSD.org/src/commit/?id=b77f6ae68941c0a1f624fe351becd3726bac1cee
commit b77f6ae68941c0a1f624fe351becd3726bac1cee
Author: Alexander Motin <mav@FreeBSD.org>
AuthorDate: 2026-07-04 09:14:02 +0000
Commit: Alexander Motin <mav@FreeBSD.org>
CommitDate: 2026-07-04 09:14:02 +0000
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.
---
sys/conf/kern.pre.mk | 3 ++-
sys/contrib/openzfs/include/os/freebsd/spl/sys/simd_x86.h | 14 --------------
sys/contrib/openzfs/module/Makefile.bsd | 2 +-
sys/modules/zfs/Makefile | 2 +-
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
@@ -191,20 +191,6 @@ zfs_shani_available(void)
return (has_shani && __ymm_enabled());
}
-/*
- * 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:
*
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" || \