FreeBSD/src 4025692 — sys/arm/allwinner axp81x.c

axp81x: Serialize the register accesses

The registers were accessed with iicbus_transfer(), which does not own
the bus.  The interrupt driven transfers of the Allwinner twsi
controller drop their mutex while they sleep waiting for the interrupt,
so two accesses can overlap, and the PMU shares its bus with other
devices, an RTC for instance.  Use iicbus_transfer_excl() so that the
accesses are arbitrated.

The regulators share the enable registers and the regulator framework
only serializes the accesses to a single regulator.  Protect the
read-modify-write of these registers with a lock, so that regulators
enabled at the same time cannot lose each other's update.

No failure was seen without this, it is there for correctness.

Tested on: A64, H6
DeltaFile
+11-2sys/arm/allwinner/axp81x.c
+11-21 files

FreeBSD/src 79fbc23 — sys/arm/allwinner axp81x.c

axp81x: Add support for the AXP805 and AXP806

The AXP805 and AXP806 are regulator only PMUs, with different registers
than the AXP803 and AXP813, and without a battery, ADC sensors or GPIO.
Add the regulators (voltage ranges from the datasheet and the Linux
driver) and the interrupts: the power key short press powers the system
off and the die temperature is sent to devd.  The battery, sensors,
thresholds, shutdown handler and GPIO bus are not set up for them.

Tested on a Pine H64 (AXP805 on the R_I2C).
DeltaFile
+201-34sys/arm/allwinner/axp81x.c
+201-341 files

FreeBSD/src 7ea71c1 — sys/arm/allwinner axp81x.c

axp81x: Do not change the voltage of a regulator in range

axp8xx_regnode_init() set every regulator described in the FDT to its
minimum voltage, even if the firmware had already set a voltage in the
range. For a regulator that is in use, like the one of the CPU, this can
make the system crash. Only set the voltage when the current one is out
of the range.

Tested on: A64, H6
DeltaFile
+10-1sys/arm/allwinner/axp81x.c
+10-11 files

FreeBSD/src 4c50147 — sys/arm/allwinner axp81x.c

axp81x: Skip the regulators that have no name in the FDT

A regulator that is not used is described in the FDT by a node without
regulator-name, and regulator_parse_ofw_stdparam() fails for it, which
printed two errors at every boot.  Skip these nodes, and only tell about
it when booting verbose.
DeltaFile
+8-0sys/arm/allwinner/axp81x.c
+8-01 files

FreeBSD/src 5ca0386 — sys/arm/allwinner axp81x.c

axp81x: Get the voltage of the regulators with a single range

axp8xx_regnode_get_voltage() failed when the regulator has no second
step, which is the case of the ones with a single range. Only the first
step is mandatory, as in axp8xx_regnode_set_voltage().

Tested on: A64, H6
DeltaFile
+1-1sys/arm/allwinner/axp81x.c
+1-11 files

FreeBSD/src e412077 — sys/arm/allwinner axp81x.c

axp81x: Check the errors of the register accesses

axp8xx_regnode_enable() wrote back a value computed from a register it
failed to read, which clears the enable bits of all the other
regulators of that register.  Return an error instead, and do the same
in the other regnode methods, which used an uninitialised value when an
access failed.

Also initialise udelay in axp8xx_regnode_init(), as
axp8xx_regnode_set_voltage() can now fail before setting it.

Tested on: A64, H6
DeltaFile
+16-5sys/arm/allwinner/axp81x.c
+16-51 files

FreeBSD/src 07448cd — sys/arm/allwinner axp81x.c

axp81x: Fix the register accesses

The register pointer was written without IIC_M_NOSTOP, so the controller
sends a STOP before the read message. On the Allwinner H6 (twsi) this
makes the reads return garbage without any error.

Set IIC_M_NOSTOP on it, and send the register and its value in a single
write message, like the other PMIC drivers do.

Tested on: A64, H6
DeltaFile
+10-11sys/arm/allwinner/axp81x.c
+10-111 files

FreeBSD/src d0fb805 — sys/arm/allwinner axp81x.c

axp81x: Add a function to get the regulator definition

Move the lookup of the regulator definitions out of axp8xx_attach().
This also fixes an off-by-one: the test was i <= nitems(common), so the
first regulator of the per-chip table (dc1sw or dcdc7) was never
registered and one entry past the end of the common table was read.

Tested on: A64
DeltaFile
+24-22sys/arm/allwinner/axp81x.c
+24-221 files

FreeBSD/src 5e62bf3 — sys/dev/iicbus/controller/twsi twsi.c

