Commit Graph

24076 Commits

Author SHA1 Message Date
Alfredo Dal'Ava Junior 3b373d4840 us.intl.acc.kbd: add it to Makefile
This keyboard was implemented but wasn't actually installed to the
system.

Fixes: a049678039
Discussed with: imp
MFC after: 1 day
Relnotes: yes
2026-04-17 06:45:32 -03:00
Alfredo Dal'Ava Junior 6fb5df548e br.lenovo.kdb: add it to Makefile
This keyboard was implemented but wasn't actually installed to the
system.

Fixes: 9357c694e8
MFC after: 1 day
Relnotes: yes
2026-04-17 00:55:03 -03:00
Christos Longros 4390c37b5c rge: add disable_aspm tunable for PCIe power management
Add a per-interface loader tunable dev.rge.%d.disable_aspm to
disable PCIe ASPM (L0s/L1) and ECPM on the RTL8125/8126/8127.

Disabling ASPM reduces latency at the cost of higher power
consumption. Default is off (ASPM left as configured by BIOS).

Signed-off-by: Christos Longros <chris.longros@gmail.com>

Reviewed by:	adrian
Differential Revision:	https://reviews.freebsd.org/D56103
2026-04-16 19:34:55 -07:00
Mitchell Horne 47b0ac1cad OF_getprop.9: update OF_hasprop() signature
The return type has been converted to a bool.

Reported by:	manu
Sponsored by:	The FreeBSD Foundation
Fixes:		b60cd486a6 ("ofw: bool-ify OF_hasprop()")
2026-04-16 13:15:40 -03:00
Christos Margiolis a3094f522f rc.conf.5: Document virtual_oss(8)
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D56225
2026-04-16 16:51:06 +02:00
Abdelkader Boudih a85c4ab626 appleir: Add Apple IR receiver driver
HID driver for Apple IR receivers (USB HID, vendor 0x05ac).
Supports Apple Remote and generic IR remotes using NEC protocol.

Supported hardware:
- Apple IR Receiver (0x8240, 0x8241, 0x8242, 0x8243, 0x1440)

Apple Remote protocol (proprietary 5-byte HID reports):
- Key down/repeat/battery-low detection
- 17-key mapping with two-packet command support
- Synthesized key-up via 125ms callout timer

Generic IR remotes (NEC protocol):
- Format: [0x26][0x7f][0x80][code][~code]
- Checksum: code + ~code = 0xFF
- Default keymap with 8 common codes
- See: https://techdocs.altium.com/display/FPGA/NEC+Infrared+Transmission+Protocol

Output via evdev with standard KEY_* codes.
Raw HID access available at /dev/hidraw0 for custom remapping.

Based on protocol reverse-engineering by James McKenzie et al.
Reference: drivers/hid/hid-appleir.c (Linux)

Tested on Mac Mini 2011 (0x05ac:0x8242).

Differential Revision:	https://reviews.freebsd.org/D55472
2026-04-15 15:36:17 -07:00
Abdelkader Boudih 3e27114a7f asmc: add raw SMC key read/write interface
This patch adds a debugging interface to read and write arbitrary
Apple SMC keys by name through sysctl, enabling hardware exploration
 and control of undocumented features.

The interface provides four sysctls under dev.asmc.0.raw.*:
  - key - Set the 4-character SMC key name (e.g., "AUPO")
  - value - Read/write key value as a hex string
  - len - Auto-detected key value length (can be overridden)
  - type - Read-only 4-character type string (e.g., "ui8", "flt")

Implementation includes a new asmc_key_getinfo() function using SMC
command 0x13 to query key metadata. The interface automatically
detects key lengths and types, uses hex string encoding for
arbitrary binary values, and is safe for concurrent access via
CTLFLAG_NEEDGIANT.

This interface was essential for discovering that the AUPO key
enables Wake-on-LAN from S5 state, and for mapping all 297 SMC keys
on Mac Mini 5,1.

Reviewed by:	ngie, adrian, markj
Differential Revision:	https://reviews.freebsd.org/D54441
2026-04-14 21:21:46 -07:00
Alexander Ziaee 998d501ae6 freebsd-base.7: Add an example for unregistering
MFC after:		3 days
Reviewed by:		ivy, emaste
Discussed with:		bapt, des, emaste, ivy, phk, pi
Differential Revision:	https://reviews.freebsd.org/D55458
2026-04-14 09:22:15 -04:00
Alexander Ziaee 5f922bd20d freebsd-base.7: Break examples into subsections
Break the examples into subsections, so that we can have multi-step
examples.

