Commit graph

2266 commits

Author SHA1 Message Date
Brooks Davis
edcdfc5b68 x86emu: remove localy added __FBSDID
This partially reverts 0a2e9846fd.

Reviewed by:	imp, delphij
Differential Revision:	https://reviews.freebsd.org/D42705

(cherry picked from commit 3faba3002f466e1bdad4767c55257e04433ee96b)
2023-12-13 23:08:51 +00:00
Mark Johnston
c2b39a756f OpenZFS: Ensure that zfs_getattr() initializes the va_rdev field
Otherwise the field is left uninitialized, leading to a possible kernel
memory disclosure to userspace or to the network.  Use the same
initialization value we use in zfsctl_common_getattr().

Reported-by: KMSAN
Sponsored-by: The FreeBSD Foundation
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Ed Maste <emaste@FreeBSD.org>
Signed-off-by: Mark Johnston <markj@FreeBSD.org>

(cherry picked from commit 11656234b560c401dec6a16e1bf048b20fd31aac)
2023-12-10 12:46:57 -05:00
Konstantin Belousov
c99f50351c vn_copy_file_range(): provide ENOSYS fallback to vn_generic_copy_file_range()
(cherry picked from commit c5405d1c850765d04f74067ebb71f57e9a26b8ea)
2023-12-05 02:43:27 +02:00
Martin Matuska
62304a0c3b zfs: merge openzfs/zfs@494aaaed8 (zfs-2.2-release) into stable/14
OpenZFS release 2.2.2

Notable upstream pull request merges:

 #15532 e4985bf5a zdb: Fix zdb '-O|-r' options with -e/exported zpool
 #15533 89fcb8c6f Revert "Tune zio buffer caches and their alignments"
 #15541 d702f86ea brt: lift internal definitions into _impl header
 #15543 56a2a0981 ZIL: Do not encrypt block pointers in lr_clone_range_t
 #15551 349fb77f1 FreeBSD: Fix the build on FreeBSD 12
 #15563 522414da3 FreeBSD: Fix ZFS so that snapshots under .zfs/snapshot are
                  NFS visible
 #15566 2a953e0ac dmu_buf_will_clone: fix race in transition back to NOFILL
 #15571 9b9b09f45 dnode_is_dirty: check dnode and its data for dirtiness
 #15603 a8c256046 ZIL: Call brt_pending_add() replaying TX_CLONE_RANGE

Obtained from:	OpenZFS
OpenZFS commit:	494aaaed89
OpenZFS tag:	zfs-2.2.2
2023-12-01 12:31:24 +01:00
Bjoern A. Zeeb
d27f3b8c7e iwlwifi: re-enable "Invalid TXQ id" logging
Various reports recently hit the "Invalid TXQ id" in iwlwifi again.
Unconditionally enable logging and add a note to report to a specific
PR in the log message for now.
Along with 018d93ece16b this will hopefully help us to understand what
is going on.

Sponsored by:	The FreeBSD Foundation
PR:	274382

(cherry picked from commit ad134f8ab768e3b1d2db203f1cc963bdf0eea857)
2023-11-30 00:36:57 +00:00
Rob N
99385ec7c2 zfs: cherry-pick commit from master
#15566 688514e47 dmu_buf_will_clone: fix race in transition back to NOFILL

Obtained from:	OpenZFS

(cherry picked from commit 688514e4704bdee4551d25960febd322ac26f297)
2023-11-28 22:00:48 +01:00
Alexander Motin
1b910e43b0 zfs: cherry-pick commit from master
#15543 27d8c23c5 ZIL: Do not encrypt block pointers in lr_clone_range_t

Obtained from:	OpenZFS

(cherry picked from commit 27d8c23c582056a23509a7b80844a1b6435750b0)
2023-11-28 22:00:02 +01:00
Rob N
d92e0d62c9 zfs: cherry-pick commit from master
#15571 30d581121 dnode_is_dirty: check dnode and its data for dirtiness

Obtained from:  OpenZFS

(cherry picked from commit 30d581121bb122c90959658e7b28b1672d342897)
2023-11-28 21:59:32 +01:00
Martin Matuska
f7f5c2419e zfs: merge openzfs/zfs@55dd24c4c (zfs-2.2-release) into stable/14
OpenZFS release 2.2.1

