aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* | psm(4): Add middle button support for Elantech V4 touchpadsVladimir Kondratyev2 days1-2/+13
| | | | | | | | | | | | | | based on firmware version. PR: 291262 MFC after: 1 month
* | brcmfmac: deal with bus attachments to the module MakefileBjoern A. Zeeb2 days1-7/+10
| | | | | | | | | | | | | | | | | | | | As with LinuxKPI-based wireless drivers, e.g., rtw88, PCI depends on PCI being compiled into the kernel, SDIO will depend on MMCCAM in the kernel once supported, and USB can always be loaded. Sponsored by: The FreeBSD Foundation MFC after: 3 days
* | brcmfmac: make USB parts compile (and not panic right away)Bjoern A. Zeeb2 days2-0/+58
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix casts and consts and add one extra error check for a NULL pointer. This will require [a future] linuxkpi_usb. There are very few dongles I know off: - the original Raspberry PI USB dongle [1] - Cisco Linksys AE1200 The reason for making USB compile despite the limited 11n 150/300 Mbit/s adapters is that it is the simplest way to work on cfg80211 while on the road, not requiring a full PCIe slot or another SoC for SDIO. Sponsored by: The FreeBSD Foundation Hardware donated by: Martin Husemann (martin NetBSD.org) [1] MFC after: 3 days
* | brcm80211: add LinuxKPI files and module MakefilesBjoern A. Zeeb2 days28-0/+1007
| | | | | | | | | | | | | | | | | | | | | | | | | | | | sys/compat/linuxkpi/common/include/linux/platform_data/brcmfmac.h is based on git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git e5f0a698b34ed76002dc5cff3804a61c80233a7a ( tag: v6.17 ). Currently only PCIe is made to compile. It does load firmware (if needed, e.g., on arm64 with an alignment issue fixed), and starts to come up. To make it work there is a cfg80211 layer and netdevice integration to do, so do not hold your breath just yet.
* | brcm80211: import Broadcom wireless brcmsmac and brcmfmac driversBjoern A. Zeeb2 days133-0/+116023
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | This version is based on git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git e5f0a698b34ed76002dc5cff3804a61c80233a7a ( tag: v6.17 ). We are likely only going to use the brcmfmac driver but given they come nicely packaged in a directory structure and bwn(9) still uses GPL-only phy files we could use some of the information from brcmsmac and fix that (should it ever still be relevant). git-subtree-dir: sys/contrib/dev/broadcom/brcm80211 git-subtree-mainline: 69c64e3fb575e0db0e2f0c1fc56f466624940ded git-subtree-split: 1eabd3ed89eb4bb5c69e90eeaeda1a6dd31e8bab
| * brcm80211: import Broadcom wireless brcmsmac and brcmfmac driversvendor/Linux/brcm80211/torvalds-v6.17Bjoern A. Zeeb2025-10-10133-0/+116023
| | | | | | This version is based on git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git e5f0a698b34ed76002dc5cff3804a61c80233a7a ( tag: v6.17 ).
* git-arc.1: Fix patch optionsJoseph Mingrone2 days1-3/+2
| | | | | | Reviewed by: markj Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D55228
* ure: improve receive checksum offloadingMichael Tuexen3 days1-23/+15
| | | | | | | | | | | Let the receive checksum offload for TCP/IPv6 and UDP/IPv6 be controlled by ifconfig rxcsum6 and not by ifconfig rxcsum. While there, make the code more compact and improve stlye.9 conformity. Reviewed by: Timo Völker MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D55188
* pf: remove unused variable from pf_test_ctxKristof Provost3 days1-1/+0
| | | | Sponsored by: Rubicon Communications, LLC ("Netgate")
* vtgpu: Support virtio gpu on Parallels DesktopAndrew Turner3 days1-13/+38
| | | | | | | | | | | The Parallels Desktop Virtio GPU implementation doesn't handle enqueuing the VIRTIO_GPU_CMD_RESOURCE_ATTACH_BACKING request and memory list together. Work around this by splitting them before sending them to be enqueued. Sponsored by: Arm Ltd Differential Revision: https://reviews.freebsd.org/D55147
* kernel dump: dumpsys_gen_pa_next(): Fix "no more chunks" condition detectionOlivier Certner3 days1-1/+2
| | | | | | | | | | | In the (improbable) cases where either: - All entries in dump_map[] are used, so there is no guard entry filled with zeros. - Some dump region has size 0. We would respectively access dump_map[] out-of-bounds or omit further dump regions when iterating. MFC after: 2 weeks Sponsored by: The FreeBSD Foundation
* arm64: Add MOPS implementations of copyin/copyoutSarah Walker3 days3-6/+103
| | | | | | | | Reimplement copyin() & copyout() as ifuncs. Reviewed by: andrew Sponsored by: Arm Ltd Differential Revision: https://reviews.freebsd.org/D54947
* arm64: Add MOPS implementation of pagezero()Sarah Walker3 days4-11/+34
| | | | | | | | | Reimplement pagezero() as ifunc. As pagezero() is only used in pmap.c, move ifunc to that file. Reviewed by: andrew Sponsored by: Arm Ltd Differential Revision: https://reviews.freebsd.org/D54946
* arm64: Add MOPS implementations of memset(), memcpy() and memmove()Sarah Walker3 days7-17/+81
| | | | | | | | | Enable the use of MOPS implementations of memset, memcpy and memmove within the kernel. Fix pre-ifunc resolution uses of these functions. Reported by: andrew Sponsored by: Arm Ltd Differential Revision: https://reviews.freebsd.org/D55051
* arm64: Enable MOPS usage in the kernelSarah Walker3 days1-60/+63
| | | | | | | | Support handling kernel-side MOE exceptions. Reported by: andrew Sponsored by: Arm Ltd Differential Revision: https://reviews.freebsd.org/D54943
* ath10k: update Atheros/QCA's ath10k driverBjoern A. Zeeb3 days1-8/+8
|\ | | | | | | | | | | | | | | | | This version is based on git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 05f7e89ab9731565d8a62e3b5d1ec206485eeb0b ( tag: v6.19 ). Sponsored by: The FreeBSD Foundation MFC after: 3 days
| * ath10k: update Atheros/QCA's ath10k drivervendor/Linux/ath10k/torvalds-v6.19vendor/Linux/ath10kBjoern A. Zeeb3 days1-8/+8
| | | | | | | | | | | | | | | | This version is based on git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 05f7e89ab9731565d8a62e3b5d1ec206485eeb0b ( tag: v6.19 ). Sponsored by: The FreeBSD Foundation
| * ath10k: update Atheros/QCA's ath10k drivervendor/Linux/ath10k/torvalds-v6.19-rc6Bjoern A. Zeeb2026-01-207-51/+274
| | | | | | | | | | | | This version is based on git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 24d479d26b25bce5faea3ddd9fa8f3a6c3129ea7 ( tag: v6.19-rc6 ).
* | asan: Use memset_early() to fill shadow memoryMark Johnston3 days1-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | __builtin_memset() calls are replaced with calls to memset(), but that can't be used before ifunc relocations are processed if the implementation is selected at boot time. Meanwhile, the sanitizer may emit calls to __asan_set_shadow_*() as soon as locore jumps into C code, before ifuncs are selected. Just unconditionally use memset_early() to work around this. Reported by: andrew MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D55079
* | tcp: restrict flowtype copying to specific RSS TCP typesCheng Cui3 days2-2/+6
| | | | | | | | | | Reviewed by: gallatin, tuexen Differential Revision: https://reviews.freebsd.org/D55196
* | mtree: stop creating /usr/share/doc/ncursesDimitry Andric3 days1-2/+0
| | | | | | | | | | | | | | | | | | | | In base 68ad2b0d7af2a the ncurses html documentation was removed, and entries added to ObsoleteFiles.inc to get rid of /usr/share/doc/ncurses, but the directory was still being re-created via BSD.usr.dist. Remove it from there too. Fixes: 68ad2b0d7af2a MFC after: 1 month
* | pwd: Add testsDag-Erling Smørgrav3 days4-2/+85
| | | | | | | | | | | | MFC after: 1 week Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D55153
* | pwd: Clean up and adopt POSIX semanticsDag-Erling Smørgrav3 days2-49/+54
| | | | | | | | | | | | | | | | | | | | | | | | | | | | According to POSIX, the default should be -L. Based on code history, whoever first wrote BSD pwd(1) could not figure out how to implement -L and therefore made -P the default (and only) option. Support for -L was later added, but the default was never changed. Clean up the code, make -L the default, and rewrite getcwd_logical() to reject paths that contain dot or dot-dot, as required by POSIX. MFC after: 1 week Reviewed by: olce Differential Revision: https://reviews.freebsd.org/D55146
* | ipfilter: Interface name must not extend beyond end of bufferCy Schubert3 days1-2/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | sifpidx (an interface name) cannot extend beyond the end of the fr_names buffer. We do the validation for fr_sifpidx here because it is a union that contains an offset only when fr_sifpidx points to an interface name, an offset into fr_names. The union is an offset into fr_names in this case only. interr_tbl now becomes a static variable outside a function to facilitate its use by two functions within fil.c Note that sifpidx is only used in ipf_sync() which implments ipf -y. Reported by: Ilja Van Sprundel <ivansprundel@ioactive.com> MFC after: 1 week
* | net: Remove the IFF_RENAMING flagMark Johnston3 days10-28/+1
| | | | | | | | | | | | | | | | | | | | | | This used to be needed when interface renames were broadcast using the ifnet_departure_event eventhandler, but since commit 349fcf079ca3 ("net: add ifnet_rename_event EVENTHANDLER(9) for interface renaming"), it has no purpose. Remove it. Reviewed by: pouria, zlei Sponsored by: Klara, Inc. Differential Revision: https://reviews.freebsd.org/D55171
* | ip6_mroute: Deindent some code in ip6_mdq()Mark Johnston3 days1-66/+68
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Deal with the mifi >= nummifs case early so that we can de-indent the rest of the code. This also ensures that the debug log (compiled out by default) doesn't perform an out-of-bounds access. Remove a bogus NULL test in an inner loop while here. No functional change intended. Reviewed by: glebius MFC after: 2 weeks Sponsored by: Stormshield Sponsored by: Klara, Inc. Differential Revision: https://reviews.freebsd.org/D55059
* | ip_mroute: Try to make function pointer declarations more consistentMark Johnston3 days11-15/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The ip_mroute and ip6_mroute modules hook into the network stack via several function pointers. Declarations for these pointers are scattered around several headers. Put them all in the same place, ip(6)_mroute.h. No functional change intended. Reviewed by: glebius MFC after: 2 weeks Sponsored by: Stormshield Sponsored by: Klara, Inc. Differential Revision: https://reviews.freebsd.org/D55058
* | ip_mroute: Use a local variable to store a VIF pointerMark Johnston3 days1-22/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | This is cleaner and will make it a bit easier to add some more indirection to the VIF table, specifically, to add per-FIB tables. No functional change intended. Reviewed by: glebius MFC after: 2 weeks Sponsored by: Stormshield Sponsored by: Klara, Inc. Differential Revision: https://reviews.freebsd.org/D55057
* | usb_vendors: update to 2025.12.13Baptiste Daroussin3 days1-2/+3
| |
* | rtw88: remove more references to rtw88fwBjoern A. Zeeb3 days2-4/+4
| | | | | | | | | | | | | | | | | | | | When I removed the Realtek rtww8x firmware from base I missed to add rtw88fw.4 to ObsoleteFiles.inc [1]. While adding this, also remove a leftover reference in rtw88.4. Reported by: Herbert J. Skuhra (herbert gojira.at) [1] Fixes: cf94672363d6 MFC after: 3 days
* | pci_vendors: update to 2026-02-10Baptiste Daroussin3 days1-108/+358
| |
* | sbin/geom: Convert err/warn() to xo_err/warn() and style(9) fixesJohan Söllvander3 days1-39/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Finishing up the libxo conversion of geom by switching err(3) to their libxo equivalents. While here, fix some style(9) issues. There are still a few left, but at least they're fewer now. Reviewed by: asomers Approved by: asomers (mentor) MFC after: 2 weeks Sponsored by: ConnectWise Differential Revision: https://reviews.freebsd.org/D54938
* | rtw89: module Makefile add USB bus attachmentsBjoern A. Zeeb3 days1-13/+30
| | | | | | | | | | Sponsored by: The FreeBSD Foundation MFC after: 3 days
* | rtw89: harmonize all MODULE_DEPEND to rtw89Bjoern A. Zeeb3 days4-8/+13
| | | | | | | | | | | | | | | | rtw89 came like rtw88 was done. Given rtw88 once was split up rtw89 got modelled the same way. Clean this up too. Sponsored by: The FreeBSD Foundation MFC after: 3 days
* | rtw89: cleanup static_assert() callsBjoern A. Zeeb3 days9-58/+0
| | | | | | | | | | | | | | | | | | These days we can use static_assert() without trouble so remove the FreeBSD-specific rtw89_static_assert implementation. This reduces the diff to upstream and will ease future driver updates. Sponsored by: The FreeBSD Foundation MFC after: 3 days
* | rtw88: Add bus attachments to the module MakefileBjoern A. Zeeb3 days1-23/+59
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In addition to PCIe we will support USB and also prepare for SDIO (still disabled locally). The module SRCS are split up into a common part, which we always add. All three bus parts are guarded by a local variable in the Makefile. In addition the PCI parts require PCI to be compiled into the kernel. We add that check in case of, e.g., SoCs with SDIO but no PCI, which may not have PCI in the kernel config and thus the module would fail to attach. USB has no additional check as it is fully loadable and does not have to be in a kernel config. SDIO depends on an MMCCAM-enabled kernel but is otherwise loadable. While we could, we are not splitting the various bus attachments into individual modules as we generally do not do that in FreeBSD. [1] Sponsored by: The FreeBSD Foundation MFC after: 3 days Discussed with: imp and jhb (2022, 2024), see also 17732dd8f01b [1] OKed by: imp (KERN_OPTS checks initially suggested by jhb) Differential Revision: https://reviews.freebsd.org/D55022
* | rtw88: harmonize all MODULE_DEPEND to rtw88Bjoern A. Zeeb3 days4-12/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | From the time I used to split up the driver into a core part and bus attachment sub-drivers the various bus attachments had their own module name but all is "rtw88" now. Core functionality depends on linuxkpi, linuxkpi_wlan, and for debug.c lindebugfs. Each bus attachment then depends on its own parent layer if needed: PCI gets pull in through linuxkpi, USB: depends on [the future] linuxkpi_usb, and SDIO: depends on [the future] linuxkpi_sdio. Sponsored by: The FreeBSD Foundation MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D55021
* | iflib: Add support for SIOCGIFDOWNREASON ioctlChandrakanth Patil3 days2-0/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change adds native support for the SIOCGIFDOWNREASON ioctl in iflib. When ifconfig issues SIOCGIFDOWNREASON, the request is now routed through a new driver callback (IFDI_GET_DOWNREASON). iflib allocates the ifdownreason structure, calls the driver to fill the down-reason message, and then returns the data back to ifconfig for display. Without this change, iflib-based drivers cannot implement link-down reason reporting even if the hardware provides the information. No functional change for existing drivers unless they implement the new IFDI_GET_DOWNREASON method. Existing drivers continue to behave as before. Reviewed by: gallatin, erj, kgalazka, ssaxena, #iflib Differential Revision: https://reviews.freebsd.org/D54045 MFC After: 1 week
* | pci_iov: Reuse downstream bridge bus window if it already covers VF busChandrakanth Patil3 days1-10/+21
| | | | | | | | | | | | | | | | | | | | | | If the parent bridge's [secondary, subordinate] window already covers the VF bus (e.g., programmed by BIOS or a prior PF), skip allocating PCI_RES_BUS. This avoids a duplicate rman allocation in the multi-PF case while still allocating when growth is actually needed. Reviewed by: ssaxena Differential Revision: https://reviews.freebsd.org/D52163 MFC After: 1 week
* | rtw89: update Realtek's rtw89 driverBjoern A. Zeeb3 days58-1101/+4651
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | This version is based on git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 24d479d26b25bce5faea3ddd9fa8f3a6c3129ea7 ( tag: v6.19-rc6 ). Sponsored by: The FreeBSD Foundation MFC after: 3 days PR: 285228
| * | rtw89: update Realtek's rtw89 drivervendor/Linux/rtw89/torvalds-v6.19-rc6vendor/Linux/rtw89Bjoern A. Zeeb2026-01-2040-722/+2099
| | | | | | | | | | | | | | | | | | This version is based on git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 24d479d26b25bce5faea3ddd9fa8f3a6c3129ea7 ( tag: v6.19-rc6 ).
| * | rtw89: update Realtek's rtw89 drivervendor/Linux/rtw89/torvalds-v6.18Bjoern A. Zeeb2025-12-0543-391/+2555
| | | | | | | | | | | | | | | | | | | | | | | | This version is based on git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 7d0a66e4bb9081d75c82ec4957c50034cb0ea449 ( tag: v6.18 ). Sponsored by: The FreeBSD Foundation
* | | dev/mfi: include sys/abi_compat.h unconditionallyKonstantin Belousov3 days1-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | not only for COMPAT_FREEBSD32 case. The driver uses INPTR() for non-compat32 code. Sponsored by: The FreeBSD Foundation MFC after: 1 week
* | | amd64/acpica/acpi_wakeup.c: do not store to WARMBOOT_OFF in efi_boot caseKonstantin Belousov3 days1-22/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Split acpi_wakeup_cpus() into acpi_wakeup_cpus_bios() and acpi_wakeup_cpus_efi(). The former needs to manipulate zero page and CMOS state, the later does not. Referenced commit left the write to WARMBOOT_OFF in case of acpi_wakeup_ap() failed. Fixes: e99255c8a6cae324aeede7f5013d080a2d361e3f Reviewed by: imp Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D55205
* | | sys/event.h: reduce namespace pollution from sys/abi_compat.hKonstantin Belousov3 days4-32/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Split out types definitions into sys/abi_types.h, and only include abi_types.h into sys/event.h. Tested and reviewed by: bz Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D55202
* | | ath10k: modules Makefile bus attachmentsBjoern A. Zeeb3 days1-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | Given USB in theory compiles add it to the Makefile. The upstream support was never finished and I see little chances it ever will be so keep USB disabled by default. MFC after: 3 days
* | | ath10k: usb: make compile using [a future] linuxkpi_usbBjoern A. Zeeb3 days1-0/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Make ath10k usb code compile just to gather more USB bits. Currently (and likely forever) it is useless as the ath10k USB implementation never got finished. At the moment it lacks an entry for the USB bus attachment in core.c ath10k_hw_params_list[]. ath10k_usb0 on uhub1 ath10k_usb0: <Qualcomm Atheros USBWLAN, rev 2.01/92.10, addr 6> on usbus0 ath10k_usb0: Warning: ath10k USB support is incomplete, don't expect anything to work! ath10k_usb0: Unsupported hardware version: 0x5020001 ath10k_usb0: could not get hw params (-22) ath10k_usb0: could not probe fw (-22) There is another possible hardware [1] which was also never merged upstream. [1] https://lists.infradead.org/pipermail/ath10k/2024-August/016037.html "[PATCH] wifi: ath10k: add USB device ID for Atheros QCA9377-7" MFC after: 3 days
* | | ath10k: harmonize all MODULE_DEPEND to ath10kBjoern A. Zeeb3 days4-9/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | With theoretically multiple bus attachements (unclear if we will ever support anything but PCI) rename the module name to "ath10k" and use it consistently. Move the common depends to core.c and lindebugfs and usb to their respective files. MFC after: 3 days
* | | ath10k: cleanup some bits no longer FreeBSD-specificBjoern A. Zeeb3 days4-41/+5
| | | | | | | | | | | | | | | | | | | | | | | | We have since I did this port in 2023 added ACPI support to LinuxKPI, so we can use it. Also there is a linux/of.h header so we no longer need to guard the #include. MFC after: 3 days
* | | ath10k: add sysctl to turn on/off fwlogBjoern A. Zeeb3 days1-0/+17
| | | | | | | | | | | | | | | | | | | | | | | | FWLOG, if compiled in, was on by default without a way to stop it from printing everything to the console. Add a modparam to enable it with it being disabled by default if available. MFC after: 3 days