MFC after:		3 days (to 15 only)
Discussed with:		ivy
Differential Revision:	https://reviews.freebsd.org/D55526
2026-04-14 09:21:05 -04:00
Alexander Ziaee dc140a9fc1 Bourne shell -> POSIX shell
The FreeBSD shell is a POSIX compatible shell. It evolved over several
decades from the Almquist shell, which was preceeded a decade before
that by the Bourne shell. Most readers today have never seen a Bourne
shell. If someone wants to learn to use our shell, they need to look for
tutorials on the POSIX shell. Align descriptions through out the tree
with this reality, consistent with it's manual and common parlance.

We made a similar change to the doc tree in b4d6eb01540fe.

MFC after:		3 days
Reviewed by:		carlavilla
Differential Revision:	https://reviews.freebsd.org/D56382
2026-04-14 09:02:58 -04:00
Goran Mekić 3524d4ebbe sound examples: Add mmap example
This example opens separate OSS capture and playback channels in mmap
mode, places them into a sync group, and starts them together so both
ring buffers advance on the same device timeline. It then monitors the
capture mmap pointer with SNDCTL_DSP_GETIPTR, converts that pointer into
monotonic absolute progress using the reported block count, and copies
newly recorded audio from the input ring to the matching region of the
output ring.

The main loop is driven by an absolute monotonic frame clock rather than
a fixed relative usleep delay. Wakeups are scheduled from the sample
rate using a small frame step similar to the SOSSO timing model, while
the audio path itself stays intentionally simple: just copy input to
output, with no explicit xrun recovery or processing beyond ring
wraparound handling.

MFC after:	1 week
Reviewed by:	christos
Differential Revision:	https://reviews.freebsd.org/D53749
2026-04-14 12:59:14 +02:00
Michael Osipov 54f5d20492 ciss.4: List all devices supported by ciss(4)
PR:		285744
Reviewed by:	ziaee
MFC after:	3 days
Differential Revision:	https://reviews.freebsd.org/D56285
2026-04-14 09:39:02 +02:00
Pouria Mousavizadeh Tehrani adecd4c4cd geneve.4: Add geneve manual
Reviewed by: ziaee, adrian
Differential Revision: https://reviews.freebsd.org/D55182
2026-04-13 17:45:05 +03:30
Gleb Smirnoff abf68d1cf0 hash(9): introduce hashalloc()/hashfree() KPI
This is a more extendable version than traditional hashinit(9).  It allows
different kinds of slot headers with optional locks.

Implement traditional hashinit()/hashdestroy() on top of it.

Reviewed by:		pouria, gallatin
Differential Revision:	https://reviews.freebsd.org/D55904
2026-04-12 10:25:51 -07:00
Pouria Mousavizadeh Tehrani 87bea33a67 nd6: Remove DRAFT_IETF_6MAN_IPV6ONLY_FLAG and EXPERIMENTAL options
The draft-ietf-6man-ipv6only-flag has been obsoleted by RFC 8925.
Remove the EXPERIMENTAL compile option from the kernel and remove
DRAFT_IETF_6MAN_IPV6ONLY_FLAG from userland.
This compile option was not enabled by default.
Also regenerate src.conf.5.

Reviewed by: bz
Differential Revision: https://reviews.freebsd.org/D56228
2026-04-10 23:42:09 +03:30
Christos Longros fc68534a9a rge: add Wake-on-LAN support for magic packet
Advertise IFCAP_WOL_MAGIC when PCI power management is available
and enable it by default.  On suspend or shutdown, rge_setwol()
enables the WOL_MAGIC and WOL_LANWAKE bits in CFG3/CFG5, disables
the RXDV gate, and enables PM so the NIC stays powered to watch
for magic packets.

Move hardware-specific WOL register configuration into
rge_wol_config() in if_rge_hw.c to keep hardware-specific
functions in sync with OpenBSD.

Update rge.4 to document WoL support.

Tested on FreeBSD 16.0-CURRENT bare metal with Realtek RTL8125
on a Gigabyte B650 Gaming X AX motherboard.

Signed-off-by: Christos Longros <chris.longros@gmail.com>

Reviewed by:	adrian
Differential Revision:	https://reviews.freebsd.org/D56259
2026-04-10 10:31:38 -07:00
Alexander Ziaee ff32dbb1d1 arcmsr.4: Improve HARDWARE introductory sentence
MFC after:	3 days
2026-04-10 11:26:45 -04:00
Bhosale, Yogesh 6b58d10fc6 ix(4): Add support for firmware logging for E610 adapters
This is part 3 of the support for the new Intel Ethernet E610
family of devices

