FreeBSD/src 5588350. ObsoleteFiles.inc, share/man/man9 pfind.9 Makefile

pfind(9): follow-up fixes and improvements

(Found on a branch from a year ago.)

- Adjust NAMEs
- MLINKS: add pfind_any.9, pfind_any_locked.9; remove old zpfind.9
- Reword the description of pfind_any() so that it doesn't imply only
  zombie processes are returned
- Fix a comma
- Use .Dv for the macro PRS_ZOMBIE
- Move the (logically separate) final statement to a new paragraph
- .Xr to pget(9)

Reviewed by:    0mp
Fixes:  07d78399eb79 ("pfind(9): Update to recent behavior")
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D53548

(cherry picked from commit 2ace05b65a2c912888aeec921fc6f990a5c36909)
DeltaFile
+17-17share/man/man9/pfind.9
+3-0ObsoleteFiles.inc
+2-1share/man/man9/Makefile
+22-183 files

FreeBSD/src f2a21b1sys/dev/e1000 e1000_82571.c

e1000: Don't enable ASPM L1 without L0s

Reporter noted packet loss with 82583.  NVM is down level.  The
errata docs mention disabling this, which should be the firmware
default, so I am not sure why we were enabling this bit.  Linux and
OpenBSD have the same issue, while NetBSD got it right.

Reported by:    Codin <codin at nagi.ftp.sh>
Tested by:      Codin <codin at nagi.ftp.sh>

(cherry picked from commit 2ead091715dee327b3e00bc9840e1a95827b8e82)
DeltaFile
+2-1sys/dev/e1000/e1000_82571.c
+2-11 files

FreeBSD/src 618083esys/dev/e1000 if_em.c

e1000: Bump 82574/82583 PBA to 32K

The reporter contacted me with packet loss and throughput fluctuations
on a low power machine (Intel J1900) that got worse with the recent AIM
algorithm in FreeBSD 14.2+.

32K RX PBA matches Linux default.  Add a conditional path since we don't
otherwise do a fixup for jumbo frames to retain space for two frames in
Tx.

With this change and an additional errata change, the throughput meets
line rate for the reporter.

Reported by:    Codin <codin at nagi.ftp.sh>
Tested by:      Codin <codin at nagi.ftp.sh>

(cherry picked from commit aa30bab9a92e1be230b9708bff9f33aae7d384e5)
DeltaFile
+5-1sys/dev/e1000/if_em.c
+5-11 files

FreeBSD/src ca69366sys/dev/e1000 e1000_82571.c

e1000: Don't enable ASPM L1 without L0s

Reporter noted packet loss with 82583.  NVM is down level.  The
errata docs mention disabling this, which should be the firmware
default, so I am not sure why we were enabling this bit.  Linux and
OpenBSD have the same issue, while NetBSD got it right.

Reported by:    Codin <codin at nagi.ftp.sh>
Tested by:      Codin <codin at nagi.ftp.sh>

(cherry picked from commit 2ead091715dee327b3e00bc9840e1a95827b8e82)
DeltaFile
+2-1sys/dev/e1000/e1000_82571.c
+2-11 files

FreeBSD/src 714051fsys/dev/e1000 if_em.c

e1000: Bump 82574/82583 PBA to 32K

The reporter contacted me with packet loss and throughput fluctuations
on a low power machine (Intel J1900) that got worse with the recent AIM
algorithm in FreeBSD 14.2+.

32K RX PBA matches Linux default.  Add a conditional path since we don't
otherwise do a fixup for jumbo frames to retain space for two frames in
Tx.

With this change and an additional errata change, the throughput meets
line rate for the reporter.

Reported by:    Codin <codin at nagi.ftp.sh>
Tested by:      Codin <codin at nagi.ftp.sh>

(cherry picked from commit aa30bab9a92e1be230b9708bff9f33aae7d384e5)
DeltaFile
+5-1sys/dev/e1000/if_em.c
+5-11 files

FreeBSD/src 2635037sys/dev/hwpmc hwpmc_intel.c

pmc: add alderlake model

The commit 601925180df4 added the models 6-B7, 6-BA, 6-BF to libpmc, but
they must also be added to the hwpmc module to allow pmc to work on
those CPUs.

Reviewed by:    mhorne
MFC after:      1 week
Fixes:          601925180df4 ("libpmc: add more alderlake models")
Sponsored by:   Stormshield
Differential Revision:  https://reviews.freebsd.org/D49255

