git: 344986ff4cb6 - main - zfs: powerpc: disable kernel floating point support
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 06 Oct 2022 20:35:30 UTC
The branch main has been updated by alfredo:
URL: https://cgit.FreeBSD.org/src/commit/?id=344986ff4cb6feaca23029c7ce6075a87a16cdfc
commit 344986ff4cb6feaca23029c7ce6075a87a16cdfc
Author: Alfredo Dal'Ava Junior <alfredo@FreeBSD.org>
AuthorDate: 2022-10-06 21:48:01 +0000
Commit: Alfredo Dal'Ava Junior <alfredo@FreeBSD.org>
CommitDate: 2022-10-06 23:35:48 +0000
zfs: powerpc: disable kernel floating point support
Powerpc* doesn't support support floating point in the kernel yet,
so disable it on zfs for now.
This fixes "panic: altivec unavailable trap" when loading zfs.ko
Approved by: jhibbits
Sponsored by: Instituto de Pesquisas Eldorado (eldorado.org.br)
Differential Revision: https://reviews.freebsd.org/D36894
---
sys/contrib/openzfs/include/os/freebsd/spl/sys/simd_powerpc.h | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/sys/contrib/openzfs/include/os/freebsd/spl/sys/simd_powerpc.h b/sys/contrib/openzfs/include/os/freebsd/spl/sys/simd_powerpc.h
index 34d5e23e2fbb..620b03d0b7d1 100644
--- a/sys/contrib/openzfs/include/os/freebsd/spl/sys/simd_powerpc.h
+++ b/sys/contrib/openzfs/include/os/freebsd/spl/sys/simd_powerpc.h
@@ -55,7 +55,9 @@
#include <machine/pcb.h>
#include <machine/cpu.h>
-#define kfpu_allowed() 1
+/* FreeBSD doesn't support floating point on powerpc kernel yet */
+#define kfpu_allowed() 0
+
#define kfpu_initialize(tsk) do {} while (0)
#define kfpu_begin() do {} while (0)
#define kfpu_end() do {} while (0)