The ix driver now enables firmware logging on Intel E610 devices
for debugging with Customer Support. Logs are enabled by default
and generated in binary format that requires decoding by support
teams. The collected data is firmware and hardware related for
debugging purposes only.

When the driver loads, it creates a fw_log sysctl node under the
debug section. Events are organized into categories (modules) for
targeted logging, and users can adjust verbosity levels as needed.

This adds sysctl support for the firmware logging feature and
updates the ix(4) manual page with documentation.

Signed-off-by: Yogesh Bhosale <yogesh.bhosale@intel.com>
Co-developed-by: Krzysztof Galazka <krzysztof.galazka@intel.com>

Reviewed by:	ziaee, kbowling
Tested by:      Mateusz Moga <mateusz.moga@intel.com>
MFC after:      1 weeks
Sponsored by:   Intel Corporation
Differential Revision:	https://reviews.freebsd.org/D53973
2026-04-09 20:43:43 +02:00
Baptiste Daroussin 72d701eb1d nlsysevent: add manpage
Reviewed by:	des
2026-04-09 19:39:28 +02:00
Alice Cariboni f916091241 tuning.7: Fix suds typo in manual pages
MFC after:		3 days
Fixes:			fc32c80215 Add two new manual pages
Differential Revision:	https://reviews.freebsd.org/D55814
2026-04-09 17:57:32 +02:00
Simon J. Gerraty b2751d956e We also get _HOST_OSREL from host-target.mk 2026-04-06 11:50:11 -07:00
Kenneth Raplee c84049c0be Add myself as a committer
Approved by:    makc (mentor)
2026-04-05 09:33:54 -07:00
Devin Teske 8e68f940c1 New version of jng (2.0)
Changes for jng 1.0 -> 2.0 include:

+ Add experimental MSS clamping
+ Add support for ng_bridge(4) NGM_BRIDGE_GET_STATS (getstats)
+ Add JSON formatted ng_bridge(4) statistics (see above) via "jng stats -j <name>"
+ Add error messages
+ Minor refactoring for code readability (read: quietly() function)
+ Rename eiface variables to jiface to clarify as-for jail interface (not ng_eiface(4))
+ Fix missing description for alternate form of "jng show" usage
+ Update "jng show <name>" to accept multiple names (now "jng show <name> …" is allowed)
+ Update "jng shutdown <name>" to accept multiple names (now "jng shutdown <name> …" is allowed)
+ Add "-a" option to "jng stats" (as-in "jng stats -a") to show all ng_bridge(4) stats
+ Update "jng stats <name>" to accept any kind of name (make it easier to use)
+ Add version ident
+ Remove extraneous line in LICENSE section
+ Add -h to usage statements
+ Bump copyright

Reviewed by:	jlduran
Differential Revision:	https://reviews.freebsd.org/D43516
2026-04-04 19:39:22 +00:00
Timo Völker 0b39d72d04 virtio: use modern mode for transitional device by default
This patch changes the default value of the loader tunable
hw.virtio.pci.transitional to 1. This means, virtio uses the
modern mode for transitional devices by default.

The return values of vtpci_modern_probe() and vtpci_legacy_probei()
were chosen to prefer modern mode, but hw.virtio.pci.transitional=0
prevents modern mode.
Setting hw.virtio.pci.transitional to 1 by default seems a better fit.

Reviewed by:		tuexen
Differential Revision:	https://reviews.freebsd.org/D55894
2026-04-04 16:49:54 +02:00
Timo Völker 39c44fc55f virtio.4: fix typo
Reviewed by:	tuexen
Fixes:		c70755bc0d ("virtio: add loader tunables to sysctl")
MFC after:	3 days
2026-04-04 16:46:25 +02:00
Lexi Winter ab9257599a Remove WITHOUT_BZIP2, WITHOUT_BZIP2_SUPPORT
WITHOUT_BZIP2_SUPPORT only affects a single binary, gzip(1); it doesn't
remove bzip2 support from other bits (e.g., libarchive) and there are
no similar options for gzip, xz or zstd.

WITHOUT_BZIP2 has not done anything at all since it was first added
in 2007.

MFC after:	never
Discussed on:	arch@
Reviewed by:	imp, des, adrian, delphij, emaste
Differential Revision:	https://reviews.freebsd.org/D56148
Sponsored by:		https://www.patreon.com/bsdivy
2026-04-03 14:50:09 +01:00
Quentin Thébault 4b862c713a splash: add shutdown splash
This commit adds a shutdown splash to the existing kernel startup splash(4)
screen feature. It can be customized by providing a PNG image to the
shutdown_splash directive loader.conf(5).

