Commit graph

5050 commits

Author SHA1 Message Date
Bjoern A. Zeeb
228b43c258 iwlwifi: compile in ACPI support
Now that LinuxKPI supports the lower case Linux ACPI spellings under
LINUXKPI_WANT_LINUX_ACPI we only need to provide the debug macro to
allow us to compile in ACPI support.

This ties into regulatory and will be used, e.g., for 11ax, 11be,
and Per Platform Antenna Gain (PPAG) settings.

Sponsored by:	The FreeBSD Foundation
MFC after:	3 days
2025-07-04 05:22:22 +00:00
Bjoern A. Zeeb
8c97c46418 rtw89: enable ACPI support on FreeBSD
Now that LinuxKPI supports the lower case Linux ACPI spellings under
LINUXKPI_WANT_LINUX_ACPI remove the #ifdef around the code and compile in
ACPI support.

Sponsored by:	The FreeBSD Foundation
MFC after;	3 days
2025-07-04 05:22:22 +00:00
Ruslan Bukin
df114daef4 Import the Hardware Trace (HWT) framework.
The HWT framework provides infrastructure for hardware-assisted tracing. It
collects detailed information about software execution and records it as
"events" in highly compressed format into DRAM. The events cover information
about control flow changes of a program, whether branches taken or not,
exceptions taken, timing information, cycles elapsed and more. This allows
to reconstruct entire program flow of a given application.

This comes with separate machine-dependent tracing backends for trace
collection, trace decoder libraries and an instrumentation tool.

Reviewed by:	kib (sys/kern bits)
Sponsored by:	UKRI
Differential Revision:	https://reviews.freebsd.org/D40466
2025-07-03 15:48:34 +01:00
Martin Matuska
0df1ee7695 zfs: merge openzfs/zfs@69ee01aa4
Notable upstream pull request merges:
 #17463 48ce292ea Clarify and restrict dmu_tx_assign() errors
 #17484 d461a67d0 Ensure that gang_copies is always at least as large
                  as copies
 #17486 0a2163d19 FreeBSD: Ensure that z_pflags is initialized for
                  new znodes
 #17488 ea076d692 vdev_raidz_asize_to_psize: return psize, not asize
 #17490 69ee01aa4 Fix bug caused by rounding in vdev_raidz_asize_to_psize

Obtained from:  OpenZFS
OpenZFS commit: 69ee01aa4b
2025-06-28 02:27:56 +02:00
Martin Matuska
3a8960711f zfs: merge openzfs/zfs@8170eb6eb
Notable upstream pull request merges:
 #17385 e1677d9ee ZVOL: Make zvol_prefetch_bytes module parameter platform-independent
 #17386 e0edfcbd4 ZVOL: Make zvol_volmode module parameter platform-independent
 #17391 108562344 Improve allocation fallback handling
 #17409 68817d28c Include class name into struct metaslab_class
 #17413 af7d60959 zpl: handle suspend from two remaining calls to `txg_wait_synced()`
 #17415 b7f919d22 Relax zfs_vnops_read_chunk_size limitations
 #17423 5e5253be8 FreeBSD: Wire projects support
 #17426 -multiple Channel programs: add zfs.sync.clone()
 #17431 e0ef4d276 Improve block cloning transactions accounting
 #17432 46b82de61 scrub: generate scrub_finish event
 #17435 bcd043023 Allow zero compression if dedup is enabled
 #17438 ba227e2cc Make TX abort after assign safer
 #17441 4ae931aa9 Polish db_rwlock scope
 #17434 66ec7fb26 Reduce zfs_dmu_offset_next_sync penalty
 #17445 238eab7dc FreeBSD: zfs_putpages: don't undirty pages until after write completes
 #17458 bd27b7540 ZIL: Relax parallel write ZIOs processing
 #17469 717213d43 Fix other nonrot bugs

Obtained from:	OpenZFS
OpenZFS commit:	8170eb6ebc
2025-06-22 01:00:36 +02:00
John Baldwin
45165aab2d nvme.ko: Don't include nvme_util.c
This file is already included in cam.ko which nvme.ko depends on
unconditionally.