Notable upstream pull request merges:

 #14378 6d693e20a Large sync writes perform worse with slog
 #15243 78fd79eac Add zfs_prepare_disk script for disk firmware install
 #15356 b76724ae4 FreeBSD: Improve taskq wrapper
 #15360 f9a9aea12 Add mutex_enter_interruptible() for interruptible
                  sleeping IOCTLs
 #15371 e82e68400 DMU: Do not pre-read holes during write
 #15390 79f7de575 Remove lock from dsl_pool_need_dirty_delay()
 #15397 6e41aca51 Trust ARC_BUF_SHARED() more
 #15402 eaa62d995 Properly pad struct tx_cpu to cache line
 #15405 1cc1bf4fa Set spa_ccw_fail_time=0 when expanding a vdev
 #15416 edebca5df FreeBSD: taskq: Remove unused declaration
 #15451 7aef672b7 Read prefetched buffers from L2ARC
 #15452 bd7a02c25 Tune zio buffer caches and their alignments
 #15456 3ec4ea68d Unify arc_prune_async() code
 #15465 459c99ff2 Fix block cloning between unencrypted and encrypted
                  datasets
 #15478 76663fe37 Fix accounting error for pending sync IO ops in zpool
                  iostat
 #15529 87e9e8286 Add a tunable to disable BRT support

Obtained from:	OpenZFS
OpenZFS commit:	55dd24c4cc
OpenZFS tag:	zfs-2.2.1
2023-11-22 12:43:59 +01:00
Martin Matuska
c5eb93ef57 zfs: cherry-pick change from master
#15465 763ca47f Fix block cloning between unencrypted and encrypted
                 datasets

Fixes a kernel panic when block cloning is enabled and system is trying
to read data from a file copied using copy_file_range(2), e.g. with cp(1)
from an unencrypted dataset into an encrypted dataset on the same ZFS pool.
As the file has not been encrypted, to fix the filesystem inconsistency
and to avoid future panics it must be deleted (metadata is readable).

Obtained from:	OpenZFS
OpenZFS commit:	763ca47fa81808be62ab5e02357e896233f24abc
2023-11-01 10:29:34 +01:00
Martin Matuska
c458bf557d zfs: cherry-pick change from master
#15405 ea30b5a9e Set spa_ccw_fail_time=0 when expanding a vdev

Fixes 5-minute autoexpand delay on ZFS-root VM images.

Requested by:	cperciva
Co-Authored-By:	Colin Percival <cperciva@FreeBSD.org>
Obtained from:	OpenZFS
OpenZFS commit:	ea30b5a9e0d266baa13398ed8f9435de050f4b25
2023-10-23 00:45:03 +02:00
Martin Matuska
b2d6bc7597 zfs: merge openzfs/zfs@95785196f (zfs-2.2-release) into stable/14
OpenZFS release 2.2.0

This commit adjusts the version numbers only.

Obtained from:	OpenZFS
OpenZFS commit:	95785196f2
OpenZFS tag:	zfs-2.2.0
2023-10-14 20:29:47 +02:00
Martin Matuska
69816d277f zfs: merge openzfs/zfs@2bba9fd47 (zfs-2.2-release) into stable/14
Notable upstream pull request merges:
 #15368 f6e6e77ed FreeBSD: Reduce divergence from in-tree sources
 #15395 2bba9fd47 Zpool can start allocating from metaslab before
                  TRIMs have completed

Obtained from:	OpenZFS
OpenZFS commit:	2bba9fd479
2023-10-13 10:17:40 +02:00
Martin Matuska
fdc38bc6cd zfs: merge openzfs/zfs@2407f30bd (zfs-2.2-release) into stable/14
Notable upstream pull request merges:
 #15290 33d7c2d16 import: require force when cachefile hostid doesn't
                  match on-disk
 #15319 bcd010d3a Reduce number of metaslab preload taskq threads
 #15339 1611b8e56 Add BTI landing pads to the AArch64 SHA2 assembly
 #15340 bc77a0c85 ARC: Remove b_cv from struct l1arc_buf_hdr
 #15347 3158b5d71 ARC: Drop different size headers for crypto
 #15350 ba7797c8d ARC: Remove b_bufcnt/b_ebufcnt from ARC headers
 #15353 9be8ddfb3 ZIL: Reduce maximum size of WR_COPIED to 7.5K
 #15362 8495536f7 zfsconcepts: add description of block cloning

