FreeBSD/src 75b23c1tests/sys/kern jaildesc.c

tests/jaildesc: Use a more efficient mechanism to block

MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D57148
DeltaFile
+3-6tests/sys/kern/jaildesc.c
+3-61 files

FreeBSD/src fe03a78tests/sys/kern jaildesc.c Makefile

tests/jaildesc: Add some more test scenarios

MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D57147
DeltaFile
+204-0tests/sys/kern/jaildesc.c
+1-1tests/sys/kern/Makefile
+205-12 files

FreeBSD/src 2a7d370share/man/man7 stats.7

stats: Reference zpool-iostat(8) instead of zpool(8)

MFC after:      3 days

(cherry picked from commit c0ec8ffb46ab337dcf726fcdf8083f62859d0ae6)
DeltaFile
+2-2share/man/man7/stats.7
+2-21 files

FreeBSD/src 8e1f5bastand/man loader.efi.8

loader.efi.8: Address mandoc -Tlint errors

MFC after:      3 days
DeltaFile
+31-20stand/man/loader.efi.8
+31-201 files

FreeBSD/src 3101456sys/dev/ice ice_lib.c

ice(4): Fix link speed after changing cable type

When interface was connected to a link partner with a cable
type limitting maximum supported speed, e.g. SFP+ cable
in 25G port, driver incorrectly saved a supported speed
as the user configured speed. This prevented interface
from using all supported speeds after switching cable to SFP28.
Link was established at 10G as supported by previously used
SFP+ cable. Don't set user requested speed unless actually
configured by an user, to allow automatic selection of highest
available speed. Only when user sets custom config
using advertise_speed sysctl save it and try
to apply after cable is changed.

Also don't save initial supported speeds if FW supports
reporting default PHY config.

Signed-off-by: Krzysztof Galazka <krzysztof.galazka at intel.com>


    [4 lines not shown]
DeltaFile
+11-7sys/dev/ice/ice_lib.c
+11-71 files

FreeBSD/src fcb31b5lib/libpfctl libpfctl.c

libpfctl: fix memory leak

When we snl_init_writer() we allocate memory in the struct snl_state in the struct pfctl_handle.
This memory was never released again, leading to a memory leak. We still
had a reference to the memory and would release it on pfctl_close()
(so valgrind did not detect it as a leak), but long-lived users (e.g.
bsnmpd) would eventually run out of memory.

Explicitly reset the snl_state when we're done to prevent this.

MFC after:      2 weeks
Sponsored by:   Rubicon Communications, LLC ("Netgate")
DeltaFile
+428-171lib/libpfctl/libpfctl.c
+428-1711 files

FreeBSD/src 2a478dflib/libpfctl libpfctl.c

libpfctl: retrieve family id only once

Look up the pfctl family id when we open the handle, rather than for
every function call.
This saves us a lot of netlink calls, at the expense of storing one
extra int in the handle.

Sponsored by:   Rubicon Communications, LLC ("Netgate")
DeltaFile
+93-266lib/libpfctl/libpfctl.c
+93-2661 files

FreeBSD/src bea6f7dsys/dev/ice ice_drv_info.h

ice(4): Add support for new E810-XXV-2 adapters

Add two new subdevice IDs for E810-XXV-2 and E810-XXV-2 for OCP 3.0.

Signed-off-by: Krzysztof Galazka <krzysztof.galazka at intel.com>

Reviewed by:    kbowling, erj, mateusz.moga_intel.com
Sponsored by:   Intel Corporation
MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D54069
DeltaFile
+6-0sys/dev/ice/ice_drv_info.h
+6-01 files

FreeBSD/src 23c99b6usr.sbin/bhyve bhyve.8

bhyve: Document vCPU range pinning

This change documents the recently introduced changes to -p
that allow users to specify CPU ranges instead of having to
specify each individual mapping.

While we're here, move the -p examples to the EXAMPLES section.

Reviewed by:    bcr
MFC after:      2 weeks
Differential Revision:  https://reviews.freebsd.org/D57480
DeltaFile
+25-13usr.sbin/bhyve/bhyve.8
+25-131 files

FreeBSD/src d6e3662crypto/openssl/crypto/bn bn_const.c

Remove fips-module related diff

This particular change didn't come from upstream. It was added locally
in 7a991ecd1 when attempting to enable the fips provider with 3.0.

Given the fact that we no longer build the fips provider and the fips
provider build process (including sources) is very prescribed to
specific build steps and source versions, there's no reason why we need
to continue carrying around this diff anymore.