Reviewed by:	imp
Sponsored by:	Chelsio Communications
Differential Revision:	https://reviews.freebsd.org/D50705
2025-06-16 13:56:52 -04:00
Warner Losh
c4bffce34f ufshci: Add to build on arm64 and aarch64
Add UFS Host Controller Itnerface driver to the build.

Sponsored by:		Netflix
2025-06-15 00:08:56 -06:00
Jaeyoon Choi
1349a733cf ufshci: Introduce the ufshci(4) driver
This commit adds a storage driver that supports the Universal Flash
Storage Host Controller Interface (UFSHCI) on FreeBSD.

Universal Flash Storage (UFS) is a flash-based mobile storage device
that replaces eMMC, aiming for high performance with low power. The UFS
Host Controller Interface (UFSHCI) is the host side controller and
connects UFS device to a system bus, such as PCIe.

The code targets the latest standards:
- UFS 4.1: https://www.jedec.org/standards-documents/docs/jesd220g
- UFSHCI 4.1: https://www.jedec.org/standards-documents/docs/jesd223f

The ufshci(4) driver implements controller/device initialization,
interrupt, single-doorbell(SDB) queue based IO requests. Support for
multi-queue (MCQ) IO requests is planned for a later commit.

Implemented features:
- PCIe bus support
- legacy(INTx) Interrupt Handling
- UIC command support
- UTP Transfer Request (UTR) support
- UTP Task Management Request (UTMR) support
- single doorbell queue (SDB) with multiple queue depth
- SCSI command set support
- sysctl

Work in progress:
- multi-Circular Queue (per-CPU IO queues)
- MSI-X interrupt Support
- write booster
- write Protect
- Host Performance Booster (HPB)
- interrupt aggregation
- ARM based system bus support
- ufs-utils port

Tests were performed on QEMU and an Intel-based laptop.
Since QEMU has an emulated UFS device, I tested on QEMU.

How to test on QEMU:
1. Run QEMU
    $ qemu-system-x86_64 ... -device ufs -drive file=blk1g.bin,format=raw,if=none,id=luimg -device ufs-lu,drive=luimg,lun=0
2. Loading/unloading the ufshci module on QEMU
    $ kldload /usr/obj/usr/src/amd64.amd64/sys/modules/ufshci/ufshci.ko
    $ kldunload ufshci

Testing on real hardware:
- Samsung Galaxy Book S (Intel Lakefield) with UFS 3.0
- Lenovo duet 3 11ian8 (Intel N100) with UFS 2.1

Sponsored by:		Samsung Electronics
Reviewed by:		imp
Differential Revision:	https://reviews.freebsd.org/D50370
2025-06-15 00:08:56 -06:00
Hareshx Sankar Raj
c38bafee7e qat: move debugfs handling to separate file
Moved handling of debugfs entries to a separate file.
In addition, it will allow to consolidate the addition of
debugfs entries to a single location in the code.

This implementation adds infrastructure to create (and remove)
debugfs entries at two different stages.
- Done when a device is probed, allows to keep debugfs entries
persistent between a transition in device state (up to down or
vice versa).
- Done after the initialization phase, allows to have debugfs
entries that are accessible only when the device is up.

In addition, moved the creation of debugfs entries for configuration
of the newly created function adf_dbgfs_init() and replace symbolic
permissions with octal permissions when creating the debugfs files.

Added sysctl oids storage for proper cleanup on device down.

Reviewed by:	markj, ziaee
MFC after:	2 weeks
Sponsored by:   Intel Corporation
Differential Revision:  https://reviews.freebsd.org/D50379
2025-06-06 13:43:22 +00:00
Hareshx Sankar Raj
5a8e5215ce qat: add disable safe dc mode for QAT SPR devices
Build and sysctl configuration modes are introduced for QAT SPR
devices to disable safe dc mode. A new QAT driver build option
‘QAT_DISABLE_SAFE_DC_MODE’ is required to build the QAT driver
with code that allows a request to be sent to FW to override the
‘History Buffer’ mitigation. Default QAT driver builds do not
include this ‘QAT_DISABLE_SAFE_DC_MODE’ build option. Even if the
QAT driver was built with code that allows a request to be sent to
FW to override the ‘History Buffer’ mitigation, the QAT driver must
still be configured using sysctl to request an override of the
‘History Buffer’ mitigation if desired. The default QAT driver
configuration option sysctl dev.qat.X.disable_safe_dc_mode does not
allow override of the mitigation. The new sysctl attribute
disable_safe_dc_mode is to be set to 1 for overriding the history
buffer mitigation. Firmware for qat_4xxx is updated for this change.
If this mode is enabled, decompression throughput increases but may
result in a data leak if num_user_processes is more than 1.
This option is to be enabled only if your system is not prone to
user data leaks.

