aboutsummaryrefslogtreecommitdiff
path: root/sys/contrib
Commit message (Collapse)AuthorAgeFilesLines
* zfs: merge openzfs/zfs@c0cf6ed67HEADmainMartin Matuska65 min.1161-15479/+12060
| | | | | | | | | | | | | | | | | | | Notable upstream pull request merges: #10662 zvol_wait: Ignore locked zvols #12789 Improve log spacemap load time #12812 Improved zpool status output, list all affected datasets #13277 FreeBSD: Use NDFREE_PNBUF if available #13302 Make zfs_max_recordsize default to 16M #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 #13388 Improve mg_aliquot math #13405 Reduce dbuf_find() lock contention #13406 FreeBSD: use zero_region instead of allocating a dedicated page Obtained from: OpenZFS OpenZFS commit: c0cf6ed6792e545fd614c2a88cb53756db7e03f8
* iwlwifi: import two fixes from linux v5.18-rc7Bjoern A. Zeeb2 days2-2/+3
| | | | | | | | | | | Import two changes from torvalds/linux.git at tag: v5.18-rc7: b20bdd9cc9740ac1f2138adab25ddd51245c67be iwlwifi: mvm: Don't fail if PPAG isn't supported 7635a1ad8d92dcc8247b53f949e37795154b5b6f iwlwifi: iwl-dbg: Use del_timer_sync() before freeing Sponsored by: The FreeBSD Foundation MFC after: 3 days
* iwlwifi: update firmwareBjoern A. Zeeb2 days15-2/+38
| | | | | | | | | | Update to the latest iwlwifi firmware based on linux-firmware at b19cbdca78ab2adfd210c91be15a22568e8b8cae (tag: 20220509) and update firmware module Makefiles accordingly. Sponsored by: The FreeBSD Foundation MFC after: 3 days
* iwlwifi: update driver from iwlwifi-nextBjoern A. Zeeb2 days30-893/+456
| | | | | | | | | | | | | | | | | Import code update from iwlwifi-next at e89600ebeeb14d18c0b062837a84196f72542830. This amongst other things removes the deprecated BCAST_FILTERING option, which we had disabled before due to firmware issues. Also prepares us for the next firmware update. The "enable_ini" module option has become an integer with a sysctl proc equivalent handler. Disable the module parameter changing for the moment until we'll have working LinuxKPI support or implement it as SYSCTL_PROC in FreeBSD directly. Sponsored by: The FreeBSD Foundation MFC after: 3 days
* vchiq: Remove unused devclass argument to DRIVER_MODULE.John Baldwin8 days1-3/+1
|
* rtw88: deal with debug messagesBjoern A. Zeeb2022-04-271-0/+28
| | | | | | | | | | | | | | | | | The 'failed to write TX skb to HCI' error message is twice in the code. Print the function name and along with the message and also the reported error so it can possibly be helpful. The 'failed to get tx report from firmware' was purposefully changed away from debugging in the upstream Linux driver in 584dce175f0461d5d9d63952a1e7955678c91086 . Revert that decision and extend the logging by the actual queue length so we get an idea how sever the problem is (see PR for a report). PR: 248235 Sponsored by: The FreeBSD Foundation MFC after: 3 days X-MFC: only to get the reminder for later
* acpica: Drop a local patch in favor of an upstream patchJung-uk Kim2022-04-151-3/+1
| | | | | | Use ACPI_ERROR() instead of fprintf(). https://github.com/acpica/acpica/pull/768
* dpaa: Remove unused variables.John Baldwin2022-04-131-2/+0
|
* libnv: Mark a variable only used in a custom assertion as unused.John Baldwin2022-04-131-1/+1
|
* xen/acpi: upload Cx and Px data to XenRoger Pau Monné2022-04-121-1/+5
| | | | | | | | | | | | | | | | | | | | | | When FreeBSD is running as dom0 (initial domain) on a Xen system it has access to the native ACPI tables and is the OSPM. However the hypervisor is the entity in charge of the CPU idle and frequency states, and in order to perform this duty it requires information found the ACPI dynamic tables that can only be parsed by the OSPM. Introduce a new Xen specific ACPI driver to fetch the Processor related information and upload it to Xen. Note that this driver needs to take precedence over the generic ACPI CPU driver when running as dom0, so downgrade the probe score of the native driver to BUS_PROBE_DEFAULT in order for the Xen specific driver to use BUS_PROBE_SPECIFIC. Tested on an Intel NUC to successfully parse and upload both the Cx and Px states to Xen. Sponsored by: Citrix Systems R&D Reviewed by: jhb kib Differential revision: https://reviews.freebsd.org/D34841
* rtw88: downgrade rtw8822c firmware to 9.9.10Bjoern A. Zeeb2022-04-081-0/+0
| | | | | | | | | | | | | Firmware version 9.9.11 added support for hw_scan and is reportedly causing more problems than 9.9.10 does. Until we get a chance to test this out downgrade the firmware in order to help people testing more. Sponsored by: The FreeBSD Foundation PR: 248235 MFC after: 2 days X-MFC: just to get the reminder with the original commit X-MFC with: 73d4ebea3567f18db549638c3d897b6d6758faa4
* krping: Remove unused variable.John Baldwin2022-04-081-2/+1
|
* ngatm: Expand #if 0 to cover all lines involving mlen.John Baldwin2022-04-081-1/+3
|
* zlib: replace CRLF line endings in zlib.mapEd Maste2022-04-041-100/+100
| | | | MFC after: 3 days
* sys/contrib/zlib: Always define Z_U8 and Z_U4Xin LI2022-04-031-0/+5
| | | | | | | | | | This is a temporary hack for zlib to make sure that the library still builds when building with Z_SOLO (used in kernel and loader), as zlib is depending on limits.h which is only available in STDC case. PR: kern/262977 MFC after: 3 days
* acpica: Import ACPICA 20220331Jung-uk Kim2022-04-01357-771/+2760
| | | | (cherry picked from commit ca1c95cc699a25d891e62ef863c8268c93b35cf8)
* rtw88: import firmware for Realtek's rtw88 supported chipsets.Bjoern A. Zeeb2022-04-018-0/+92
| | | | | | | | | | | | | | | | | Import the most recent versions of the firmware images for the rtw88 driver. This is based on linux-firmware at 681281e49fb6778831370e5d94e6e1d97f0752d6. The license of the firmware matches the previous rtwnfw(4) firmware files (modulo a Copyright year) and you can find a copy in sys/contrib/dev/rtw88fw/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 (imp) MFC after: 2 weeks
* rtw88: import Realtek's rtw88 driverBjoern A. Zeeb2022-04-0161-0/+116165
| | | | | | | | | | | | | | | | | Import rtw88 based on wireless-testing at 5d5d68bcff1f7ff27ba0b938a4df5849849b47e3 with adjustments for FreeBSD. While our version of the driver has knowledge about the incapablity of DMA above 4GB we do see errors if people have more than that often already showing when laoding firmware. The problem for that is currently believed to be outside this driver so importing it anyway for now. 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 (imp) [1] MFC after: 2 weeks
* MFV 7b495a2a7abf (zlib): Correct incorrect inputs provided to the CRCXin LI2022-03-311-4/+4
| | | | | | functions. MFC after: 3 days
* MFV c144cc54795d: zlib 1.2.12.Xin LI2022-03-3128-2046/+11456
| | | | | MFC after: 3 days Relnotes: yes
* zfs: use zero_region instead of allocating a dedicated pageMateusz Guzik2022-03-291-7/+3
|
* zfs: merge openzfs/zfs@bc3f12bfa (master) into mainMartin Matuska2022-03-29288-3308/+3632
| | | | | | | | | | | | | | Notable upstream pull request merges: #12083 libzfs: FreeBSD doesn't resize partitions for you #13106 add physical device size to SIZE column in 'zpool list -v' #13158 Allow zfs send to exclude datasets #13190 module: zfs: zio_inject: zio_match_handler: don't << -1 #13219 FreeBSD: add missing replay check to an assert in zfs_xvattr_set #13220 module: freebsd: avoid a taking a destroyed lock in zfs_zevent bits #13221 Fix ACL checks for NFS kernel server Obtained from: OpenZFS OpenZFS commit: bc3f12bfac152a0c28951cec92340ba14f9ccee9
* vfs: NDFREE(&nd, NDF_ONLY_PNBUF) -> NDFREE_PNBUF(&nd)Mateusz Guzik2022-03-241-5/+5
|
* zfs: add missing replay check to an assert in zfs_xvattr_setMateusz Guzik2022-03-151-1/+3
|
* zfs: merge openzfs/zfs@a86e08941 (master) into mainMartin Matuska2022-03-08591-43799/+31512
| | | | | | | | | | | | | | | | | | | | Notable upstream pull request merges: #9078: log xattr=sa create/remove/update to ZIL #11919: Cross-platform xattr user namespace compatibility #13014: Report dnodes with faulty bonuslen #13016: FreeBSD: Fix zvol_cdev_open locking #13019: spl: Don't check FreeBSD rwlocks for double initialization #13027: Fix clearing set-uid and set-gid bits on a file when replying a write #13031: Add enumerated vdev names to 'zpool iostat -v' and 'zpool list -v' #13074: Enable encrypted raw sending to pools with greater ashift #13076: Receive checks should allow unencrypted child datasets #13098: Avoid dirtying the final TXGs when exporting a pool #13172: Fix ENOSPC when unlinking multiple files from full pool Obtained from: OpenZFS OpenZFS commit: a86e089415679cf1b98eb424a159bb36aa2c19e3
* iwlwifi: adjust the LinuxKPI pci return for nowBjoern A. Zeeb2022-03-031-0/+4
| | | | | | | | | | | | | | Rather than having LinuxKPI return BUS_PROBE_DEFAULT, return "one less" so that on conflict of IDs others would be preferred. This means that iwm(4) will attach instead of iwlwifi(4) for the chipsets iwm(4) supports and iwlwifi(4) only for the other--in iwm(4) unsupported--chipsets. This is done so that we can enable auto-loading of drivers but for the upcoming 13.1-Release people with working iwm(4) will not yet be affected by iwlwifi(4). Sponsored by: The FreeBSD Foundation MFC after: 3 days
* Remove prototype of x86emu_init_default.Xin LI2022-02-271-2/+0
| | | | | | It's removed in 3219f535d98a (r198251) as part of code refactor. MFC after: 2 weeks
* vchiq: Add compat string for rpi4Marco Devesas Campos2022-02-271-0/+1
| | | | | | The RPi 4 has a newer vchiq compatible device, add it to the list. Reviewed by: imp
* iwlwifi: update firmwareBjoern A. Zeeb2022-02-2423-3/+64
| | | | | | | | | Update to the latest firmware based on linux-firmware at c53073d4e1485ac9f7cb065db466793c495aead7 and update firmware module Makefiles accordingly. Sponsored by: The FreeBSD Foundation MFC after: 3 days
* iwlwifi: enhance debug informationBjoern A. Zeeb2022-02-241-38/+43
| | | | | | | | | Add a string of the debug type to the output of the debug message so it is easier to search for specific events in a trace with lots of debugging on. While here remove superflous (). Sponsored by: The FreeBSD Foundation MFC after: 3 days
* iwlwifi: update from iwlwifi-nextBjoern A. Zeeb2022-02-2490-1553/+11377
| | | | | | | | | | | | | | | | | | | | Import new code from iwlwifi-next at cb0a1fb7fd86b0062692b5056ca8552906509512 (matching tag: iwlwifi-next-for-kalle-2022-02-18). Also add files not previously imported because we are not yet compiling them to ease updating and having them when needed. This adds MEI (Management Engine) support upstream which we cannot import (currently GPL-only) so we have stub functions for the missing bits. This also reduces the diff to upstream. Changes submitted to avoid problems with const and with void * arithmetics were merged. In the module build Makefile disable CONFIG_IWLWIFI_OPMODE_MODULAR as we are building iwlwifi as a single module. Sponsored by: The FreeBSD Foundation MFC after: 3 days
* iwlwifi: fix the buildBjoern A. Zeeb2022-02-231-0/+1
| | | | | | | | | | Pull in a case statement from the upcoming iwlwifi update to unbreak the build after d875aa1587ce7d1651cabe395ed991f2384795cd . Reported by: cy Sponsored by: The FreeBSD Foundation MFC after: 3 days X-MFC with: d875aa1587ce7d1651cabe395ed991f2384795cd
* xen: import Xen 4.16 public headers in sys/contrib/Roger Pau Monné2022-02-0774-0/+23737
| | | | | | | | | | | | | | | | | | | | The current path of the Xen headers at /sys/xen/interface/ is not correct, as those headers are imported verbatim from the Xen sources and shouldn't be modified, as any modifications would be lost when a new version is imported. Changes to the public headers must be first done in Xen upstream so that they can be backported and new imports will already carry them. Import Xen 4.16 headers in sys/contrib/xen/. It's unlikely that we will import different Xen code, so don't place them inside of any subdirectory. If in the future other pieces of Xen code need to be imported the headers will need to move into an include/ subdirectory. Note that this commit does not yet modify the include path to use the newly imported headers. Sponsored by: Citrix Systems R&D
* zfs: Fix zvol_cdev_open lockingRyan Moeller2022-01-261-2/+2
| | | | | | | | | | | | | | | First open locking changes were correctly applied to zvol_geom_open but incorrectly applied to zvol_cdev_open, causing spa_namespace_lock to be held indefinitely. Make the first open locking in zvol_cdev_open match zvol_geom_open. This change has been accepted upstream in openzfs/zfs#13016 but is not yet merged. Reviewed by: mav Fixes: e92ffd9b6268 Sponsored by: iXsystems, Inc.
* ice_ddp: Update to 1.3.27.0Eric Joyner2022-01-252-25/+22
| | | | | | | | This is intended to be used with forthcoming ice(4) driver version 1.34.2. Signed-off-by: Eric Joyner <erj@FreeBSD.org> Sponsored by: Intel Corporation
* ena: merge ena-com v2.5.0 upgradeMarcin Wojtas2022-01-231-6/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Merge commit '2530eb1fa01bf28fbcfcdda58bd41e055dcb2e4a' Adjust the driver to the upgraded ena-com part twofold: First update is related to the driver's NUMA awareness. Allocate I/O queue memory in NUMA domain local to the CPU bound to the given queue, improving data access time. Since this can result in performance hit for unaware users, this is done only when RSS option is enabled, for other cases the driver relies on kernel to allocate memory by itself. Information about first CPU bound is saved in adapter structure, so the binding persists after bringing the interface down and up again. If there are more buckets than interface queues, the driver will try to bind different interfaces to different CPUs using round-robin algorithm (but it will not bind queues to CPUs which do not have any RSS buckets associated with them). This is done to better utilize hardware resources by spreading the load. Add (read-only) per-queue sysctls in order to provide the following information: - queueN.domain: NUMA domain associated with the queue - queueN.cpu: CPU affinity of the queue The second change is for the CSUM_OFFLOAD constant, as ENA platform file has removed its definition. To align to that change, it has been added to the ena_datapath.h file. Submitted by: Artur Rojek <ar@semihalf.com> Submitted by: Dawid Gorecki <dgr@semihalf.com> Obtained from: Semihalf MFC after: 2 weeks Sponsored by: Amazon, Inc.
* zfs: merge openzfs/zfs@17b2ae0b2 (master) into mainMartin Matuska2022-01-22499-11188/+5665
| | | | | | | | | | | | | | | | | | | Notable upstream pull request merges: #12766 Fix error propagation from lzc_send_redacted #12805 Updated the lz4 decompressor #12851 FreeBSD: Provide correct file generation number #12857 Verify dRAID empty sectors #12874 FreeBSD: Update argument types for VOP_READDIR #12896 Reduce number of arc_prune threads #12934 FreeBSD: Fix zvol_*_open() locking #12947 lz4: Cherrypick fix for CVE-2021-3520 #12961 FreeBSD: Fix leaked strings in libspl mnttab #12964 Fix handling of errors from dmu_write_uio_dbuf() on FreeBSD #12981 Introduce a flag to skip comparing the local mac when raw sending #12985 Avoid memory allocations in the ARC eviction thread Obtained from: OpenZFS OpenZFS commit: 17b2ae0b24d487fdda2ef1098ec26fa7f79a61f6
* Revert "wpa: Import wpa 2.10."Cy Schubert2022-01-181-0/+1
| | | | | | | | This reverts commit 5eb81a4b4028113e3c319f21a1db6b67613ec7ab, reversing changes made to c6806434e79079f4f9419c3ba4fec37efcaa1635 and this reverts commit 679ff6112361d2660f4e0c3cda71198a5e773a25. What happend is git rebase --rebase-merges doesn't do what is expected.
* wpa: Import wpa 2.10.Cy Schubert2022-01-181-1/+0
| | | | | | The long awaited hostapd 2.10 is finally here. MFC after: 3 weeks
* LinuxKPI / iwlwifi: fix spelling of constantsBjoern A. Zeeb2022-01-092-8/+8
| | | | | | | | | | Fix the spelling of IEEE80211_HE_PHY_CAP9_NOMINAL_PKT_PADDING_* (was "NOMIMAL"). The original version came from iwlwifi in iwlwifi-next. Other drivers (from wireless-testing) already use the correct spelling and need this change in LinuxKPI. Sponsored by: The FreeBSD Foundation MFC after: 3 days
* iwlwifi: import correct firmware versions for select Intel iwlwifi/mvmBjoern A. Zeeb2021-12-316-0/+0
| | | | | | | | | | | The firmware files for 3160, 7260, and 7265 imported contain old versions no longer supported by the driver. Replace with latest versions from linux-firmware to possibly also support these chip revisions. Reported by: FreeBSD User (freebsd walstatt-de.de) on wireless (2021-12-30) Sponsored by: The FreeBSD Foundation MFC after: 3 days
* remove octeon sdkWarner Losh2021-12-31247-272217/+0
| | | | | | Octeon is a mips-only target. Sponsored by: Netflix
* iwlwifi: plug memory modified after freeBjoern A. Zeeb2021-12-272-3/+7
| | | | | | | | | | | | | In certain situations we saw a memory modified after free. This was tracked down to a pointer not NULLed after free and used in a different code path. It is unclear how the race happens pending further investigation but setting the pointer to NULL after free and adding a check in the 2nd code path handling the case gracefully helps for now. While here improve another debug messge in sta handling. Sponsored by: The FreeBSD Foundation MFC after: 3 days
* iwlwifi: cherry-pick fixes from upstream iwlwifi-nextBjoern A. Zeeb2021-12-273-9/+27
| | | | | | | | | | | | Cherry-pick f973795a8d19cbf3d03807704eb7c6ff65788d5a (Fix a double free in iwl_txq_dyn_alloc_dma), db66abeea3aefed481391ecc564fb7b7fb31d742 (synchronize with FW after multicast commands), d5d8ee526d1401173ad1261c3b6388a4f947e0a3 (remove session protection upon station removal), and 8e967c137df3b236d2075f9538cb888129425d1a (avoid clearing a just saved session protection id). Sponsored by: The FreeBSD Foundation MFC after: 3 days
* iwlwifi: also depend on linuxkpi_wlanBjoern A. Zeeb2021-12-271-2/+3
| | | | | | | | | The 802.11 compat code is split off linuxkpi.ko into linuxkpi_wlan.ko in case it is built as a module. Depend on that. While here adjust our module to a longer version to avoid conflicts. Sponsored by: The FreeBSD Foundation MFC after: 3 days
* ipfilter: Move kernel bits to netpfilCy Schubert2021-12-2046-57394/+0
| | | | | | | | | | | | | | | | Through fixes and improvements our ipfilter sources have diverged enough to warrant move from contrib into sys/netpil. Now that I'm planning on implementing MSS clamping as in iptables it makes more sense to move ipfilter to netpfil. This is the first of three commits the ipfilter move. Suggested by glebius on two occaions. Suggested by and discussed with: glebius Reviewed by: glebius, kp (for #network) MFC after: 1 month Differential Revision: https://reviews.freebsd.org/D33510
* zfs: merge openzfs/zfs@f291fa658 (master) into mainMartin Matuska2021-12-16144-1568/+4908
| | | | | | | | | | | | | | Notable upstream pull request merges: #11711 Vdev Properties Feature #12717 VOP_RENAME fixes for FreeBSD #12746 Enable strict hole reporting by default #12770 ZFS send/recv with ashift 9->12 leads to data corruption #12828 FreeBSD: Add vop_standard_writecount_nomsyn #12828 zfs: Fix a deadlock between page busy and the teardown lock #12828 FreeBSD: Catch up with more VFS changes Obtained from: OpenZFS OpenZFS commit: f291fa658efd146540b03ce386133632bde237bf
* Change VOP_READDIR's cookies argument to a **uint64_tAlan Somers2021-12-161-4/+4
| | | | | | | | | | | | | The cookies argument is only used by the NFS server. NFSv2 defines the cookie as 32 bits on the wire, but NFSv3 increased it to 64 bits. Our VOP_READDIR, however, has always defined it as u_long, which is 32 bits on some architectures. Change it to 64 bits on all architectures. This doesn't matter for any in-tree file systems, but it matters for some FUSE file systems that use 64-bit directory cookies. PR: 260375 Reviewed by: rmacklem Differential Revision: https://reviews.freebsd.org/D33404
* ipfilter fil.c: Fix two typos in commentsCy Schubert2021-12-151-2/+2
| | | | MFC after: 3 days
* ipfilter: Replace sprintf with range checking version (snprintf)Cy Schubert2021-12-148-25/+26
| | | | MFC after: 1 week