FreeBSD/src 3c6fd43 — sys/netinet/tcp_stacks bbr.c

tcp bbr: improve handling of retransmissions in LAST-ACK

When performing a timer based retransmission, clear the
BBR_RWND_COLLAPSED flag. If it sticks, t_rxtshift is never incremented
resulting in unlimited retransmissions in the LAST-ACK state.

Reported by:            Illia Vynohradov
Reviewed by:            Peter Lei
MFC after:              3 days
MFC to:                 stable/15
Sponsored by:           Netflix, Inc.
Differential Revision:  https://reviews.freebsd.org/D61586
DeltaFile
+1-1sys/netinet/tcp_stacks/bbr.c
+1-11 files

FreeBSD/src 9fe57fe — sys/dev/asmc asmc_sysctl.c asmcmmio.h, sys/modules/asmc Makefile

asmc: rename asmcmmio.{c,h} to asmc_mmio.{c,h}

No functional change.

Reviewed by:    adrian
Differential Revision:  https://reviews.freebsd.org/D61538
DeltaFile
+0-401sys/dev/asmc/asmcmmio.c
+401-0sys/dev/asmc/asmc_mmio.c
+0-56sys/dev/asmc/asmcmmio.h
+56-0sys/dev/asmc/asmc_mmio.h
+1-1sys/modules/asmc/Makefile
+1-1sys/dev/asmc/asmc_sysctl.c
+459-4592 files not shown
+461-4618 files

FreeBSD/src 9345176 — sys/dev/asmc asmc.c asmc_sysctl.c

asmc: make asmc_sysctl_add_system() void

Its only caller already discarded the return value with (void). Match
the other sysctl subtree builders.

Reviewed by:    adrian

Differential Revision:  https://reviews.freebsd.org/D61537
DeltaFile
+2-4sys/dev/asmc/asmc_sysctl.c
+3-3sys/dev/asmc/asmc_sysctl.h
+1-1sys/dev/asmc/asmc.c
+6-83 files

FreeBSD/src 58d8364 — sys/dev/asmc asmc_sysctl.c

asmc: do not report absent sensors as a temperature

A key can exist for a sensor the model was never built with; the SMC
answers those with a fixed sentinel instead of an error. Return ENXIO
for the sentinel instead of publishing it as a reading.

MFC after:      3 days

Reviewed by:    adrian

Differential Revision:  https://reviews.freebsd.org/D61489
DeltaFile
+6-0sys/dev/asmc/asmc_sysctl.c
+6-01 files

FreeBSD/src fcc8bf0 — sys/dev/asmc asmcvar.h asmcmmio.h

asmc: wrap the lines that exceed 80 columns

Remove linter noise.
No functional change.

MFC after:      3 days

Reviewed by:    ngie

Differential Revision:  https://reviews.freebsd.org/D61488
DeltaFile
+4-3sys/dev/asmc/asmc_sysctl.c
+2-1sys/dev/asmc/asmc_debug.c
+2-1sys/dev/asmc/asmc.c
+1-1sys/dev/asmc/asmcvar.h
+1-1sys/dev/asmc/asmcmmio.h
+10-75 files

FreeBSD/src 49ba287 — share/man/man4 asmc.4, sys/dev/asmc asmc_sysctl.c

asmc: report temperatures in deciKelvin

The handler returned the raw key's high byte, dropping the sign and
fraction of the sp78 encoding, and published -1 on a failed read.

Read through asmc_sensor_read() instead, convert to deciKelvin, and
register the leaves as "IK". Changes the unit of dev.asmc.N.temp.*.

MFC after:      3 days

Reviewed by:    ngie

Differential Revision:  https://reviews.freebsd.org/D61487
DeltaFile
+12-19sys/dev/asmc/asmc_sysctl.c
+8-2share/man/man4/asmc.4
+20-212 files

FreeBSD/src 5e421b3 — share/man/man4 asmc.4

asmc.4: fix the unterminated SYNOPSIS and FILES blocks