Obtained from:	OpenZFS
OpenZFS commit:	2407f30bda
OpenZFS tag:	zfs-2.2.0-rc5
2023-10-08 10:14:19 +02:00
Bjoern A. Zeeb
8323f69b88 rtw88: update driver from upstream
This is a combined version of updates of the rtw88 driver based
on wireless-testing
(wt-2023-05-11) 711dca0ca3d77414f8f346e564e9c8640147f40d (after v6.4-rc1),
(wt-2023-06-09) 7bd20e011626ccc3ad53e57873452b1716fcfaaa (after v6.4-rc5),
(wt-2023-07-24) 62e409149b62a285e89018e49b2e115757fb9022 (after v6.5-rc3),
(wt-2023-08-06) 2a220a15be657a24868368892e3e2caba2115283 (after v6.5-rc4).

This update follows other currently disconnected LinuxKPI based wireless
drivers to lift them all to a same version in case someone else wants to
work on this driver in parallel to predominant iwlwifi efforts.

While debugging some funky register reads of 0xaeaea from RF_CFGCH
resulting in "rtw880: [TXGAPK] unknown channel 234!!" more of these
reads came to my attention hidden by using the register index rather
than the defined value.  Make this more grep-able.

(cherry picked from commit 90aac0d83bc9645f51ef0c2aeae6f9c0540bb031)
(cherry picked from commit 4f3b2bba240b6e0603b5cbb47155fd8215bcbcb3)
2023-10-06 12:47:41 +00:00
Bjoern A. Zeeb
8aa738297b iwlwifi: local namespace change for sysctl
In order for the FreeBSD-specific sysctl (which gives us a full list of
PCI device IDs/names/and firmware prefixes) to be in the proper namespace
add a LINUXKPI_PARAM_PREFIX definition to the file as well.

The sysctl can now be used as:
sysctl -n compat.linuxkpi.iwlwifi_pci_ids_name

Sponsored by:	The FreeBSD Foundation

(cherry picked from commit 0a22677bce28bc9ad39f219b726b5791852d84ba)
2023-10-06 12:47:41 +00:00
Bjoern A. Zeeb
e504b5da3e iwlwifi firmware: update up-to -83 / updated -77 for others
Firmware was obtained from linux-firmware at
dfa11466cf000120d1551146fd5bf78c44941eda.

Sponsored by:	The FreeBSD Foundation

(cherry picked from commit 027768a21217499dd85aba8608715a5bf66a7857)
2023-10-06 12:47:41 +00:00
Bjoern A. Zeeb
12d5f2e719 iwlwifi: update driver from upstream
This is a combined versions of updates of the iwlwifi driver based
on wireless-testing
(wt-2023-05-11) 711dca0ca3d77414f8f346e564e9c8640147f40d (after v6.4-rc1).
(wt-2023-06-09) 7bd20e011626ccc3ad53e57873452b1716fcfaaa (after v6.4-rc5).
(wt-2023-07-24) 62e409149b62a285e89018e49b2e115757fb9022 (after v6.5-rc3).

Sponsored by:	The FreeBSD Foundation

(cherry picked from commit 9af1bba44e1ce9b0296ae56760b564d67ab7a1cf)
2023-10-06 12:47:40 +00:00
Bjoern A. Zeeb
82782cffea LinuxKPI: 802.11: prepare for iwlwifi driver updates
Update ieee80211_request_smps() to the new number of arguments in
LinuxKPI (which was already prepared) and update the one call in the
older iwlwifi driver version.
This will allow iwlwifi as-is now and rtw88 to compile in case someone
else wants to work on the latter in parallel to predominant efforts on
the former.

Unconditionally enable the other changes for newer drivers, as needed by
iwlwifi (and others).

Sponsored by:	The FreeBSD Foundation

(cherry picked from commit 815b7436a7c6302365b6514194d27d41cb736227)
(cherry picked from commit 3e1f5cc9a81a6065ddc371eea5755b4e207d72f8)
2023-10-06 12:47:39 +00:00
Bjoern A. Zeeb
a513f65b92 iwlwifi: fix a bug in iwl_ssid_exist()
Rather than always comparing a given SSID to the first SSID of the
IE list, compare it to the the iterator one.  That way duplicates can
be found.

Sponsored by:	The FreeBSD Foundation