Sponsored by: 	Defenso
MFC after: 	2 weeks
Reviewed by:	vexeduxr, ziaee, manu
Differential Revision:	https://reviews.freebsd.org/D55140
2026-04-03 09:15:29 +02:00
Ed Maste 8f34b6b84c src.conf.5: Regen after MK_CROSS_COMPILER=no change 2026-04-02 08:59:23 -04:00
Ed Maste 7d82731e43 src.opts.mk: !CROSS_COMPILER implies !LLVM_BINUTILS_BOOTSTRAP
This fixes the build when WITHOUT_CROSS_COMPILER is set.

Reported by: fuz, vishwin
Fixes: 17494c6e6b ("build: Boostrap LLVM_BINUTILS for cross-tools")
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D56219
2026-04-02 08:59:07 -04:00
Mitchell Horne be79a42275 malloc.9: adjust flag table indentation
The current indentation is shorter than all but one of these flags. This
renders much more nicely.

MFC after:	3 days
2026-03-31 16:55:37 -03:00
Ed Maste 9b1f77e647 Makefile.inc1: Drop AS and RANLIB variables
These are not used in our world and kernel build targets.  We use the
compiler driver for assembly, and ar adds the archive index (symbol
table) automatically.

Sponsored by:	The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D55964
2026-03-31 13:18:32 -04:00
Christos Longros 59cb18f356 vmgenc.4: Add VM Generation ID Counter manual
Document the vmgenc(4) ACPI driver which detects virtual machine
cloning and snapshot restoration via the VM Generation ID
specification. The driver reseeds the kernel entropy pool when
a generation change is detected.

MFC after:		3 days
Reviewed by:		cem (previous), ziaee
Signed-off-by:		Christos Longros <chris.longros@gmail.com>
Differential Revision:	https://reviews.freebsd.org/D56011
2026-03-30 22:31:43 -04:00
Dag-Erling Smørgrav 0a6dbf51d8 pkgbase: Move all of ATF into the atf package
Parts of ATF (including the licence and some of the documentation) were
for some reason part of the tests package instead of the atf package.
Moving them to where they logically belong poses no problem since tests
already depends on atf.

PR:		294129
MFC after:	1 week
Reviewed by:	ivy
Differential Revision:	https://reviews.freebsd.org/D56158
2026-03-30 16:03:29 +02:00
Vladimir Kondratyev 1c10825c6e asmc(4): Bump manpage date after edition
Fixes:		5d7862fb99 ("asmc(4): Add support for backlight(9) interface")
MFC after:	1 month
2026-03-29 22:06:33 +03:00
Vladimir Kondratyev 5d7862fb99 asmc(4): Add support for backlight(9) interface
MFC after:	1 month
2026-03-29 22:00:59 +03:00
Jose Luis Duran 0d9676e1ca mk: Disable blacklist when disabling blocklist
WITHOUT_BLOCKLIST, when set, should enforce WITHOUT_BLACKLIST.
This fixes the build when WITHOUT_BLOCKLIST=yes is set.

Reported by:	ivy
Reviewed by:	ivy
Fixes:		7238317403 ("blocklist: Rename blacklist to blocklist")
MFC after:	2 weeks
Differential Revision:	https://reviews.freebsd.org/D56118
2026-03-29 16:14:50 +00:00
Olivier Certner c78937677c DEVICE_IDENTIFY.9: Fix function call to detect driver in example code
Fixes:          ccabc7c2e5 ("DEVICE_IDENTIFY.9: Modernize description and use cases")
MFC after:      3 days
Sponsored by:   The FreeBSD Foundation
2026-03-27 15:55:13 +01:00
Alexander Ziaee 04d58d529a manuals: System message vs kernel message
Wordsmith mentions throughout the manual of syslog and dmesg, to clearly
differentiate them in an externally consisteny way, increasing operator
onboarding speed and elegance.

The daemon that handles general system messages, syslog, describes them
as "system messages", and "messages" is the standard filename. Rewrite
syslog related manual titles to align search results with this, and hier
entries to align the index. Use care to maintain keywords and not add
extra lines. Newsyslog trades "maintain" with "rotate" for visibility.

MFC after:	3 days
Reviewed by:	markj
Closes:		https://github.com/freebsd/freebsd-src/pull/2067
2026-03-26 09:19:01 -04:00
Jaeyoon Choi 085028463f ufshci: add uic powermode parameter to sysctl
Adds parameters related to the performance of the UFS device.
Also update man page for the missing sysctl entries.

