LLVM/project 6547dbf — llvm CMakeLists.txt, llvm/cmake WiXPerMachinePatch.xml

[cmake][llvm] Remove CPACK_WIX_INSTALL_SCOPE workaround (#246360)

LLVM now requires CMake 3.31 so drop the workaround.
DeltaFile
+2-10llvm/CMakeLists.txt
+0-5llvm/cmake/WiXPerMachinePatch.xml
+2-152 files

LLVM/project fb0c123 — libcxx/test/benchmarks filesystem.bench.cpp, libcxx/test/benchmarks/input.output/filesystem path.bench.cpp

[libc++] Rewrite the std::filesystem benchmarks (#240899)

This makes the benchmarks easier to understand and more representative
by making the size of the individual directory names and the number of
directories two separate arguments to the benchmarks.
DeltaFile
+0-189libcxx/test/benchmarks/filesystem.bench.cpp
+145-0libcxx/test/benchmarks/input.output/filesystem/path.bench.cpp
+145-1892 files

LLVM/project 400f3e0 — clang/lib/CIR/Dialect/IR CIRDialect.cpp, clang/lib/CIR/Lowering/DirectToLLVM LowerToLLVM.cpp

[CIR] Lower constant vectors with undef, poison and zero elements

The `cir::ConstVectorAttr` verifier only checks the element types, so
`#cir.undef`, `#cir.poison` and `#cir.zero` are valid elements, and
`VecShuffleOp::fold` created an undef element for a -1 index. The
lowering to the LLVM dialect handled int, float and bool elements and
hit an `llvm_unreachable` on anything else, so a
`__builtin_shufflevector` of two constant vectors with a -1 index
crashed `-fclangir -emit-llvm`.

A zero element is now a zero in the dense constant. An undef or poison
element also takes a zero there and is then replaced by an
`llvm.insertelement` of `llvm.mlir.undef` or `llvm.mlir.poison`.
`llvm.mlir.constant` cannot hold such an element itself: a dense
elements attribute holds only literals, and the translation to LLVM IR
accepts a per-element `LLVM::UndefAttr` or `LLVM::ZeroAttr` only in
struct and array constants and no `LLVM::PoisonAttr` at all. The
IRBuilder folds the insertions when the module is translated, in
function bodies and in global initializers, so the LLVM IR holds one

    [10 lines not shown]
DeltaFile
+187-0clang/test/CIR/Lowering/const-vector-undef-poison-zero.cir
+69-20clang/lib/CIR/Lowering/DirectToLLVM/LowerToLLVM.cpp
+53-0clang/test/CIR/CodeGen/vector-shuffle-poison-index.cpp
+1-1clang/test/CIR/Transforms/vector-shuffle-fold.cir
+1-1clang/lib/CIR/Dialect/IR/CIRDialect.cpp
+311-225 files

LLVM/project c992997 — clang/test/OffloadTools/clang-linker-wrapper linker-wrapper-macho-library.c, clang/tools/clang-linker-wrapper LinkerWrapperOpts.td ClangLinkerWrapper.cpp

[LinkerWrapper] Resolve -l the way ld64 does on a MachO host (#216940)

On a MachO host the linker wrapper looked for `-lfoo` only as
`libfoo.so` or `libfoo.a` in the `-L` paths, so a library that exists as
a `.tbd` stub or a `.dylib`, or that lives in the SDK passed with
`-syslibroot` (such as `-lSystem`), failed with `unable to find
library`. This searches for the names ld64 searches for, in its order,
and also searches `/usr/lib` and `/usr/local/lib` under each
`-syslibroot`.

This PR was generated using AI

---------

Co-authored-by: Joseph Huber <huberjn at outlook.com>
DeltaFile
+14-6clang/tools/clang-linker-wrapper/ClangLinkerWrapper.cpp
+16-0clang/test/OffloadTools/clang-linker-wrapper/linker-wrapper-macho-library.c
+3-0clang/tools/clang-linker-wrapper/LinkerWrapperOpts.td
+33-63 files

LLVM/project a316252 — llvm/lib/Target/AArch64 AArch64InstrInfo.td, llvm/test/CodeGen/AArch64 arm64-shifted-sext.ll

[AArch64] Restrict sext(sra(sext_inreg)) patterns to in-range shifts (#245198)

The i64 sext(sra(sext_inreg x, i8/i16), C) patterns accepted any C in
[0, 31] and selected SBFMXri x, C, 7 (resp. 15). For C >= 8 (resp. 16),
immr > imms, so the SBFM is an SBFIZ instead of a bitfield extract.

Limit the shift amount to imm0_7 (resp. imm0_15), like the neighbouring
sra(sext_inreg) patterns. This affects both SelectionDAG and GlobalISel.

Fixes a miscompile introduced by
https://github.com/llvm/llvm-project/commit/a76156f917e0ce4538c778f48203c3155fb93b15
(https://github.com/llvm/llvm-project/pull/226065).

Fixes https://github.com/llvm/llvm-project/issues/241864.

PR: https://github.com/llvm/llvm-project/pull/245198
DeltaFile
+268-103llvm/test/CodeGen/AArch64/arm64-shifted-sext.ll
+4-4llvm/lib/Target/AArch64/AArch64InstrInfo.td
+272-1072 files

LLVM/project 5be2ef9 — llvm/lib/Target/AMDGPU VOP3Instructions.td, llvm/test/CodeGen/AMDGPU llvm.amdgcn.cvt.scale.pk.ll llvm.amdgcn.cvt.scalef32.pk.gfx13.ll

[AMDGPU] Do not overlap dst with srcs for more v_cvt_scale* instructions (#246327)

The hardware requires that the destination VGPRs of the V_CVT_SCALE_*
family of instructions do not overlap any of their source VGPRs. Add the
missing "@earlyclobber $vdst" constraint to:

  v_cvt_scale_pk8_{bf16,f16,f32}_fp4
  v_cvt_scalef32_pk32_{bf6,fp6}_f32

With this, all v_cvt_scale* instructions for GFX12.5 and GFX13 have the
constraint.

Co-Authored-By: Claude Fable 5.2 <noreply at anthropic.com>
DeltaFile
+64-64llvm/test/CodeGen/AMDGPU/llvm.amdgcn.cvt.scalef32.pk.gfx13.ll
+8-8llvm/test/CodeGen/AMDGPU/llvm.amdgcn.cvt.scale.pk.ll
+5-7llvm/lib/Target/AMDGPU/VOP3Instructions.td
+77-793 files

LLVM/project ff0a16e — llvm/lib/Target/LoongArch LoongArchISelLowering.cpp

[LoongArch] Use INSERT_SUBREG for PseudoXVINSGR2VR into an undefined vector. NFC (#242332)

When inserting an element into the low half of an undefined LASX vector,
the insert is done on the low 128 bits and the result was widened with
SUBREG_TO_REG. That means that the instruction defining the low 128 bits
also defined the upper 128 bits, which is not the case. Insert the
result
into the undefined source vector with INSERT_SUBREG instead, which keeps
its upper 128 bits undefined.

Co-Authored-By: Claude Opus 5.5 <noreply at anthropic.com>

---

<sub>Stack created with <a
href="https://github.com/github/gh-stack">GitHub Stacks CLI</a> • <a
href="https://gh.io/stacks-feedback">Give Feedback 💬</a></sub>

Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+2-1llvm/lib/Target/LoongArch/LoongArchISelLowering.cpp
+2-11 files

LLVM/project 8c74946 — llvm/lib/Target/LoongArch LoongArchLASXInstrInfo.td

[LoongArch] Use INSERT_SUBREG of IMPLICIT_DEF to widen LSX vectors to LASX. NFC (#242331)

Several patterns widen a 128-bit LSX vector to a 256-bit LASX vector
with SUBREG_TO_REG, for instructions that only use the low 128 bits:
vext2xv.*, and xvpermi.d followed by an instruction that only uses the
low half of each 128-bit lane. SUBREG_TO_REG means that the instruction
defining the LSX vector also defined the upper 128 bits, which is not
the case and is not needed. Add an lsx_to_lasx helper that uses
INSERT_SUBREG into an IMPLICIT_DEF instead, as other patterns already do
for this kind of widening.

Co-Authored-By: Claude Opus 5.5 <noreply at anthropic.com>

---

<sub>Stack created with <a
href="https://github.com/github/gh-stack">GitHub Stacks CLI</a> • <a
href="https://gh.io/stacks-feedback">Give Feedback 💬</a></sub>


    [2 lines not shown]
DeltaFile
+43-40llvm/lib/Target/LoongArch/LoongArchLASXInstrInfo.td
+43-401 files

LLVM/project 67bbcfc — llvm/lib/Target/LoongArch LoongArchLASXInstrInfo.td, llvm/test/CodeGen/LoongArch/lasx/ir-instruction extractelement.ll

[LoongArch] Use INSERT_SUBREG of IMPLICIT_DEF to put an FP scalar in a LASX vector (#242330)

The patterns for vector_insert, scalar_to_vector and splat of an FP
scalar into a LASX vector used SUBREG_TO_REG to view the FPR as a vector
register. SUBREG_TO_REG means that the instruction defining the FPR also
defined the rest of the vector register, which is not the case. Only
element 0 is used, and scalar_to_vector leaves the other elements
undefined, which is what INSERT_SUBREG into an IMPLICIT_DEF expresses.

This changes the scheduling and register allocation in one test, but not
the number of instructions.

Co-Authored-By: Claude Opus 5.5 <noreply at anthropic.com>

---

<sub>Stack created with <a
href="https://github.com/github/gh-stack">GitHub Stacks CLI</a> • <a
href="https://gh.io/stacks-feedback">Give Feedback 💬</a></sub>

    [3 lines not shown]
DeltaFile
+15-15llvm/test/CodeGen/LoongArch/lasx/ir-instruction/extractelement.ll
+6-6llvm/lib/Target/LoongArch/LoongArchLASXInstrInfo.td
+21-212 files

LLVM/project 692ddb5 — llvm/lib/Target/LoongArch LoongArchLSXInstrInfo.td

[LoongArch] Use INSERT_SUBREG of IMPLICIT_DEF for scalar FP rounding via LSX. NFC (#242329)

fceil, ffloor, ftrunc and froundeven of an FP scalar are selected to a
splat of element 0 of the FPR viewed as an LSX vector, a vector rounding
instruction, and an extract of element 0. Only element 0 is used, so use
INSERT_SUBREG into an IMPLICIT_DEF instead of SUBREG_TO_REG, which means
that the instruction defining the FPR also defined the rest of the
vector register.

Co-Authored-By: Claude Opus 5.5 <noreply at anthropic.com>

---

<sub>Stack created with <a
href="https://github.com/github/gh-stack">GitHub Stacks CLI</a> • <a
href="https://gh.io/stacks-feedback">Give Feedback 💬</a></sub>

---------

Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+8-8llvm/lib/Target/LoongArch/LoongArchLSXInstrInfo.td
+8-81 files

LLVM/project c654a31 — llvm/lib/Target/LoongArch LoongArchLSXInstrInfo.td, llvm/test/CodeGen/LoongArch/lasx vec-sext-invec-mask.ll

[LoongArch] Use INSERT_SUBREG of IMPLICIT_DEF to put an FP scalar in an LSX vector (#242328)

The patterns for vector_insert, scalar_to_vector and splat of an FP
scalar into an LSX vector used SUBREG_TO_REG to view the FPR as a vector
register. SUBREG_TO_REG means that the instruction defining the FPR also
defined the rest of the vector register, which is not the case. Only
element 0 is used, and scalar_to_vector leaves the other elements
undefined, which is what INSERT_SUBREG into an IMPLICIT_DEF expresses.

This changes the scheduling and register allocation in some tests, but
not the number of instructions.

Co-Authored-By: Claude Opus 5.5 <noreply at anthropic.com>

---

<sub>Stack created with <a
href="https://github.com/github/gh-stack">GitHub Stacks CLI</a> • <a
href="https://gh.io/stacks-feedback">Give Feedback 💬</a></sub>

    [3 lines not shown]
DeltaFile
+14-14llvm/test/CodeGen/LoongArch/lsx/vec-sext.ll
+13-6llvm/lib/Target/LoongArch/LoongArchLSXInstrInfo.td
+8-8llvm/test/CodeGen/LoongArch/lasx/vec-sext-invec-mask.ll
+6-6llvm/test/CodeGen/LoongArch/lsx/vec-trunc.ll
+6-6llvm/test/CodeGen/LoongArch/lsx/vec-reduce-umin.ll
+6-6llvm/test/CodeGen/LoongArch/lsx/vec-reduce-umax.ll
+53-4617 files not shown
+127-12023 files

FreeBSD/src 9462179 — sys/dev/hwpmc hwpmc_amd.c, tests/sys/pmc/amd pmc_rowalloc_test.c

hwpmc_amd: Allow only system counting on L3, DF and UMC counters

These counters are shared by several CPUs, a CCX in the case of L3.  A
process-mode PMC is loaded on every CPU that runs a target thread, so
two CPUs can program the same counter.  Without PerfMonV2, an INVARIANTS
kernel then panics with "Starting active PMC"; otherwise the counts are
wrong.  No privilege is needed: on Zen 1-3, "pmcstat -P LLC_MISSES" is
enough.  System sampling is accepted too, but no interrupt handler
checks these counters.

Refuse every mode but PMC_MODE_SC, as the RAPL, PERF and TSC classes do.
Two system-mode PMCs on CPUs that share a counter can still conflict;
that is left to userland, as before.

PR:             296001
Reported by:    asomers
Reviewed by:    mhorne
Sponsored by:   Advanced Micro Devices, Inc.
Signed-off-by:  Osvaldo Janeri Filho <ojanerif at amd.com>
Differential Revision:  https://reviews.freebsd.org/D61949
DeltaFile
+97-0tests/sys/pmc/amd/pmc_rowalloc_test.c
+10-0sys/dev/hwpmc/hwpmc_amd.c
+107-02 files

LLVM/project 967de21 — llvm/test/tools/llvm-ar non-windows-name-case.test

[llvm-ar] fix contradictory comment in tests (#199113)

Original comment was probably copied from
[windows-name-case.test](llvm/test/tools/llvm-ar/windows-name-case.test)
DeltaFile
+1-1llvm/test/tools/llvm-ar/non-windows-name-case.test
+1-11 files

FreeBSD/src 38acb5b — sys/ofed/drivers/infiniband/ulp/nfsclrdma xprt_verbs.c clnt_rdma.c

clnt_rdma.c: Fix client recovery from connect loss

After a local send or receive error, clnt_rdma_call() marks the
connection disconnected, but other RPCs can remain asleep on it.
The attached patch wakes those callers so they can reconnect.

I tested this by forcing a send failure while other RPCs were pending.

Without this patch the client simple stalls.

Reviewed by:    rmacklem
Sponsored by:   VersatusHPC
MFC after:      1 month
DeltaFile
+21-5sys/ofed/drivers/infiniband/ulp/nfsclrdma/clnt_rdma.c
+1-0sys/ofed/drivers/infiniband/ulp/nfsclrdma/xprt_verbs.c
+22-52 files

NetBSD/pkgsrc-wip 76a8953 — ap2-jk2 Makefile, ap2-passenger Makefile

*: apache.mk cleanup
DeltaFile
+3-2ap2-passenger/Makefile
+1-2ap2-jk2/Makefile
+1-1uebimiau/Makefile
+1-1tutos/Makefile
+1-1serendipity/options.mk
+1-1semanticscuttle/Makefile
+8-815 files not shown
+23-2321 files

NetBSD/pkgsrc-wip 6c913b7 — llama.cpp TODO Makefile

llama.cpp: update to 1.1.0.

llama.cpp v1.1.0 adds the Inkling 2 family (base, Mini and DSpark),
Domyn Edge 4B, Zaya1 8B, RAON-1-mini and Hy4 flash, splits DFlash
speculative decoding into separate draft methods, and deprecates
the old llama_batch API in favour of llama_batch_ext. It brings a
large set of TTS and audio models (Kokoro, Zonos3-Mini, tiny-voca,
VoxCPM2, MiniMax-Music3, YuE2, Fish S2, Higgs v3/VibeVoice-ASR and
Kyutai Hibiki), token-aware chat parsing, named tool choice,
automatic per-tensor quantization targeting a bpw or size budget,
a slot-scheduling refactor in llama-server, a redesigned Llama Chat
web UI with voice messages and agent traces, and updates ggml to
v1.1.1.
DeltaFile
+6-6llama.cpp/distinfo
+3-3llama.cpp/Makefile.common
+1-3llama.cpp/TODO
+2-2llama.cpp/Makefile
+12-144 files

NetBSD/pkgsrc-wip 2e3cc2f — dma Makefile

dma: Reorganize (ordering only change)

This package has had a lot of work and there are things in
non-canonical order (even though we don't really have rules).  This
commit reorders lines (and adjusts indentation on one) so that it's
  TOOLS
  directory, username defs, and OWN_DIRS stuff
  build defines (env, make flags, cflags, libs)
  setup/subst of content from files/
  installation
DeltaFile
+29-27dma/Makefile
+29-271 files

FreeBSD/src c2f9ee0 — sys/opencrypto cryptodev.c

cryptodev: zero key material before freeing it

The /dev/crypto cipher and MAC keys are copied from userland and
released with free(), leaving the key bytes in freed kernel memory.
Use zfree() so the key material is cleared on session teardown and on
the setup error path.

Reviewed by:    markj
MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D61324

(cherry picked from commit edaa6ba7be8666d4f543317845899e1a1b684bbf)
DeltaFile
+4-4sys/opencrypto/cryptodev.c
+4-41 files

FreeBSD/src 6bcd61d — stand/i386/gptzfsboot zfsboot.c

gptzfsboot: Use snprintf() to format file names

The stack buffer in fs_list() can be overflowed if a file name is too
long.

Reported by:    Yudi Yang <yudi.yang at rice.edu>
MFC after:      1 week

(cherry picked from commit 956a05c3cbf5f5cb9d1c4d58e3a5fc22db1446b8)
DeltaFile
+1-1stand/i386/gptzfsboot/zfsboot.c
+1-11 files

FreeBSD/src 2e2f6d9 — sys/dev/gve gve_main.c gve_adminq.c

gve: Fix AdminQ buffer DMA sync directions

In gve_verify_driver_compatibility(), the driver populates the
gve_driver_info buffer for the device to read. Sync this buffer with
BUS_DMASYNC_PREWRITE instead of BUS_DMASYNC_PREREAD before issuing
the command.

In gve_adminq_describe_device(), the device populates the
gve_device_descriptor buffer for the driver to read. Sync this buffer
with BUS_DMASYNC_PREREAD instead of BUS_DMASYNC_PREWRITE before
issuing the command.

In gve_adminq_get_ptype_map_dqo(), the device populates the
gve_ptype_map buffer for the driver to read. Add the missing
BUS_DMASYNC_PREREAD and BUS_DMASYNC_POSTREAD syncs around the
command.

In normal GCP environments this did not cause a functional failure
because the underlying platforms are DMA cache-coherent and

    [14 lines not shown]
DeltaFile
+5-1sys/dev/gve/gve_adminq.c
+1-1sys/dev/gve/gve_main.c
+6-22 files

FreeBSD/src bc40580 — sys/amd64/amd64 pmap.c, sys/arm64/arm64 pmap.c

pmap: Fix some bugs around accounting of wired mappings

The amd64 and arm64 pmaps failed to decrement the count when tearing
down a 1GB largepage mapping.  The riscv pmap failed to decrement the
count when unwiring a superpage mapping.

Reported by:    alc
Reviewed by:    bnovkov, alc, kib
MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D61414

(cherry picked from commit da507ac5503d9af35f5aff4a7a773f6a92746e4a)
DeltaFile
+3-0sys/arm64/arm64/pmap.c
+2-0sys/riscv/riscv/pmap.c
+2-0sys/amd64/amd64/pmap.c
+7-03 files

FreeBSD/src 42e71f0 — sys/compat/freebsd32 freebsd32_misc.c

procctl: Zero the output structure for the compat32 syscall

Otherwise the freebsd32 implementation of PROC_REAP_STATUS leaks
uninitialized kernel stack memory.

Reviewed by:    kib
Reported by:    Dennys Kaluzny Pereira <dennyskaluzny at gmail.com>
MFC after:      1 week
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D61510

(cherry picked from commit 5a834ad15f1f09d43a6840c74da194db6f890aa2)
DeltaFile
+1-0sys/compat/freebsd32/freebsd32_misc.c
+1-01 files

FreeBSD/src 9f880eb — sys/amd64/vmm vmm_instruction_emul.c

vmm: Emulate the byte forms of OR and AND with an immediate

Opcode 0x80 (group 1: r/m8, imm8) is in the decode table and
emulate_cmp() handles 80 /7, but emulate_or() and emulate_and() only
accept 0x81 and 0x83.  An "or byte ptr [mem], imm8" or "and byte ptr
[mem], imm8" on emulated memory therefore fails with EINVAL and bhyve
stops the guest with "Failed to emulate instruction sequence
[ 80 ... ]".  Seen with macOS: VoodooHDA starts the HDA controller's
CORB with "or byte [rax+0x4c], 2" (CORBCTL |= CORBRUN), and the guest
died at the first sound.

Accept 0x80 in both, with a one byte operand as emulate_cmp() does.
The file is shared with bhyve(8), so the fix covers the in-kernel
devices (HPET, local APIC without APICv, I/O APIC) and the user space
device models alike.

Signed-off-by: Wanpeng Qian <wanpengqian at gmail.com>

Reviewed by:    markj

    [5 lines not shown]
DeltaFile
+12-0sys/amd64/vmm/vmm_instruction_emul.c
+12-01 files

FreeBSD/src 1277605 — sys/arm64/arm64 elf_machdep.c, sys/kern imgact_elf.c

imgact_elf: Pass program headers to the sv_protect hook

We handle program headers beyond the first page of the file, but
arm64_exec_protect() wasn't updated to handle this.  Pass the program
header array directly to the sv_protect hook.

Also fix a pre-existing bug: imgp->et_dyn_addr isn't the right base
address to use for the SV_INTERP case.

Reported by:    alc
Reviewed by:    alc, kib
Fixes:          804daf166406 ("imgact_elf: read program headers if not contained in the first page")
Fixes:          670af174e27b ("arm64: Enable BTI in the kernel ELF loader")
MFC after:      3 days
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D61999

(cherry picked from commit 884e1a00151d181e5dd1ba9d83c1adcffd25e5e8)
DeltaFile
+6-4sys/arm64/arm64/elf_machdep.c
+2-2sys/kern/imgact_elf.c
+2-1sys/sys/sysent.h
+10-73 files

FreeBSD/src 620a123 — sys/dev/gve gve_tx_dqo.c gve_rx_dqo.c

gve: Page-align DQO descriptor and completion rings

Currently, gve_rx_alloc_ring_dqo() and gve_tx_alloc_ring_dqo() request
CACHE_LINE_SIZE alignment when allocating DMA memory for the DQO TX/RX
descriptor and completion rings. The device requires stronger alignment
than cache line alignment, which was incidentally being met due to how
the kernel allocates memory. Explicitly meet this requirement by
requesting page aligned memory.

Signed-off-by: Tim Hostetler <thostet at google.com>

Reviewed by:    markj, Jasper Tran O'Leary <jtranoleary at google.com>
MFC after:      2 weeks
Differential Revision:  https://reviews.freebsd.org/D61211

(cherry picked from commit 9d48e88e023634e12530bf9db4a2e85d022b93db)
DeltaFile
+2-2sys/dev/gve/gve_tx_dqo.c
+2-2sys/dev/gve/gve_rx_dqo.c
+4-42 files

FreeBSD/src 4b1d247 — etc/mtree BSD.tests.dist

BSD.tests.dist: Add the new sys/libkern directory

Without that, 'make distributeworld' fails ('make buildworld' and 'make
installworld' do not need it).

Reported by:    llm-postcr
Fixes:          1a80570a3940 ("tests/sys: Move libkern's tests in a separate directory")
Sponsored by:   The FreeBSD Foundation
DeltaFile
+2-0etc/mtree/BSD.tests.dist
+2-01 files

FreeBSD/ports 5df72c5 — net-mgmt Makefile, net-mgmt/ubgpsuite distinfo pkg-descr

net-mgmt/ubgpsuite: New port

Micro BGP Suite and Utility library

PR:             301136
DeltaFile
+42-0net-mgmt/ubgpsuite/pkg-plist
+19-0net-mgmt/ubgpsuite/Makefile
+6-0net-mgmt/ubgpsuite/pkg-descr
+3-0net-mgmt/ubgpsuite/distinfo
+1-0net-mgmt/Makefile
+71-05 files

FreeBSD/src b2e0fce — tests/sys/pmc/amd amd_pmc_test_common.h pmc_ibs_test.c

tests/sys/pmc/amd: Call pmc_cpuinfo() in amd_test_find_classinfo()

Every caller of amd_test_find_classinfo() calls pmc_cpuinfo() right
before it.  Do that in the helper and drop the ibs_classinfo() and
rapl_classinfo() wrappers.

rapl_domains_test now fails instead of skipping when pmc_cpuinfo()
fails after pmc_init() succeeded, like the other tests.

Suggested by:   mhorne
Reviewed by:    mhorne
Sponsored by:   Advanced Micro Devices, Inc.
Signed-off-by:  Osvaldo Janeri Filho <ojanerif at amd.com>
Differential Revision:  https://reviews.freebsd.org/D62106
DeltaFile
+4-13tests/sys/pmc/amd/pmu_detect_test.c
+2-14tests/sys/pmc/amd/rapl_domains_test.c
+2-12tests/sys/pmc/amd/pmc_ibs_test.c
+5-6tests/sys/pmc/amd/amd_pmc_test_common.h
+13-454 files

FreeBSD/src a87de9c — tests/sys/pmc/amd pmu_mux_test.c pmc_rowalloc_test.c

tests/sys/pmc/amd: Skip in guests without a PMU

In a guest that shows an AMD Zen CPU but has no PMU, hwpmc(4) registers
neither the AMD core class nor IBS.  pmc_rowalloc_test, pmu_mux_test and
pmu_detect_test check only the CPU and pmc_init(), and
pmc_ibs_fetch_op_test checks only CPUID leaf 0x8000001B, which bhyve
passes through.  All four fail there instead of skipping.

Add amd_test_skip_unless_class() and use it in pmc_rowalloc_test,
pmu_mux_test and pmc_ibs_fetch_op_test.  hwpmc_amd registers a class
only after amd_hwcheck() passes, so a missing class means there are no
usable counters; rapl_domains_test already skips that way.
pmu_detect_test asserts that the class is registered, so gate it on
PerfCtrExtCore instead, which bhyve clears and KVM sets only with a
vPMU.

PR:             300856
Reviewed by:    mhorne
Fixes:          546a76463123 ("tests/sys/pmc: add pidtrack, callchain, pmc(8), RAPL and AMD tests")

    [4 lines not shown]
DeltaFile
+17-0tests/sys/pmc/amd/amd_pmc_test_common.h
+5-1tests/sys/pmc/amd/pmu_detect_test.c
+1-0tests/sys/pmc/amd/pmu_mux_test.c
+1-0tests/sys/pmc/amd/pmc_rowalloc_test.c
+1-0tests/sys/pmc/amd/pmc_ibs_fetch_op_test.c
+25-15 files

NetBSD/pkgsrc-wip c4b407f — dma Makefile TODO

dma: Partially untangle DMA_ROOT_USER (upstream) confusion

Add a URL to upstream report "DMA_ROOT_USER considered confusing".
Rename the package variable to the normal DMA_USER.  Move the setting
into the "!unpriv" conditional arm, and guess at appropriate values
within the unpriv arm, with a TODO marker.
DeltaFile
+4-29dma/TODO
+14-5dma/Makefile
+18-342 files