(cherry picked from commit 057dae35ffc6b17dacc84fa21921e93a17ce12b0)
DeltaFile
+3-0sys/dev/hwpmc/hwpmc_intel.c
+3-01 files

FreeBSD/src e56189dlib/libpmc/pmu-events/arch/x86/alderlaken adln-metrics.json pipeline.json

pmc: add alderlaken model

This commit adds alderlaken CPU model to hwpmc/libpmc. JSON event
definitions are imported from Intel perfmon version 1.16.

Reviewed by:    mhorne
MFC after:      1 week
Sponsored by:   Stormshield
Differential Revision:  https://reviews.freebsd.org/D49229

(cherry picked from commit ca3e47b0ea68664c7e10e1c3e28c5ac7d9932c21)
DeltaFile
+583-0lib/libpmc/pmu-events/arch/x86/alderlaken/adln-metrics.json
+533-0lib/libpmc/pmu-events/arch/x86/alderlaken/pipeline.json
+330-0lib/libpmc/pmu-events/arch/x86/alderlaken/cache.json
+175-0lib/libpmc/pmu-events/arch/x86/alderlaken/uncore-memory.json
+81-0lib/libpmc/pmu-events/arch/x86/alderlaken/memory.json
+47-0lib/libpmc/pmu-events/arch/x86/alderlaken/virtual-memory.json
+1,749-07 files not shown
+1,870-013 files

FreeBSD/src f7129eflib/libpmc/pmu-events/arch/x86/emeraldrapids uncore-cache.json uncore-interconnect.json

pmc: add emerald rapids model

This commit adds emerald rapids CPU model to hwpmc/libpmc. JSON event
definitions are imported from Intel perfmon version 1.06.

Reviewed by:    mhorne
MFC after:      1 week
Sponsored by:   Stormshield
Differential Revision:  https://reviews.freebsd.org/D49228

(cherry picked from commit 51a01f3debff8abf63c7cc21db9523c8feb53823)
DeltaFile
+6,248-0lib/libpmc/pmu-events/arch/x86/emeraldrapids/uncore-cache.json
+6,199-0lib/libpmc/pmu-events/arch/x86/emeraldrapids/uncore-interconnect.json
+3,617-0lib/libpmc/pmu-events/arch/x86/emeraldrapids/uncore-io.json
+3,308-0lib/libpmc/pmu-events/arch/x86/emeraldrapids/uncore-memory.json
+962-0lib/libpmc/pmu-events/arch/x86/emeraldrapids/pipeline.json
+888-0lib/libpmc/pmu-events/arch/x86/emeraldrapids/cache.json
+21,222-010 files not shown
+23,302-016 files

FreeBSD/src 9ac7027lib/libpmc/pmu-events/arch/x86/alderlaken adln-metrics.json pipeline.json

pmc: add alderlaken model

This commit adds alderlaken CPU model to hwpmc/libpmc. JSON event
definitions are imported from Intel perfmon version 1.16.

Reviewed by:    mhorne
MFC after:      1 week
Sponsored by:   Stormshield
Differential Revision:  https://reviews.freebsd.org/D49229

(cherry picked from commit ca3e47b0ea68664c7e10e1c3e28c5ac7d9932c21)
DeltaFile
+583-0lib/libpmc/pmu-events/arch/x86/alderlaken/adln-metrics.json
+533-0lib/libpmc/pmu-events/arch/x86/alderlaken/pipeline.json
+330-0lib/libpmc/pmu-events/arch/x86/alderlaken/cache.json
+175-0lib/libpmc/pmu-events/arch/x86/alderlaken/uncore-memory.json
+81-0lib/libpmc/pmu-events/arch/x86/alderlaken/memory.json
+47-0lib/libpmc/pmu-events/arch/x86/alderlaken/virtual-memory.json
+1,749-07 files not shown
+1,870-013 files

FreeBSD/src 6b0cb6elib/libpmc/pmu-events/arch/x86/emeraldrapids uncore-cache.json uncore-interconnect.json

pmc: add emerald rapids model

This commit adds emerald rapids CPU model to hwpmc/libpmc. JSON event
definitions are imported from Intel perfmon version 1.06.

Reviewed by:    mhorne
MFC after:      1 week
Sponsored by:   Stormshield
Differential Revision:  https://reviews.freebsd.org/D49228