twsi: Do not clear the interrupt flag when changing the control bits

twsi_control_set() and twsi_control_clear() read the control register,
change some bits and write it back.  On the controllers where the
interrupt flag is cleared by writing a 1 to it (iflag_w1c), this clears
it as the flag is read as set.

In the polled mode this breaks the repeated start: START is set with
the flag cleared by the write, the hardware sends the repeated start at
once, and the flag is then cleared a second time, which loses the event
and leaves the controller with the status of the previous transfer.
Transfers with a repeated start fail with IIC_ESTATUS on an Allwinner
H6 until the controller works with interrupts.

Mask the flag out of the value that is written back, unless the caller
asks for it.

Tested on: H6
DeltaFile
+6-0sys/dev/iicbus/controller/twsi/twsi.c
+6-01 files

FreeBSD/src 3e9384b — sys/arm/allwinner axp81x.c

axp81x: Move the interrupt setup out of attach

Add axp8xx_setup_intr() which enables the interrupts and installs the
handler.

No functional change.
DeltaFile
+41-26sys/arm/allwinner/axp81x.c
+41-261 files

FreeBSD/src 09624da — sys/arm/allwinner aw_rsb.c

aw_rsb: Accept a write in a single message

The driver only took a write as two messages, the offset and then the
data.  A write on an I2C bus is a single message that starts with the
register, which is how a driver that can be on I2C or on RSB, like
axp81x, does it.  Split such a message into the two the controller
needs.

Tested on: A64
DeltaFile
+21-1sys/arm/allwinner/aw_rsb.c
+21-11 files

FreeBSD/src 5065335 — sys/arm/allwinner axp81x.c

axp81x: Move the sensors, sysctls and thresholds out of attach

Add one function for each of them: axp8xx_add_sensors(),
axp8xx_add_sysctls() and axp8xx_get_thresholds().

No functional change. This is a preparation to support PMUs without a
battery, like the AXP805, with this driver.
DeltaFile
+61-36sys/arm/allwinner/axp81x.c
+61-361 files

FreeBSD/src 5d2e81f — sys/netipsec xform_ipcomp.c xform_ah.c

netipsec: Release the SA inside the vnet context in AH and IPComp callbacks

The error paths of ah_input_cb(), ah_output_cb(), ipcomp_input_cb() and
ipcomp_output_cb() called CURVNET_RESTORE() before key_freesav() and
key_freesp().  When the callback runs on a crypto return thread, no
vnet is set after the restore, and key_freesav() panics with "vnet is
not set" on INVARIANTS kernels.  Without INVARIANTS, the last reference
would be released without a vnet.

Restore the vnet last, as the ESP callbacks do.

Reviewed by:            mjg
Fixes:                  8a9269edd71a ("ipsec: sprinkle CURVNET_ASSERT_SET")
MFC after:              1 week
Sponsored by:           Rubicon Communications, LLC ("Netgate")
Differential Revision:  https://reviews.freebsd.org/D61386
DeltaFile
+2-2sys/netipsec/xform_ipcomp.c
+2-2sys/netipsec/xform_ah.c
+4-42 files

FreeBSD/ports 63c0223 — math Makefile, math/R-cran-matrixcalc distinfo pkg-descr

math/R-cran-matrixcalc: New port: Collection of functions for matrix calculations

A collection of functions to support matrix calculations
for probability, econometric and numerical analysis. There are
additional functions that are comparable to APL functions which
are useful for actuarial models such as pension mathematics.

PR:             296813
Approved by:    jrm (mentor)
Differential Revision:  https://reviews.freebsd.org/D61240
DeltaFile
+13-0math/R-cran-matrixcalc/Makefile
+4-0math/R-cran-matrixcalc/pkg-descr
+3-0math/R-cran-matrixcalc/distinfo
+1-0math/Makefile
+21-04 files

FreeBSD/ports 9afb8e6 — devel Makefile, devel/R-cran-furrr distinfo pkg-descr

devel/R-cran-furrr: New port: Apply mapping functions in parallel using futures

Implementations of the family of map() functions from 'purrr'
that can be resolved using any 'future'-supported backend, e.g.
parallel on the local machine or distributed on a compute cluster.

PR:             296815
Approved by:    jrm (mentor)
Differential Revision:  https://reviews.freebsd.org/D61239
DeltaFile
+24-0devel/R-cran-furrr/Makefile
+3-0devel/R-cran-furrr/distinfo
+3-0devel/R-cran-furrr/pkg-descr
+1-0devel/Makefile
+31-04 files

