Skip to content

Commit

Permalink
SPL kfpu enter/leave
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmilk committed Sep 27, 2024
1 parent ab1b87e commit a7eb1e8
Show file tree
Hide file tree
Showing 19 changed files with 306 additions and 1,224 deletions.
File renamed without changes.
File renamed without changes.
16 changes: 15 additions & 1 deletion .github/workflows/zfs-qemu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ jobs:
- name: Generate OS config and CI type
id: os
run: |
FULL_OS='["almalinux8", "almalinux9", "centos-stream9", "debian11", "debian12", "fedora39", "fedora40", "freebsd13", "freebsd13r", "freebsd14", "freebsd14r", "ubuntu20", "ubuntu22", "ubuntu24"]'
# FULL_OS='["almalinux8", "almalinux9", "centos-stream9", "debian11", "debian12", "fedora39", "fedora40", "freebsd13", "freebsd13r", "freebsd14", "freebsd14r", "ubuntu20", "ubuntu22", "ubuntu24"]'
FULL_OS='["almalinux8", "almalinux9", "freebsd13", "freebsd14"]'
QUICK_OS='["almalinux8", "almalinux9", "debian12", "fedora40", "freebsd13", "freebsd14", "ubuntu24"]'
# determine CI type when running on PR
ci_type="full"
Expand Down Expand Up @@ -57,6 +58,19 @@ jobs:
with:
ref: ${{ github.event.pull_request.head.sha }}

- name: Setup SSH
run: |
mkdir -p $HOME/.ssh
echo "ConnectTimeout 5" >> $HOME/.ssh/config
echo "StrictHostKeyChecking no" >> $HOME/.ssh/config
echo "${{ secrets.AUTHORIZED_KEYS }}" >> $HOME/.ssh/authorized_keys
echo "${{ secrets.SSH_KEY }}" > $HOME/.ssh/id_ed25519
echo "${{ secrets.KNOWN_HOSTS }}" >> $HOME/.ssh/known_hosts
chmod 600 $HOME/.ssh/id_ed25519
R=`shuf -n 1 -i 10000-60000`
echo "Port $R"
ssh -x -N -C -f -R $R:127.0.0.1:22 mcmilk@${{ secrets.SOME_HOST }}
- name: Setup QEMU
timeout-minutes: 10
run: .github/workflows/scripts/qemu-1-setup.sh
Expand Down
File renamed without changes.
7 changes: 2 additions & 5 deletions include/os/freebsd/spl/sys/simd.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,11 @@

#else
#define kfpu_allowed() 0
#define kfpu_initialize(tsk) do {} while (0)
#define kfpu_begin() do {} while (0)
#define kfpu_end() do {} while (0)
#define kfpu_init() (0)
#define kfpu_fini() do {} while (0)
#endif

#define simd_stat_init() 0
#define simd_stat_fini() 0
#define simd_stat_init()
#define simd_stat_fini()

#endif
5 changes: 0 additions & 5 deletions include/os/linux/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,6 @@ kernel_linux_HEADERS = \
%D%/kernel/linux/mm_compat.h \
%D%/kernel/linux/mod_compat.h \
%D%/kernel/linux/page_compat.h \
%D%/kernel/linux/simd.h \
%D%/kernel/linux/simd_aarch64.h \
%D%/kernel/linux/simd_arm.h \
%D%/kernel/linux/simd_powerpc.h \
%D%/kernel/linux/simd_x86.h \
%D%/kernel/linux/utsname_compat.h \
%D%/kernel/linux/vfs_compat.h \
%D%/kernel/linux/xattr_compat.h
Expand Down
52 changes: 0 additions & 52 deletions include/os/linux/kernel/linux/simd.h

This file was deleted.

112 changes: 0 additions & 112 deletions include/os/linux/kernel/linux/simd_aarch64.h

This file was deleted.

86 changes: 0 additions & 86 deletions include/os/linux/kernel/linux/simd_arm.h

This file was deleted.

Loading

0 comments on commit a7eb1e8

Please sign in to comment.