summaryrefslogtreecommitdiff
path: root/sys/modules
Commit message (Collapse)AuthorAgeFilesLines
* ice(4): Update to 1.37.7-kPiotr Kubaj2023-02-211-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Notable changes include: - DSCP QoS Support (leveraging support added in rG9c950139051298831ce19d01ea5fb33ec6ea7f89) - Improved PFC handling and TC queue assignments (now all remaining queues are assigned to TC 0 when more than one TC is enabled and the number of available queues does not evenly divide between them) - Support for dumping the internal FW state for additional debugging by Intel support - Support for allowing "No FEC" to be a valid state for the LESM to negotiate when using non-standard compliant modules Also includes various bug fixes and smaller enhancements, too. Signed-off-by: Eric Joyner <erj@FreeBSD.org> Reviewed by: erj@ Tested by: Jeff Pieper <jeffrey.pieper@intel.com> Approved by: re (cperciva) Relnotes: yes Sponsored by: Intel Corporation Differential Revision: https://reviews.freebsd.org/D38109 (cherry picked from commit 8923de59054358980102ea5acda6c6dd58273957) (cherry picked from commit ebc914f942f6655ff4c27f8717630f81c74624cb)
* ice_ddp: Update package to 1.3.30.0Eric Joyner2023-02-211-1/+1
| | | | | | | | | | | | | | | This updated DDP is intended to be used with the forthcoming ice(4) driver update to 1.37.7-k. (But it will still work with the current version.) Co-authored-by: Piotr Kubaj <pkubaj@FreeBSD.org> Signed-off-by: Eric Joyner <erj@FreeBSD.org> Approved by: re (cperciva) Sponsored by: Intel Corporation (cherry picked from commit 2508da22cd6f0904fe55d2d5f6cab7c6011f918c) (cherry picked from commit cd280c60a5b85875b8aeff8d522793914e60d19d)
* irdma: fix LINT-NOIP/NOINET/NOINET6 buildsMitchell Horne2023-02-211-0/+2
| | | | | | | | | | | | | This module depends on the presence of both INET and INET6 options in order to compile. Reviewed by: erj Fixes: cdcd52d41e24 ("irdma: Add RDMA driver for Intel(R) Ethernet...") Approved by: re (cperciva) Differential Revision: https://reviews.freebsd.org/D35343 (cherry picked from commit acdfbc6cbe0a8a976d446216be84994c8ee8d5c1) (cherry picked from commit 7333d34e5ec96db747648ab7b245d814d3140738)
* linux(4): Attach netlink on i386.Dmitry Chagin2023-02-091-0/+1
| | | | | | | Discussed with: melifaro MFC after: 3 days (cherry picked from commit 07db1f36848c008efb7ab6b37e199212560833ae)
* linux(4): Add coredump support to i386.Dmitry Chagin2023-02-091-1/+1
| | | | | | MFC after: 1 week (cherry picked from commit cc1b0f7d9626bbd116429014444cbf61edf708a2)
* irdma: Add RDMA driver for Intel(R) Ethernet Controller E810Bartosz Sobczak2023-02-082-0/+27
| | | | | | | | | | | | | | | | | | | | This is an initial commit for RDMA FreeBSD driver for Intel(R) Ethernet Controller E810, called irdma. Supporting both RoCEv2 and iWARP protocols in per-PF manner, RoCEv2 being the default. Testing has been done using krping tool, perftest, ucmatose, rping, ud_pingpong, rc_pingpong and others. Signed-off-by: Eric Joyner <erj@FreeBSD.org> Reviewed by: #manpages (pauamma_gundo.com) [documentation] Relnotes: yes Sponsored by: Intel Corporation Differential Revision: https://reviews.freebsd.org/D34690 (cherry picked from commit cdcd52d41e246ba1c0fcfad0769bd691487355ef) (cherry picked from commit e602a30bb9fc7ee041a0e629d0fd2db7933ffa32) (cherry picked from commit a6e275af46644af1de365a1edf19742bfa28bb69)
* linux_common: Fixup .PATH.Dmitry Chagin2023-02-061-1/+4
| | | | | | | | | Since we have arm64, and awaiting ppc64 Linuxulator, do not include x86 specific path to the module build for non x86 architectures. MFC after: 1 week (cherry picked from commit c19fc5cd9b49115604ce2b89279e3434c7f120cc)
* cxgbe(4): Update firmwares to 1.27.0.0.Navdeep Parhar2023-02-023-3/+3
| | | | | | | | | | | | | | | | | | | | | | | Changes since 1.26.6.0 are listed here. This list comes from the Release Notes for "Chelsio Unified Wire 3.17.0.0 for Linux" dated 2022-07-29. Fixes ----- BASE: - Enabled all MA parity interrupt bits. - Use config file value to override number of rx channel. nrxch=1 was not handled in the firmware. - Replaced read only registers with new registers EDC_H_BIST_USER_WDATA0, EDC_H_BIST_USER_WDATA1 and EDC_H_BIST_CMD_LEN to dump the uP memory parity error status registers. - 10G simplex module support enabled. Obtained from: Chelsio Communications Sponsored by: Chelsio Communications (cherry picked from commit 2bb28b5f8cb5700945539584e7864773f0dfcd51)
* modules: if_awg: Add miibus_if.h to the sourceEmmanuel Vadot2023-02-021-1/+2
| | | | | | Needed by the module. (cherry picked from commit d38a784b61e35d4281b06c94bcedbc26d25982a1)
* modules: aw_mmc: Add mmc_pwrseq_if to the sourceEmmanuel Vadot2023-02-021-0/+1
| | | | | | Needed by the module. (cherry picked from commit fbc50a695433b870275c5da112af4eb1cab7fe94)
* zfs: merge openzfs/zfs@92e0d9d18 (zfs-2.1-release) into stable/13Martin Matuska2023-01-262-5/+14
| | | | | | | | | | | | | | | | | | | | | | | | OpenZFS release 2.1.9 Notable upstream pull requeset merges: #12829 zfs diff -h/ZFS_DIFF_NO_MANGLE, diff cleanups #14181 zed: unclean disk attachment faults the vdev #14252 Activate filesystem features only in syncing context #14253 Allow reciever to override encryption property in case of replication #14254 Restrict visibility of per-dataset kstats inside FreeBSD jails #14255 Zero end of embedded block buffer in dump_write_embedded() #14261 FreeBSD: zfs_register_callbacks() must implement error check correctly #14264 Miscellaneous fixes #14272 Change ZEVENT_POOL_GUID to ZEVENT_POOL to display pool names #14287 FreeBSD: Remove stray debug printf #14288 Colorize zfs diff output #14291 FreeBSD: Fix potential boot panic with bad label #14328 FreeBSD: catch up to 1400077 Obtained from: OpenZFS OpenZFS tag: zfs-2.1.9 OpenZFS commit: 92e0d9d183ce6752cd52f7277c8321d81df9ffee Relnotes: yes
* netlink: allow netlink to be build in the kernelAlexander V. Chernikov2023-01-261-1/+1
| | | | | | Differential Revision: https://reviews.freebsd.org/D37781 (cherry picked from commit c9313a0bad682351858e2e326cdb0f1d0bc2d1d8)
* netlink: fix standalone module buildGleb Smirnoff2023-01-261-0/+1
| | | | (cherry picked from commit a87d2d1830933b81caaf30a67a4bef0a253ecd0b)
* linuxolator: add netlink supportAlexander V. Chernikov2023-01-261-1/+1
| | | | | | | | | | | | | | | | | | | Add the glue code to support netlink in Linuxolator. linux_common(4) now depends on netlink(4). All netlink protocol constants are consistent with the Linux version. However, certain OS-specific constants such as AF_INET6, interface flags or default routing table id, are different between FreeBSD and Linux. Thus, it may be needed to rewrite some message parts or even rewrite the whole message, adding or removing some TLVs. The core netlink implementation code provides efficient rewriting callbacks which Linuxolator now uses. Reviewed by: dchagin Differential Revision: https://reviews.freebsd.org/D36361 MFC after: 2 months (cherry picked from commit 7c40e2d5f68516dd402073b28095ea5516fe3114)
* Revert "mips: remove saf1761"Warner Losh2023-01-252-1/+50
| | | | | | | | Mips is still in stable/13, so this should not have been merged. This reverts commit 622ab2c4834068312b6cd33fd7ac961f31240350. Sponsored by: Netflix
* mips: remove saf1761Warner Losh2023-01-242-50/+1
| | | | | | | | | | The saf1761 OTG support was only for mips targets (BERI?). Retire it. Sponsored by: Netflix Reviewed by: brooks Differential Revision: https://reviews.freebsd.org/D33706 (cherry picked from commit 44796b7e822e18b0f4bafac3ca85864b232cccc4)
* linprocfs: Add net/route.John Grafton2023-01-241-1/+1
| | | | | | | | | PR: 266482 Reviewed by: melifaro, me Differential revision: https://reviews.freebsd.org/D36949 MFC after: 1 week (cherry picked from commit 4c9db9566e67779905c667c2719e5b1628c3af3d)
* iwlwifi: Disable -Wformat when building with GCC.John Baldwin2023-01-241-0/+3
| | | | | | | | | | | | GCC's -Wformat complains about NULL format strings passed to iwl_fw_dbg_collect_trig (though the function handles NULL format strings). Curious that upstream iwlwifi in Linux is built with GCC and explicitly opts into this warning via the __printf() attribute. Reviewed by: bz Differential Revision: https://reviews.freebsd.org/D34146 (cherry picked from commit 87c5d39f77bc8c38738a6dc200f711f4418c5018)
* netlink: add netlink supportAlexander V. Chernikov2023-01-232-0/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Netlinks is a communication protocol currently used in Linux kernel to modify, read and subscribe for nearly all networking state. Interfaces, addresses, routes, firewall, fibs, vnets, etc are controlled via netlink. It is async, TLV-based protocol, providing 1-1 and 1-many communications. The current implementation supports the subset of NETLINK_ROUTE family. To be more specific, the following is supported: * Dumps: - routes - nexthops / nexthop groups - interfaces - interface addresses - neighbors (arp/ndp) * Notifications: - interface arrival/departure - interface address arrival/departure - route addition/deletion * Modifications: - adding/deleting routes - adding/deleting nexthops/nexthops groups - adding/deleting neghbors - adding/deleting interfaces (basic support only) * Rtsock interaction - route events are bridged both ways The implementation also supports the NETLINK_GENERIC family framework. Implementation notes: Netlink is implemented via loadable/unloadable kernel module, not touching many kernel parts. Each netlink socket uses dedicated taskqueue to support async operations that can sleep, such as interface creation. All message processing is performed within these taskqueues. Compatibility: Most of the Netlink data models specified above maps to FreeBSD concepts nicely. Unmodified ip(8) binary correctly works with interfaces, addresses, routes, nexthops and nexthop groups. Some software such as net/bird require header-only modifications to compile and work with FreeBSD netlink. Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D36002 MFC after: 2 months (cherry picked from commit 7e5bf68495cc0a8c9793a338a8a02009a7f6dbb6)
* Add initial DPAA2 supportDmitry Salychev2023-01-222-0/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | DPAA2 is a hardware-level networking architecture found in some NXP SoCs which contain hardware blocks including Management Complex (MC, a command interface to manipulate DPAA2 objects), Wire Rate I/O processor (WRIOP, packets distribution, queuing, drop decisions), Queues and Buffers Manager (QBMan, Rx/Tx queues control, Rx buffer pools) and the others. The Management Complex runs NXP-supplied firmware which provides DPAA2 objects as an abstraction layer over those blocks to simplify an access to the underlying hardware. Each DPAA2 object has its own driver (to perform an initialization at least) and will be visible as a separate device in the device tree. Two new drivers (dpaa2_mc and dpaa2_rc) act like firmware buses in order to form a hierarchy of the DPAA2 devices: acpiX (or simplebusX) dpaa2_mcX dpaa2_rcX dpaa2_mcp0 ... dpaa2_mcpN dpaa2_bpX dpaa2_macX dpaa2_io0 ... dpaa2_ioM dpaa2_niX dpaa2_mc is suppossed to be a root of the hierarchy, comes in ACPI and FDT flavours and implements helper interfaces to allocate and assign bus resources, MSI and "managed" DPAA2 devices (NXP treats some of the objects as resources for the other DPAA2 objects to let them function properly). Almost all of the DPAA2 objects are assigned to the resource containers (dpaa2_rc) to implement isolation. The initial implementation focuses on the DPAA2 network interface to be operational. It is the most complex object in terms of dependencies which uses I/O objects to transmit/receive packets. Approved by: bz (mentor) Tested by: manu, bz Differential Revision: https://reviews.freebsd.org/D36638 (cherry picked from commit ba7319e9091b4f6ef15a9c4be3d3d076f3047f72) (cherry picked from commit 7fb975c8fb970b35fc34561ed30a0fe220346cb6) (cherry picked from commit 2782ed8f6cd3d7f59219a783bc7fa7bbfb1fe26f) (cherry picked from commit d6eabdac2ef444b62aba186c793fbd5d4226b157) (cherry picked from commit 16295b0a5a577aa70f47d3b3314277e631caee63) (cherry picked from commit ff270fce1631cdfbf8d3d76b9a9f5342b78972c9)
* bnxt: Only filter out i386Warner Losh2023-01-191-1/+6
| | | | | | | | | | Only i386 is missing bus_read_8. The other 32-bit platforms can be fixed with a cast to a printf. Suggested by: kevans Sponsored by: Netflix (cherry picked from commit eb40e3e757a7eb80c2b5c38ce05fc4b411b369f9)
* if_bnxt: Added support for mgmt interface for passthrough hwrmsSumit Saxena2023-01-191-2/+3
| | | | | | | | | | | | | | | Added support for application management interface. There are two types of commands supported: 1. Firmware IOCTLs: These ioctls are meant for firmware consumption. Driver acts as a transport for these. 2. Driver only IOCTLs: These ioctls are meant for driver consumption. Driver will serve these ioctls without sending them down to firmware. Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D36448 (cherry picked from commit 58d84ef87094691bf1ad9608964ec85f120cd34a)
* rtw88: correct SRCS+= in MakefileBjoern A. Zeeb2023-01-181-1/+1
| | | | | | | Properly spell a SRCS+= for an optional file (this is why it stayed unnoticed so far). (cherry picked from commit 4495b4eb510d87277ed2dd4d27f7cebc7a76b4a8)
* rtw89: import firmware for Realtek's rtw89 supported chipsets.Bjoern A. Zeeb2023-01-184-0/+36
| | | | | | | | | | | | | | | | | Import the most recent versions of the firmware images for the rtw89 driver. This is based on linux-firmware at 2f2f0181581d3e35bfdb9fc65f609ee9d3fbaeb7. The license of the firmware matches the previously added rtw88(4) firmware and you can find a copy in sys/contrib/dev/rtw89fw/LICENCE.rtlwifi_firmware.txt. Add build infrastructure to create the .ko files but do not yet hook it up to the build until all parts are in the tree. Approved by: core.11 (imp) [2022-03-27] (cherry picked from commit 866e021654cfb72c050fd228dee476fb92fa6f48)
* rtw89: import Realtek's rtw89 driverBjoern A. Zeeb2023-01-181-0/+40
| | | | | | | | | | | | | | | | Import rtw89 based on wireless-testing at (tag: wt-2022-09-02) 78667a29c116c6b186a37e28cd8dd7fa9923aee8 with adjustments for FreeBSD. For the moment this will stay disconnected from the build until the last bits are flushed out, but this will help people with a card to do testing and possibly help improving. Given the lack of full license texts on non-local files this is imported under the draft policy for handling SPDX files (D29226). [1] Approved by: core.11 (imp) [1] [2022-03-27] (cherry picked from commit 8e93258f2686c76b4e3b384a904d8b4413976229)
* bcm5974: wsp(4) driver version with HID attachment.Vladimir Kondratyev2022-12-242-0/+11
| | | | (cherry picked from commit 5aa839c9e2c373275091b8bf529c1311d0b84d76)
* ietp(4): Driver for Elantech I2C touchpadVladimir Kondratyev2022-12-242-0/+11
| | | | (cherry picked from commit d5add41d4d8713d48cfb8f8a228660c8b95ff676)
* zfs: merge openzfs/zfs@21bd76613 (zfs-2.1-release) into stable/13Martin Matuska2022-12-062-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | OpenZFS release 2.1.7 Notable upstream pull requeset merges: #13680 Add options to zfs redundant_metadata property #13782 Fix setting the large_block feature after receiving a snapshot #13839 quota: extend quota for dataset #13938 Bring per_txg_dirty_frees_percent back to 30 #13939 Fix panic in dsl_process_sub_livelist for EINTR #13973 Fix memory leaks in dmu_send()/dmu_send_obj() #13978 PAM: Fix unchecked return value from zfs_key_config_load() #13998 zvol_wait logic may terminate prematurely #14001 FreeBSD: Fix a pair of bugs in zfs_fhtovp() #14003 Stop ganging due to past vdev write errors #14050 Fix draid2+2s metadata error on simultaneous 2 drive failures #14062 zed: Avoid core dump if wholedisk property does not exist #14077 Propagate extent_bytes change to autotrim thread #14079 FreeBSD: vn_flush_cached_data: observe vnode locking contract #14093 Fix ARC target collapse when zfs_arc_meta_limit_percent=100 #14119 Deny receiving into encrypted datasets if the keys are not loaded #14120 Fix arc_p aggressive increase #14129 zed: Prevent special vdev to be replaced by hot spare #14133 Expose zfs_vdev_open_timeout_ms as a tunable #14135 FreeBSD: Fix out of bounds read in zfs_ioctl_ozfs_to_legacy() #14161 Handle and detect #13709's unlock regression #14197 Don't leak packed recieved proprties #14204 Lua: Fix bad bitshift in lua_strx2number() Obtained from: OpenZFS OpenZFS tag: zfs-2.1.7 OpenZFS commit: 21bd7661334cd865d17934bebbcaf8d3356279ee Relnotes: yes
* linuxkpi: drm-kmod debugfs supportJake Freeland2022-11-291-1/+2
| | | | | | | | | | | | | | This diff extends LinuxKPI to support simple attribute files in debugfs. These simple attributes are an essential component for compiling drm-kmod with CONFIG_DEBUG_FS enabled. This will allow for easier graphics driver debugging using Intel's igt-gpu-tools. Reviewed by: hselasky Differential Revision: https://reviews.freebsd.org/D35883 Sponsored by: Google, Inc. (GSoC 2022) (cherry picked from commit f697b9432d9c7aa4c5ab5f5445ef5dc1bd40ce00)
* iwlwifi: prepare to support debugfsBjoern A. Zeeb2022-11-281-2/+8
| | | | | | | | | | | | | | Import two files left out initially from the driver needed for debugfs support [1]. Adjust the driver further to make it compile on FreeBSD. This is currently turned off and needs more LinuxKPI/lindebugfs work. Being in the tree will allow us to collaboratively work on it and then we can enable it for good. Obtained from: Linux wireless-testing (tag: wt-2022-10-19) [1] 2c9078b9abcb884e27360340aaa7dfd4c0de29b3 Sponsored by: The FreeBSD Foundation (cherry picked from commit 92daf3a606e655f3db4508c76c733c340d9d3a68)
* Import the WireGuard driver from zx2c4.com.John Baldwin2022-11-112-0/+14
| | | | | | | | | | | | | | | | | This commit brings back the driver from FreeBSD commit f187d6dfbf633665ba6740fe22742aec60ce02a2 plus subsequent fixes from upstream. Relative to upstream this commit includes a few other small fixes such as additional INET and INET6 #ifdef's, #include cleanups, and updates for recent API changes in main. Reviewed by: pauamma, gbe, kevans, emaste Obtained from: git@git.zx2c4.com:wireguard-freebsd @ 3cc22b2 Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D36909 (cherry picked from commit 744bfb213144c63cbaf38d91a1c4f7aebb9b9fbc)
* cxgbe: Rename t4_kern_tls.c to t6_kern_tls.c.John Baldwin2022-11-111-1/+1
| | | | | | | | This implementation of NIC TLS is specific to T6 adapters. Sponsored by: Chelsio Communications (cherry picked from commit bbb2f537156b663560cb0a45933c0fafdd2525a3)
* linux: populate sv_syscallnames in each sysentvecMitchell Horne2022-11-062-0/+2
| | | | | | | | | | | | | | This allows the syscallname() function to give a usable result for Linux ABIs. Reported by: jrtc27 Reviewed by: jrtc27, markj, jhb MFC after: 1 week Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D37199 (cherry picked from commit 1da65dcb1c57fae7be75ddf1bd300ddf19ced850) (cherry picked from commit f396f9b6c96f6d68d4e3606ddb090287230fc565)
* linux, linux64: improve SRCS formattingMitchell Horne2022-11-062-19/+69
| | | | | | | | | | | Sort the entries alphabetically, and list them with one entry per line. This makes the diffs much cleaner when adding or removing a new entry, as I will do in the next commit. MFC after: 1 week Sponsored by: The FreeBSD Foundation (cherry picked from commit 331784880821c6aa55188d0950e98d898c42203c)
* ice(4): Add RDMA Client InterfaceEric Joyner2022-10-181-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This allows the "irdma" driver to communicate with the ice(4) driver to allow it access to the underlying device's hardware resources as well as synchronize access to shared resources. This interface already existed in the standalone out-of-tree 1.34.2 driver; this commit adds and enables it in the in-kernel driver. Note: Adds hack to module Makefile to compile interface/.m files These are required for the RDMA client interface, but they don't build as-is like the normal .c files. The source directory doesn't seem to be included by default, so add lines that specifically add them as libraries so that ice_rdma.h can be found and the interface files will compile. Signed-off-by: Eric Joyner <erj@FreeBSD.org> Sponsored by: Intel Corporation Differential Revision: https://reviews.freebsd.org/D30889 (cherry picked from commit 8a13362d49bf07dfc654e25976d057adbe0ac9c1) (cherry picked from commit d8cce8145c39812cc31b50070c44d66ca21a5127)
* LinuxKPI: define LINUXKPI_INCLUDES for module builds as wellBjoern A. Zeeb2022-10-1724-24/+24
| | | | | | | | | | | | | | | While for in-kernel we already have LINUXKPI_INCLUDES in kern.pre.mk for kmod builds we've not had a common define to use leading to various spellings of include paths. In order for the include list to be expanded more easily in the future, e.g., adding the "dummy" includes (for all) and to harmonize code, duplicate LINUXKPI_INCLUDES to kmod.mk and use it for all module Makefiles. Reviewed by: hselasky Differential Revision: https://reviews.freebsd.org/D36683 (cherry picked from commit 514fb3872166a361faa81d89909f65913e90b1b2)
* zfs: merge openzfs/zfs@6a6bd4939 (zfs-2.1-release) into stable/13Martin Matuska2022-10-042-11/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | OpenZFS release 2.1.6 Notable upstream pull requeset merges: #11733 ICP: Add missing stack frame info to SHA asm files #12274 Optimize txg_kick() process #12284 Add Module Parameter Regarding Log Size Limit #12285 Introduce a tunable to exclude special class buffers from L2ARC #12287 Remove refcount from spa_config_*() #12425 Avoid small buffer copying on write #12516 Fix NFS and large reads on older kernels #12678 spa.c: Replace VERIFY(nvlist_*(...) == 0) with fnvlist_* #12789 Improve log spacemap load time #13022 Add more control/visibility and speedup spa_load_verify() #13106 add physical device size to SIZE column in 'zpool list -v' #13388 Improve mg_aliquot math #13405 Revert "Reduce dbuf_find() lock contention" #13452 More speculative prefetcher improvements #13476 Refactor Log Size Limit #13540 AVL: Remove obsolete branching optimizations #13553 Reduce ZIO io_lock contention on sorted scrub #13555 Scrub mirror children without BPs #13563 FreeBSD: Improve crypto_dispatch() handling #13576 Several sorted scrub optimizations #13579 Fix and disable blocks statistics during scrub #13582 Several B-tree optimizations #13591 Avoid two 64-bit divisions per scanned block #13606 Avoid memory copies during mirror scrub #13613 Avoid memory copy when verifying raidz/draid parity #13643 Fix scrub resume from newly created hole #13756 FreeBSD: Mark ZFS_MODULE_PARAM_CALL as MPSAFE #13767 arcstat: fix -p option #13781 Importing from cachefile can trip assertion #13794 Apply arc_shrink_shift to ARC above arc_c_min #13798 Improve too large physical ashift handling #13811 Fix column width in 'zpool iostat -v' and 'zpool list -v' #13842 make DMU_OT_IS_METADATA and DMU_OT_IS_ENCRYPTED return B_TRUE or B_FALSE #13855 zfs recv hangs if max recordsize is less than received recordsize #13861 Fix use-after-free in btree code #13865 vdev_draid_lookup_map() should not iterate outside draid_maps #13878 Delay ZFS_PROP_SHARESMB property to handle it for encrypted raw receive #13882 FreeBSD: Fix integer conversion for vnlru_free{,_vfsops}() #13885 Fix incorrect size given to bqueue_enqueue() call in dmu_redact.c #13908 FreeBSD: stop passing LK_INTERLOCK to VOP_LOCK #13930 zpool: Don't print "repairing" on force faulted drives #13954 Fix bad free in skein code Obtained from: OpenZFS OpenZFS tag: zfs-2.1.6 OpenZFS commit: 6a6bd493988c75331deab06e5352a9bed035a87d Relnotes: yes
* iwlwifi firmware: update to -73 / newer builds for 9xxxBjoern A. Zeeb2022-09-2115-15/+15
| | | | | | | | | | | | Update iwlwifi 22000 firmware to -73 and rebuilds for 9000/9260. Update the driver to accept the newer version. Firmware was obtained from linux-firmware at 150864a4d73e8c448eb1e2c68e65f07635fe1a66. Sponsored by: The FreeBSD Foundation (cherry picked from commit 13a7663c521ac3541756aa1157dcfce9f0ce78e8)
* Remove unnecessary terminating slash in iscsi module MakefileDimitry Andric2022-08-011-1/+1
| | | | | | | | | The additional slash causes double slashes in the filenames that eventually get passed to the compiler. MFC after: 3 days (cherry picked from commit dfddfe29d85c5c60b30db3c9dec32e4d8270bd49)
* Suppress -Wstrict-prototypes for several zlib filesDimitry Andric2022-07-291-0/+3
| | | | | | | | | | Clang 15 is more strict about function definitions not matching declarations, and zlib has a lot of these, but since it is contributed code (and in K&R style to boot), suppress those warnings instead. MFC after: 3 days (cherry picked from commit e83ffec3af2e71cc64348d58481c87db9efbac92)
* Suppress unused variable warning for zfs_fm.cDimitry Andric2022-07-291-1/+1
| | | | | | | | | | | | | | | With clang 15, the following -Werror warning is produced: sys/contrib/openzfs/module/zfs/zfs_fm.c:256:6: error: variable 'cnt' set but not used [-Werror,-Wunused-but-set-variable] int cnt = 0; ^ The 'cnt' variable does not seem to be used for anything, but since this is contributed code, suppress the warning instead. MFC after: 3 days (cherry picked from commit e726e7105685f99b066fcc3908c07157599cd290)
* crypto: Add an API supporting curve25519.John Baldwin2022-07-131-0/+12
| | | | | | | | | | | | | | This adds a wrapper around libsodium's curve25519 support matching Linux's curve25519 API. The intended use case for this is WireGuard. Note that this is not integrated with OCF as it is not related to symmetric operations on data. Reviewed by: markj Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D33935 (cherry picked from commit 0c6274a819ffdf6d5a3713b2c0f7014840f01703)
* crypto: Add a simple API for [X]ChaCha20-Poly1035 on flat buffers.John Baldwin2022-07-131-0/+8
| | | | | | | | | | | | This is a synchronous software API which wraps the existing software implementation in libsodium. This is different from the code in main in that this uses libsodium directly. The version in main uses the software backend shared with OCF, but main required changes that break the ABI of struct enc_xform that cannot be merged to stable/13. Sponsored by: The FreeBSD Foundation (cherry picked from commit e71680049bb8ff395aeaa144377dd9e49331f45e)
* crypto.ko: Add hchacha20 from libsodium.John Baldwin2022-07-131-0/+3
| | | | | | | | | | | | This was added to 'device crypto' in the kernel in bbb7a2c7c329494e0148026f8568c0da4d8db085 but was missing from the module. Reviewed by: markj Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D33522 (cherry picked from commit 7df4c50643cfeecdd42b8e55c38709bf84b1b002)
* Enable CRC64 checksums in xz.Dag-Erling Smørgrav2022-07-111-0/+2
| | | | | | | | | Reviewed by: imp Sponsored by: Juniper Networks, Inc. Sponsored by: Klara, Inc. Differential Revision: https://reviews.freebsd.org/D35668 (cherry picked from commit 038405f32f71ad8ba0280ae066417f986ede79db)
* zfs: merge openzfs/zfs@6c3c5fcfb (zfs-2.1-release) into stable/13Martin Matuska2022-06-252-6/+51
| | | | | | | | | | | | | | | | | | | | | | | | | OpenZFS release 2.1.5 Notable upstream pull requeset merges: #12575 Reject zfs send -RI with nonexistent fromsnap #12687 Skip spacemaps reading in case of pool readonly import #12746 Default to zfs_dmu_offset_next_sync=1 #13277 FreeBSD: Use NDFREE_PNBUF if available #13311 Fix error handling in FreeBSD's get/putpages VOPs #13345 FreeBSD: Fix translation from ABD to physical pages #13373 zfs: holds: dequadratify #13375 Corrected edge case in uncompressed ARC->L2ARC handling #13405 Reduce dbuf_find() lock contention #13406 FreeBSD: use zero_region instead of allocating a dedicated page #13499 zed: Take no action on scrub/resilver checksum errors #13484 FreeBSD: libspl: Add locking around statfs globals #13513 Remove wrong assertion in log spacemap #13537 Improve sorted scan memory accounting Obtained from: OpenZFS OpenZFS tag: zfs-2.1.5 OpenZFS commit: 6c3c5fcfbe27d9193cd131753cc7e47ee2784621 Relnotes: yes
* modules: Only build MAC modules if options MAC is setMitchell Horne2022-06-231-13/+31
| | | | | | | | | | | | They are not loadable otherwise. Reviewed by: emaste MFC after: 1 week Sponsored by: Juniper Networks, Inc. Sponsored by: Klara, Inc. Differential Revision: https://reviews.freebsd.org/D35369 (cherry picked from commit 648a47b85476ed0f8e3c61800b134bd3bb6001ee)
* linuxkpi: Add i2c supportEmmanuel Vadot2022-06-211-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | Add i2c support to linuxkpi. This is needed by drm-kmod. For every i2c_adapter added by i2c_add_adapter we add a child to the device named "lkpi_iic". This child handle the conversion between Linux i2c_msgs to FreeBSD iic_msgs. For every i2c_adapter added by i2c_bit_add_bus we add a child to the device named "lkpi_iicbb". This child handle the conversion between Linux i2c_msgs to FreeBSD iic_msgs. With the help of iic(4), this expose the i2c controller to userspace allowing a user to query DDC information from a monitor. e.g.: i2c -f /dev/iic0 -a 0x28 -c 128 -d r will query the standard EDID from the monitor if plugged. The bitbang part (lkpi_iicbb) isn't tested at all for now as I don't have compatible hardware (all my hardware have native i2c controller). Tested on: Intel (SandyBridge, Skylake, ApolloLake) Tested on: AMD (Picasso, Polaris (amd64 and arm64)) MFC after: 1 month Reviewed by: hselasky Sponsored by: Beckhoff Automation GmbH & Co. KG Differential Revision: https://reviews.freebsd.org/D33053 (cherry picked from commit 1961a14a47437595fb7fcdc20e327440e3eb51e2)
* linux(4); Move vdso_selector_x86.c to the linux_common moduleDmitry Chagin2022-06-173-4/+4
| | | | | | MFC after: 2 weeks (cherry picked from commit 2b378d59a98a4eb1dab173c4db3b48f385c47728)
* linux(4): Deduplicate translate_traps()Dmitry Chagin2022-06-172-2/+7
| | | | | | | | | As translate_traps() is common for x86 Linuxulators, move it under x86/linux. MFC after: 2 weeks (cherry picked from commit 2434137f690dabc35586ab45fc4c4ecc5b71184f)