summaryrefslogtreecommitdiff
path: root/sys/modules
AgeCommit message (Collapse)Author
18 hoursmodules: iwlwifi/rtw89 allow standalone buildBjoern A. Zeeb
The KERN_OPTS:MDEV_ACPI checks are fine for as long as we are building modules along the kernel. If one wants to just build the module standalone out of the module directory this would fail. Add the missing include for kmod.opts.mk (as was done for tcp in 1319a76179682). Sponsored by: The FreeBSD Foundation Reported by: Tassilo Philipp (tphilipp potion-studios.com) Fixes: f5a77dc8f8df ("improve module Makefile dependency on ACPI") Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D54769
5 daysiwlwifi/rtw89: improve module Makefile dependency on ACPIBjoern A. Zeeb
In order to compile iwlwifi(4) and rtw89(4) on RISC-V [1] make the currently manually tracked ACPI support option automatic based on DEV_ACPI. rtw89(4) is missing proper CONFIG_ACPI checks in the driver (or the mandatory dependency on ACPI) even upstream it seems. We just added that check to the modules/Makefile until this is fixed. [1] https://mail-archive.freebsd.org/cgi/getmsg.cgi?fetch=5947+0+archive/2026/freebsd-wireless/20260112.freebsd-wireless Sponosred by: The FreeBSD Foundation MFC after: 3 days Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D54694
5 daysmodules: factor out LinuxKPI based wireless drivers and add RISC-VBjoern A. Zeeb
The LinuxKPI based wireless drivers are currently limited to amd64 and arm64 (and until cleaned up i386). Adding RISC-V now as we have a report that iwlwifi(4) works on RISC-V [1]. Factor the LinuxKPI based wireless drivers out into their own block. Given RISC-V has no ACPI support yet (though we fixed #includes in order to keep compiling the drivers without further modifications where possible) we need to take care of rtw89 which fails to compile without ACPI enabled. A quick check at the Linux build files indicates that the depenency is not correctly recorded there either. Disable compiling rtw89 without ACPI (on RISC-V) for the moment until this is fixed. [1] https://mail-archive.freebsd.org/cgi/getmsg.cgi?fetch=5947+0+archive/2026/freebsd-wireless/20260112.freebsd-wireless Sponsored by: The FreeBSD Foundation MFC after: 3 days Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D54693
7 daysasmc(4): Stop building it on i386, as it supports only 64-bit chipsetsOlivier Certner
Reported by: ngie Fixes: fde9fe18219f ("i386: Fix kernel compilation after introduction of ASMC_DEBUG option") Sponsored by: The FreeBSD Foundation
9 daysRevert "ophgo: import new .dts"Warner Losh
This reverts commit b55d106df9785d141f9e3e1c916e921df9d877ac. Per request of original author, manu, and mmel, revert this change. While this is a genuinely cool device, there's some issues that need to be sorted out before moving forward: o Imported dt-bindings that weren't used and could interfere in the future. o no platform code for sophgo, though it likely needs it o Potential interference from the dts/dtsi files imported for future linux device-tree imports. These are the dts files from the vendor sdk, and history has down often upstream introduces enough change that keeping them here in the mean time lays the groundwork for merge conflicts in the future. That makes this import premature. Revert until it's more mature.
9 daysophgo: import new .dtsMartin Filla
Signed-off-by: Martin Filla <freebsd@sysctl.cz> Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/1844
10 daysixl(4): Enable building driver on ARM64Krzysztof Galazka
For consistency with other drivers enable building ixl on ARM64 target. Please be advised that it is only compile tested. Intel will continue to test Ethernet drivers only on x86-64 platforms, and is not going to provide support for issues, which cannot be reproduced in such environment. Signed-off-by: Krzysztof Galazka <krzysztof.galazka@intel.com> Suggested by: Dave Cottlehuber <dch@FreeBSD.org> Reviewed by: manu Approved by: kbowling (mentor) MFC after: 2 weeks Sponsored by: Intel Corporation Differential Revision: https://reviews.freebsd.org/D54289
10 daysMakefile*: remove powerpcspeMinsoo Choo
As reported on the freebsd-announce mailing list[1] FreeBSD is continuing to retire 32-bit support. Remove powerpcspe from build infrastructure. [1] https://lists.freebsd.org/archives/freebsd-announce/2024-February/000117.html Signed-off-by: Minsoo Choo <minsoochoo0122@proton.me> Reviewed by: jhibbits, emaste Pull request: https://github.com/freebsd/freebsd-src/pull/1914
11 daysvmm: Deduplicate VM and vCPU state management codeMark Johnston
Now that the machine-independent fields of struct vm and struct vcpu are available in a header, we can move lots of duplicated code into sys/dev/vmm/vmm_vm.c. This change does exactly that. No functional change intended. MFC after: 2 months Sponsored by: The FreeBSD Foundation Sponsored by: Klara, Inc. Differential Revision: https://reviews.freebsd.org/D53585
14 daysAdd ASMC_DEBUG make optionEnji Cooper
This allows folks to enable debug statements in asmc(4) using kernel configs via the `options ASMC_DEBUG` directive. While here, remove a duplicate `device vt_efifb` directive in `NOTES` as it's already handled in the `GENERIC` config MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D54511
14 dayslinuxkpi: Add <linux/siphash.h>Jean-Sébastien Pédron
The file is copied as is from Linux 6.10 as it dual-licensend under the GPLv2 and BSD 3-clause. The amdgpu DRM driver started to use it in Linux 6.10. Reviewed by: bz, emaste Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D54501
2026-01-02sound: Move sndstat out of pcm/Christos Margiolis
Needed by follow-up patches that will add sndstat support for midi/ Sponsored by: The FreeBSD Foundation MFC after: 1 week Reviewed by: markj Differential Revision: https://reviews.freebsd.org/D54140
2026-01-02snd_dummy: Initial MIDI supportChristos Margiolis
Because testing the midi/ code of sound(4) requires a physical MIDI device, add some basic MIDI support to snd_dummy(4) so that we can test patches to midi/ easier. Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D54127
2025-12-29linux: Add required symbol to EXPORT_SYMS listEd Maste
PR: 291270
2025-12-29qat: Export missing symbols in qat_commonRupesh Pilania
Some symbols required by dependent modules were missing from qat_common.ko and qat_api.ko, causing load failures when local symbol resolution is disabled. PR: 291271 Reviewed by: zlei, markj Differential Revision: https://reviews.freebsd.org/D54107
2025-12-26Build acpi kernel modules on aarch64John Baldwin
For now, the only kernel module built is acpi_ged.ko. Sponsored by: Netflix Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D54315
2025-12-26sys/modules/acpi/Makefile: One line per subdirectoryJohn Baldwin
This makes diffs that add or remove modules easier to read. Reviewed by: imp Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D54314
2025-12-19LinuxKPI: bitcount fix builds with gcc and older llvmBjoern A. Zeeb
LLVM before 19 and gcc before 14 do not support __builtin_popcountg(). Use __const_bitcount<n> from sys/bitcount.h as a replacement in these cases. This should still allow drm-kmod to build where the size needs to be known at compile-time. Remove the conditional for gcc around the iwlwifi modules build, which was collateral damage in all this. Sponsored by: The FreeBSD Foundation Fixes: 7cbc4d875971, 5e0a4859f28a MFC after: 3 days Reviewed by: brooks, emaste (without the sys/modules/Makefile change) Differential Revision: https://reviews.freebsd.org/D54297
2025-12-19zfs: merge openzfs/zfs@962e68865Martin Matuska
Notable upstream pull request merges: #16307 1d43387dd zdb: Add -O option for -r to specify object-id #17965 a62c62120 ARC: Pre-convert zfs_arc_min_prefetch_ms #17970 d393166c5 ARC: Increase parallel eviction batching #17981 20f09eae4 ZIO: ZIO_STAGE_DDT_WRITE is a blocking stage #17983 ff47dd35e Fix ddtprune causing space leak #18015 86b064469 FreeBSD: Fix a potential null dereference in zfs_freebsd_fsync() (already merged) #18020 ff47dd35e Ensure 64-bit `off_t` is used in user space instead of `loff_t` #18028 09492e0f2 Reduce dataset buffers re-dirtying #18033 f72fd378c Defer async destroys on pool import #18043 3d76ba273 Improve async destroy processing timing #18044 46d6f1fe5 DDT: Move logs searches out of the lock #18047 ff5414406 DDT: Switch to using ZAP _by_dnode() interfaces #18048 3b1ff816b DDT: Add/use zap_lookup_length_uint64_by_dnode() #18055 22e89aca8 DDT: Fix compressed entry buffer size #18059 0550abd4b RAIDZ: Remove some excessive logging #18060 a83bb15fc Reduce minimal scrub/resilver times #18061 962e68865 Use reduced precision for scan times #18063 051a8c749 Bypass snprintf() in quota checks if no quotas set #18064 7ff329ac2 Fix rangelock test for growing block size Obtained from: OpenZFS OpenZFS commit: 962e68865e4a569a8a51a07a45dcae7c33cdca78
2025-12-18aq(4): Build on x86 only for nowEd Maste
It fails to build on arm64. As it is experimental and in development just limit it to x86 until this is fixed. Reported by: brd Fixes: 75177aebf039 ("aq(4): Add build infrastructure")
2025-12-18aq(4): Add build infrastructureEd Maste
Reviewed by: adrian Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D53839
2025-12-15dtb: build Radxa Cubie A5E DTBMartin Filla
Reviewed by: mhorne Pull Request: https://github.com/freebsd/freebsd-src/pull/1916
2025-12-15if_rge: initial import of if_rge driver from OpenBSD.Adrian Chadd
This is an initial import of the if_rge driver from OpenBSD and adapted to FreeBSD. Differential Revision: https://reviews.freebsd.org/D54101
2025-12-12Remove: sys/dts/arm/overlays/spigen-rpi-b.dtsoOskar Holmlund
Remove SPIGEN device tree overlay used with rpi-b (BCM2835/armv6) Approved by: manu (mentor) Differential revision: https://reviews.freebsd.org/D54188
2025-12-11sys/dts: Remove i.MX5 device treeOskar Holmlund
IMX51 is already EOL and IMX53 is going to be EOL in Feb 2026. See NXP product longevity site Remove Digi ConnectCore Wi-i.MX53 Genesi Efika MX FreeBSD own DTSI for imx51 and imx53 sys/modules/dtb/imx5 for i.MX53 quick start board. Approved by: manu (mentor) Differential revision: https://reviews.freebsd.org/D53888
2025-12-10nvd: Connect nvme_if methodsWarner Losh
Conenct methods to manage namespaces explicitly to replace the old consumer interface. Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D51388
2025-12-10nvme_sim: Connect to events broadcast with nvme_ifWarner Losh
Connect up the nvme_ns_* events. Copy code from old ways, as needed, and refactor a little. Sponsored by: Netflix Reviewed by: dab Differential Revision: https://reviews.freebsd.org/D51387
2025-12-09zfs: Reuse ZINCDIR variable from kmod.mkJohn Baldwin
Reviewed by: brooks, imp Differential Revision: https://reviews.freebsd.org/D54147
2025-12-08linux: separate all ifnet(9) related code into linux_ifnet.cGleb Smirnoff
Remove linux_use_real_ifname(). It is no longer used outside of the file since 3ab3c9c29cf0. There is no functional change. Reviewed by: melifaro, dchagin Differential Revision: https://reviews.freebsd.org/D54076
2025-12-08ipfilter: Disable ipfs(8) by defaultCy Schubert
At the moment ipfs(8) is a tool that can be easily abused. Though the concept is sound the implementation needs some work. ipfs(8) should be considered experimental at the moment. This commit also makes ipfs support in the kernel optional. Reviewed by: emaste, glebius MFC after: 1 week Differential revision: https://reviews.freebsd.org/D53787
2025-12-07zfs: world changes after 89f729dcc mergeMartin Matuska
Remove, unbind and obsolete libuutil and libtpool Update zfs_configh and zfs_gitrev.h
2025-12-06ath11k: add new files to module MakefileBjoern A. Zeeb
Add the new files to the module Makefile as well, so they do not get lost.
2025-12-06LinuxKPI: ath10k: adjust for led changes to keep ath10k compilingBjoern A. Zeeb
Add the conditional compile time option defaulting to off as we do not support leds in LinuxKPI to ath10k for the new file. Add empty struct gpio_led to LinuxKPI. MFC after: 3 days
2025-12-05Update path for TI Am335x device treesOskar Holmlund
Since Linux DTS has been starting to using vendor subdirs we need to update this aswell. Approved by: manu (mentor) Differential revision: https://reviews.freebsd.org/D53890
2025-12-03mt76: set appropriate CONFIG options for the module buildBjoern A. Zeeb
Always set CONFIG_ARCH_DMA_ADDR_T_64BIT as it is true for all architectures we support. Add an option for CONFIG_NET_MEDIATEK_SOC_WED, which we currently do not yet support. Sponsored by: The FreeBSD Foundation MFC after: 3 days
2025-12-01Fintek F81232 USB to serial driverDiane Bruce
Driver for Feature Integration Technology Inc. (aka Fintek) F81232 USB to serial driver. Reviewed by: thj,adrian,UB Approved by: adrian Differential Revision: https://reviews.freebsd.org/D53893
2025-11-27cxgbe(4): Delete leftovers from $FreeBSD$ removalNavdeep Parhar
No functional change. MFC after: 1 week Sponsored by: Chelsio Communications
2025-11-27Export t4_tom's symbols for other offload modulesNavdeep Parhar
This allows iw_cxgbe.ko, cxgbei.ko, nvmf_che.ko, etc. to be loaded when debug.link_elf_leak_locals and debug.link_elf_obj_leak_locals are disabled. PR: 291250 MFC after: 1 week Sponsored by: Chelsio Communications
2025-11-26mqueuefs: Export another symbol required by linux.koEd Maste
Fixes: e00a781c216c ("mqueue: Export kern_kmq_* symbols from kernel module") Sponsored by: The FreeBSD Foundation
2025-11-26mqueue: Export kern_kmq_* symbols from kernel moduleEd Maste
linux.ko supports POSIX message queues using these symbols, so they need to be exported rather than relying on the kernel linker's misfeature of linking against debug or local symbols (which will soon be disabled by default). Reported by: mav Reviewed by: zlei Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D53907
2025-11-25agp: Export intel_gtt_read_pte, required by i915kmsEd Maste
This isn't used by modern cards, but is needed for i915kms to load on a system that has agp as a module not compiled into the kernel. PR: 291214 Reviewed by: cy Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D53906
2025-11-17zfs: fix aarch64 build after openzfs/zfs@e63d026b9Martin Matuska
2025-11-17zfs: fix build after openzfs/zfs@e63d026b9Martin Matuska
Fix Makefiles Update zfs_config.h and zfs_gitrev.h
2025-11-14tpm: fix the conditional for the arm64 buildKyle Evans
The intention was clearly that these ACPI bits would be included for arm64, but MACHINE_ARCH there is aarch64 -- correct the minor typo to build everything that should be there. Fixes: c2e9c5bbf0229 ("tpm: Refactor TIS and add a SPI attachment")
2025-11-12cxgbe(4): fix nvmf_che module buildDavid E. O'Brien
Fixes: ec0cd28
2025-11-12arm64: Add Arm SPE supportZachary Leaf
Add support for the Arm Statistical Profiling Extension (SPE). This is an optional extension added in Armv8.1 to provide profiling of software using randomised instruction sampling. This adds the initial driver, and attached it to the hardware tracing framework, hwt(4), in CPU mode to allow tracing of all threads on a given CPU. (commit message by andrew@) Co-authored-by: Sarah Walker <sarah.walker2@arm.com> Co-authored-by: Andrew Turner <andrew@FreeBSD.org> Reviewed by: andrew Sponsored by: Arm Ltd Sponsored by: The FreeBSD Foundation (early driver) Differential Revision: https://reviews.freebsd.org/D46241
2025-11-10nvmf_che: NVMe-TCP offload support for Chelsio T7 adaptersJohn Baldwin
This provides an alternative NVMe over TCP transport which uses PDU offload for TOE connections on a T7. Similar to iSCSI offload via cxgbei.ko, nvmf_che uses DDP when possible to enable the NIC to DMA received data directly into I/O data buffers (pages from a struct bio on the host side, pages from a CTL I/O requests on the controller side) to avoid copying data on the host CPU. nvmf_che is also able to receive a stream of C2H or H2C PDUs for a single data transfer when using DDP without processing the header of each PDU. Unlike cxgbei, nvmf_che aims to be mostly transparent to end users. Notably, neither nvmecontrol or ctld have to be explicitly asked to use an offload. Instead, TCP queue pairs are claimed by this driver whenever they are eligible (e.g., using TOE). The main restriction of nvmf_che compared to the software TCP transport is that Chelsio adapters have a restriction on the largest PDU that can be sent and received. When sending data, nvmf_che is able to split large C2H or H2C data requests across multiple PDUs without affecting nvmf(4) or nvmft(4). To avoid overly large PDUs when using nvmf(4), nvmf_che reports a data transfer limit that is honored by nvmf(4). This ensures that the remote controller's PDUs will never be too large (since the command transfer size is limited to one PDU) and also ensures that nvmf(4) will never to try to send a command PDU with ICD that is too large. For nvmft(4), overly large command PDUs due to ICD are avoided by clamping the size of the reported IOCCSZ in the controller data. However, to ensure that H2C PDUs are sufficiently small, nvmf_che will only claim queue pairs which advertised a suitable MAXH2CDATA parameter during queue negotiation. For ctld(8), this can be achieved by setting the MAXH2CDATA option in a transport-group, e.g. for T7: transport-group tg0 { discovery-auth-group no-authentication listen tcp 0.0.0.0 listen tcp [::] listen discovery-tcp 0.0.0.0 listen discovery-tcp [::] option MAXH2CDATA 32488 } Sponsored by: Chelsio Communications
2025-11-06iwlwifi: fix the gcc buildEnji Cooper
- Only apply the previously added CWARNFLAGS to `drv.c` instead of the whole module. - Only apply `-Wno-initializer-overrides` to CWARNFLAGS in the clang scenario as it's not supported with gcc. This fixes building the module with gcc and avoids accidentally introducing tech debt with the module, in the event other issues are accidentally introduced. MFC after: 3 days Fixes: 6b627f8858 ("iwlwifi: update Intel's mvm/mld drivers") Differential Revision: https://reviews.freebsd.org/D53591
2025-10-28random: remove hifn(4)David E. O'Brien
The Hifn 7955 & 7956 only supports deprecated & NIST disallowed algorithms (NIST SP800-224idp): SHA1 and SHA1-HMAC. Furthermore the entropy RNG of the Hifn 7751, 7951, 7811, 7955, and 7956 has no NIST Entropy Source Validation (ESV) certificate and cannot be used in a FIPS-140-3 nor Common Criteara environment. Furthermore the most prolific instance for FreeBSD was the Soekris Engineering vpn1201, vpn1211, vpn1401, and vpn1411 offerings. These are all 32-bit only processors. The i386 kernel was de-supported in 15.0. Reviewed by: jhb Differential Revision: https://reviews.freebsd.org/D53182
2025-10-27ipfw: Retire obsolete compat codeEd Maste
The current IPFW version 3 dates to 2010 (commit cc4d3c30ea28, "Bring in the most recent version of ipfw and dummynet, developed"). The compat code for FreeBSD 8 and earlier has a number of issues and is no longer needed, so remove it. Reported by: Ilja Van Sprundel <ivansprundel@ioactive.com> Reviewed by: ae, glebius Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D53343