LLVM/project a0b1da3 — lldb/include/lldb/Utility Iterable.h, lldb/source/Core Debugger.cpp

Fix race pointed out in review feedback
DeltaFile
+14-0lldb/unittests/Utility/IterableTest.cpp
+9-0lldb/include/lldb/Utility/Iterable.h
+4-3lldb/source/Core/Debugger.cpp
+27-33 files

LLVM/project fd34a04 — llvm/include/llvm/Transforms/IPO Attributor.h

Attributor: Hash all bits of the abstract attribute map keys

The AA IDs are adjacent bytes and the positions of a value only differ
in the low bits, which the default hashes mostly ignore, so many AAMap
keys collide. Hash the full key instead.

attributor-light instruction counts (callgrind): -0.6% to -4.3%, full
attributor -0.5% to -1.5%. CTMark (-attributor-enable=light): O3
-0.01%, ThinLTO -0.03%.

Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+12-1llvm/include/llvm/Transforms/IPO/Attributor.h
+12-11 files

LLVM/project 6e94aea — llvm/lib/Target/RISCV RISCVISelLowering.cpp, llvm/test/CodeGen/RISCV rvp-simd-64.ll

[RISCV][P-ext] Use nsrl to for 64-bit extract_vector_elt with variable index on RV32.
DeltaFile
+6-30llvm/test/CodeGen/RISCV/rvp-simd-64.ll
+21-6llvm/lib/Target/RISCV/RISCVISelLowering.cpp
+27-362 files

LLVM/project 6f6aae5 — llvm/lib/Target/RISCV RISCVISelLowering.cpp, llvm/test/CodeGen/RISCV rvp-simd-64.ll

[RISCV][P-ext] Fix crash on v2i32 extract_vector_elt with a variable index on RV32.

Assisted-by: Claude
DeltaFile
+63-39llvm/test/CodeGen/RISCV/rvp-simd-64.ll
+6-3llvm/lib/Target/RISCV/RISCVISelLowering.cpp
+69-422 files

LLVM/project d18f304 — llvm/test/CodeGen/RISCV rvp-simd-32.ll rvp-simd-64.ll

[RISCV][P-ext] Add tests for extractelement with a variable index. NFC

Assisted-by: Claude
DeltaFile
+109-61llvm/test/CodeGen/RISCV/rvp-simd-64.ll
+36-4llvm/test/CodeGen/RISCV/rvp-simd-32.ll
+145-652 files

LLVM/project 0a88893 — llvm/lib/Target/RISCV RISCVInstrInfoP.td RISCVISelLowering.cpp, llvm/test/CodeGen/RISCV rvp-simd-64.ll

[RISCV][P-ext] Make v2i32 insert_vector_elt with constant indices legal for RV32.

We can select to an insert_subreg.

The default lowering created a store+load to stack that got folded,
but left behind the stack slot allocation.

Assisted-by: Claude
DeltaFile
+73-47llvm/test/CodeGen/RISCV/rvp-simd-64.ll
+6-0llvm/lib/Target/RISCV/RISCVISelLowering.cpp
+5-0llvm/lib/Target/RISCV/RISCVInstrInfoP.td
+84-473 files

LLVM/project 4847ba4 — llvm/lib/Target/RISCV RISCVISelLowering.cpp, llvm/test/CodeGen/RISCV rvp-simd-32.ll rvp-simd-64.ll

[RISCV][P-ext] Lower 2 element insert_vector_elt to scalar_to_vec+ppaire/ppaireo.

This avoids needing to match the srl+build_vec later which we only
do on RV64.
DeltaFile
+9-14llvm/lib/Target/RISCV/RISCVISelLowering.cpp
+2-4llvm/test/CodeGen/RISCV/rvp-simd-64.ll
+1-2llvm/test/CodeGen/RISCV/rvp-simd-32.ll
+12-203 files

LLVM/project 25b1d2f — cross-project-tests/intrinsic-header-tests riscv_packed_simd.c

fixup! Update test expectation
DeltaFile
+1-1cross-project-tests/intrinsic-header-tests/riscv_packed_simd.c
+1-11 files