Reviewed by:	markj, ziaee
MFC after:	2 weeks
Sponsored by:   Intel Corporation
Differential Revision:  https://reviews.freebsd.org/D50379
2025-06-06 13:42:58 +00:00
Martin Matuska
b1c1ee4429 zfs: merge openzfs/zfs@3084336ae
Notable upstream pull request merges:
 #14876 b048bfa9c Allow opt-in of zvol blocks in special class
 #16486 b6916f995 ARC: parallel eviction
 #17169 1a8f5ad3b zvol: Enable zvol threading functionality on FreeBSD
 #17209 c17bdc491 More aggressively assert that db_mtx protects db.db_data
 #17218 734eba251 Wire O_DIRECT also to Uncached I/O
 #17246 49fbdd453 Introduce zfs rewrite subcommand
 #17255 b1ccab172 ARC: Avoid overflows in arc_evict_adj()
 #17280 848794503 zcp: get_prop: fix encryptionroot and encryption
 #17301 086105f4c Cause zpool scan resume commands to get logged in history
 #17306 246e5883b zfs_valstr: update zio_flag strings for
                  ZIO_FLAG_PREALLOCATED
 #17309 78628a5c1 FreeBSD: Use new SYSCTL_SIZEOF()
 #17314 89a8a9158 ARC: Notify dbuf cache about target size reduction
 #17319 8b9c4e643 spa: clear checkpoint information during retry
 #17339 d5616ad34 Increase meta-dnode redundancy in "some" mode
 #17340 ea74cdedd Fix 2 bugs in non-raw send with encryption
 #17342 e55225be3 Add explicit DMU_DIRECTIO checks
 #17343 d8a33bc0a icp: Use explicit_memset() exclusively in gcm_clear_ctx()
 #17344 -multiple libzfs_core: add ZFS_IOC_TRACE envvar to enable ioctl
                  tracing
 #17348 f0baaa329 arcstat: prevent ZeroDivisionError when L2ARC becomes
                  empty
 #17353 83fa80a55 dmu_objset_hold_flags() should call
                  dsl_dataset_rele_flags() on error
 #17355 -multiple Allow txg_wait_synced_flags() and dmu_tx_assign()
                  to return when the pool suspends
 #17361 5c30b2438 Fix null dereference in spa_vdev_remove_cancel_sync()
 #17363 ddf28f27c Fix off-by-one bug in range tree code
 #17367 06fa8f3f6 zfs_cmd: reorganise zfs_cmd_t to match original size
 #17368 2a91d577b Expose dataset encryption status via fast stat path
 #17372 c464f1d01 Only interrupt active disk I/Os in failmode=continue
 #17373 9d76950d6 ZIL: Improve write log size accounting
 #17377 -multiple tunables: general code cleanup
 #17379 fa697b94e FreeBSD: Add posix_fadvise(POSIX_FADV_WILLNEED) support
 #17384 3dfa98d01 ZVOL: Make zvol_inhibit_dev module parameter
                  platform-independent

Obtained from:	OpenZFS
OpenZFS commit: 3084336ae4
2025-05-30 11:17:41 +02:00
Gleb Smirnoff
3ea0fa86f6 buildkernel: fix build for kernels without VIMAGE
Fixes:	9b5ddb2acc
2025-05-26 08:23:37 -07:00
Li-Wen Hsu
9b5ddb2acc
wtap(4): Connect to build
Sponsored by:	The FreeBSD Foundation
2025-05-20 10:04:18 +08:00
Jean-Sébastien Pédron
e3b16f53a6
linuxkpi: Add folio and folio_batch APIs
They are used by the i915 DRM driver in Linux 6.6 (although this change
was only backported with Linux 6.7 DRM drivers).