MFC after:      1 week
Signed-off-by: Enji Cooper <ngie at FreeBSD.org>
DeltaFile
+0-2crypto/openssl/crypto/bn/bn_const.c
+0-21 files

FreeBSD/src 2de6d07crypto/openssl/apps openssl.cnf

Remove `$FreeBSD$` from upstream-provided config file

This diff reduces with the content provided by upstream (OpenSSL).

MFC after:      1 week
DeltaFile
+0-1crypto/openssl/apps/openssl.cnf
+0-11 files

FreeBSD/src 96841ea. UPDATING, lib/csu/common crtbrand.S

Update in preparation for 15.1-RELEASE

- Bump BRANCH to RELEASE
- Add the anticipated RELEASE announcement date
- Set a static __FreeBSD_version

Approved by:    re (implicit)
Sponsored by:   OpenSats Initiative
DeltaFile
+3-0UPDATING
+1-1lib/csu/common/crtbrand.S
+1-1sys/conf/newvers.sh
+5-23 files

FreeBSD/src 1f68ca5sys/dev/vt vt_buf.c

vt: Do not lock request comming from terminal

only those originated by mouse.  Because the terminal surrounds
requests to vt(4) with locking.

Reported by:    bz, adrian
Reviewed by:    adrian, glebius
Approved by:    glebius (mentor)
MFC after:      2 weeks
Differential Revision:  https://reviews.freebsd.org/D57442
DeltaFile
+14-3sys/dev/vt/vt_buf.c
+14-31 files

FreeBSD/src ee13bfbshare/man/man4 amdsmu.4

amdsmu(4): Small improvements

Suggested by:   olce
Sponsored by:   The FreeBSD Foundation
DeltaFile
+3-2share/man/man4/amdsmu.4
+3-21 files

FreeBSD/src 4733b4dshare/man/man4 amdsmu.4 Makefile

amdsmu(4): Add manpage

Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D57366
DeltaFile
+184-0share/man/man4/amdsmu.4
+2-0share/man/man4/Makefile
+186-02 files

FreeBSD/src a9ebef4sys/net pfvar.h

pf: switch to getmicro(up)time()

It is reported that micro(up)time() performs poorly in certain
virtualisation scenarios. Absolute accuracy isn't required here, so
switch to the slightly less accurate (as per the man page) get-variants.

PR:             295043
MFC after:      3 weeks
Sponsored by:   Rubicon Communications, LLC ("Netgate")

(cherry picked from commit e4130ac13d2fe9c17b8f8e86d39a7b5223fe7b79)
DeltaFile
+2-2sys/net/pfvar.h
+2-21 files

FreeBSD/src 3fbdaeesys/arm/broadcom/bcm2835 bcm2835_sdhci.c

bcm2835_sdhci: Clean up DMA resources on attach failure

bcm_sdhci_attach() allocates a DMA channel with bcm_dma_allocate()
before creating the bus_dma tag and map.  If a later initialization
step fails, the common error path releases the interrupt and memory
resources, but leaves the DMA channel allocated.

Call bcm_dma_free() for cleanup, as it already performs the required
internal checks and can therefore be invoked directly.

Signed-off-by:  Haoxiang Li <lihaoxiang at isrc.iscas.ac.cn>
Reviewed by:    mhorne
MFC after:      3 days
Pull Request:   https://github.com/freebsd/freebsd-src/pull/2241

(cherry picked from commit d1488cd762bee79240a715bf04f3d30e9a121b26)
DeltaFile
+1-0sys/arm/broadcom/bcm2835/bcm2835_sdhci.c
+1-01 files

FreeBSD/src 6d526fasys/compat/linuxkpi/common/include/linux io.h

linux/io: handle memtype_wc mapping for !DMAP range

The amdgpu driver in drm-kmod will attempt to update/reserve certain GPU
VRAM ranges as write-combining. Depending on the system, this address
range may fall outside of FreeBSD's constructed DMAP. We cannot use
pmap_change_attr() in this case.

When INVARIANTS is enabled, this results in the following:

  panic: physical address 0x880000000 not covered by the DMAP

Add a guard against triggering the KASSERT in PHYS_TO_DMAP().

This limitation in our implementation of arch_io_reserve_memtype_wc() is
already known in drm-kmod's amdgpu_bo_init(), and errors are ignored
there (see "BSDFIXME"). This change is only to eliminate the preventable
assertion failure within this scheme.

Tested by:      kevans

    [6 lines not shown]
DeltaFile
+6-1sys/compat/linuxkpi/common/include/linux/io.h
+6-11 files