LLVM/project c628d63 — llvm/lib/Target/RISCV RISCVInstrInfoXSpacemiT.td

[RISCV] Add SMT_ prefix to SpacemiT instruction enum names. (#241053)

Add "vtype" to end of names that become ambiguous. This represents the
additional operand the VMADOT II instructions have.
DeltaFile
+14-14llvm/lib/Target/RISCV/RISCVInstrInfoXSpacemiT.td
+14-141 files

LLVM/project c01e243 — llvm/test/CodeGen/BPF adjust-opt-icmp7.ll

[BPF] Regenerate adjust-opt-icmp7.ll checks after #237690 (#241074)

#231257 added this test with checks generated before #237690 started
marking global functions noipa, so it fails on main.

cc @eaeltsin

Assisted-by: Claude Opus 5.5
DeltaFile
+1-1llvm/test/CodeGen/BPF/adjust-opt-icmp7.ll
+1-11 files

FreeBSD/src 2d5a6bc — sys/dev/mlx5/mlx5_core fs_core.h mlx5_fs_core.c

mlx5: add per-flow-group hash table for FTE lookup

lookup_fte_locked() scanned every FTE in a flow group with xa_next()
and memcmp() on each one.  A new RX TLS session always misses, so the
whole group was walked under the group lock for every insertion.  With
tens of thousands of RX-offloaded sessions in the same IPv6 TCP group
this costs milliseconds per call and grows linearly with the number of
FTEs.

Keep a hash table of the FTEs in each flow group, keyed by a jhash of
the match value.  The table is sized from the group size, capped at
16K buckets.  It is updated in insert_fte() and del_sw_fte(), both of
which hold the group write lock, and read in lookup_fte_locked() under
the group read or write lock.  The xarray is kept for index
allocation.  No lockless reads are introduced.

Reported by:    NetApp
Reviewed by:    kib
Sponsored by:   NVidia networking
MFC after:      1 week
DeltaFile
+27-4sys/dev/mlx5/mlx5_core/mlx5_fs_core.c
+7-0sys/dev/mlx5/mlx5_core/fs_core.h
+34-42 files

OpenZFS/src 013c77e — module/zfs zvol.c

zvol: leave alone a minor that is being removed

zvol_os_remove_minor() clears zv_zso and drops zv_state_lock while it
tears down the OS side of a ZVOL_REMOVING zvol. zvol_set_ro() and
zvol_set_volthreading() can find the zvol by name in that window and
zvol_set_ro() dereferences the NULL zv_zso. zvol_set_volsize() drops
all its locks before it updates the OS side, so the removal can start
under it.

Since d73686867 the thread that changes volmode waits for the minor to
be replaced, but another process setting readonly or volsize on the
same volume still hits the window: the kernel oopses in
zvol_os_set_disk_ro() or zvol_os_update_volsize(), the ioctl thread
dies with the zvol's lock held and every later minor operation hangs
in the zvol taskq.

Skip a ZVOL_REMOVING zvol when setting readonly, volthreading or
volsize, as zvol_suspend() does; the property is still stored, as when
there is no minor. Hold a suspend reference across the OS side of the

    [12 lines not shown]
DeltaFile
+55-5module/zfs/zvol.c
+55-51 files

OpenZFS/src 150fc41 — tests/runfiles common.run, tests/zfs-tests/tests Makefile.am

ZTS: race volume property changes with volmode changes

Setting readonly or volsize on a volume whose minor another process is
removing, for a volmode change, dereferences the minor's OS state after
it has been cleared. Run volmode, readonly, volthreading and volsize
changes on the same volume at the same time, and check that they all
finish and the volume still works afterwards, with the properties set.

A loop still running two minutes after it should have stopped is stuck
in the kernel: fail with the stuck zfs processes' stacks rather than
wait for the test timeout.

Reviewed-by: Brian Behlendorf <behlendorf1 at llnl.gov>
Signed-off-by: Will Rouesnel <wrouesnel at wrouesnel.com>
Closes #19319
DeltaFile
+115-0tests/zfs-tests/tests/functional/zvol/zvol_misc/zvol_misc_volmode_race.ksh
+2-1tests/runfiles/common.run
+1-0tests/zfs-tests/tests/Makefile.am
+118-13 files

FreeBSD/ports 30ba8dc — graphics/nvidia-drm-kmod Makefile.common, x11/nvidia-kmod Makefile

x11/nvidia-kmod*, graphics/nvidia-drm-*-kmod*: Use sys/stdarg.h

machine/stdarg.h is deprecated and will be removed in due course.
This deorbits machine/stdarg.h and use sys/stdarg.h instead.

Not bumping PORTREVISION, as this is a build fix for future
removal of machine/stdarg.h and shouldn't cause changes
in contents of pkgs.

PR:             300622
Co-authored-by: Brooks Davis <brooks at FreeBSD.org>
Differential Revision:  https://reviews.freebsd.org/D61415
DeltaFile
+17-0x11/nvidia-kmod/Makefile
+3-0graphics/nvidia-drm-kmod/Makefile.common
+20-02 files

OpenZFS/src 3ca520e — tests/zfs-tests/cmd libzfs_input_check.c

libzfs_input_check: Fix integer to pointer casts

The zc_nvlist_foo fields are uint64_t and must be first cast to a
pointer-sized integer (uintptr_t) before being cast to a pointer to
avoid build-breakage for some targets (e.g. FreeBSD i386 w/GCC).

Fixes: 59dc88602
Reviewed-by: Brian Behlendorf <behlendorf1 at llnl.gov>
Reviewed-by: Garth Snyder <garth at garthsnyder.com>
Reviewed-by: Tigerblue77 <37409593+tigerblue77 at users.noreply.github.com>
Signed-off-by: Ryan Moeller <rmoeller at FreeBSD.org>
Closes #19793
DeltaFile
+2-2tests/zfs-tests/cmd/libzfs_input_check.c
+2-21 files

OpenZFS/src 5fd1c64 — lib/libspl/include/sys kmem.h

libspl/kmem: Make prototypes safe for C++

restrict is a C99 keyword and is not available in C++, so including
this header from C++ fails to compile.  FreeBSD's zfsd is one such
user, through sys/vdev_impl.h.

Use __restrict, which gcc and clang accept in both languages.

Fixes: 8b5d919d4 ("libspl: move kmem definitions from zfs_context.h")
Reviewed-by: Brian Behlendorf <behlendorf1 at llnl.gov>
Reviewed-by: Garth Snyder <garth at garthsnyder.com>
Reviewed-by: Tigerblue77 <37409593+tigerblue77 at users.noreply.github.com>
Signed-off-by: Ryan Moeller <rmoeller at FreeBSD.org>
Closes #19793
DeltaFile
+2-2lib/libspl/include/sys/kmem.h
+2-21 files

OpenZFS/src 9f65cfa — cmd/zdb zdb.c, cmd/zpool zpool_vdev.c

Fix uint64_t format strings on 32-bit targets

These print 64-bit values with %lu, %ld or %lx, which only matches
where long is 64 bits, and breaks builds with -Werror.

Use %llu and %lld with (u_longlong_t) and (longlong_t) casts, as is
done elsewhere.

Fixes: 13ec35ce3 ("Linux/vnops: implement STATX_DIOALIGN")
Fixes: d1b0a6982 ("draid: add failure domains support")
Fixes: 816804dfd ("Add support for anyraid vdevs")
Reviewed-by: Brian Behlendorf <behlendorf1 at llnl.gov>
Reviewed-by: Garth Snyder <garth at garthsnyder.com>
Reviewed-by: Tigerblue77 <37409593+tigerblue77 at users.noreply.github.com>
Signed-off-by: Ryan Moeller <rmoeller at FreeBSD.org>
Closes #19793
DeltaFile
+17-12tests/zfs-tests/cmd/statx.c
+2-2cmd/zdb/zdb.c
+1-1cmd/zpool/zpool_vdev.c
+20-153 files

OpenZFS/src a94aa16 — cmd/zstream zstream_io.c

zstream: Use libspl atomics for memory accounting

These were the only bare __atomic calls in zstream, and Clang rejects
the 64-bit ones on i386 with -Watomic-alignment.  The rest of zstream
already uses libspl.

Fixes: c878ee452 ("zstream: track and limit memory use")
Reviewed-by: Brian Behlendorf <behlendorf1 at llnl.gov>
Reviewed-by: Garth Snyder <garth at garthsnyder.com>
Reviewed-by: Tigerblue77 <37409593+tigerblue77 at users.noreply.github.com>
Signed-off-by: Ryan Moeller <rmoeller at FreeBSD.org>
Closes #19793
DeltaFile
+8-14cmd/zstream/zstream_io.c
+8-141 files

OpenZFS/src 1d4aa01 — lib/libspl/include/sys atomic.h

libspl/atomic: Add sequentially consistent ops

The libspl load and store are relaxed.  Add the sequentially consistent
variants that zstream needs, so that it does not have to use bare
__atomic calls or add full barriers around relaxed operations.

Reviewed-by: Brian Behlendorf <behlendorf1 at llnl.gov>
Reviewed-by: Garth Snyder <garth at garthsnyder.com>
Reviewed-by: Tigerblue77 <37409593+tigerblue77 at users.noreply.github.com>
Signed-off-by: Ryan Moeller <rmoeller at FreeBSD.org>
Closes #19793
DeltaFile
+22-0lib/libspl/include/sys/atomic.h
+22-01 files

OpenZFS/src fe13a25 — lib/libspl/include/sys atomic.h

libspl/atomic: Silence Clang -Watomic-alignment

Since the implementation moved into the header as inlines, the 64-bit
operations are compiled in every file that includes it, not just in
libspl where NO_ATOMIC_ALIGNMENT is applied.  On 32-bit targets Clang
warns because the operations become library calls, as uint64_t may be
under-aligned (i386) or too wide to be lock-free (powerpc).  This is
fatal with -Werror.

Those library calls are expected, so ignore the warning for the
inlines only.

Fixes: 32ba39f47
Reviewed-by: Brian Behlendorf <behlendorf1 at llnl.gov>
Reviewed-by: Garth Snyder <garth at garthsnyder.com>
Reviewed-by: Tigerblue77 <37409593+tigerblue77 at users.noreply.github.com>
Signed-off-by: Ryan Moeller <rmoeller at FreeBSD.org>
Closes #19793
DeltaFile
+13-0lib/libspl/include/sys/atomic.h
+13-01 files

LLVM/project 9485b09 — clang/include/clang/CIR/Dialect/IR CIRAttrs.td, clang/test/CIR/CodeGenSYCL sycl-kernel-entry-point-exceptions.cpp

Merge branch 'main' into revert-238985-amdgpu-exec-copy-clobber
DeltaFile
+482-0llvm/test/Transforms/Util/DeclareRuntimeLibcalls/ve.ll
+222-0llvm/test/Transforms/SLPVectorizer/AMDGPU/latency-bound-data-movement.ll
+158-0clang/test/CIR/CodeGenSYCL/sycl-kernel-entry-point-exceptions.cpp
+15-13clang/include/clang/CIR/Dialect/IR/CIRAttrs.td
+27-0llvm/test/Transforms/InstCombine/VE/libcall-arg-exts.ll
+10-2libc/test/UnitTest/FPMatcher.h
+914-1517 files not shown
+965-4123 files

LLVM/project 2c4a14f — llvm/test/CodeGen/X86/apx reloc-opt.ll

[X86][APX] Test the relocation of an NF add

test_regclass_not_updated_by_regalloc_2 only produced an NDD/NF add
with a GOT operand because the allocator happened to give the add a
destination different from its source. With SlotIndexes compaction it
picks the same register, so the add is compressed to the legacy form
and the CODE_6 TODO lost its test.

Add a function whose add keeps its source live, so it stays NDD and
becomes NF under any allocation.
DeltaFile
+20-1llvm/test/CodeGen/X86/apx/reloc-opt.ll
+20-11 files

LLVM/project 4553b4f — llvm/test/CodeGen/X86 vector-interleaved-store-i64-stride-7.ll vector-deinterleave8-i64.ll

[X86] Enable SlotIndexes compaction by default

Compacting SlotIndexes before greedy allocation drops the entries of
erased instructions, so live range sizes and instruction distances
reflect the code being allocated rather than how much was erased
before it. AMDGPU has done this since #235806; do the same for X86.

Codegen changes only through allocation: no new crashes, verifier
errors or allocation failures in the lit suites, including
EXPENSIVE_CHECKS, and a stage-2 build of LLVM, clang and lld with
-verify-machineinstrs passes its own tests. On llvm-test-suite at -O3,
spills drop 0.3% and .text 0.06%, with compile time unchanged.

Most test updates are regenerated checks. misched-matmul now inserts
20 spills instead of 24. live-debug-vars-stale-slotindexes.mir gets
one more use of %27 so that accumulate_fit still reaches the stale
index path it was written for.
DeltaFile
+20,796-20,889llvm/test/CodeGen/X86/vector-interleave7-i16.ll
+17,854-17,989llvm/test/CodeGen/X86/vector-interleave7-i32.ll
+17,166-17,229llvm/test/CodeGen/X86/vector-interleave6-i16.ll
+15,403-15,465llvm/test/CodeGen/X86/vector-interleaved-load-i64-stride-7.ll
+13,897-13,898llvm/test/CodeGen/X86/vector-deinterleave8-i64.ll
+13,329-13,243llvm/test/CodeGen/X86/vector-interleaved-store-i64-stride-7.ll
+98,445-98,713503 files not shown
+675,135-677,689509 files

OpenZFS/src e0110c4 — module/os/freebsd/spl spl_kstat.c

freebsd/kstat: clean up properly when kstat_create fails

On error, kstat_create() would free the sysctl context and the kstat
itself, but missed the lock and most importantly, any memory allocated
for ks_data. Sending those error cases through to kstat_delete() handles
all the cleanup necessary.

Sponsored-by: TrueNAS
Reviewed-by: Brian Behlendorf <behlendorf1 at llnl.gov>
Reviewed-by: Matthew Ahrens <matt at mahrens.org>
Signed-off-by: Rob Norris <rob.norris at truenas.com>
Closes #19789
DeltaFile
+3-6module/os/freebsd/spl/spl_kstat.c
+3-61 files

OpenZFS/src 967b1bc — module/zcommon zfs_fletcher.c, module/zfs zfs_chksum.c vdev_raidz_math.c

kstat: don't set ks_data for KSTAT_TYPE RAW

It's used for internal kstat stuff, nothing to do with us.

Sponsored-by: TrueNAS
Reviewed-by: Brian Behlendorf <behlendorf1 at llnl.gov>
Reviewed-by: Matthew Ahrens <matt at mahrens.org>
Signed-off-by: Rob Norris <rob.norris at truenas.com>
Closes #19789
DeltaFile
+0-2module/zfs/spa_stats.c
+0-1module/zfs/zfs_chksum.c
+0-1module/zfs/vdev_raidz_math.c
+0-1module/zcommon/zfs_fletcher.c
+0-54 files

OpenZFS/src b0b148d — module/os/linux/spl spl-taskq.c, module/zfs spa_stats.c ddt.c

kstat: fix use of ks_data and KSTAT_FLAG_VIRTUAL

We've been holding this wrong in a few places. KSTAT_FLAG_VIRTUAL is for
when ks_data will outlive the kstat (ie continue to exist after
kstat_delete() returns). In a few places, we allocated and set up
ks_data before the kstat is published (allowed!), but free it before it
is unpublished in kstat_delete(), so if the kstat is read then, it would
access already-freed memory.

The kstat API already allows for this case. If we don't set
KSTAT_FLAG_VIRTUAL, kstat_create() will allocate ks_data for us, and
then free it at a safe time in kstat_delete() after the kstat has been
unpublished.

Sponsored-by: TrueNAS
Reviewed-by: Brian Behlendorf <behlendorf1 at llnl.gov>
Reviewed-by: Matthew Ahrens <matt at mahrens.org>
Signed-off-by: Rob Norris <rob.norris at truenas.com>
Closes #19789
DeltaFile
+13-10module/zfs/dataset_kstats.c
+2-7module/zfs/spa_stats.c
+3-6module/zfs/ddt.c
+1-4module/os/linux/spl/spl-taskq.c
+19-274 files

OpenZFS/src 9d5322b — module/os/freebsd/zfs zfs_debug.c, module/zfs ddt.c dbuf_stats.c

kstat: always NULL the kstat_t* after freeing it

Doing it in some places but not others is confusing.

Sponsored-by: TrueNAS
Reviewed-by: Brian Behlendorf <behlendorf1 at llnl.gov>
Reviewed-by: Matthew Ahrens <matt at mahrens.org>
Signed-off-by: Rob Norris <rob.norris at truenas.com>
Closes #19789
DeltaFile
+20-19module/zfs/spa_stats.c
+4-5module/zfs/dbuf_stats.c
+3-1module/os/freebsd/zfs/zfs_debug.c
+1-0module/zfs/ddt.c
+28-254 files

OpenZFS/src 66184a0 — module/zfs arc.c, tests/runfiles common.run

L2ARC: Do not stop writing when l2arc_headroom is 0

zfs.4 documents l2arc_headroom=0 as removing the per-cycle headroom
limit, and l2arc_write_sublist() still treats it so.  Since 3523b5f3f,
however, l2arc_write_buffers() also stops a pass once its consumed
headroom reaches the headroom, which with l2arc_headroom=0 is 0 from
the start: no sublist is scanned, and nothing is written to any cache
device.  Skip that check when l2arc_headroom is 0, as the check it
replaced did.

Add l2arc_headroom_zero_pos, which reads data with l2arc_headroom=0
and checks that the cache device received buffers.

Reviewed-by: Brian Behlendorf <behlendorf1 at llnl.gov>
Signed-off-by: Tigerblue77 <37409593+tigerblue77 at users.noreply.github.com>
Closes #19628
DeltaFile
+78-0tests/zfs-tests/tests/functional/l2arc/l2arc_headroom_zero_pos.ksh
+2-1tests/runfiles/common.run
+2-1module/zfs/arc.c
+1-0tests/zfs-tests/tests/Makefile.am
+1-0tests/zfs-tests/include/tunables.cfg
+84-25 files

OpenBSD/src EqFS6D3 — sys/dev/ic rtwn.c

   Don't set the R92C_CMD_FLAG_EXT bit in H2C commands on non-RTL8192C-family
   chips.  The extended command flag only exists in the RTL8192C-family
   H2C command ids.

   This matches Linux rtlwifi/rtl8xxxu.

   ok stsp@
VersionDeltaFile
1.63+2-5sys/dev/ic/rtwn.c
+2-51 files

LLVM/project 69ba8a3 — clang/include/clang/CIR/Dialect/IR CIRAttrs.td, clang/test/CIR/CodeGenSYCL sycl-lowering-lang-options.cpp

[CIR][SYCL] Emit sycl_in_device field to the for cir.lowering_options (#238117)

Add sycl_is_device field to the `cir.lowering_options`. This is
populated during CIRGen time from `langOpts.SYCLIsDevice`.
DeltaFile
+15-13clang/include/clang/CIR/Dialect/IR/CIRAttrs.td
+12-0clang/test/CIR/CodeGenSYCL/sycl-lowering-lang-options.cpp
+4-4clang/test/CIR/Transforms/abi-lowering/indirect-aliased.cir
+4-4clang/test/CIR/Transforms/abi-lowering/amdgpu-kernel-hip-ptr.cir
+4-4clang/test/CIR/Lowering/no-trapping-math-ssp-buffer-size.cir
+4-2clang/test/CIR/IR/lowering-lang-options.cir
+43-274 files not shown
+48-2910 files