(cherry picked from commit ee7077f24f5b02bde8cf5c202848128f18733398)
2023-10-04 15:19:18 +00:00
Martin Matuska
a21cb0234b zfs: merge openzfs/zfs@8015e2ea6 (zfs-2.2-release) into stable/14
Notable upstream pull request merges:
 #15240 e9dc31c74 Update the behavior of mountpoint property
 #15240 c53bc3837 Improve the handling of sharesmb,sharenfs properties
 #15298 0ce1b2ca1 Invoke zdb by guid to avoid import errors
 #15301 0aabd6b48 ZIL: Avoid dbuf_read() in ztest_get_data()
 #15308 9e36c576f Don't allocate from new metaslabs
 #15312 229ca7d73 Fix ENOSPC for extended quota
 #15321 3079bf2e6 Restrict short block cloning requests
 #15322 8015e2ea6 Add '-u' - nomount flag for zfs set
 #15324 b34bf2d5f Tweak rebuild in-flight hard limit
 #15331 608741d06 Report ashift of L2ARC devices in zdb
 #15333 0d870a177 Fix invalid pointer access in trace_dbuf.h

Obtained from:	OpenZFS
OpenZFS commit:	8015e2ea66
2023-10-04 15:03:41 +02:00
Martin Matuska
6cfb90c6eb zfs: merge openzfs/zfs@5f3069867 (zfs-2.2-release) into stable/14
Notable upstream pull request merges:
  #15248 cc75c816c Fix l2arc_apply_transforms ztest crash
  #15273 6d9bc3ec9 Fix occasional rsend test crashes
  #15288 f63683fe0 cmd: add 'help' subcommand to zpool and zfs
  #15297 a199cac6c status: report pool suspension state under
                   failmode=continue

Obtained from:  OpenZFS
OpenZFS commit:	5f30698670
2023-09-25 00:55:30 +02:00
Eric Joyner
65d0d78073
ice_ddp: Update to 1.3.35.0
This is intended to be used with the upcoming updated ice(4) version
1.38.16-k.

Signed-off-by: Eric Joyner <erj@FreeBSD.org>

Sponsored by:	Intel Corporation

(cherry picked from commit e04c4b4a369df3f1dcbebbdf726193f02af60801)
2023-09-22 13:37:17 -07:00
Martin Matuska
35e5fd1b28 zfs: merge openzfs/zfs@62677576a (zfs-2.2-release) into stable/14
Notable upstream pull request merges:
 #15274 f7a07d76e Retire z_nr_znodes
 #15278 62677576a ZIL: Fix potential race on flush deferring
 #15279 11943656f Update the MOS directory on spa_upgrade_errlog()
 #15281 54c6fbd37 zed: Allow autoreplace and fault LEDs for removed vdevs

Obtained from:	OpenZFS
OpenZFS commit:	62677576a7
2023-09-21 11:29:21 +02:00
Martin Matuska
2b2fbeb3a9 zfs: merge openzfs/zfs@e96fbdba3 (zfs-2.2-release) into stable/14
Notable upstream pull request merges:
  #15251 Add more constraints for block cloning