The SYNOPSIS .Bd and the FILES .Bl were both left open, producing two
mandoc block-nesting errors. Reduce SYNOPSIS to the .Cd line man4
style calls for, and close the FILES list.

MFC after:      3 days

Reviewed by:    ziaee, ngie

Differential Revision:  https://reviews.freebsd.org/D61486
DeltaFile
+1-3share/man/man4/asmc.4
+1-31 files

FreeBSD/src cd82709 — sys/dev/asmc asmc_sysctl.c

asmc: propagate sysctl read and write errors

Several handlers discarded the key transport's result: fan speed, SMS
and ambient light handlers published a value regardless of read
success; a rejected fan speed or keyboard backlight write reported success;
fan id returned EPERM on an unreadable key instead of ENXIO.

asmc_fan_getvalue()/asmc_fan_setvalue() now return the error and pass
the speed out by reference instead of returning -1 for failure.

MFC after:      3 days

Reviewed by:    ngie

Differential Revision:  https://reviews.freebsd.org/D61485
DeltaFile
+40-35sys/dev/asmc/asmc_sysctl.c
+40-351 files

FreeBSD/src e029e26 — sys/dev/asmc asmc_sysctl.c

asmc: register the fan id sysctl with a string format

Every fan sysctl was registered with a hardcoded "I" format, but id
is CTLTYPE_STRING. Carry the format in the table instead.

MFC after:      3 days

Reviewed by:    ngie

Differential Revision:  https://reviews.freebsd.org/D61484
DeltaFile
+12-8sys/dev/asmc/asmc_sysctl.c
+12-81 files

FreeBSD/src cf3e63b — sys/dev/asmc asmc.c

asmc: clear the sensor counts in detach

The key arrays are freed but the counts were left set, leaving the
softc describing freed memory. Reachable via the attach error path,
which calls detach directly.

MFC after:      3 days

Reviewed by:    ngie

Differential Revision:  https://reviews.freebsd.org/D61483
DeltaFile
+5-0sys/dev/asmc/asmc.c
+5-01 files

FreeBSD/src 902b401 — sys/dev/asmc asmc.c

asmc: do not drop shutdown notification when the system node fails

asmc_attach() registered the MBSS shutdown-cause handler
(EVENTHANDLER_REGISTER(shutdown_pre_sync, asmc_shutdown, ...))
after attempting to add the dev.asmc.N.system sysctl subtree. If that
subtree registration failed, the error path took goto nosms, jumping clean
over the shutdown-handler registration. On T2 Macs this silently drops
the only thing standing between a clean shutdown and bridgeOS's
watchdog power-cycling the machine.

MFC after:      3 days

Reviewed by:    ngie

Differential Revision:  https://reviews.freebsd.org/D61482
DeltaFile
+3-4sys/dev/asmc/asmc.c
+3-41 files

FreeBSD/src 14a88ee — sys/dev/asmc asmcvar.h

asmc: remove the unused sc_dev softc field

It was never assigned or read. legacy code.

MFC after:      3 days

Reviewed by:    ngie

Differential Revision:  https://reviews.freebsd.org/D61481
DeltaFile
+0-1sys/dev/asmc/asmcvar.h
+0-11 files

FreeBSD/src 92f5c74 — sys/dev/asmc asmc.c

asmc: add MODULE_VERSION

Advertise the module's ABI version.

MFC after:      3 days

Reviewed by:    ngie

Differential Revision:  https://reviews.freebsd.org/D61480
DeltaFile
+1-0sys/dev/asmc/asmc.c
+1-01 files

FreeBSD/src 40d0f9e — sys/dev/asmc asmc.c

asmc: print the last field of the SMC revision correctly

Use be16dec() at the correct offset instead of an unaligned,
off-by-two-bytes read through a cast pointer.

MFC after:      3 days

Reviewed by:    ngie

Differential Revision:  https://reviews.freebsd.org/D61479
DeltaFile
+1-2sys/dev/asmc/asmc.c
+1-21 files

FreeBSD/src ddf06e9 — sys/dev/asmc asmcvar.h asmc.c

