FreeBSD/ports f91f289 — audio Makefile, audio/sound-firmware-cirrus pkg-descr distinfo

audio/sound-firmware-cirrus: New port

Firmware for the Cirrus Logic smart speaker amplifiers found behind the
HDA codec of some laptops: the DSP program (wmfw) and the per-amplifier
tuning files (bin) that the snd_cs35l54(4) driver downloads at attach.
The files come from linux-firmware and are installed as raw files under
/boot/firmware/cirrus/, where firmware(9) loads them on demand.

The cs35l54 flavor covers the CS35L54 platforms listed in
linux-firmware, such as the HP ZBook Ultra G1a.

Reviewed by:    manu, christos
Pull Request:   https://ron-dev.freebsd.org/FreeBSD/ports/pulls/20
DeltaFile
+132-0audio/sound-firmware-cirrus/Makefile
+59-0audio/sound-firmware-cirrus/distinfo
+47-0audio/sound-firmware-cirrus/files/extract-fw-list.sh
+8-0audio/sound-firmware-cirrus/pkg-descr
+1-0audio/Makefile
+247-05 files

FreeBSD/src 49e8ec6 — secure/libexec/sftp-server Makefile, secure/usr.bin/scp Makefile

secure: Add ssh-sk-client to all consumers of libssh

These all failed to link with ld.bfd used by GCC due to
Fssh_sshsk_sign being an unresolved symbol.

Fixes:          65d8491719bb ("secure: Adapt Makefile to ssh-sk-client everywhere")
(cherry picked from commit a098111a28ed59e1ab1101ad09913f0235ebd28f)
DeltaFile
+1-1secure/usr.bin/sftp/Makefile
+1-1secure/usr.bin/scp/Makefile
+1-1secure/libexec/sftp-server/Makefile
+3-33 files

LLVM/project dd88a5a — clang/lib/Format UnwrappedLineParser.h UnwrappedLineParser.cpp, clang/unittests/Format BracesInserterTest.cpp