`struct folio` simply wraps `struct page` for now.

`struct folio_batch` is the same as `struct pagevec` but it works with
`struct folio` instead of `struct page` directly.

Reviewed by:	bz, kib, markj
Sponsored by:	The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D48743
2025-05-12 19:08:03 +02:00
Bjoern A. Zeeb
8ba4d145d3 mt76: update Mediatek's mt76 driver
This version is based on
git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
38fec10eb60d687e30c8c6b5420d86e8149f7557 ( tag: v6.14 ).

Sponsored by:   The FreeBSD Foundation
2025-05-04 22:55:08 +00:00
Martin Matuska
071ab5a1f3 zfs: merge openzfs/zfs@246e5883b
Notable upstream pull request merges:
 #17111 246e5883b Implement allocation size ranges and use for gang leaves
 #17123 5f5321eff Handle interaction between gang blocks, copies, and FDT
 #17130 -multiple Implement default user/group/project quotas
 #17164 301da593a Fix lock reversal on device removal cancel
 #17183 367d34b3a Fix dspace underflow bug
 #17187 30cc2331f zed: Ensure spare activation after kernel-initiated device
                  removal
 #17191 11ca12dbd simd_powerpc.h: enable FPU on FreeBSD
 #17192 5b29e70ae Remove mg_allocators
 #17204 a497c5fc8 Improve L2 caching control for prefetched indirects
 #17205 b14b3e398 Fix FDT rollback to not overwrite unnecessary fields
 #17206 7be9fa259 Fix nonrot property being incorrectly unset
 #17208 09fc7bb47 Fix memory leaks in pool properties handling

 #17213 78a7c78bd Added fix for zpool get state segfaults with two or more
                  vdevs
 #17228 131df3bbf vdev_to_nvlist_iter: ignore draid parameters when matching
                  names
 #17231 f40ab9e39 Fix double spares for failed vdev
 #17264 27f3d9494 Sort the blocking snapshots lis
 #17269 f86d9af16 Fix race between resilver wait and offline/detach
 #17273 c8fa39b46 cred: properly pass and test creds on other threads
 #17284 a7de203c8 txg: generalise txg_wait_synced_sig() to
                  txg_wait_synced_flags()

Obtained from:	OpenZFS
OpenZFS commit:	246e5883bb
2025-05-05 00:05:28 +02:00
Xin LI
d5931764df sys/modules/vmm: ${CFLAGS:N-flto} -> ${CFLAGS:N-flto*}
Fixes: 12a6257a96

Differential Revision: https://reviews.freebsd.org/D49940
2025-05-03 01:55:05 -07:00
Bjoern A. Zeeb
a0ccc12f68 rtw88: merge Realtek's rtw88 driver based on Linux v6.14
This version is based on
git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
38fec10eb60d687e30c8c6b5420d86e8149f7557 ( tag: v6.14 ).

Sponsored by:	The FreeBSD Foundation
2025-04-27 23:36:15 +00:00
Bjoern A. Zeeb
df279a26d3 rtw89: merge Realtek's rtw89 driver based on Linux v6.14
This version is based on
git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
38fec10eb60d687e30c8c6b5420d86e8149f7557 ( tag: v6.14 ).

Sponsored by:	The FreeBSD Foundation
2025-04-27 23:36:12 +00:00
Adrian Chadd
bca8685073 e6000sw: always compile it
It now is useful outside of FDT, so add it as a module

Differential Revision:	https://reviews.freebsd.org/D50028
Reviewed by:	imp
2025-04-27 11:04:22 -07:00
Adrian Chadd
4a167205f2 etherswitch: add etherswitch module
Add the etherswitch module

Differential Revision:	https://reviews.freebsd.org/D50026
Reviewed by:	imp
2025-04-27 11:03:45 -07:00
Adrian Chadd
07b56e2653 miiproxy: add as a module
Add miiproxy as a module.

Differential Revision:	https://reviews.freebsd.org/D50025
Reviewed by:	imp
2025-04-27 11:03:26 -07:00
Oskar Holmlund
e3e55936ce Remove OMAP4 support leftovers
Remove options.arm for OMAP3&4 and the makefile for building FDT

