sys/uvm: fix uao_dropswap() index typo
The loop variable indexes the current pgs[] batch, not the page within
the object. Pass the fetched page's object offset to uao_dropswap(), as
the other resident page callers do.
OK: kettenis@
Unconditionally set cpuresetfn and powerdownfn. The K3 firmware that I'm
currently working with claims to implement the System Reset Extension,
but the reset doesn't actually work. Looking at the K1/K3 firmware
code reveals that the firmware would do the same thing as this driver,
so overriding these functions should be fine.
ok jsg@
shells/fish: Update to 4.8.1
from Florian Viehweger (Maintainer), with a tweak to avoid troubles with
the re-rolled fluent-ftl-tools tarball from me. discussed with naddy@
ospf6d: preserve configured interface type on link update
When an interface undergoes a link state change (RTM_IFINFO),
if_update() unconditionally overwrites iface->type based on current
interface flags. This causes interfaces explicitly configured with "type
p2p" in ospf6d.conf to revert to broadcast (IF_TYPE_BROADCAST) on link
bounce.
Introduce F_IFACE_TYPE to track whether the interface type was set by
configuration, and only auto-derive the type from interface flags when
this flag is not set.
Reported and tested by Atanas Vladimirov.
OK claudio@
vmd(8): guard synchronous imsg channel with a mutex.
Serialize vcpu access to the synchronous imsg channel for communicating
PCI register access to virtio device child processes. If vmd ever
becomes MP, VCPUs could interleave during the io emulation on the imsg
channel.
Report and original diff by Andrew Griffiths. Modified to move the
mutex into the global state of the vm process instead of per-device.
ok hshoexer@
ice(4): enable use of 128 DMA segments for TSO packets again
This diff contains two fixes for the ice_tso_detect_sparse()
function to prevent the 'Too many data commands' error:
1. Replace wrong computation of nsegs with already
specified map->dm_nsegs from the DMA layer.
2. Reinstate ICE_MAX_TX_SEGS for max. No. of Segments
per MSS section.
Tested by bluhm
OK bluhm@, stsp@
Improve SHA-3 performance.
Replace the tiny-sha3 keccakf implementation with an unrolled and
interleaved algorithm, that is hidden away in an obsolete reference
implementation.
This gets us 3.3x speed up on arm64 (Apple M2), a 1.3x speed up on amd64
(Intel i7-1165G7) and 6x speed up on sparc64 (M3000).
ok tb@
Correctly handle bit count for SHA-512.
The SHA-512 bit counter is 128 bits - as such, we need to handle overflow
and increment the second 64 bit field.
Reported by claudio@
ok claudio@ tb@
Import geo/geographiclib 2.7
GeographicLib is a small C++ library for:
* geodesic and rhumb line calculations;
* conversions between geographic, UTM, UPS, MGRS, geocentric, and local
cartesian coordinates;
* gravity (e.g., EGM2008) and geomagnetic field (e.g., WMM2020)
calculations;
* computations on a triaxial ellipsoid.
ok sthen@