[clang-format] Fix InsertBraces rebinding an else in a preprocessor branch (#239414)

Don't insert braces around a body ending in an `if` whose `else` may
appear in a preprocessor branch skipped in the current formatting pass.
Inserting those braces can attach the `else` to a different `if` or
leave it without a matching `if`.

Fixes #239332.
DeltaFile
+186-0clang/unittests/Format/BracesInserterTest.cpp
+107-1clang/lib/Format/UnwrappedLineParser.cpp
+4-0clang/lib/Format/UnwrappedLineParser.h
+297-13 files

FreeBSD/src f3d13e0 — tests/sys/fs/tarfs tarfs_test.sh

tarfs: tests: Increase timeout (again)

Bump the timeout value (a little more), to avoid cutoff on emulated
architectures on ci.freebsd.org.

Reported by:    Jenkins
Fixes:          47015e454661 ("tests: Increase timeout")
MFC after:      3 days

(cherry picked from commit a551b0524953cbfa4f1035c6d968623e64f4436a)
DeltaFile
+1-1tests/sys/fs/tarfs/tarfs_test.sh
+1-11 files

FreeBSD/src 8976206 — tests/sys/fs/tarfs tarfs_test.sh

tarfs: tests: Increase timeout (again 2)

Bump the timeout value (for the third time), to avoid cutoff on emulated
architectures on ci.freebsd.org.  One of the runners will take
considerably more time to complete this test.

Reported by:    Jenkins
Fixes:          a551b0524953 ("tarfs: tests: Increase timeout (again)")
MFC after:      3 days

(cherry picked from commit a4f0a60e05293f3f517324f3ebc41046a79a9feb)
DeltaFile
+1-1tests/sys/fs/tarfs/tarfs_test.sh
+1-11 files

FreeBSD/src b308cbd — tests/sys/netpfil/pf rules_counter.sh

pf tests: give rules_counter:4G more time

Sponsored by:   Rubicon Communications, LLC ("Netgate")

(cherry picked from commit 8217075f9ecb12fa9a4cf746541b9d3e1dc57e79)
DeltaFile
+1-0tests/sys/netpfil/pf/rules_counter.sh
+1-01 files

FreeBSD/src b596b02 — tests/sys/fs/fusefs Makefile, tests/sys/fs/tarfs tarfs_test.sh

tests: Increase timeout

Bump the timeout value, to avoid cutoff on emulated architectures on
ci.freebsd.org.

Reported by:    Jenkins
Reviewed by:    ngie
MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D54550

(cherry picked from commit 47015e4546619151f9bff548a3758b72286d04ed)
DeltaFile
+1-1tests/sys/netpfil/pf/rules_counter.sh
+1-1tests/sys/mac/portacl/Makefile
+1-1tests/sys/kern/jailmeta.sh
+1-1tests/sys/geom/class/eli/reentrancy_test.sh
+1-1tests/sys/fs/tarfs/tarfs_test.sh
+1-1tests/sys/fs/fusefs/Makefile
+6-61 files not shown
+7-67 files

FreeBSD/src 95f994e — usr.sbin/makefs/tests makefs_zfs_tests.sh

makefs: tests: Double the timeout of ZFS file_extend test

The test makefs_zfs_tests:file_extend is timing out on ci.freebsd.org.
Double the default timeout to allow it to finish.

Reported by:    Jenkins
Reviewed by:    asomers
MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D54425

(cherry picked from commit 065f02174f76a49fbf537ee51ed8068d3d398b08)
DeltaFile
+6-0usr.sbin/makefs/tests/makefs_zfs_tests.sh
+6-01 files

FreeBSD/src ec5fcc7 — usr.sbin/makefs/tests makefs_zfs_tests.sh

makefs: tests: Double the timeout of ZFS compression test

The test makefs_zfs_tests:compression is timing out on ci.freebsd.org.
Double the default timeout to allow it to finish.

While here, check if the file exists before cleaning up, otherwise, cat
may fail.

Reported by:    Jenkins
Reviewed by:    asomers
MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D54424

(cherry picked from commit 9f28e92637e9a29124f407b74d7665a921865a53)
DeltaFile
+16-6usr.sbin/makefs/tests/makefs_zfs_tests.sh
+16-61 files

LLVM/project 21a4398 — clang/lib/AST ExprConstant.cpp, clang/lib/AST/ByteCode InterpBuiltin.cpp

[clang] Add __builtin_iseqsig (#244875)

Add the __builtin_iseqsig builtin that GCC provides for the C23
iseqsig macro. It takes two real floating-point arguments, with the
usual arithmetic conversions like the other comparison builtins
(__builtin_isless and friends), and returns whether they compare
equal. Unlike those builtins it is a signaling comparison, so emit it
with CreateFCmpS: a constrained fcmps when FP exceptions are modeled,
and a plain fcmp oeq otherwise, the same as ==.

When FP exceptions are modeled, don't constant fold it outside of a
constant context if an operand is a NaN, as for the comparison
operators, so that "invalid" is still raised.

Like GCC's builtin, it does not set errno. A C library can use it to
implement iseqsig when math_errhandling does not include MATH_ERRNO.

Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+73-0clang/test/CodeGen/builtin-iseqsig.c
+47-0clang/test/Sema/builtin-iseqsig.c
+13-1clang/lib/AST/ExprConstant.cpp
+13-0clang/lib/AST/ByteCode/InterpBuiltin.cpp
+11-0clang/test/CodeGen/fpconstrained-cmp-float.c
+11-0clang/test/CodeGen/fpconstrained-cmp-double.c
+168-16 files not shown
+203-812 files

LLVM/project 0db5011 — lld/MachO SectionPriorities.cpp, lld/test/MachO order-file.s

[lld/mac] Make order file handling look more like in the ELF port (#242735)

I made a PR to port #241470 to ELF (#242729). In doing so, I realized
that the ELF port's approach of getting symbols from the symbol table
and just local symbols from files is both faster (we don't need to
process symbols that make it into the symbol table many times) and more
correct (it allows handling symbols that aren't in any files, such as
alias symbols. Xcode's ld supports listing those in order_files. We used
to not support that, now we do). So switch to ELF's approach.

In a sense, ports #242729 back to MachO.

Linking Chromium Framework on an M4 Max, with Chromium's order file (5
symbols):

    "Sort segments and sections" (median of 7): 41 ms -> 31 ms
Total link (hyperfine, 15 runs): 4.022 s +- 0.046 s -> 4.016 s +- 0.037
s
    User time: 7.58 s -> 7.52 s

    [9 lines not shown]
DeltaFile
+24-10lld/MachO/SectionPriorities.cpp
+15-0lld/test/MachO/order-file.s
+39-102 files

LLVM/project 692e05a — lld/ELF Writer.cpp

[lld/ELF] Look up --symbol-ordering-file symbols in parallel (#242729)

This ports #241470 to ELF.

It uses parallelForEachFineGrained() though, something I'll port back to
MachO :)

Linking Chromium on an M4 Max, with a synthetic ordering file with 6
symbols:

    "Sort sections" time trace scope (median of 7): 108 ms -> 24 ms
    Total link (hyperfine, median of 15): 2.936 s -> 2.855 s

With a synthetic ordering file listing all 1.56M defined symbols of the
output:

    "Sort sections" time trace scope (median of 7): 467 ms -> 183 ms
    Total link (hyperfine, median of 15): 3.437 s -> 3.151 s

No behavior change.
DeltaFile
+35-22lld/ELF/Writer.cpp
+35-221 files

FreeBSD/src 97fd69b — stand/libsa environment.c

libsa add boot_serial to is_restricted_var allow list

NOTE: variables that get passed by boot_setenv() will not have '='
so for these we need to leave that out.
It doesn't matter much unless the variable we want to allow is
also a prefix for something we do not.

Sponsored by:   Hewlett Packard Enterprise Development LP

Reviewed by:    kevans, imp
Differential Revision:  https://reviews.freebsd.org/D61856
DeltaFile
+7-8stand/libsa/environment.c
+7-81 files

NetBSD/pkgsrc-wip a8ae5d5 — dma Makefile

dma: Change version comment to point to upstream PR
DeltaFile
+3-3dma/Makefile
+3-31 files

HardenedBSD/src 0bac72f — secure/lib/libcrypto/man/man3 ENGINE_add.3, secure/lib/libcrypto/man/man5 config.5

Merge remote-tracking branch 'rad/hardened/current/master' into hardened/current/pledge
DeltaFile
+140-150sys/dev/clk/clk_fixed.c
+7-141sys/netpfil/pf/pf_ioctl.c
+49-46secure/lib/libcrypto/man/man3/ENGINE_add.3
+59-11sys/sys/libkern.h
+34-35sys/x86/iommu/amd_intrmap.c
+34-31secure/lib/libcrypto/man/man5/config.5
+323-414766 files not shown
+6,348-4,122772 files

HardenedBSD/src cb41c91 — secure/lib/libcrypto/man/man3 ENGINE_add.3, secure/lib/libcrypto/man/man5 config.5

Merge branch 'freebsd/current/main' into hardened/current/master
DeltaFile
+140-150sys/dev/clk/clk_fixed.c
+7-141sys/netpfil/pf/pf_ioctl.c
+49-46secure/lib/libcrypto/man/man3/ENGINE_add.3
+59-11sys/sys/libkern.h
+34-35sys/x86/iommu/amd_intrmap.c
+34-31secure/lib/libcrypto/man/man5/config.5
+323-414766 files not shown
+6,348-4,122772 files

LLVM/project 2fcb2d3 — llvm/lib/Target/SPIRV SPIRVLegalizeResourceBinding.cpp SPIRVLowerResourceNames.cpp, llvm/test/CodeGen/SPIRV/hlsl-resources resource-names.ll

[hlsl][spirv] Dont emit string constants for resource names (#243531)

Resource intrinsics (handlefrombinding, handlefromimplicitbinding) take
const char * arguments which get lowered in backend into byte arrays in
the final spirv module. These should be ignored except to provide the
literal to OpName instructions.

Add a pass intentionally before SPIRVRemoveUnusedResources and
SPIRVLegalizeResourceBinding, which converts handle intrinsics to
variants taking a metadata arg for the name instead. This lets us avoid
emitting actual constants in the spirv, which requires int8 capability,
and simplifies, for example, string global removal in the unused
resources pass, and lowering of heap resources to handlefrombinding.

It would be preferable to emit these metadata variants from Clang, but
this is not currently possible due to handlefrombinding generation
taking place in generated initializers, eg __createFromBinding, so a
string arg must be passed initially.


    [2 lines not shown]
DeltaFile
+121-0llvm/lib/Target/SPIRV/SPIRVLowerResourceNames.cpp
+23-66llvm/lib/Target/SPIRV/SPIRVLegalizeResourceBinding.cpp
+65-0llvm/test/CodeGen/SPIRV/hlsl-resources/resource-names.ll
+53-0llvm/test/Transforms/EarlyCSE/SPIRV/resource-name-metadata.ll
+14-16llvm/test/CodeGen/SPIRV/pointers/structured-buffer-access.ll
+11-11llvm/test/CodeGen/SPIRV/passes/SPIRVLegalizeRegisterBinding-Heap.ll
+287-9328 files not shown
+414-16734 files

LLVM/project 96f70b1 — llvm/include/llvm/CodeGen MachineInstr.h, llvm/lib/CodeGen CalcSpillWeights.cpp MachineInstr.cpp

Move the later folding fixes to their own PRs

1d50fec74e60 added more fixes for folding inline asm register operands
to this PR. They're split into the PRs stacked on this one, one fix
each, to keep this one to the tied operand fix that was reviewed.

This reverts commit 1d50fec74e601c10811a0d58c37a392b2a1ba146.

Assisted-by: Claude Opus 5.5
DeltaFile
+48-197llvm/test/CodeGen/X86/greedy-inline-asm-fold.mir
+51-102llvm/lib/CodeGen/TargetInstrInfo.cpp
+0-100llvm/test/CodeGen/X86/peephole-inline-asm-fold.mir
+19-37llvm/lib/CodeGen/MachineInstr.cpp
+5-13llvm/lib/CodeGen/CalcSpillWeights.cpp
+2-9llvm/include/llvm/CodeGen/MachineInstr.h
+125-4584 files not shown
+130-47110 files

LLVM/project db31b5f — llvm/test/CodeGen/X86 greedy-inline-asm-fold.mir

Test a tie whose def moves when a folded operand is before it

Folding a "+rm" pair before a "+r" pair moves the "+r" pair's def, so
both ends of its tie get new indices. The other tests only moved the
use.

Assisted-by: Claude Opus 5.5
DeltaFile
+51-0llvm/test/CodeGen/X86/greedy-inline-asm-fold.mir
+51-01 files

LLVM/project 6f27fb1 — llvm/include/llvm/CodeGen MachineInstr.h, llvm/lib/CodeGen CalcSpillWeights.cpp MachineInstr.cpp

[CodeGen] Fix more hazards in folding inline asm register operands

Nothing in tree marks an inline asm operand foldable until #229632, so
these were found by a review of the stack rather than by tests:

- The spill weights took a register to be foldable into an asm if any one
  of its operands there was foldable, while the folder needs all of them
  to be. One value passed to an "rm" and an "r" operand could then get
  spilled, not folded, and reloaded into a register the asm didn't have.
  Add MachineInstr::mayFoldInlineAsmReg(), true if every operand of a
  register in an asm can be folded, and use it in the folder,
  CalcSpillWeights, and InlineSpiller.
- The folder now folds every operand of the register, including an undef
  use that InlineSpiller leaves out of the operands it passes, which was
  left behind still referring to the spilled register.
- InlineSpiller rematerialized a value passed to a foldable operand (e.g.
  a constant) into a register right before the asm, which the asm may not
  have had. It's spilled and folded instead.
- An asm that can fold a register no longer adds to the register's spill

    [18 lines not shown]
DeltaFile
+197-48llvm/test/CodeGen/X86/greedy-inline-asm-fold.mir
+101-50llvm/lib/CodeGen/TargetInstrInfo.cpp
+100-0llvm/test/CodeGen/X86/peephole-inline-asm-fold.mir
+38-20llvm/lib/CodeGen/MachineInstr.cpp
+13-5llvm/lib/CodeGen/CalcSpillWeights.cpp
+9-2llvm/include/llvm/CodeGen/MachineInstr.h
+458-1254 files not shown
+471-13010 files

LLVM/project 71185ac — llvm/lib/CodeGen TargetInstrInfo.cpp MachineInstr.cpp

Move folding register checks into mayFoldInlineAsmRegOp so that it's available everywhere.
DeltaFile
+9-0llvm/lib/CodeGen/MachineInstr.cpp
+1-7llvm/lib/CodeGen/TargetInstrInfo.cpp
+10-72 files

LLVM/project 1c7846b — llvm/test/CodeGen/X86 greedy-inline-asm-fold.mir

[TargetInstrInfo] Address review: autogenerate greedy-inline-asm-fold.mir checks

Generate the checks with update_mir_test_checks.py so that the spills and
reloads around each folded inline asm are verified, not just the INLINEASM
itself. Fix the "=r" comment to describe the C "+r" operand, note that which
"+rm" pair greedy folds is its own choice, and add a "+&rm" case on an
uninitialized value showing that folding a pair whose tied use is undef
stores to the slot without loading from it.

Assisted-by: Claude Opus 5.5
DeltaFile
+94-8llvm/test/CodeGen/X86/greedy-inline-asm-fold.mir
+94-81 files

LLVM/project 5f2ba1b — llvm/test/CodeGen/X86 greedy-inline-asm-fold.mir

[TargetInstrInfo] Address review: write the two-register flag symbolically

Now that the operand count of an inline asm flag can be written in MIR, use
"reguse:GR64 foldable ops:2" instead of an immediate whose register class ID
changes whenever a register class is added. Regenerate the checks, which
now print the five operands of each x86 memory reference as "ops:5".

Assisted-by: Claude Opus 5.5
DeltaFile
+10-12llvm/test/CodeGen/X86/greedy-inline-asm-fold.mir
+10-121 files

LLVM/project 45ee0ac — llvm/lib/CodeGen TargetInstrInfo.cpp, llvm/test/CodeGen/X86 greedy-inline-asm-fold.mir

[TargetInstrInfo] Address review: don't fold one register of a multi-register operand

A memory operand replaces exactly one register, so return nullptr for a
folded operand whose flag holds more than one, rather than relying on an
assert that release builds drop. Also assert that every folded operand
holds the same register, and say that a caller folding a def whose tied use
is another register must store that register's value into the slot.

Test both the new bail-out and folding a rematerialized load into two "rm"
operands, which takes the fold-a-load path.

Assisted-by: Claude Opus 5.5
DeltaFile
+72-0llvm/test/CodeGen/X86/greedy-inline-asm-fold.mir
+11-1llvm/lib/CodeGen/TargetInstrInfo.cpp
+83-12 files

LLVM/project e7463f2 — llvm/lib/CodeGen TargetInstrInfo.cpp, llvm/test/CodeGen/X86 greedy-inline-asm-fold.mir

[TargetInstrInfo] Fix folding inline asm operands next to tied operands

foldInlineAsmMemOperand() swapped a register operand for the target's
memory operands with MachineInstr::removeOperand(), which asserts when a
later operand is tied, because moving it would break the tie. Inline asm
lists every input after every output, so folding any operand that comes
before another tied pair asserted, e.g. an "rm" input followed by the
input of a "+r" operand, or one of two "+rm" operands. Without
assertions, the moved operands kept stale tie indices. Untie the
operands, rebuild the operand list, and re-tie the remaining pairs at
their new positions.

It also gave up when the register appears in more than one operand, e.g.
one value passed to two "rm" operands, which left the greedy allocator
unable to spill that value at all. Fold every such operand into the
stack slot.

Finally, take MayLoad from the folded operands rather than from every
read of the register: a folded def whose tied use is another virtual

    [9 lines not shown]
DeltaFile
+85-32llvm/lib/CodeGen/TargetInstrInfo.cpp
+108-0llvm/test/CodeGen/X86/greedy-inline-asm-fold.mir
+193-322 files

LLVM/project 2b8db1d — llvm/lib/CodeGen TargetInstrInfo.cpp

Include STLExtras.h for the range helpers

foldInlineAsmMemOperands uses is_contained, min_element, drop_begin,
and enumerate from STLExtras.h, which the file got only through other
headers.

Assisted-by: Claude Opus 5.5
DeltaFile
+1-0llvm/lib/CodeGen/TargetInstrInfo.cpp
+1-01 files

LLVM/project b2137c2 — llvm/lib/CodeGen TargetInstrInfo.cpp

Use drop_begin() for the operands after the first folded one

Assisted-by: Claude Opus 5.5
DeltaFile
+1-2llvm/lib/CodeGen/TargetInstrInfo.cpp
+1-21 files

LLVM/project 39c3bed — llvm/lib/CodeGen TargetInstrInfo.cpp

Update llvm/lib/CodeGen/TargetInstrInfo.cpp

Co-authored-by: Nick Desaulniers <ndesaulniers at google.com>
DeltaFile
+1-1llvm/lib/CodeGen/TargetInstrInfo.cpp
+1-11 files

LLVM/project 5ca1266 — llvm/include/llvm/CodeGen MachineInstr.h, llvm/lib/CodeGen MachineInstr.cpp

[TargetInstrInfo] Address review: don't fold a subregister that isn't at the start of the slot

A folded operand refers to the start of the stack slot, which holds the
whole register, so a subregister is only there if it's at bit offset 0 on a
little-endian target. Folding x86's sub_8bit_hi read byte 0 instead of byte
1. Folding several operands at once made this worse: two operands holding
different subregisters of one value (e.g. "Qm"(lo), "Qm"(hi)) both read
byte 0.

Check the subregister in mayFoldInlineAsmRegOp, so the spill weights agree
with what folds. A tied def is covered too, since its tied use has the same
subregister.

Assisted-by: Claude Opus 5.5
DeltaFile
+112-0llvm/test/CodeGen/X86/greedy-inline-asm-fold.mir
+11-0llvm/lib/CodeGen/MachineInstr.cpp
+2-1llvm/include/llvm/CodeGen/MachineInstr.h
+125-13 files

LLVM/project d68056c — llvm/include/llvm/IR InlineAsm.h, llvm/lib/CodeGen TargetInstrInfo.cpp MachineInstr.cpp

[MIR] Round-trip the "func" kind of inline asm operand flags (#237461)

An x86 inline asm call or jmp whose target is a function, given as a "p"
operand or as a "*m" operand that ISel turns into an address, gets a
flag of kind Func. Like a Mem flag, it carries a memory constraint. But
getKindName() returned "mem" for it, and the MIR printer printed the
constraint only for a Mem flag. So this:

  call void asm sideeffect "call ${0:P}", "p,~{dirflag},~{fpsr},~{flags}"(ptr @g)

was printed as:

  INLINEASM &"call ${0:P}", sideeffect attdialect, mem ops:5, target-flags(x86-plt) @g, 1, $noreg, 0, $noreg, ...

which parses back as a Mem flag with no constraint. Printing that again
hits llvm_unreachable, and the asm printer asserts in
PrintMemReference() instead of emitting "callq g at PLT".
MachineInstr::print() also printed the constraint as a register class
(e.g. "mem:GR8_NOREX").

    [8 lines not shown]
DeltaFile
+135-0llvm/unittests/Target/X86/InlineAsmOperandCommentTest.cpp
+38-0llvm/test/CodeGen/MIR/X86/inline-asm-func-kind.ll
+4-2llvm/include/llvm/IR/InlineAsm.h
+3-2llvm/lib/CodeGen/TargetInstrInfo.cpp
+3-2llvm/lib/CodeGen/MachineInstr.cpp
+2-1llvm/lib/CodeGen/MIRParser/MIParser.cpp
+185-72 files not shown
+187-88 files