Approved by: manu (mentor)
Differential revision: https://reviews.freebsd.org/D49985
2025-04-23 20:04:53 +02:00
MartinFx
f127ccda83 radxa: added dts support zero3e, zero3w
Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/1672
2025-04-21 15:55:16 -06:00
Han Gao
40e58aca9f sifive: dtb: add unmatched dtb
Signed-off-by: Han Gao <rabenda.cn@gmail.com>
Signed-off-by: Han Gao <gaohan@iscas.ac.cn>
Reviewed by: imp, jlduran
Pull Request: https://github.com/freebsd/freebsd-src/pull/1661
2025-04-20 13:28:32 -06:00
Jean-Sébastien Pédron
78e25e65bf
lindebugfs: Add debugfs_create_str()
This function is used by the i915 DRM driver starting with Linux 6.8.

Reviewed by:	bz, emaste
Sponsored by:	The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D49067
2025-04-13 11:50:14 +02:00
Bjoern A. Zeeb
558d638896 iwlwififw: remove Intel iwlwifi firmware from src.git
Following the example of rtw88 and rtw89 only ship iwlwifi firmware
from ports/packages.  Users are asked to run fwget(8) to install the
firmware needed for their system or build it from ports
(see also UPDATING).

This is the end of a long story adding wireless support to fwget(8),
migrating the firmware for multiple branches into ports, splitting them
up into flavors, and updating some install media and the installer to
provide firmware.

The overall amount for new firmware amongst all drivers would have
added more than 100M of binary blobs to src.git for the first import,
ignoring future updates which (along with some duplication between
multiple drivers) was considered too much.

While maintenance within the src tree certainly would have been
easier in the longer term this seems to be the better solution and
I would like to thank everyone who helped along the path to get there.

The iwlwififw.4 man page is to stay (for now) and will likely point
at the appropriate firmware package flavor in the future as well
so people may find it easier to transition.  In the long term this
information is likely not needed anymore.

Sponsored by:	The FreeBSD Foundation
Requested by:	core (Oct 2022)
Reviewed by:	thj, jrm (earlier)
MFC after:	3 days
Differential Revision: https://reviews.freebsd.org/D49713
2025-04-10 13:32:49 +00:00
Ed Maste
516adf364c lindebugfs: Export newly-added symbol
Fixes: 2ee1311820 ("lindebugfs: Add `debugfs_lookup()`")
Sponsored by:	The FreeBSD Foundation
2025-04-08 17:33:02 -04:00
Poul-Henning Kamp
83483b480f Build geni_iic kmod on aarch64 2025-04-08 05:57:10 +00:00
Adrian Chadd
325af3b990 arm64: add the lenovo t14s snapdragon X1E device tree to the build list
This is used by the t14s for FDT support.

.. which definitely doesn't work yet, but having it in the build is good.

Differential Revision:	https://reviews.freebsd.org/D49690
Reviewed by:	manu, phk
2025-04-07 20:46:44 -07:00
Mark Johnston
296b60793d iwx: Disconnect from the i386 build
The module fails to compile.  Disconnect it until that's resolved one
way or another.

Reported by:	cperciva
2025-04-03 19:08:23 +00:00
Tom Jones
2ad0f7e915 Import iwx as ported from OpenBSD by Future Crew.
This driver originates from OpenBSD and was ported to FreeBSD by Future
Crew LLC who kindly provided a source release.

iwx supports many recent Intel WiFi card and this driver should support running
these cards with legacy, HT and VHT rates. There are some issues remaining in
the port, but at this point wider testing is sought.

To avoid breaking deployed WiFi configurations iwx probes with a lower
priority than iwlwifi. This can be changed by blocking iwlwifi with
devmatch.

Reviewed by:	adrian
Obtained from:	Future Crew LLC
Sponsored by:	The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D49259
2025-03-31 13:42:31 +01:00
Martin Matuska
641794f94f zfs: update zfs_config.h and zfs_gitref.h to catch up with 61145dc2b 2025-03-27 09:14:14 +01:00
Vladimir Kondratyev
f134662a1a acpi_asus_wmi(4): Improve keyboard backlight support.
- Fix maximal keyboard backlight level, Although Linux source code
  comment says that backlight level is encoded in 3 bits of data,
  actual code limits maximum level to 3.
