FreeBSD/src 9a46a14sys/dev/acpica acpi_cpu.c

acpi_cpu: only report unmapped processor objects enabled in the MADT

Firmware expose a DSDT sized for the largest SKU of the platform,
so a verbose boot prints an "ignored" line for every vacant
processor slot. A vacant slot has no enabled MADT entry; a CPU that
failed to come online does.

Reviewed by:    olce, adrian
Differential Revision:  https://reviews.freebsd.org/D59551
DeltaFile
+62-3sys/dev/acpica/acpi_cpu.c
+62-31 files

FreeBSD/src dd9e49ashare/man/man4 Makefile intel_pmc.4, sys/conf files.x86

intel/intelpmc: Add Intel PMC Core driver

Add driver for Intel Power Management Controller (PMC) found on Sunrise Point PCH chipsets.
This device exposes S0ix sleep state residency counters and power management status.

Sysctls provided:
  dev.intelpmc.0.slp_s0_residency_us - Time in deepest sleep (us)
  dev.intelpmc.0.ltr_ignore          - LTR ignore mask
  dev.intelpmc.0.pm_cfg              - PM configuration register
  dev.intelpmc.0.pm_sts              - PM status register
  dev.intelpmc.0.access_denied       - Firmware lock status

Supported devices for now:
  - Sunrise Point-LP (0x9D21)
  - Sunrise Point-H (0xA121)

Note: Later PCH generations (Cannon Lake, Tiger Lake, ect.) have different PMC register layouts according to the datasheet and would need per-generation tables.
I avoided adding untested hardware in case they have a quirk.


    [2 lines not shown]
DeltaFile
+219-0sys/dev/intel/intel_pmc.c
+83-0share/man/man4/intel_pmc.4
+6-0sys/modules/intel_pmc/Makefile
+2-0sys/modules/Makefile
+1-0sys/conf/files.x86
+1-0share/man/man4/Makefile
+312-06 files

FreeBSD/src 416611fsys/cam/nvme nvme_da.c, sys/dev/nvme nvme_ns.c

nvme: reject namespaces formatted with metadata

The active LBA format's MS field was never examined. I/O to a
metadata-formatted namespace carries neither interleaved metadata
nor MPTR, so every command is malformed, yet the namespace attaches
as a disk with the wrong sector size.

Reviewed by:    imp, adrian
Differential Revision:  https://reviews.freebsd.org/D59625
DeltaFile
+9-0sys/dev/nvme/nvme_ns.c
+9-0sys/cam/nvme/nvme_da.c
+18-02 files

FreeBSD/src a22eb75sys/dev/tpm tpm_tis_core.c

tpm_tis: Quiesce interrupts before registering a handler

The current interrupt path uses the IRQ resource value directly as the
LPC SIRQ selector in TPM_INT_VECTOR and already restricts it to 1 through
15. This is a driver limitation: a parent interrupt number need not equal
an LPC SIRQ channel, and SPI TPMs can use a separate parallel interrupt.

On the reported system with ACPI IRQ 45, the existing range check runs
after handler registration and returns before disabling firmware interrupt
delivery. This can leave a polling device with a handler on an asserted
source.

Disable and verify interrupt delivery before registering a handler or
starting common TPM services. Preserve the existing range policy, using
polling without registering a handler for routes rejected by that check,
and release their IRQ resources. Keep a failed setup's potentially stale
output cookie out of the device state; the interrupt framework may
already have removed that handler.


    [19 lines not shown]
DeltaFile
+90-23sys/dev/tpm/tpm_tis_core.c
+90-231 files

FreeBSD/src a6b40d7sys/compat/linuxkpi/common/include/linux scatterlist.h, sys/compat/linuxkpi/common/src linux_pci.c

LinuxKPI: Add dma_length field to struct scatterlist

On Linux `dma_length` field of `struct scatterlist` is present on the
arches where DMA mapping code is able to coalesce adjacent segments
of physical address space. It contains total length of coalesced
segments while `length` field contains non-coalesced length of each
segment. On other arches `dma_length` is aliased to `length` field with
`sg_dma_len` macro. As FreeBSD does not merge scatterlist segments it
do not have `dma_length` field. It is appered that at least i915kms
driver depends on existence of `dma_length` field.

Add the field and disable it by default. To enable add to Makefile