Obtained from:	OpenZF
OpenZFS commit:	e96fbdba34
2023-09-11 09:24:58 +02:00
Xin LI
579455e8f0 MFC: MFV: zlib: examples: define functions as static ones. (PR #855)
(cherry picked from commit ef3a764bc5bed4bc071a81e04c4d3254010274c3)
2023-09-09 00:26:52 -07:00
Martin Matuska
f789381671 zfs: merge openzfs/zfs@32949f256 (zfs-2.2-release) into stable/14
Notable upstream pull request merges:
  #15024 Add missed DMU_PROJECTUSED_OBJECT prefetch
  #15029 Do not request data L1 buffers on scan prefetch
  #15036 FreeBSD: catch up to __FreeBSD_version 1400093
  #15039 Fix raw receive with different indirect block size
  #15047 FreeBSD: Fix build on stable/13 after 1302506
  #15049 Fix the ZFS checksum error histograms with larger record sizes
  #15052 Reduce bloat in ereport.fs.zfs.checksum events
  #15056 Avoid extra snprintf() in dsl_deadlist_merge()
  #15061 Ignore pool ashift property during vdev attachment
  #15063 Don't panic if setting vdev properties is unsupported for this
         vdev type
  #15067 spa_min_alloc should be GCD, not min
  #15071 Add explicit prefetches to bpobj_iterate()
  #15072 Adjust prefetch parameters
  #15079 set autotrim default to 'off' everywhere
  #15080 ZIL: Fix config lock deadlock
  #15088 metaslab: tuneable to better control force ganging
  #15096 Avoid waiting in dmu_sync_late_arrival()
  #15097 BRT should return EOPNOTSUPP
  #15103 Remove zl_issuer_lock from zil_suspend()
  #15107 Remove fastwrite mechanism
  #15113 libzfs: sendrecv: send_progress_thread: handle SIGINFO/SIGUSR1
  #15122 ZIL: Second attempt to reduce scope of zl_issuer_lock
  #15129 zpool_vdev_remove() should handle EALREADY error return
  #15132 ZIL: Replay blocks without next block pointer
  #15148 zfs_clone_range should return descriptive error codes
  #15153 ZIL: Avoid dbuf_read() before dmu_sync()
  #15161 Make zoned/jailed zfsprops(7) make more sense
  #15172 copy_file_range: fix fallback when source create on same txg
  #15180 Update outdated assertion from zio_write_compress
  #15216 Relax error reporting in zpool import and zpool split
  #15227 ZIL: Tune some assertions
  #15228 ZIL: Revert zl_lock scope reduction
  #15233 ZIL: Change ZIOs issue order

Obtained from:	OpenZFS
OpenZFS commit:	32949f2560
Approved by:	re (gjb)
2023-09-03 09:15:24 +02:00
Bjoern A. Zeeb
e2340276fc rtw89: update driver from upstream
This is a set of updates of the rtw89 driver based on wireless-testing
(wt-2023-05-11) 711dca0ca3d77414f8f346e564e9c8640147f40d (after v6.4-rc1).
(wt-2023-06-09) 7bd20e011626ccc3ad53e57873452b1716fcfaaa (after v6.4-rc5).
(wt-2023-07-24) 62e409149b62a285e89018e49b2e115757fb9022 (after v6.5-rc3).
(wt-2023-08-06) 2a220a15be657a24868368892e3e2caba2115283 (after v6.5-rc4).
(wt-2023-08-13) 81e147b1317ee7cde8b624ee8c0501b470d7e91c (after v6.5-rc5).

MFC after:      20 days
2023-08-21 01:35:29 +00:00
Bjoern A. Zeeb
cbb3ec2523 mt76: update driver from upstream
This is a set of updates of the mt76 driver based on wireless-testing
(wt-2023-05-11) 711dca0ca3d77414f8f346e564e9c8640147f40d (after v6.4-rc1),
  This adds support for mt7996 as well.
(wt-2023-06-09) 7bd20e011626ccc3ad53e57873452b1716fcfaaa (after v6.4-rc5),
(wt-2023-07-24) 62e409149b62a285e89018e49b2e115757fb9022 (after v6.5-rc3),
(wt-2023-08-06) 2a220a15be657a24868368892e3e2caba2115283 (after v6.5-rc4).

The current version of LinuxKPI lacks support for "page pool" which
needs enhancing and updating a decade or so old shortcut mapping
struct page directly to struct vm_page.

MFC after:	20 days
2023-08-21 01:34:03 +00:00
Bjoern A. Zeeb
5c1def83a4 ath12k: import driver from upstream
Import BSD-3-Clause-Clear ath12k driver based on wireless-testing
(wt-2023-05-11) 711dca0ca3d77414f8f346e564e9c8640147f40d (after v6.4-rc1)
with further updates based on
(wt-2023-06-09) 7bd20e011626ccc3ad53e57873452b1716fcfaaa (after v6.4-rc5),
(wt-2023-07-24) 62e409149b62a285e89018e49b2e115757fb9022 (after v6.5-rc3),
(wt-2023-08-06) 2a220a15be657a24868368892e3e2caba2115283 (after v6.5-rc4),
(wt-2023-08-13) 81e147b1317ee7cde8b624ee8c0501b470d7e91c (after v6.5-rc5).

Complement the driver to make compile on FreeBSD
using LinuxKPI with changes covered by #ifdef (__FreeBSD__).

Add the module build framework but keep disconnected from the
build for now.
The current driver (or rather LinuxKPI) lacks support for some
"qcom" bits needed in order to get things working (as does ath11k).
There was interest by various people to enhance support further
for ath11k which will equally benefit ath12k.

Given the lack of full license texts on the files this is
imported under the draft policy for handling SPDX files (D29226)
and with approval for BSD-3-Clause-Clear. [1]

Approved by:	core (jhb, 2023-05-11) [1]
MFC after:      20 days
2023-08-21 01:33:04 +00:00
Bjoern A. Zeeb
28348caeee ath11k: update driver from upstream
This is a set of updates of the ath11k driver based on wireless-testing
(wt-2023-05-11) 711dca0ca3d77414f8f346e564e9c8640147f40d (after v6.4-rc1),
(wt-2023-06-09) 7bd20e011626ccc3ad53e57873452b1716fcfaaa (after v6.4-rc5),
(wt-2023-07-24) 62e409149b62a285e89018e49b2e115757fb9022 (after v6.5-rc3),
(wt-2023-08-06) 2a220a15be657a24868368892e3e2caba2115283 (after v6.5-rc4).

MFC after:	20 days
2023-08-21 01:32:46 +00:00
Bjoern A. Zeeb
07724ba62b ath10k: update driver from upstream
This is a set of updates of the ath10k driver based on wireless-testing
(wt-2023-05-11) 711dca0ca3d77414f8f346e564e9c8640147f40d (after v6.4-rc1),
(wt-2023-06-09) 7bd20e011626ccc3ad53e57873452b1716fcfaaa (after v6.4-rc5),
(wt-2023-07-24) 62e409149b62a285e89018e49b2e115757fb9022 (after v6.5-rc3),
(wt-2023-08-06) 2a220a15be657a24868368892e3e2caba2115283 (after v6.5-rc4).

MFC after:	20 days
2023-08-21 01:32:10 +00:00
Bjoern A. Zeeb
eb50aa680f ath1xk_common: update common athk files from upstream
Update ath1xk_common based on wireless-testing (wt-2023-05-11)
711dca0ca3d77414f8f346e564e9c8640147f40d (right after v6.4-rc1).

MFC after:	20 days
2023-08-21 01:31:57 +00:00
Bjoern A. Zeeb
734e82fe33 ath10k: specifically mark a debug workaround for an early firmware crash
During the last import a (debug) workaround to avoid an early firmware
crash was imported.  In order to remember and to separate it from
upstream sources put it under #ifdef

MFC after:	20 days
2023-08-21 01:30:50 +00:00
Xin LI
4717628ed8 MFV: zlib 1.3
Relnotes:	yes
MFC after:	2 weeks
2023-08-19 23:06:49 -07:00
Martin Matuska
28d2e3b5de zfs: cherry-pick fix from openzfs
Vendor PR:
  #15103 Remove zl_issuer_lock from zil_suspend()

Obtained from:	OpenZFS
OpenZFS commit:	2848de11e516a2ef2e6baa574a60d77a6fb47023

Note: full vendor imports will continue when stable/14 has been branched
2023-08-10 10:11:52 +02:00
Martin Matuska
cd25b0f740 zfs: cherry-pick fix from openzfs
Vendor PR:
  #15080 ZIL: Fix config lock deadlock

Obtained from:	OpenZFS
OpenZFS commit:	2cb992a99ccadb78d97049b40bd442eb4fdc549d

Note: full vendor imports will continue when stable/14 has been branched
2023-08-10 09:56:53 +02:00
Marius Strobl
077ef5b445 ath(4): Remove MIPS SoC build glue and AR9130 from FreeBSD HAL
All of these are obsoleted by the general removal of MIPS support.

Actually, corresponding to the removed AH_SUPPORT_x, there is more
superfluous support sprinkled across the HAL source. However, that
code is left in place for now in order to ease a sync to NetBSD.

Reviewed by:	emaste (w/ man page fix)
Approved by:	adrian
Differential Revision:	https://reviews.freebsd.org/D41355
2023-08-09 17:44:46 +02:00
Emmanuel Vadot
fac71e4e09 Import device-tree files from Linux 6.4
Sponsored by:   Beckhoff Automation GmbH & Co. KG
2023-08-09 15:32:31 +02:00
Emmanuel Vadot
cb7aa33ac6 Import device-tree files from Linux 6.3
Sponsored by:   Beckhoff Automation GmbH & Co. KG
2023-08-09 15:30:56 +02:00
Emmanuel Vadot
8bab661a33 Import device-tree files from Linux 6.2
Sponsored by:   Beckhoff Automation GmbH & Co. KG
2023-08-09 15:29:14 +02:00
Emmanuel Vadot
7ef62cebc2 Import device-tree files from Linux 6.1
Sponsored by:   Beckhoff Automation GmbH & Co. KG
2023-08-09 15:27:37 +02:00
Yuri Pankov
b36f469a15 zfs: set autotrim default to 'off'
As it turns out having autotrim default to 'on' on FreeBSD never really
worked due to mess with defines where userland and kernel module were
getting different default values (userland was defaulting to 'off',
module was thinking it's 'on').

PR:		264234
Reviewed by:	mav (zfs)
Differential Revision: https://reviews.freebsd.org/D41056
2023-07-18 11:20:11 +02:00
Jessica Clarke
c63c4e694c Don't bother to check COMPAT_32BIT when __LP64__ is defined
Under COMPAT_32BIT we are compiling 32-bit code and so __LP64__ is not
defined, __ILP32__ is, and thus the check is completely redundant.

Reviewed by:	brooks, jhb, imp
Differential Revision:	https://reviews.freebsd.org/D40917
2023-07-09 18:45:32 +01:00
Mateusz Guzik
ba8cc6d727 vfs: use __enum_uint8 for vtype and vstate
This whacks hackery around only reading v_type once.

Bump __FreeBSD_version to 1400093
2023-07-05 15:06:30 +00:00
Martin Matuska
0a97523d46 zfs: merge openzfs/zfs@009d3288d
Notable upstream pull request merges:
  #14654 Pack our DDT ZAPs a bit denser
  #14979 Again fix race between zil_commit() and zil_suspend()
  #14985 Some ZIO micro-optimizations
  #15000 Fix remount when setting multiple properties
  #15004 ddt_addref: remove unnecessary phys fill when refcount is 0
  #15007 Do not report bytes skipped by scan as issued
  #15023 Enable tuning of ZVOL open timeout value

Obtained from:	OpenZFS
OpenZFS commit:	009d3288de
OpenZFS tag:	zfs-2.2.0-rc1
2023-07-01 15:24:26 +02:00
Yuri Pankov
af2939f227 Revert "openzfs: use IN_BASE instead of IN_FREEBSD_BASE in spa.h"
Further testing (sadly, after committing) shows that I missed the fact
that IN_BASE is used as userland/kernel delimiter (and not just for
FreeBSD-specific code unlike the IN_FREEBSD_BASE).  Revert until I have
a full (and proper) fix.

This reverts commit d2a45e9e81.
2023-06-29 23:04:35 +02:00
Yuri Pankov
d2a45e9e81 openzfs: use IN_BASE instead of IN_FREEBSD_BASE in spa.h
Consistently use IN_BASE to allow libzfs to get the same default
autotrim value as kernel does.

Note that this does not change the default value itself, rather
fixing the source of value and the value itself in e.g. zpool get
output if it was not set explicitly.  (And as a reminder, default
value of autotrim on FreeBSD is 'on', despite what zpoolprops(7)
says currently.)

PR:		264234
Reviewed by:	imp
Differential Revision:	https://reviews.freebsd.org/D40075
2023-06-29 22:14:18 +02:00
Martin Matuska
7b5e687355 zfs: merge openzfs/zfs@a9d6b0690
Notable upstream pull request merges:
  #14925 Another set of vdev queue optimizations
  #14964 Use big transactions for small recordsize writes
  #14999 ZIL: Fix another use-after-free

Obtained from:	OpenZFS
OpenZFS commit:	a9d6b0690b
2023-06-29 01:39:52 +02:00
Warner Losh
2d38d9839b openzfs: Remove broken symlinks
These symlinks are broken. They point to files that don't exist, and
rely on having them be built using a 'in-tree' build that FreeBSD
doesn't use. They also show up as errors on grep -r. Since they are
broken and can't possibly work, remove them for now since non-functional
symlinks matching an upstrem repo that can't work in our repo aren't
worth the error messages.

Though one could argue the whole debian directory should be removed, I
did the minimal change necessary. These can return when the fundamental
issue is fixed and the contrib/debian tree is useful on FreeBSD systems.
2023-06-27 11:15:20 -06:00