FreeBSD/src 8910f9e — sys/arm/include platformvar.h, sys/dev/usb usb_hub_acpi.c

kobj: Make the containers of pointers to base classes constant

The containers (arrays) will not be modified during runtime.

Reviewed by:    kib, imp
MFC after:      2 weeks
Differential Revision:  https://reviews.freebsd.org/D61297
DeltaFile
+4-4sys/sys/kobj.h
+3-3sys/kern/subr_kobj.c
+1-1sys/dev/usb/usb_hub_acpi.c
+1-1sys/arm/include/platformvar.h
+9-94 files

FreeBSD/ports db3cd51 — java/openjdk25 Makefile

java/openjdk25: set wxneeded on bootstrap jdk

The upstream fix to Bug 296945 set the wxneeded flag for executables;
however, it did not do so for the bootstrap jdk.
This patch fixes that.

PR:             300566
Reported by:    mondo.debater_0q at icloud.com
Reviewed by:    haraldei
Approved by:    haraldei
DeltaFile
+2-1java/openjdk25/Makefile
+2-11 files

FreeBSD/ports f1e8877 — devel/php-laminas-stdlib Makefile distinfo

devel/php-laminas-stdlib: Update to 3.22.0

re: https://github.com/laminas/laminas-stdlib/releases/tag/3.22.0
DeltaFile
+3-3devel/php-laminas-stdlib/distinfo
+1-1devel/php-laminas-stdlib/Makefile
+4-42 files

FreeBSD/ports e910f9d — www/php-laminas-feed Makefile distinfo

www/php-laminas-feed: Update to 2.27.0

re: https://github.com/laminas/laminas-feed/releases/tag/2.27.0
DeltaFile
+3-3www/php-laminas-feed/distinfo
+1-1www/php-laminas-feed/Makefile
+4-42 files

FreeBSD/src 88b7b85 — sys/dev/ixgbe if_ix.c

ixgbe: Attach the MDIO bus after iflib drops the context lock

ixgbe_mdio_attach() ran from ixgbe_if_attach_post(), which iflib calls
with the context lock held.  Attaching the MDIO bus there also probes
and attaches the devices on it, and their register accesses go through
ixgbe_mdio_readreg_c22() and ixgbe_mdio_writereg_c22(), which take the
same lock.  A driver on the bus that was in the kernel or loaded by
loader(8) therefore recursed on the non-recursive iflib sx lock as soon
as it touched a register: INVARIANTS kernels panic in _sx_xlock_hard(),
others recurse silently.

Wrap iflib_device_attach() and attach the MDIO bus once it has
returned, so the children take the context lock like any later MDIO
access does.

Reviewed by:            kbowling
Fixes:                  cfec995c87f3 ("ixgbe: add MDIO bus support")
Sponsored by:           Rubicon Communications, LLC ("Netgate")
Differential Revision:  https://reviews.freebsd.org/D61199
DeltaFile
+20-4sys/dev/ixgbe/if_ix.c
+20-41 files

FreeBSD/ports eadd7a4 — sysutils/mstflint Makefile distinfo

sysutils/mstflint: update to 4.38.0-1

Sponsored by:   Netflix
DeltaFile
+82-61sysutils/mstflint/pkg-plist
+3-3sysutils/mstflint/distinfo
+1-1sysutils/mstflint/Makefile
+86-653 files

FreeBSD/ports 3d0d3e1 — emulators/open-vm-kmod Makefile, emulators/open-vm-tools Makefile

emulators/open-vm-{kmod,tools}: machine/stdarg.h -> sys/stdarg.h

machine/stdarg.h is deprecated and will be removed in due course.

Use a different method of patching each port to work around
WKRSRC_SUBDIR in emulators/open-vm-kmod.

PR:             300600
Approved by:    garga (maintainer)
Sponsored by:   DARPA, AFRL
DeltaFile
+100-0emulators/open-vm-tools/files/patch-sys-stdarg.h
+13-0emulators/open-vm-kmod/Makefile
+1-1emulators/open-vm-tools/Makefile
+114-13 files

FreeBSD/ports b32f898 — math/blacs Makefile, math/blacs/files Bmake.inc-mpich.diff Bmake.inc-openmpi.diff

math/blacs: use MPI compiler wrappers

Use the compiler wrappers and installation path provided by mpi.mk.

Use MPI-2 communicator conversion for MPICH and OpenMPI.
Merge their identical build configuration patches.

Approved by:    thierry (mentor, implicit)
DeltaFile
+0-93math/blacs/files/Bmake.inc-openmpi.diff
+93-0math/blacs/files/Bmake.inc-mpi.diff
+0-74math/blacs/files/Bmake.inc-mpich.diff
+3-4math/blacs/Makefile
+96-1714 files