(cherry picked from commit 51a01f3debff8abf63c7cc21db9523c8feb53823)
DeltaFile
+6,248-0lib/libpmc/pmu-events/arch/x86/emeraldrapids/uncore-cache.json
+6,199-0lib/libpmc/pmu-events/arch/x86/emeraldrapids/uncore-interconnect.json
+3,617-0lib/libpmc/pmu-events/arch/x86/emeraldrapids/uncore-io.json
+3,308-0lib/libpmc/pmu-events/arch/x86/emeraldrapids/uncore-memory.json
+962-0lib/libpmc/pmu-events/arch/x86/emeraldrapids/pipeline.json
+888-0lib/libpmc/pmu-events/arch/x86/emeraldrapids/cache.json
+21,222-010 files not shown
+23,302-016 files

FreeBSD/src a401677sys/dev/hwpmc hwpmc_intel.c

pmc: add alderlake model

The commit 601925180df4 added the models 6-B7, 6-BA, 6-BF to libpmc, but
they must also be added to the hwpmc module to allow pmc to work on
those CPUs.

Reviewed by:    mhorne
MFC after:      1 week
Fixes:          601925180df4 ("libpmc: add more alderlake models")
Sponsored by:   Stormshield
Differential Revision:  https://reviews.freebsd.org/D49255

(cherry picked from commit 057dae35ffc6b17dacc84fa21921e93a17ce12b0)
DeltaFile
+3-0sys/dev/hwpmc/hwpmc_intel.c
+3-01 files

FreeBSD/src 8ac7a38. UPDATING, share/man/man4 scsi.4

cam: Reduce overly long timeout values for initial device probing

Currently, we have very long timeouts for the initial probing
commands. However, these are not appropriate for modern (post 2010) SCSI
disks. Sandards since SPC3 state that these commands should not wait for
media access. Since we retry them several times during the initial bus
scan, these delays can delay the boot by minutes (5 minutes per errant
disk in our expereince). These delays don't help and only hurt, so
reduce the TESTUNITREADY, INQUIRY and MODESENSE commands (during the
initial probe). Provide sysctl/tuneables to change the time for these
and also the REPORTLUNS commands for people that might need to adjust
them for devices that violate this belief but none-the-less work with
longer timeouts.
        kern.cam.tur_timeout            (default was 60s, now 1s)
        kern.cam.inquiry_timeout        (default was 60s, now 1s)
        kern.cam.reportluns_timeout     (default is 60s)
        kern.cam.modesense_timeout      (default was 60s, now 1s)
This can be partially merged: the sysctls can, but the new defaults likely
shouldn't.

    [3 lines not shown]
DeltaFile
+33-1share/man/man4/scsi.4
+22-6sys/cam/scsi/scsi_xpt.c
+11-0UPDATING
+66-73 files

FreeBSD/src 7720566cddl/lib/libdtrace io.d

libdtrace: Update io.d to chase changes to struct bio layout

Fixes:  6c406b5b9312 ("exterror(9): add infra for bufs and bios")

(cherry picked from commit 1ca7542a1b31fffefaac5a2ff45ef23f908b33c2)
DeltaFile
+1-1cddl/lib/libdtrace/io.d
+1-11 files

FreeBSD/src b9915c2sys/dts/arm imx53x.dtsi imx51x.dtsi, sys/modules/dtb/imx5 Makefile

sys/dts: Remove i.MX5 device tree

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
DeltaFile
+0-712sys/dts/arm/imx53x.dtsi
+0-619sys/dts/arm/imx51x.dtsi
+0-151sys/dts/arm/digi-ccwmx53.dts
+0-125sys/dts/arm/efikamx.dts
+0-5sys/modules/dtb/imx5/Makefile
+0-1,6125 files

FreeBSD/src e29fe1csys/netinet ip_divert.c

divert: Use CK_SLISTs for the divcb hash table

The hash table is accessed in ip_divert_packet(), and there the accesses
are synchronized only by the net epoch, so plain SLIST is not safe.

Reviewed by:    ae
MFC after:      1 week
Sponsored by:   OPNsense
Sponsored by:   Klara, Inc.
Differential Revision:  https://reviews.freebsd.org/D54011

(cherry picked from commit 74f7e916211acafd10af05efd893ccbac1881119)
DeltaFile
+9-8sys/netinet/ip_divert.c
+9-81 files

FreeBSD/src f50f8cbsys/riscv/riscv pmap.c

riscv/pmap: Handle superpages in pmap_extract_and_hold()