asmc: restore SMC state across suspend/resume

Reinit the SMS interrupt mask, motion thresholds, and shock window on
resume. Guard the backlight rewrite on sc_has_light. Add
device_suspend to release manual fan control before sleep and restore
it on resume.

MFC after:      3 days

Reviewed by:    ngie

Differential Revision:  https://reviews.freebsd.org/D61478
DeltaFile
+93-3sys/dev/asmc/asmc.c
+1-0sys/dev/asmc/asmcvar.h
+94-32 files

FreeBSD/src 7518829 — sys/netinet/tcp_stacks bbr.c

tcp bbr: improve persits timeout computation

t_srtt and t_rttvar use different lengths of fractions, therefore use
the appropriate shift value.

Reviewed by:            Peter Lei
MFC after:              3 days
MFC to:                 stable/15
Sponsored by:           Netflix, Inc.
Differential Revision:  https://reviews.freebsd.org/D61600
DeltaFile
+1-1sys/netinet/tcp_stacks/bbr.c
+1-11 files

FreeBSD/src a778669 — contrib/llvm-project/llvm/lib/Transforms/Vectorize SLPVectorizer.cpp

Merge commit 72a20b8e2987 from llvm git (by Gabriel Baraldi):

  [SLPVectorizer] Check std::optional coming out of getPointersDiff (#175784)

  Fixes https://github.com/llvm/llvm-project/issues/175768
  There are other unchecked uses std::optional in this pass but I couldn't
  figure out a test that triggers them

This fixes a clang crash in the SLP vectorizer, hit when building
audio/csound on powerpc64le. The hardened libc++ traps on the disengaged
optional, so clang dies with exit code 133. The second hunk is adapted to
llvm 21, where analyzeConstantStrideCandidate() is still isStridedLoad().

Reviewed by:    dim
MFC after:      3 days

Differential Revision:  https://reviews.freebsd.org/D61354

(cherry picked from commit e56090afb68b6c036d6b54c7b66d762d98bd96d0)
DeltaFile
+25-7contrib/llvm-project/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
+25-71 files

FreeBSD/src 2f98793 — sys/netinet/tcp_stacks bbr.c

tcp bbr: improve retransmit timout calculation

The retransmission timeout should the srtt + 4 * rttvar.
The srtt is using 5 bits of fractions and rttvar is using 4 bits of
fractions, some specific shifting is required.

Reviewed by:            Peter Lei
MFC after:              3 days
MFC to:                 stable/15
Sponsored by:           Netflix, Inc.
Differential Revision:  https://reviews.freebsd.org/D61581
DeltaFile
+1-2sys/netinet/tcp_stacks/bbr.c
+1-21 files

FreeBSD/src 7659a4f — sys/netinet/tcp_stacks bbr.c

Revert "tcp bbr: improve retransmit timout calculation"

This reverts commit 47ef696a769644e7ca1f2a3129818f39640b30a9.
I referenced the wrong review.
DeltaFile
+2-1sys/netinet/tcp_stacks/bbr.c
+2-11 files

FreeBSD/src 8018d75 — sys/netinet/tcp_stacks bbr.c

tcp bbr: improve invalidating rtt

Invalidate the rtt based on t_rxtshift instead of resetting t_srtt to 0,
because using the latter also affects the retransmission timeout.

Reviewed by:            Peter Lei
MFC after:              Netflix, Inc.
MFC to:                 stable/15
Sponsored by:           Netflix, Inc.
Differential Revision:  https://reviews.freebsd.org/D61585
DeltaFile
+2-4sys/netinet/tcp_stacks/bbr.c
+2-41 files

FreeBSD/src 47ef696 — sys/netinet/tcp_stacks bbr.c

tcp bbr: improve retransmit timout calculation

The retransmission timeout should the srtt + 4 * rttvar.
The srtt is using 5 bits of fractions and rttvar is using 4 bits of
fractions, some specific shifting is required.

Reviewed by:            Peter Lei
MFC after:              3 days
MFC to:                 stable/15
Sponsored by:           Netflix, Inc.
Differential Revision:  https://reviews.freebsd.org/D61586
DeltaFile
+1-2sys/netinet/tcp_stacks/bbr.c
+1-21 files

FreeBSD/src e24434f — sys/net if_bridge.c, tests/sys/net if_bridge_test.sh

if_bridge: Use bridge's FIB for incoming unicasts

A unicast frame for the bridge is handed to the stack with rcvif set
to the bridge, but it kept the FIB of the member it arrived on.  With
the bridge in another FIB, replies were looked up in the wrong routing
table and dropped.

Set the FIB of the bridge on such frames.  If member_ifaddrs is
enabled and the bridge inherited its MAC address from a member, keep
the old behaviour, since the frame may be for an address configured on
that member.

Reviewed by:    zlei
Differential Revision:  https://reviews.freebsd.org/D61517
DeltaFile
+47-0tests/sys/net/if_bridge_test.sh
+3-0sys/net/if_bridge.c
+50-02 files

FreeBSD/src 5e809bf — lib/libc/stdio printf-pos.c, lib/libc/tests/stdio swprintf_test.c snprintf_test.c

stdio: Fix positional %wN / %wfN conversion

MFC after:      1 week
Fixes:          bce0bef3c6ab ("libc: Implement N2680.")
Fixes:          12b1c1e3fb44 ("libc: Add test cases for N2680.")
DeltaFile
+68-0lib/libc/stdio/printf-pos.c
+8-0lib/libc/tests/stdio/swprintf_test.c
+8-0lib/libc/tests/stdio/snprintf_test.c
+84-03 files

FreeBSD/src 0e3fce2 — lib/libc/stdio printf-pos.c, lib/libc/tests/stdio swprintf_test.c snprintf_test.c

stdio: Fix positional %B / %b conversion

MFC after:      1 week
Fixes:          d9dc1603d6e4 ("libc: Implement N2630.")
Fixes:          b9385720f34b ("libc: Add unit tests for N2630 and possible collateral damage.")
DeltaFile
+10-0lib/libc/stdio/printf-pos.c
+2-0lib/libc/tests/stdio/swprintf_test.c
+2-0lib/libc/tests/stdio/snprintf_test.c
+14-03 files

FreeBSD/src 70cf7c6 — stand/uboot main.c

ubldr: Pass the whole loaderdev name to disk_parsedev()

p - 4 is one byte before the string for 3-letter types, so whether
loaderdev=mmc0p2 parsed depended on that byte. disk_parsedev() now skips any
name prefix itself.

Reported by:    llm-postcr
Reviewed by:    imp
Approved by:    imp
Fixes:          d18ed8e19c3c ("stand: Try to parse vdisk correctly")
Sponsored by:   Netfix
Differential Revision:  https://ron-dev.freebsd.org/FreeBSD/src/pulls/105
DeltaFile
+4-10stand/uboot/main.c
+4-101 files

FreeBSD/src cf58c86 — stand/efi/loader decompress.c

loader.efi: Clear the zstd stream pointer in zstd_fini()

do_download_ramdisk() calls decomp_fini() a second time to free the buffer when
it gives up after a finished download, so zstd freed its strem twice and libsa
libsa panicked. Clear the pointer like xz_fini().

Reported by:    llm-postcr
Reviewed by:    imp
Approved by:    imp
Fixes:          afee781523e4 ("loader.efi: Recognize new memdisk=<url> and memcd=<url> options")
Sponsored by:   Netflix
DeltaFile
+1-0stand/efi/loader/decompress.c
+1-01 files

FreeBSD/src 6871285 — usr.sbin/sysconf sysconf_ucl_lex.c sysconf_ucl_style.c, usr.sbin/sysconf/tests sysconf_test.sh

sysconf: Add ucl and pkg targets

ucl reads and rewrites Universal Configuration Language files with
libucl(3), the private library pkg(8) links, so what sysconf reads is
what pkg reads. Each file is parsed on its own and every scalar is
addressed by its dotted path (FreeBSD-ports.enabled); the last file
to define a path is authoritative. A write changes only the one
statement, in the file's own separator, terminator, quoting, and
boolean style, then re-parses the result with libucl and refuses the
write unless the parsed contents differ in exactly the requested key.
Removing the last key of an object removes the object.

Arrays are leaves, read back as compact JSON. name+=word and
name-=word on an array add and strike elements. Under an array a
path component is an index, as uclcmd(1) spells it: name.i reaches
one element (name.i=value sets it, name.i+=word edits it, -x name.i
strikes it), name.i.j reaches into a nested array, and name.# is the
count (name.#=value appends). A negative index counts from the end.
Under an object the same component is a key, so a key named 404 or #

    [21 lines not shown]
DeltaFile
+524-29usr.sbin/sysconf/tests/sysconf_test.sh
+458-0usr.sbin/sysconf/sysconf_ucl_array.c
+447-0usr.sbin/sysconf/sysconf_ucl_text.c
+442-0usr.sbin/sysconf/sysconf_ucl_write.c
+414-0usr.sbin/sysconf/sysconf_ucl_style.c
+338-0usr.sbin/sysconf/sysconf_ucl_lex.c
+2,623-2920 files not shown
+4,614-4926 files

FreeBSD/src e23c13a — sys/dev/pci pci_dw.h pci_dw.c

pci_dw: Honor the max-link-speed property

The root port reports in LNKCAP the highest link speed the core was
synthesized for, which can be more than the PHY behind it supports.  On
the RK3568 pcie2x1 the root port advertises 8GT/s while the PHY only
does 5GT/s.  The link stays at 2.5GT/s after the directed speed change.

Read max-link-speed from the device tree and write it to the Max Link
Speed field of LNKCAP and to the Target Link Speed field of LNKCTL2
before requesting the speed change.  Nothing changes when the property
is absent.

Tested on a Quartz64 Model A with a Samsung 970 EVO Plus NVMe drive: the
link now trains at 5GT/s and the sequential throughput goes from 200MB/s
to 400MB/s.

Differential Revision:  https://reviews.freebsd.org/D61014
DeltaFile
+54-0sys/dev/pci/pci_dw.c
+1-0sys/dev/pci/pci_dw.h
+55-02 files

FreeBSD/src 495c899 — sys/dev/mii mcommphy.c

mcommphy: Set the 10/100 TX delay of the YT8511

The TX clock delay of the YT8511 is split in two registers.  The delay
used in gigabit mode is in the clock gating page and was already set
from the RGMII mode, but the one used in the 10/100 modes is in the next
page and was left at its reset value of 2ns.  With a phy-mode that does
not ask for a TX delay in the PHY, the MAC provides it and the PHY adds
another 2ns in the 10/100 modes.

Set it like the gigabit one, like Linux does.

Tested on a Quartz64 Model A, gigabit and 100Mbit links.

Reviewed by:    oh
Differential Revision:  https://reviews.freebsd.org/D61015
DeltaFile
+13-0sys/dev/mii/mcommphy.c
+13-01 files

FreeBSD/src 3dcd4a2 — usr.bin/top machine.h display.h

top: implement pid highlighting

Implement PID highlighting. This can be activated by pressing
'L' and entering a PID to highlight. Highlighting can be cleared
by entering '+' as a PID to highlight. This feature is inspired by
the OpenBSD top, which uses 'P' key for that. We have to use 'L'
because 'P' is already used for toggling per-CPU statistics.

Reviewed by:    kib
Obtained from:  OpenBSD (partially)
MFC after:      2 weeks
Differential Revision:  https://reviews.freebsd.org/D61090
DeltaFile
+47-11usr.bin/top/top.c
+40-4usr.bin/top/display.c
+8-1usr.bin/top/top.1
+4-1usr.bin/top/machine.c
+2-2usr.bin/top/machine.h
+2-2usr.bin/top/display.h
+103-212 files not shown
+105-228 files