- Add backlight(9) support for keyboard
- Turn off/on keyboard backlight on suspend/resume

Sponsored by:	Future Crew LLC
MFC after:	1 month
Reviewed by:	mav
Differential Revision:	https://reviews.freebsd.org/D48983
2025-03-17 18:45:14 +03:00
Vladimir Kondratyev
5e41194bfc acpi_asus_wmi(4): Add EVDEV support
Use input event device to export hotkey events.

Sponsored by:	Future Crew LLC
MFC after:	1 month
Reviewed by:	mav
Differential Revision:	https://reviews.freebsd.org/D48982
2025-03-17 18:45:14 +03:00
Adrian Chadd
2d4583c462 net80211: add initial AES-GCMP crypto support
This adds initial AES-GCMP crypto support.  It registers for both
128 and 256 bit support, although the 256 bit support will not work
without extending the net80211/ioctl keylength.

This is not yet enabled by default; drivers will need to opt-in
to supporting it in either hardware or software.

The AES-GCMP code is BSD licenced code from hostapd.git release 2.11.

Differential Revision:	https://reviews.freebsd.org/D49161
2025-03-12 17:02:27 -07:00
Martin Matuska
d2a8fad357 zfs: merge openzfs/zfs@fe674998b
Notable upstream pull request merges:
 #17042 ece35e0e6 zpool: allow relative vdev paths
 #17046 c43df8bbb vdev_file: unify FreeBSD and Linux implementations
 #17064 ee8803adc vdev_file: make FLUSH and TRIM asynchronous
 #17066 ecc44c45c include: move zio_priority_t into zfs.h
 #17071 ab3db6d15 arc: avoid possible deadlock in arc_read
 #17079 682c5f6a0 Fix wrong free function in arc_hdr_decrypt
 #17080 701093c44 Don't try to get mg of hole vdev in removal
 #17081 d7d274471 Better fill empty metaslabs
 #17088 a5fb5c55b spa: fix signature mismatch for spa_boot_init as
                  eventhandler required
 #17089 7f05fface gcm_avx_init: zero the ghash state after hashing the IV
 #17122 fe674998b Check portable objset MAC even if local is zeroed

Obtained from:	OpenZFS
OpenZFS commit:	fe674998bb
2025-03-09 12:52:57 +01:00
Martin Matuska
b59a0cde6a zfs: merge openzfs/zfs@6a2f7b384
Notable upstream pull request merges:
 #16857 387ed5ca4 Add recursive dataset mounting and unmounting support
                  to pam_zfs_key
 #16929 c2458ba92 optimize recv_fix_encryption_hierarchy()
 #16980 12f0baf34 Make the vfs.zfs.vdev.raidz_impl sysctl cross-platform
 #16986 40496514b Expand fragmentation table to reflect larger possibile
                  allocation sizes
 #17003 88020b993 Add kstats tracking gang allocations
 #17013 21205f648 Avoid ARC buffer transfrom operations in prefetch
 #17016 390f6c119 zio: lock parent zios when updating wait counts on
                  reexecute
 #17029 b8c73ab78 zio: do no-op injections just before handing off to vdevs
 #17037 6a2f7b384 Fix metaslab group fragmentation math
 #17040 b901d4a0b Update the dataset name in handle after zfs_rename

Obtained from:	OpenZFS
OpenZFS commit:	6a2f7b3844
2025-02-20 17:40:55 +01:00
Mark Johnston
c76c2a19ae vmm: Consolidate code which manages guest memory regions
On all three platforms supported by vmm, we have mostly duplicated code
to manage guest physical memory regions.  Deduplicate much of this code
and move it into sys/dev/vmm/vmm_mem.c.

To avoid exporting struct vm outside of machdep vmm.c, add a new
struct vm_mem to contain the memory segment descriptors, and add a
vm_mem() accessor, akin to vm_vmspace().  This way vmm_mem.c can
implement its routines without needing to see the layout of struct vm.

The handling of the per-VM vmspace is also duplicated but will be moved
to vmm_mem.c in a follow-up patch.