FreeBSD/src a95757dsys/dev/usb/net if_smsc.c

smsc: Add missing newline to PHY timeout error printf

(cherry picked from commit 0979bfb0ec804590a782ea33b787ec0989c1f1a4)
(cherry picked from commit 471b1c4ca19b16693ed410da5023739a60d063f3)
DeltaFile
+1-1sys/dev/usb/net/if_smsc.c
+1-11 files

FreeBSD/src 314c855sys/amd64/amd64 trap.c

amd64: Make EFI runtime faults look less like panics

EFI runtime faults may be mistaken for kernel panics, and do not
necessarily represent actual problems.  Try to differentiate them some
more by printing "EFI runtime trap" rather than "Fatal trap".

PR:             291193
Reviewed by:    kib
Sponsored by:   The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D56309

(cherry picked from commit ddabf7f3ea4f0497dc5a5ffcbbb1d852ea77a4cd)
DeltaFile
+5-5sys/amd64/amd64/trap.c
+5-51 files

FreeBSD/src 3151fddsys/netlink netlink_io.c

netlink: Use unsigned type in nl_process_nbuf

nlmsghdr::nlmsg_len and nl_buf::offset are u_int.  Make msglen match.

Reviewed by:    pouria, glebius
Sponsored by:   The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D57474

(cherry picked from commit 888d9236e2249cb1bda686aca8729fdcc69a10ac)
DeltaFile
+3-1sys/netlink/netlink_io.c
+3-11 files

FreeBSD/src f218641sys/dev/hwpmc hwpmc_intel.c, sys/sys pmc.h

pmc: add sapphire rapids model

This commit adds the sapphire rapids CPU model to hwpmc_intel.c,
allowing hwpmc to be used on this CPU family.

Reviewed by:    mhorne
MFC after:      3 days
Sponsored by:   Stormshield
Differential Revision:  https://reviews.freebsd.org/D57263

(cherry picked from commit 03c69dd90122c4ffa91a749f668a2ac8fa6843a2)
DeltaFile
+4-0sys/dev/hwpmc/hwpmc_intel.c
+1-1sys/sys/pmc.h
+5-12 files

FreeBSD/src a9a1011lib/libpmc/pmu-events/arch/x86/meteorlake mtl-metrics.json pipeline.json

pmc: Import Intel Meteor Lake events

Obtained from:  Intel perfmon (JSON event definitions)
Tested by:      bms, olivier
MFC after:      1 week
Reviewed by:    ali_mashtizadeh.com, mhorne
Differential Revision:  https://reviews.freebsd.org/D55641

(cherry picked from commit cb9e24221672a7f77c858518c292c1eac09b3740)
DeltaFile
+2,825-0lib/libpmc/pmu-events/arch/x86/meteorlake/mtl-metrics.json
+2,096-0lib/libpmc/pmu-events/arch/x86/meteorlake/pipeline.json
+1,733-0lib/libpmc/pmu-events/arch/x86/meteorlake/cache.json
+623-0lib/libpmc/pmu-events/arch/x86/meteorlake/frontend.json
+499-0lib/libpmc/pmu-events/arch/x86/meteorlake/memory.json
+377-0lib/libpmc/pmu-events/arch/x86/meteorlake/virtual-memory.json
+8,153-09 files not shown
+8,877-015 files

FreeBSD/src 648ac17sys/arm/broadcom/bcm2835 bcm2835_sdhci.c

bcm2835_sdhci: Clean up DMA resources on attach failure

bcm_sdhci_attach() allocates a DMA channel with bcm_dma_allocate()
before creating the bus_dma tag and map.  If a later initialization
step fails, the common error path releases the interrupt and memory
resources, but leaves the DMA channel allocated.

Call bcm_dma_free() for cleanup, as it already performs the required
internal checks and can therefore be invoked directly.

Signed-off-by:  Haoxiang Li <lihaoxiang at isrc.iscas.ac.cn>
Reviewed by:    mhorne
MFC after:      3 days
Pull Request:   https://github.com/freebsd/freebsd-src/pull/2241

(cherry picked from commit d1488cd762bee79240a715bf04f3d30e9a121b26)
DeltaFile
+1-0sys/arm/broadcom/bcm2835/bcm2835_sdhci.c
+1-01 files

FreeBSD/src be5d6a2lib/geom/part gpart.8

gpart.8: add entry for xbootldr partition type

Reviewed by:    emaste, markj
Sponsored by:   The FreeBSD Foundation
Fixes:  dab8138e13de ("g_part,mkimg: Add additional GPT partition types")
Differential Revision:  https://reviews.freebsd.org/D56969

