Commit Graph

306786 Commits

Author SHA1 Message Date
Andrew Turner 3b0b6aa2cd arm64: Panic if the ID register isn't known
This will allow for callers to be simplified & not need to check the
return status.

Keep the return type for now so this can be MFCd without breaking the
KBI.

Sponsored by:	Arm Ltd
Differential Revision:	https://reviews.freebsd.org/D55104
2026-02-09 17:24:27 +00:00
Andrew Turner 0ea31fe851 arm64: Move creating the ID register views earlier
These are needed when enabling CPU features so should be processed
earlier in the boot.

Sponsored by:	Arm Ltd
Differential Revision:	https://reviews.freebsd.org/D55103
2026-02-09 17:24:26 +00:00
John Baldwin d4d735b265 sctp: Use __sdt_used for variables only used by SDT probes
Previously this used a home-rolled version.

Reviewed by:	tuexen, imp, markj
Differential Revision:	https://reviews.freebsd.org/D55165
2026-02-09 11:27:55 -05:00
John Baldwin 83e5b79c7c ext2fs: Use __sdt_used for variables only used by SDT probes
Reviewed by:	imp, markj
Differential Revision:	https://reviews.freebsd.org/D55164
2026-02-09 11:27:44 -05:00
John Baldwin 3f18463745 sdhci_fdt_rockchip: Don't return 0 from probe routine
The only write to the softc is a no-op (softcs are initialized to all
zeroes), so remove that and just use BUS_PROBE_DEFAULT.

Reviewed by:	bnovkov
Differential Revision:	https://reviews.freebsd.org/D55159
2026-02-09 11:27:23 -05:00
John Baldwin efdd30c94e sdhci_fdt_rockchip: Move ofw_bus_status_okay check
This fixes a warning from GCC:

sys/dev/sdhci/sdhci_fdt_rockchip.c: In function 'sdhci_fdt_rockchip_probe':
sys/dev/sdhci/sdhci_fdt_rockchip.c:120:14: error: statement will never be executed [-Werror=switch-unreachable]
  120 |         if (!ofw_bus_status_okay(dev))
      |              ^~~~~~~~~~~~~~~~~~~~~~~~

Reviewed by:	bnovkov, imp, emaste
Differential Revision:	https://reviews.freebsd.org/D55158
2026-02-09 11:27:04 -05:00
John Baldwin ee73475119 llvm: Link private LLVM libraries against compiler_rt for aarch64
This is required for GCC which uses libcalls for outlined atomics.

Reviewed by:	dim
Differential Revision:	https://reviews.freebsd.org/D55157
2026-02-09 11:26:52 -05:00
John Baldwin 244f498074 libmd aarch64: Use ands instead of bics to round down the length
GNU as does not accept bics with two register operands but instead
requires three register operands.  However, clang assembles the bics
instruction to ands anyway, so just use ands directly.

