Commit Graph

306807 Commits

Author SHA1 Message Date
Herbert J. Skuhra 1c9ca4cf71 ObsoleteFiles.inc: remove stale allwinner pages
These were moved out of man/man4/arm into man/man4. Add entries to catch
the stale copies.

Fixes:	15c79c6fa6 ("man4: move allwinner pages and logic to a standard place")
2026-02-09 15:58:38 -04:00
Herbert J. Skuhra 9c800a103c ObsoleteFiles.inc: correct entry for zpfind.9.gz
It needs the .gz suffix.

Fixes:	2ace05b65a ("pfind(9): follow-up fixes and improvements")
2026-02-09 15:58:31 -04:00
Alexander Motin b9d3945831 ahci: Restrict NVMe redirection by BAR size
Attempts to access vendor-specific registers on emulator of older
Intel hardware was reported to confuse one.  Since the redirection
obviously require BAR size bigger than normal 2KB of AHCI, add
the condition, similar to what Linux is doing.

Requested by:	kib
MFC after:	2 weeks
2026-02-09 14:23:26 -05:00
Konstantin Belousov ec6cf0c526 sys/user.h: remove XXXSKE markers
Reviewed by:	brooks
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Differential revision:	https://reviews.freebsd.org/D55135
2026-02-09 20:57:20 +02:00
Konstantin Belousov 87632ddf67 openzfs sys/types32.h: use abi_compat.h for time32_t
The time32_t typedef leaks into openzfs compilation environment
through sys/event.h.  Simultaneously, openzfs provides its own
definition that is only correct for amd64 on FreeBSD.

Try to fix it by using sys/abi_compat.h directly.  Since toolchain build
from the make buildworld uses host abi_compat.h, add a preprocessor
symbol __HAVE_TIME32_T to signal consumers that time32_t is typedef'ed.
If not defined, fall back to old and wrong time32_t, which is enough for
bootstraping toolchain.

Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Differential revision:	https://reviews.freebsd.org/D55135
2026-02-09 20:57:20 +02:00
Konstantin Belousov 31fab77361 sys/compat/freebsd32: use freebsd32_uint64_t for struct kinfo_proc32
Reviewed by:	brooks
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Differential revision:	https://reviews.freebsd.org/D55135
2026-02-09 20:57:19 +02:00
Konstantin Belousov 154778e358 sys/compat/freebsd32: ki_pd is missing from struct kinfo_proc32
This is missed by the sizeof(struct kinfo_proc32) assert due to another
bug: namely, the use of uint64_t type that has different alignment on
i386 than on amd64 host.

Fixes:	85078b8573
Reviewed by:	brooks
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Differential revision:	https://reviews.freebsd.org/D55135
2026-02-09 20:57:19 +02:00
Konstantin Belousov beee89472e sys/compat/freebsd32: use freebsd32_uint64_t for several struct stat's
Reviewed by:	brooks
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Differential revision:	https://reviews.freebsd.org/D55135
2026-02-09 20:57:19 +02:00
Konstantin Belousov 3dc72107d2 sys/compat/freebsd32: use freebsd32_uint64_t for struct ffclock_estimate32
Reviewed by:	brooks
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Differential revision:	https://reviews.freebsd.org/D55135
2026-02-09 20:57:19 +02:00
Konstantin Belousov 485e916a67 sys/compat/freebsd32: use freebsd32_uint64_t for struct kinfo_knote32
Reviewed by:	brooks
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Differential revision:	https://reviews.freebsd.org/D55135
2026-02-09 20:57:19 +02:00
Konstantin Belousov ad639400dc sys/event.h: use freebsd32_uint64_t for kevent32 64bit members
Reviewed by:	brooks
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Differential revision:	https://reviews.freebsd.org/D55135
2026-02-09 20:57:19 +02:00
Konstantin Belousov 9ce0c190d8 sys/abi_compat.h: add Foundation copyright for uint64_t stuff
Reviewed by:	brooks
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Differential revision:	https://reviews.freebsd.org/D55135
2026-02-09 20:57:19 +02:00
Konstantin Belousov e651c64bca sys/abi_compat.h: move freebsd32_uint64_t and FU64_CP() there
Use private names for uintXX_t types.
Remove conflicting (but equal) PTR_IN() definition from dev/mfi.c.

Reviewed by:	brooks
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Differential revision:	https://reviews.freebsd.org/D55135
2026-02-09 20:57:19 +02:00
Konstantin Belousov c3a04a9585 sys/abi_compat.h: normalize include guard name
Reviewed by:	brooks
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Differential revision:	https://reviews.freebsd.org/D55135
2026-02-09 20:57:19 +02:00
Konstantin Belousov 24038d696e Revert "pcb.h: mark struct pcb to be preserved"
kgdb only uses the marked fields from dumppcb for initial frame
reconstruction.

This reverts commit 8f23665fed.
2026-02-09 20:55:57 +02:00
Konstantin Belousov 8066b8923e kern/vfs_unmount.c: promote flags to uint64_t
to prevent sign-extension, causing unexpected flags to be passed to
dounmount().  The mnt_flags and MNT_* constants are 64bit wide.

Suggested and reviewed by:	jah
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Differential revision:	https://reviews.freebsd.org/D55197
2026-02-09 20:47:18 +02:00
Mark Johnston 997bfa20d2 RELNOTES: Add some entries for recent commits
Reviewed by:	olce, jhb
Differential Revision:	https://reviews.freebsd.org/D55150
2026-02-09 18:35:33 +00:00
Konstantin Belousov 97ce8f7d2b amd64: define and use STACKALIGN and REDZONE_SZ
Reviewed by:	brooks, emaste, jhb
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Differential revision:	https://reviews.freebsd.org/D55151
2026-02-09 19:57:00 +02:00
Zhenlei Huang 30988d0a7b lagg: Make lagg_link_active() static
It is declared as static. Make the definition consistent with the
declaration.

It was ever fixed by commit 52e53e2de0, but the commit was reverted,
leaving it unfixed.

No functional change intended.

MFC after:	3 days
2026-02-10 01:48:07 +08:00
Andrew Turner 1c41e411b5 arm64: Have get_kernel_reg return void
It now panics when it's unable to find the register, so doesn't need
to return a status.

Sponsored by:	Arm Ltd
Differential Revision:	https://reviews.freebsd.org/D55106
2026-02-09 17:24:28 +00:00
Andrew Turner a8c3933840 arm64: Assume get_kernel_reg returns true
It now only returns true so this can be assumed and doesn't need to be
checked.

Sponsored by:	Arm Ltd
Differential Revision:	https://reviews.freebsd.org/D55105
2026-02-09 17:24:27 +00:00
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