(cherry picked from commit 54d0ae979d9596399f33dc7d7245866f86ab7f8e)
DeltaFile
+7-1lib/geom/part/gpart.8
+7-11 files

FreeBSD/src 7b8ee50sys/compat/linuxkpi/common/include/linux io.h

linux/io: handle memtype_wc mapping for !DMAP range

The amdgpu driver in drm-kmod will attempt to update/reserve certain GPU
VRAM ranges as write-combining. Depending on the system, this address
range may fall outside of FreeBSD's constructed DMAP. We cannot use
pmap_change_attr() in this case.

When INVARIANTS is enabled, this results in the following:

  panic: physical address 0x880000000 not covered by the DMAP

Add a guard against triggering the KASSERT in PHYS_TO_DMAP().

This limitation in our implementation of arch_io_reserve_memtype_wc() is
already known in drm-kmod's amdgpu_bo_init(), and errors are ignored
there (see "BSDFIXME"). This change is only to eliminate the preventable
assertion failure within this scheme.

Tested by:      kevans

    [6 lines not shown]
DeltaFile
+6-1sys/compat/linuxkpi/common/include/linux/io.h
+6-11 files

FreeBSD/src b1594aelib/geom/part gpart.8

gpart(7): Fix reference to the zfsprops man page

PR:     292147

(cherry picked from commit 6499888ca741bf3db90d7fd352d5480f7314337f)
DeltaFile
+2-2lib/geom/part/gpart.8
+2-21 files

FreeBSD/src a1b2bcbsys/dev/eqos if_eqos_starfive.c

if_eqos_starfive: Read MAC address from device tree

u-boot/opensbi determines the ethernet MAC address from ROM and passes
it to the OS in the device tree. This change sets the correct MAC
address from this source. This prevents the eqos class driver from
generating random MAC addresses at each boot.

Tested on Starfive VisionFive 2, riscv64 SBC.

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

(cherry picked from commit 351fad05e075c388dece4cd6dd8613494b870bad)
DeltaFile
+12-0sys/dev/eqos/if_eqos_starfive.c
+12-01 files

FreeBSD/src 670024dsys/geom/part g_part.h g_part_gpt.c, sys/sys/disk gpt.h

g_part,mkimg: Add additional GPT partition types

Add the hifive-fsbl, hifive-bbl, and xbootldr aliases to mkimg(1).
Add the xbootldr alias to geom(4), and thus gpart(8).

The "hifive" partition types are defined and used by various RISC-V SBCs
for locating firmware.

"xbootldr", or the Extended Boot Loader Partition is defined here:
https://uapi-group.org/specifications/specs/boot_loader_specification/

Reviewed by:    emaste, markj, mhorne
MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D56784

(cherry picked from commit dab8138e13dea539a387c458979403980a137bf2)
DeltaFile
+6-0usr.bin/mkimg/gpt.c
+3-0usr.bin/mkimg/scheme.h
+3-0usr.bin/mkimg/scheme.c
+2-0sys/sys/disk/gpt.h
+2-0sys/geom/part/g_part.h
+2-0sys/geom/part/g_part_gpt.c
+18-01 files not shown
+19-07 files

FreeBSD/src 0aa4c25lib/libpmc pmc.ibs.3 libpmc.c, sys/dev/hwpmc hwpmc_ibs.c hwpmc_ibs.h

hwpmc_ibs: Add Zen6 IBS ctl2 filters and alternate disable

Add kernel and userland support for Zen6 IBS extensions per AMD pub
69205 (rev 1.00, March 2026): alternate fetch/op disable via ctl2[0],
fetch latency filtering, virtual address bit 63 filtering, and
streaming-store filtering.  Decode the new IbsOpData2 StrmSt and
RmtSocket bits. Update libpmc, pmcstat and manpage.

Pre-Zen6 systems work unchanged with ibs_ctl2 == 0.

Signed-off-by:  Andre Silva <andasilv at amd.com>
Reviewed by:    Ali Mashtizadeh <ali at mashtizadeh.com>, mhorne
Sponsored by:   AMD
Differential Revision:  https://reviews.freebsd.org/D56914
DeltaFile
+193-21sys/dev/hwpmc/hwpmc_ibs.c
+73-4lib/libpmc/pmc.ibs.3
+53-2lib/libpmc/libpmc.c
+41-4sys/dev/hwpmc/hwpmc_ibs.h
+35-6usr.sbin/pmcstat/pmcstat_log.c
+395-375 files