Without this change, vm_fault_quick_hold_pages() falls back to the slow
fault handler when it encounters a superpage mapping.

Reviewed by:    alc, kib
Reported and tested by: br
MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D54022

(cherry picked from commit 20a0a2f8f36f5db704b674106fa61d8d95b6b071)
DeltaFile
+16-6sys/riscv/riscv/pmap.c
+16-61 files

FreeBSD/src fe21dbfsys/compat/linux linux_file.c linux_file.h

linux: Implement F_DUPFD_QUERY fcntl with kcmp(2) KCMP_FILE

Signed-off-by: Ricardo Branco <rbranco at suse.de>
Reviewed by:    kib
Pull Request:   https://github.com/freebsd/freebsd-src/pull/1920
DeltaFile
+8-0sys/compat/linux/linux_file.c
+1-0sys/compat/linux/linux_file.h
+9-02 files

FreeBSD/src dbac191sys/compat/linux linux_misc.c linux_misc.h

linux: Add support for kcmp(2) system call

Signed-off-by: Ricardo Branco <rbranco at suse.de>
Reviewed by:    kib
Pull Request:   https://github.com/freebsd/freebsd-src/pull/1920
DeltaFile
+27-0sys/compat/linux/linux_misc.c
+11-0sys/compat/linux/linux_misc.h
+0-2sys/compat/linux/linux_dummy.c
+38-23 files

FreeBSD/src 95d8576sys/tools/fdt make_dtb.sh

make_dtb.sh: add include path

The device tree include file for TI TPS65* is in a
relative path to the source for example:
device-tree/src/arm/ti/omap/am335x-bone-common.dtsi#n305
device-tree/src/arm/rockchip/rk3066a-marsboard.dts#n183

This patch gets the dts path and adds that as an include path
for the device tree compiler.

Approved by: manu (mentor)
Differential revision: https://reviews.freebsd.org/D53887
DeltaFile
+2-1sys/tools/fdt/make_dtb.sh
+2-11 files

FreeBSD/src f825427krb5/lib/gssapi version.map

krb5: Add missing symbol

Submitted by:   lampa at fit.vutbr.cz
PR:             291565
MFC after:      1 day
DeltaFile
+1-0krb5/lib/gssapi/version.map
+1-01 files

FreeBSD/src 0d46d87. localtime.c zic.8.txt

Import tzcode 2025c
DeltaFile
+709-166localtime.c
+274-250zic.8.txt
+347-110zic.c
+230-212tzfile.5.txt
+218-197tz-art.html
+186-181theory.html
+1,964-1,11628 files not shown
+3,107-1,91434 files

FreeBSD/src ac4fb06sys/net pfvar.h, sys/netpfil/pf pf.c

pf: handle TTL expired during nat64

If the TTL (or hop limit) expires during nat64 translation we may
need to send the error message in the original address family (i.e.
pre-translation).
We'd usually handle this in pf_route()/pf_route6(), but at that point we
have already translated the packet, making it difficult to include it in
the generated ICMP message.

Check for this case in pf_translate_af() and send icmp errors directly
from it.

PR:             291527
MFC after:      2 weeks
Sponsored by:   Rubicon Communications, LLC ("Netgate")
Differential Revision:  https://reviews.freebsd.org/D54166
DeltaFile
+36-0tests/sys/netpfil/pf/nat64.py
+20-5sys/netpfil/pf/pf.c
+0-1sys/net/pfvar.h
+56-63 files

FreeBSD/src a717a40sys/netpfil/pf pf.c, tests/sys/netpfil/pf sctp.py

pf: relax sctp v_tag verification

pf was too strict when validating SCTP tags. When a server receives a
retransmitted INIT it will reply with a random initiate tag every time.
However, pf saves the first initiate tag and expects every subsequent INIT_ACK
retransmission to have the same tag. This is not the case, leading to endless
INIT/INIT_ACK cycles.

Allow the tag to be updated as long as we've not gone past COOKIE_WAIT.

Add a test case to verify this.

MFC after:      2 weeks
See also:       https://redmine.pfsense.org/issues/16516
Sponsored by:   Rubicon Communications, LLC ("Netgate")

(cherry picked from commit bc3b72ff48953551e0e8bd6e5a2c718ecd973285)
DeltaFile
+67-0tests/sys/netpfil/pf/sctp.py
+6-2sys/netpfil/pf/pf.c
+73-22 files

