Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 7 Apr 2023 21:45:48 GMT
From:      Mateusz Guzik <mjg@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: d6e24901349d - main - zfs: disable kernel fpu usage on arm and aarc64
Message-ID:  <202304072145.337LjmDW045211@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by mjg:

URL: https://cgit.FreeBSD.org/src/commit/?id=d6e24901349dc34a2f8040d67730eb2d510073ab

commit d6e24901349dc34a2f8040d67730eb2d510073ab
Author:     Mateusz Guzik <mjg@FreeBSD.org>
AuthorDate: 2023-04-07 21:44:49 +0000
Commit:     Mateusz Guzik <mjg@FreeBSD.org>
CommitDate: 2023-04-07 21:44:49 +0000

    zfs: disable kernel fpu usage on arm and aarc64
    
    It is not implemented and causes panics on boot.
    
    This is a temporary measure until someone(tm) sorts it out.
    
    Reported by:    many
    Sponsored by:   Rubicon Communications, LLC ("Netgate")
---
 sys/contrib/openzfs/include/os/freebsd/spl/sys/simd_aarch64.h | 2 +-
 sys/contrib/openzfs/include/os/freebsd/spl/sys/simd_arm.h     | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/sys/contrib/openzfs/include/os/freebsd/spl/sys/simd_aarch64.h b/sys/contrib/openzfs/include/os/freebsd/spl/sys/simd_aarch64.h
index df33bdaeccf8..7d2e2db28017 100644
--- a/sys/contrib/openzfs/include/os/freebsd/spl/sys/simd_aarch64.h
+++ b/sys/contrib/openzfs/include/os/freebsd/spl/sys/simd_aarch64.h
@@ -47,7 +47,7 @@
 #include <machine/elf.h>
 #include <machine/md_var.h>
 
-#define	kfpu_allowed()		1
+#define	kfpu_allowed()		0
 #define	kfpu_initialize(tsk)	do {} while (0)
 #define	kfpu_begin()		do {} while (0)
 #define	kfpu_end()		do {} while (0)
diff --git a/sys/contrib/openzfs/include/os/freebsd/spl/sys/simd_arm.h b/sys/contrib/openzfs/include/os/freebsd/spl/sys/simd_arm.h
index 178fbc3b3c6e..c462220289d6 100644
--- a/sys/contrib/openzfs/include/os/freebsd/spl/sys/simd_arm.h
+++ b/sys/contrib/openzfs/include/os/freebsd/spl/sys/simd_arm.h
@@ -46,7 +46,7 @@
 #include <machine/elf.h>
 #include <machine/md_var.h>
 
-#define	kfpu_allowed()		1
+#define	kfpu_allowed()		0
 #define	kfpu_initialize(tsk)	do {} while (0)
 #define	kfpu_begin()		do {} while (0)
 #define	kfpu_end()		do {} while (0)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202304072145.337LjmDW045211>