Reviewed by:	fuz
Differential Revision:	https://reviews.freebsd.org/D55155
2026-02-09 11:26:29 -05:00
Tom Jones ec5d466491 aw_mmc: Reset card
On H616 (and I think H6, but this isn't verified) we need to reset the
card to have a functioning device.

With this commit all my pending patches for H616 are in tree. We run
well on my test device (Orange Pi Zero3), however there is an
uninvestigated issue with ethernet and graphics are an open question.

Reviewed by:	manu, adrian
MFC After:	1 week
Relnotes:	yes
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D55097
2026-02-09 15:53:29 +00:00
Ed Maste 97beb0c911 CONTRIBUTING.md: Clarify GitHub pull requests
Make the guidelines more prescriptive (while remaining clear that Pull
Requests are merely one, not-preferred method for submitting changes).

Reviewed by:	imp
Sponsored by:	The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D55089
2026-02-09 10:47:08 -05:00
Herbert J. Skuhra bb0734cf24 ObsoleteFiles: remove the shar(1) manpage as well
Fixes:	3fde39073c ("shar: remove from the tree [...]")
2026-02-09 08:48:05 -06:00
Quentin Thébault 6a0ab05eb5 tools: fix WITHOUT_LOADER_GELI typo in universe.sh
Signed-off-by: 	Quentin Thébault <quentin.thebault@defenso.fr>
Reviewed by:	emaste
Sponsored by:	Defenso
Pull Request:	https://github.com/freebsd/freebsd-src/pull/2011
2026-02-09 09:13:05 -05:00
Tuukka Pasanen b6824fe48e chio: Add SPDX-License-Identifier tags
Some BSD-4-Clause files under bin/chio were missing the
SPDX-License-Identifier-tag.

Reviewed by: emaste
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D55193
2026-02-09 08:51:58 -05:00
Tom Jones f8a3876e90 if_awg: Add H616 compat string
Reviewed by:	manu
Sposored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D54907
2026-02-09 10:28:25 +00:00
Tom Jones 245cdec792 aw_ccu: Add clocks for H616
Reviewed by:	manu, adrian
Sponsored by:   The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D54927
2026-02-09 10:22:20 +00:00
Tom Jones 8923d1c9e2 aw_sid: Add H616 configuration and compat string
Reviewed by:	manu
Sponsored by:   The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D54916
2026-02-09 10:22:20 +00:00
Tom Jones e506af08bb aw_gpio: Add support for H616
This adds padconf files for the two gpio ranges on the H616 SOC and adds
the SOC include.

Reviewed by:	manu
Sponsored by:   The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D54915
2026-02-09 10:22:20 +00:00
Tom Jones 20615f714b a10_twsi: Add H616 compat string
Reviewed by:	manu
Sponsored by:   The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D54914
2026-02-09 10:22:19 +00:00
Tom Jones ccb0e6e15f aw_wdog: Add support for H616
Reviewed by:	manu
Sponsored by:   The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D54913
2026-02-09 10:22:19 +00:00
Tom Jones 84bc16a587 aw_usbphy: Add H616 compat string and configuration
Reviewed by:	manu
Sponsored by:   The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D54912
2026-02-09 10:22:19 +00:00
Tom Jones c5c183a97d aw_rsb: Add H616 compat string
Reviewed by:	manu
Sponsored by:   The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D54911
2026-02-09 10:22:19 +00:00
Tom Jones 5e51e670cc aw_cir: Add H616 compat string
Reviewed by:	manu
Sponsored by:   The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D54910
2026-02-09 10:22:19 +00:00
Tom Jones 998c46ac2a aw_mmc: Add H616 mmc and emmc config
Reviewed by:	manu
Sponsored by:   The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D54909
2026-02-09 10:22:19 +00:00
Tom Jones 063244ff95 aw_rtc: Add H616 compat string
Reviewed by:	manu
Sponsored by:   The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D54908
2026-02-09 10:22:18 +00:00
Eugene Grosbein 60a6ebaf73 traceroute: graceful recover after networking errors with as_server
Currentlu, the traceroute[6] utility does not check
for possible networking errors while talking to as_server
in case of "traceroute -a". Meantime, there is a common case
when trace is long and it has many non-responding hops
(shown as '* * *'), so as_server aborts our connection,
hence no AS numbers shown for the rest of trace.

Somewhat artifical way to reproduce the problem:

traceroute to 57.144.244.1 (57.144.244.1), 80 hops max, 48 byte packets
 5  [AS174] be2950.ccr42.fra05.atlas.cogentco.com (154.54.72.42)  74.277 ms  9.605 ms  9.599 ms
 6  [AS174] 149.11.228.19 (149.11.228.19)  9.506 ms  9.466 ms  9.420 ms
 7  [AS33182] po172.asw02.fra5.tfbnw.net (129.134.108.146)  9.725 ms  9.874 ms  9.696 ms
 8  [AS32934] psw04.fra5.tfbnw.net (157.240.59.85)  8.718 ms  8.691 ms  8.618 ms
 9  * * *
10  [AS0] edge-star-mini-shv-01-fra5.facebook.com (57.144.244.1)  9.747 ms  9.815 ms  9.699 ms

Note what due to increased timeout (-w10) we get [AS0] for 10th hop
because as_server closed our connection. Same problem occurs
with default -w3 when there are lots of '* * *' hops in a trace.

Fix it with some additional error checking and a reconnection.

This patch was in my use for many years and after traceroute(8) moved
from contrib/ to usr.sbin/ it's nice to have it in the tree.

MFC after:	2 weeks
2026-02-09 17:00:10 +07:00
Minsoo Choo dac3b99e8d CONTRIBUTING.md: Fix links to section
Signed-off-by: Minsoo Choo <minsoochoo0122@proton.me>

Sponsored by:	The FreeBSD Foundation
Pull Request:	https://github.com/freebsd/freebsd-src/pull/2010
2026-02-09 15:32:30 +08:00
Minsoo Choo 8f23665fed pcb.h: mark struct pcb to be preserved
There are programs that depend on this structure (e.g. kernel debuggers)
that breaks when the ABI changes.

Signed-off-by:	Minsoo Choo <minsoochoo0122@proton.me>
Reviewed by:	kib
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D55149
2026-02-09 06:17:16 +02:00
Minsoo Choo 2088e74201 x86: Note that trapframe is used by kernel debuggers
Signed-off-by: Minsoo Choo <minsoochoo0122@proton.me>
Reviewed by: kib
MFC after:	1 week
Differential Revision: https://reviews.freebsd.org/D55189
2026-02-09 04:58:31 +02:00
Enji Cooper 9ccdf3f36e asmc: unbreak build: add missing curly brace
Fixes:	d76bb14e02 ("chore: asmc: additional style(9) cleanup")
2026-02-08 15:51:51 -08:00
Enji Cooper fa3519d068 t_ptrace_wait.c: clean up trailing whitespace
This is being done to aid with future potential updates of this file.

MFC after:	1 week
2026-02-08 15:42:57 -08:00
Kalevi Kolttonen e4b1dc4328 Fix typo in build(7) man page
Signed-off-by: Kalevi Kolttonen <kalevi@kolttonen.fi>
Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/2009
2026-02-08 13:58:45 -07:00
Thibault Payet d3ed0e0ab0 rc.d: Convert more service to Use startmsg
Signed-off-by: Thibault Payet <contact@thibaultpayet.fr>
Reviewed by: imp,mhorne
Pull Request: https://github.com/freebsd/freebsd-src/pull/2001
2026-02-08 13:58:44 -07:00
Jesús Daniel Colmenares Oviedo 436af5715c flua: Fix SIGSEGV in lua_chown when uid/gid doesn't exist
When lua_chown is used to call chown(2) internally, it first resolves
the user and/or group by calling the getpwnam_r(3) and getgrnam_r(3)
functions, respectively. However, although it checks for errors, it does
not check when entries are not found (which is not an error), which
means that the buffer will be set to NULL, and since lua_chown attempts
to access the NULL structure, it will receive a SIGSEGV signal.

Reviewed by:			imp@
Approved by:			imp@
Differential Revision:		https://reviews.freebsd.org/D55172
2026-02-08 16:35:25 -04:00
Michael Tuexen 7266121ce9 ure: improve transmit checksum offloading
Apparently, the name of the variable l4off was correct. Providing the
offset to the TCP or UDP header allows the transmit checksum offload to
work for TCP/IPv4, TCP/IPv6, UDP/IPv4, and UDP/IPv6.

Reported by:		vishwin
Reviewed by:		vishwin
MFC after:		1 week
Differential Revision:	https://reviews.freebsd.org/D55187
2026-02-08 21:16:20 +01:00
Enji Cooper 2fe3f16b1c chore: ignore style(9) changes made in dd1410321
MFC after:	1 month
2026-02-08 12:09:27 -08:00
Enji Cooper d76bb14e02 chore: asmc: additional style(9) cleanup
Pick out non-gratuitous style(9) changes suggested by `clang-format` on
the driver. This helps eliminate minor stylistic issues with spaces,
braces, line lengths, etc, so future functional changes in the driver
will be easier to pick out.

Many of the other `clang-format` suggested changes were not taken because
they were considerably more gratuitous.

No functional change intended.

MFC after:	1 week
2026-02-08 12:07:30 -08:00
Timo Völker d84870d90b ifinfo: improve output of hwassist value
In addition to print the hexadecimal number hwassist, also print
the symbolic names of the corresponding CSUM_* flags.

Reviewed by:		tuexen
MFC after:		1 week
Differential Revision:	https://reviews.freebsd.org/D55055
2026-02-08 21:02:58 +01:00
Enji Cooper a8f3c3b5d4 chore: asmc: minor code cleanup
- Use symbolic names in Mac definitions in lieu of the unrolled values
  they represent.
- Delete trailing whitespace.
- Fix indentation.

No functional change intended.

MFC after:	1 week
2026-02-08 11:54:47 -08:00
Ed Maste d255b40e2d MAINTAINERS, CODEOWNERS: Add myself for vt(4) review 2026-02-08 12:41:58 -05:00
Jessica Clarke 825aaabcc7 bsdinstall: Add note to zfsboot pointing to release/tools/vmimage.subr
The VM image creation scripts have a copy of this list of datasets which
should be kept in sync, which can otherwise be easily missed, as was the
case in the now-reverted 3e8619e535 ("bsdinstall: Create separate
datasets for directories in /usr/ports").
2026-02-08 17:17:06 +00:00
Ricardo Branco be3962a383 Revert "bsdinstall: Create separate datasets for directories in /usr/ports"
This reverts commit 3e8619e535.

While it's generally a good idea to have separate datasets for things
like this, it breaks git clone with:
fatal: destination path 'ports' already exists and is not an empty directory.

Signed-off-by: Ricardo Branco <rbranco@suse.de>
Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/2006
2026-02-08 09:44:42 -07:00
Nathaniel Braun 5fec99caff vt: Fix handling of backtab
PR: 292463
Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/2002
2026-02-08 09:44:42 -07:00
Jessica Clarke 5beaa1ee75 Revert "Additional icache paranoia: non-PLT relocations can modify the text segment."
reloc_nonplt_object, and thus reloc_non_plt, only ever handles data
relocations, so this paranoia is completely unfounded and only has the
effect of significantly slowing down program startup for binaries with
large amounts of code, like Clang.

If this breaks any systems, that would likely be due to insufficient
flushing in the pmap implementation for executable mappings, as this
existing rtld behaviour would mask any such bugs.

This reverts commit 4b51c69976.

Reviewed by:	adrian
Differential Revision:	https://reviews.freebsd.org/D54221
2026-02-08 16:39:44 +00:00
Gordon Bergling afe666a8db nfsserver: Fix a typo in a source code comment
- s/preceeded/preceded/

MFC after:	3 days
2026-02-08 13:02:40 +01:00
Gordon Bergling 3e46676638 mlx(4): Fix a typo in a source code comment
- s/segements/segments/

MFC after:	3 days
2026-02-08 13:01:27 +01:00
Gordon Bergling ff08ad36c2 qlnxe(4): Fix a typo in a source code comment
- s/segement/segment/

MFC after:	3 days
2026-02-08 13:00:39 +01:00
Gordon Bergling f87ab06672 kern: Fix a typo in a source code comment
- s/segement/segment/

MFC after:	3 days
2026-02-08 12:59:37 +01:00
Gordon Bergling 8aa4fa7bf9 arm/broadcom: Fix a typo in a source code comment
- s/preceeded/preceded/

MFC after:	3 days
2026-02-08 12:58:39 +01:00
Enji Cooper d411a5d3a9 Remove the tpool Kyuafile as well as the test
This was accidentally missed in b78806b156.

Reported by:	des
Fixes:		b78806b15 ("Remove additional libtpool and libuutil-related files")
2026-02-07 23:37:52 -08:00
Jose Luis Duran a25b12c6ce blocklist: blacklist: Chase recent upstream changes
MFC after:	3 days
2026-02-07 23:06:32 +00:00