.if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64" || \\
    ${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "powerpc"
CFLAGS+=        -DCONFIG_NEED_SG_DMA_LENGTH
.endif

Reported by:    Ryan Fahy

    [4 lines not shown]
DeltaFile
+17-9sys/compat/linuxkpi/common/include/linux/scatterlist.h
+1-0sys/compat/linuxkpi/common/src/linux_pci.c
+18-92 files

FreeBSD/src f49dc19share/man/man4 tpm.4

tpm.4: Canonicalize SYNOPSIS and HARDWARE
DeltaFile
+13-19share/man/man4/tpm.4
+13-191 files

FreeBSD/src dc867c3share/man/man4 tslog.4

tslog.4: Canonicalize SYNOPSIS

Also, add the missing blank comment line at the top of the file.

Event:          EuroBSDcon 2026
MFC after:      3 days
DeltaFile
+2-5share/man/man4/tslog.4
+2-51 files

FreeBSD/src 7b70103share/man/man4 udl.4

udl.4: Canonicalize SYNOPSIS

Event:          EuroBSDcon 2026
MFC after:      3 days
DeltaFile
+4-12share/man/man4/udl.4
+4-121 files

FreeBSD/src bba2aebshare/man/man4 udbp.4

udbp.4: Canonicalize SYNOPSIS, structure, SPDX

Event:          EuroBSDcon 2026
MFC after:      3 days
DeltaFile
+33-61share/man/man4/udbp.4
+33-611 files

FreeBSD/src 6fe1d51share/man/man4 udav.4

udav.4: Canonicalize SYNOPSIS + "Fast" Ethernet

Event:          EuroBSDcon 2026
MFC after:      3 days
DeltaFile
+12-20share/man/man4/udav.4
+12-201 files

FreeBSD/src c64f613share/man/man4 ucycom.4

ucycom.4: Canonicalize SYNOPSIS

Event:          EuroBSDcon 2026
MFC after:      3 days
DeltaFile
+6-14share/man/man4/ucycom.4
+6-141 files

FreeBSD/src 08ab66bshare/man/man4 ucom.4

ucom.4: Canonicalize SYNOPSIS + tag SPDX

Event:          EuroBSDcon 2026
MFC after:      3 days
DeltaFile
+14-11share/man/man4/ucom.4
+14-111 files

FreeBSD/src 28bbe93share/man/man4 ubtbcmfw.4

ubtbcmfw.4: Canonicalize SYNOPSIS + tag SPDX

Event:          EuroBSDcon 2026
MFC after:      3 days
DeltaFile
+6-11share/man/man4/ubtbcmfw.4
+6-111 files

FreeBSD/src 01e9a8bshare/man/man4 ubsa.4

ubsa.4: Canonicalize SYNOPSIS + tag SPDX

Event:          EuroBSDcon 2026
MFC after:      3 days
DeltaFile
+7-13share/man/man4/ubsa.4
+7-131 files

FreeBSD/src 2c92e4cshare/man/man4 uath.4

uath.4: Canonicalize SYNOPSIS

Event:          EuroBSDcon 2026
MFC after:      3 days
DeltaFile
+8-16share/man/man4/uath.4
+8-161 files

FreeBSD/src 2b67a5bshare/man/man4 uath.4

uath.4: Canonicalize FIRMWARE -> FILES

Event:          EuroBSDcon 2026
MFC after:      3 days
DeltaFile
+11-11share/man/man4/uath.4
+11-111 files

FreeBSD/src 372b946share/man/man4 ubser.4

ubser.4: Canonicalize SYNOPSIS + tag SPDX

Event:          EuroBSDcon 2026
MFC after:      3 days
DeltaFile
+8-13share/man/man4/ubser.4
+8-131 files

FreeBSD/src 1bf7d54share/man/man4 vmx.4

vmx.4: Canonicalize device number

Event:          EuroBSDcon 2026
MFC after:      3 days
DeltaFile
+9-9share/man/man4/vmx.4
+9-91 files

FreeBSD/src 2f2938dshare/man/man4 uart.4

uart.4: Conicalize sections a bit better

Sections are in all caps, and subsections are in title case. Sections
also have a standard order. This manual could certainly be reformatted
more to conform further to our conventions, but this is a step in the
right direction. While here, remove the stray hyphen from the beginning
of this document.

Event:          EuroBSDcon 2026
MFC after:      3 days
DeltaFile
+42-43share/man/man4/uart.4
+42-431 files

FreeBSD/src 7ec06b4share/man/man4 u3g.4

u3g.4: Canonicalize SYNOPSIS, fix stray hyphen

Event:          EuroBSDcon 2026
MFC after:      3 days
DeltaFile
+6-17share/man/man4/u3g.4
+6-171 files

FreeBSD/src ca87782share/man/man4 uark.4

uark.4: Canonicalize SYNOPSIS + tag SPDX

Event:          EuroBSDcon 2026
MFC after:      3 days
DeltaFile
+8-13share/man/man4/uark.4
+8-131 files

FreeBSD/src 1689b87lib/libc/stdtime strftime.c

libc/stdtime: Catch up with tzcode 2026d

Fixes:          212e35249432 ("tzcode: Update to 2026c")
DeltaFile
+2-6lib/libc/stdtime/strftime.c
+2-61 files

FreeBSD/src 212e352contrib/tzcode zic.8 theory.html

tzcode: Update to 2026c

MFC after:      1 week
DeltaFile
+167-232contrib/tzcode/localtime.c
+60-58contrib/tzcode/tz-link.html
+114-1contrib/tzcode/NEWS
+49-40contrib/tzcode/zic.c
+32-31contrib/tzcode/theory.html
+28-17contrib/tzcode/zic.8
+450-3799 files not shown
+505-40915 files

FreeBSD/src 4d4fdb7. zic.8.txt theory.html

Import tzcode 2026d
DeltaFile
+167-232localtime.c
+60-58tz-link.html
+114-1NEWS
+49-40zic.c
+32-31theory.html
+23-21zic.8.txt
+445-38311 files not shown
+531-42817 files

FreeBSD/src 3caa8d2lib/libc/tests/stdlib test-search.h bsearch_test.c

libc: Preserve const qualifier on bsearch(3) results in tests

Reviewed by:    dteske, fuz
Approved by:    dteske (mentor), fuz (mentor)
MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D59611
DeltaFile
+1-1lib/libc/tests/stdlib/test-search.h
+1-1lib/libc/tests/stdlib/bsearch_test.c
+1-1lib/libc/tests/stdlib/bsearch_s_test.c
+1-1lib/libc/tests/stdlib/bsearch_b_test.c
+4-44 files

FreeBSD/src 73d3c96lib/libc/gen syslog.c getgrent.c, lib/libc/iconv bsd_iconv.c

libc: Preserve const qualifier on strchr(3), strrchr(3), and memchr(3) results

Reviewed by:    dteske, fuz
Approved by:    dteske (mentor), fuz (mentor)
MFC after:      1 month
Differential Revision:  https://reviews.freebsd.org/D59612
DeltaFile
+4-3lib/libc/net/getaddrinfo.c
+2-2lib/libc/gen/getgrent.c
+1-2lib/libc/iconv/bsd_iconv.c
+2-1lib/libc/inet/inet_cidr_pton.c
+2-1lib/libc/gen/syslog.c
+1-1lib/libc/stdio/mktemp.c
+12-104 files not shown
+16-1410 files

FreeBSD/src c389738lib/libc/stdlib bsearch.c, lib/libc/string wmemchr.c wcsstr.c

libc: Parenthesise qualifier-preserving function definitions

Required to prevent function-like macros with the same name from
being expanded in the definitions once they become active in a
later C mode.  Without the parentheses, the macro would rewrite
the declarator, and the file would consequently fail to compile.
This style is already used for similar cases such as mempcpy().

Reviewed by:    fuz
Approved by:    fuz (mentor)
MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D59600
DeltaFile
+3-3lib/libc/stdlib/bsearch.c
+1-1sys/libkern/strchrnul.c
+1-1lib/libc/string/wmemchr.c
+1-1lib/libc/string/wcsstr.c
+1-1lib/libc/string/wcsrchr.c
+1-1lib/libc/string/wcspbrk.c
+8-812 files not shown
+20-2018 files

FreeBSD/src 4cc85d1tests/sys/geom/class/raid3 9_test.sh 8_test.sh

tests: Fix graid3 insert tests

The script was passing the wrong device name to `graid3 insert` and
didn't notice that the command was failing.

MFC after:      1 week
Event:          EuroBSDcon 2026 DevSummit
Reviewed by:    delphij
Differential Revision:  https://reviews.freebsd.org/D59564
DeltaFile
+1-1tests/sys/geom/class/raid3/9_test.sh
+1-1tests/sys/geom/class/raid3/8_test.sh
+1-1tests/sys/geom/class/raid3/7_test.sh
+1-1tests/sys/geom/class/raid3/6_test.sh
+4-44 files

FreeBSD/src 9094f86sys/geom/raid3 g_raid3_ctl.c

graid3: Restore lock acquisition

The lock acquisition in g_raid3_ctl_insert() was improperly dropped a
while ago, making it impossible to add or replace a device in an
existing graid3.  This went unnoticed because the tests are broken.

MFC after:      1 week
Fixes:          fcf69f3dbce6 ("Consistently use gctl_get_provider instead of home-grown variants.")
Event:          EuroBSDcon 2026 DevSummit
Reviewed by:    delphij
Differential Revision:  https://reviews.freebsd.org/D59563
DeltaFile
+1-0sys/geom/raid3/g_raid3_ctl.c
+1-01 files

FreeBSD/src 49b4137bin/chflags chflags.1, lib/libc/gen strtofflags.c

chflags: Alias nocache to noucache for consistency

Event:                  EuroBSDcon 2026
Requested by:           fuz
Reviewed by:            fuz, rmacklem
Differential Revision:  https://reviews.freebsd.org/D59588
DeltaFile
+2-3lib/libc/gen/strtofflags.c
+2-2bin/chflags/chflags.1
+4-52 files