Sponsored by:           Samsung Electronics
Reviewed by:		imp (mentor)
Differential Revision:	https://reviews.freebsd.org/D55985
2026-03-25 01:45:31 +09:00
Christos Longros 930a790c2a rge: make rx_process_limit a sysctl tunable
The number of packets processed per interrupt was hardcoded to 16.
Add a per-interface sysctl dev.rge.%d.rx_process_limit tunable so
users can adjust this value at runtime.

Signed-off-by: Christos Longros <chris.longros@gmail.com>

Reviewed by:	ziaee, adrian
Differential Revision:	https://reviews.freebsd.org/D56014
2026-03-24 18:27:14 -07:00
Christos Longros 8f36a012d6 rge.4: fix incorrect speed range in HARDWARE section
The HARDWARE section stated "PCIe 1GB to 1GB Ethernet devices"
which is incorrect. The RTL8125/8126/8127 chips support speeds
from 1Gbps to 10Gbps. Correct the range.

Signed-off-by: Christos Longros <chris.longros@gmail.com>

rge.4: note that the driver manages PHY directly

The rge(4) driver does not use the miibus(4) interface for PHY
management. Instead, it accesses PHY registers directly via the
chip's OCP (On-Chip Peripheral) bus. Document this in the
DESCRIPTION section.

Signed-off-by: Christos Longros <chris.longros@gmail.com>

Reviewed by:	adrian
Differential Revision:	https://reviews.freebsd.org/D55995
2026-03-24 18:26:10 -07:00
Paulo Fragoso 2318ea10a3 hwpmc.4: correct stale default values and update diagnostics
The default values documented for kern.hwpmc.logbuffersize (4KB) and
kern.hwpmc.nbuffers_pcpu (64) have been incorrect since 2981a3420cb1
(2018), which updated the compiled defaults but did not update the
man page.

- Correct logbuffersize default from 4KB to 256KB, add 16MB maximum
- Correct nbuffers_pcpu default from 64 to 32, document 32MB per-CPU
  product limit with kern.hwpmc.logbuffersize
- Update DIAGNOSTICS section to reflect current warning messages

Reviewed by:	mhorne
MFC after:	1 week
Sponsored by:	NLINK (nlink.com.br)
Differential Revision:	https://reviews.freebsd.org/D56050
2026-03-23 17:21:28 -03:00
Mateusz Piotrowski e23f0decea mdo.1: Cross-reference with security.7
MFC after:	3 days
Reviewed by:	olce
Differential Revision:	https://reviews.freebsd.org/D56024
2026-03-23 13:30:21 +08:00
Aymeric Wibo 2547f97202 acpi.4: Update sysctl descriptions for new stypes
The previous S1-S5 options are still accepted for compatibility, but
they are now deprecated in favour of the new generic sleep types.

Reported by:	markj
Reviewed by:	markj
Approved by:	markj
Fixes:		97d152698f ("acpi: Use sleep types defined in sys/power.h")
Event:		AsiaBSDCon 2026
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D56008
2026-03-21 13:16:06 +08:00
Alexander Ziaee 8475cd93fb dwcotg.4: Initial manual page
Create visibility in apropos and the Hardware Release Notes.

MFC after:		3 days
Reviewed by:		pauamma, ray
Differential Revision:	https://reviews.freebsd.org/D53287
2026-03-20 10:45:11 -04:00
Ed Maste 17494c6e6b build: Boostrap LLVM_BINUTILS for cross-tools
Reported by:	vexeduxr, jrtc27
Reviewed by:	imp
Sponsored by:	The FreeBSD Foundation
Pull request:	https://github.com/freebsd/freebsd-src/pull/2084
Differential Revision: https://reviews.freebsd.org/D55923
2026-03-20 09:38:40 -04:00
Baptiste Daroussin dc2687bf71 src.conf(5): rebuild after introduction of WITHOUT_PKGSERVE 2026-03-20 13:32:55 +01:00
Baptiste Daroussin b42e852e89 pkg-serve(8): serve pkg repositories over TCP via inetd (8)
Reviewed by:	manu, bdrewery (previous version)
Differential Revision:	https://reviews.freebsd.org/D55895
2026-03-20 13:29:48 +01:00
Pouria Mousavizadeh Tehrani 1c1b494264 ecn.9: Replace non-ASCII characters
Reported by:	maxim
Fixes:		ba4298b055 ("ecn.9: Add ecn(9) manual")
2026-03-19 20:54:49 +03:30
Pouria Mousavizadeh Tehrani ba4298b055 ecn.9: Add ecn(9) manual
Add ecn manual for ip_ecn tunneling functions.

Reviewed by: pauamma_gundo.com, tuexen
Differential Revision: https://reviews.freebsd.org/D53517
2026-03-19 13:55:53 +03:30