On amd64, move the ppt_is_mmio() check out of vm_mem_allocated() to keep
the code MI, as PPT is only implemented on amd64.  There are only a
couple of callers, so this is not unreasonable.

No functional change intended.

Reviewed by:	jhb
Differential Revision:	https://reviews.freebsd.org/D48270
2025-02-18 16:00:07 +00:00
Mark Johnston
fbacadf103 vmm: Add vmm_fence.c to SRCS for vmm.ko on riscv
Fixes:	8f6b66a9d3 ("riscv vmm: implement SBI RFNC extension.")
2025-02-14 15:26:49 +00:00
Jesper Schmitz Mouridsen
2be8b121bf mtw(4) remove misplaced DEBUG_FLAGS
PR:		284639
Approved by: markj,emaste
Differential Revision:	https://reviews.freebsd.org/D48895
2025-02-07 21:26:36 +01:00
John Baldwin
856d316799 arm64: Hook up efi_rt_arch_call in efirt.ko
Note that this requires marking efi_rt_fault as a non-preemptible
local symbol.

Co-authored-by: Jessica Clarke <jrtc27@FreeBSD.org>
Reviewed by:	imp, andrew
Obtained from:	CheriBSD
Fixes:		d7f930b80e ("arm64: Implement efi_rt_arch_call")
Differential Revision:	https://reviews.freebsd.org/D48715
2025-02-05 09:50:15 -05:00
Jesper Schmitz Mouridsen
c14b016242 mt7601U: Importing if_mtw from OpenBSD
Added ht20 mode, based on if_run from FreeBSD, and if_mtw.c
from OpenBSD.

PR: 247545
Approved by:	adrian, wireless
Differential Revision: https://reviews.freebsd.org/D45179
2025-02-03 20:20:52 +01:00
Gleb Smirnoff
fa1b961259 krpc: add kernel side client over netlink(4)
This shall be the official transport to connect kernel side RPC clients
to userland side RPC servers.  All current kernel side clients that
hijack unix(4) sockets will be converted to it.  Some implementation
details are available inside new clnt_nl.c.

The complementary RPC server over netlink(4) coming in next commit.

Reviewed by:		rmacklem
Differential Revision:	https://reviews.freebsd.org/D48549
2025-02-01 01:00:25 -08:00
Bjoern A. Zeeb
411c857b4c iwlwifi: module correct -DCONFIG_*
Remove the =1 from -DCONFIG_* in the conditional cases.
They are not needed.

Sponsored by:	The FreeBSD Foundation
MFC after:	3 days
2025-01-31 23:53:31 +00:00
Bjoern A. Zeeb
446eab491e rtw89: turn on debugfs support
Following 07f6575585 also turn on debugfs support for rtw89.

Sponnsored by:	The FreeBSD Foundation
MFC after:	3 days
2025-01-31 23:53:31 +00:00
Martin Matuska
c6767dc1f2 zfs: merge openzfs/zfs@34205715e
Notable upstream pull request merges:
 #16938 2aa3fbe76 zinject: count matches and injections for each handler
 #16947 -multiple zinject: add "probe" device injection type
 #16976 34205715e FreeBSD: Add setting of the VFCF_FILEREV flag

Obtained from:	OpenZFS
OpenZFS commit:	34205715e1
2025-01-27 08:22:28 +01:00
Andrew Turner
c6170b00f4 vmm: Depend on vmm_hyp* files as needed
The arm64 vmm_nvhe* files depend on a vmm_hyp file to provide most of
the implementation. As these are built with custom rules the normal
generated dependency information is not used, even if generated.

Add a dependency between these two sets of files to ensure when the
implementation is updated the file will be rebuilt.

Sponsored by:	Arm Ltd
2025-01-24 16:21:06 +00:00
John Baldwin
f87bb59676 gvinum: Remove kernel support
Reviewed by:	imp
Differential Revision:	https://reviews.freebsd.org/D48541
2025-01-23 11:20:42 -05:00
Mark Johnston
1e734f15c7 dtrace: Build systrace_freebsd32 only if COMPAT_FREEBSD32 is configured
MFC after:	1 week
Sponsored by:	Innovate UK
2025-01-22 21:26:07 +00:00