FreeBSD/ports 608a801 — net/freerdp3 pkg-plist Makefile

net/freerdp3: Update 3.33.0 => 3.33.1

Changelog:
https://github.com/FreeRDP/FreeRDP/releases/tag/3.33.1

Security:       GHSA-x863-43r4-f7c2
Security:       GHSA-m33m-4qxh-hq76
Security:       GHSA-52rf-pppx-qm55
Security:       GHSA-3664-pr8r-3254
Security:       GHSA-rp99-f9qv-c446
Security:       GHSA-23fv-6wrf-5hfq
Security:       GHSA-f6v9-vx5q-vjpf
Security:       GHSA-m6hp-4798-x78x
Security:       GHSA-9c9j-2r7q-5gx2
Security:       GHSA-ch3p-5r9r-w86p
Security:       GHSA-76c4-7552-ffhv
Sponsored by:   UNIS Labs
MFH:            2026Q4

(cherry picked from commit cde4c1a23ee335cc87cb1f90872947d93abd34ce)
DeltaFile
+3-3net/freerdp3/distinfo
+1-1net/freerdp3/Makefile
+1-0net/freerdp3/pkg-plist
+5-43 files

FreeBSD/ports cde4c1a — net/freerdp3 pkg-plist Makefile

net/freerdp3: Update 3.33.0 => 3.33.1

Changelog:
https://github.com/FreeRDP/FreeRDP/releases/tag/3.33.1

Security:       GHSA-x863-43r4-f7c2
Security:       GHSA-m33m-4qxh-hq76
Security:       GHSA-52rf-pppx-qm55
Security:       GHSA-3664-pr8r-3254
Security:       GHSA-rp99-f9qv-c446
Security:       GHSA-23fv-6wrf-5hfq
Security:       GHSA-f6v9-vx5q-vjpf
Security:       GHSA-m6hp-4798-x78x
Security:       GHSA-9c9j-2r7q-5gx2
Security:       GHSA-ch3p-5r9r-w86p
Security:       GHSA-76c4-7552-ffhv
Sponsored by:   UNIS Labs
MFH:            2026Q4
DeltaFile
+3-3net/freerdp3/distinfo
+1-1net/freerdp3/Makefile
+1-0net/freerdp3/pkg-plist
+5-43 files

FreeBSD/ports dc4d31d — benchmarks/imb Makefile distinfo

benchmarks/imb: Update to 2021.12

Changes: https://github.com/intel/mpi-benchmarks/releases/tag/IMB-v2021.12

Approved by:    thierry (mentor, implicit)
DeltaFile
+3-3benchmarks/imb/distinfo
+1-2benchmarks/imb/Makefile
+4-52 files

FreeBSD/src 52830cb — sys/kern kern_rctl.c, sys/sys syscallsubr.h

rctl_*(2): add kern_ implementations

Effort:         CHERI upstreaming
Sponsored by:   Innovate UK
Pull Request:   https://github.com/freebsd/freebsd-src/pull/2284
DeltaFile
+47-10sys/kern/kern_rctl.c
+10-0sys/sys/syscallsubr.h
+57-102 files

FreeBSD/src 985fadd — sys/kern kern_resource.c, sys/sys syscallsubr.h

rtprio*(2): add kern_ implementations

Effort:         CHERI upstreaming
Sponsored by:   Innovate UK
Pull Request:   https://github.com/freebsd/freebsd-src/pull/2284
DeltaFile
+27-14sys/kern/kern_resource.c
+5-0sys/sys/syscallsubr.h
+32-142 files

FreeBSD/src e3bdb45 — sys/kern kern_resource.c, sys/sys syscallsubr.h

getrlimitusage(2): add user_ implementation

Effort:         CHERI upstreaming
Sponsored by:   Innovate UK
Pull Request:   https://github.com/freebsd/freebsd-src/pull/2284
DeltaFile
+9-4sys/kern/kern_resource.c
+2-0sys/sys/syscallsubr.h
+11-42 files

FreeBSD/src 91e5dbd — sys/kern kern_prot.c, sys/sys syscallsubr.h

kern_prot.c: add kern_ and user_ implementations

Effort:         CHERI upstreaming
Sponsored by:   Innovate UK
Pull Request:   https://github.com/freebsd/freebsd-src/pull/2284
DeltaFile
+59-30sys/kern/kern_prot.c
+8-0sys/sys/syscallsubr.h
+67-302 files