FreeBSD/src f629ee0lib/libpfctl libpfctl.c

libpfctl: improve error handling

If we fail to open /dev/pf don't try to close it again. That would result in
errno getting overwritten by close(), hiding potentially useful information.

MFC after:      2 weeks
Sponsored by:   Rubicon Communications, LLC ("Netgate")

(cherry picked from commit 238ad591da9eede122a708be925b6b6a20e9046b)
DeltaFile
+2-2lib/libpfctl/libpfctl.c
+2-21 files

FreeBSD/src cc638b2sys/netpfil/pf pf.c, tests/sys/netpfil/pf sctp.py

pf: relax sctp v_tag verification

pf was too strict when validating SCTP tags. When a server receives a
retransmitted INIT it will reply with a random initiate tag every time.
However, pf saves the first initiate tag and expects every subsequent INIT_ACK
retransmission to have the same tag. This is not the case, leading to endless
INIT/INIT_ACK cycles.

Allow the tag to be updated as long as we've not gone past COOKIE_WAIT.

Add a test case to verify this.

MFC after:      2 weeks
See also:       https://redmine.pfsense.org/issues/16516
Sponsored by:   Rubicon Communications, LLC ("Netgate")

(cherry picked from commit bc3b72ff48953551e0e8bd6e5a2c718ecd973285)
DeltaFile
+67-0tests/sys/netpfil/pf/sctp.py
+5-1sys/netpfil/pf/pf.c
+72-12 files

FreeBSD/src 7b4482fsys/netpfil/pf pf.c, tests/sys/netpfil/pf sctp.py

pf: relax sctp v_tag verification

pf was too strict when validating SCTP tags. When a server receives a
retransmitted INIT it will reply with a random initiate tag every time.
However, pf saves the first initiate tag and expects every subsequent INIT_ACK
retransmission to have the same tag. This is not the case, leading to endless
INIT/INIT_ACK cycles.

Allow the tag to be updated as long as we've not gone past COOKIE_WAIT.

Add a test case to verify this.

MFC after:      2 weeks
See also:       https://redmine.pfsense.org/issues/16516
Sponsored by:   Rubicon Communications, LLC ("Netgate")

(cherry picked from commit bc3b72ff48953551e0e8bd6e5a2c718ecd973285)
DeltaFile
+67-0tests/sys/netpfil/pf/sctp.py
+6-2sys/netpfil/pf/pf.c
+73-22 files

FreeBSD/src a35545esys/vm vm_glue.c

vm: Fix kstack alignment assertion

The expectation that the allocation will be aligned to the kstack size
only applies when allocating from a kstack arena, not when allocating a
non-standard size from the kernel arena.

MFC after:      1 week
Sponsored by:   Klara, Inc.
Sponsored by:   NetApp, Inc.
Fixes:          7a79d0669761 ("vm: improve kstack_object pindex calculation to avoid pindex holes")
Reviewed by:    bnovkov, siderop1_netapp.com
Differential Revision:  https://reviews.freebsd.org/D54171
DeltaFile
+6-4sys/vm/vm_glue.c
+6-41 files

FreeBSD/src e3fa0a2usr.sbin/bhyve pci_uart.c

bhyve: pci-uart needs to also set subclass and function

edk2 PciSioSerialDxe driver setup depends on subclass and function
being set, adding them does make it possible to access pci-uart
serial port from UEFI.

Reviewed by:            corvink
Differential Revision:  https://reviews.freebsd.org/D54167
Sponsored by:           Edgecast Cloud LLC
DeltaFile
+2-0usr.sbin/bhyve/pci_uart.c
+2-01 files

FreeBSD/src a86dc94contrib/tzdata theory.html Makefile

contrib/tzdata: import tzdata 2025c

Changes: https://github.com/eggert/tz/blob/2025c/NEWS

MFC after:      3 days
DeltaFile
+186-181contrib/tzdata/theory.html
+138-58contrib/tzdata/Makefile
+135-0contrib/tzdata/NEWS
+47-47contrib/tzdata/zonenow.tab
+36-16contrib/tzdata/europe
+41-10contrib/tzdata/northamerica
+583-31216 files not shown
+682-40822 files

FreeBSD/src 7d227f6. theory.html Makefile

Import tzdata 2025c
DeltaFile
+186-181theory.html
+138-58Makefile
+135-0NEWS
+47-47zonenow.tab
+36-16europe
+41-10northamerica
+583-31217 files not shown
+693-41923 files