LLVM/project 7deea9dllvm/lib/Target/AMDGPU SIInsertWaitcnts.cpp

[AMDGPU] Move WaitcntBrackets::simplifyXcnt near other simplify functions. NFC. (#178673)

DeltaFile
+21-21llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp
+21-211 files

LLVM/project 99e63bbllvm/lib/CodeGen ExpandIRInsts.cpp, llvm/test/CodeGen/AMDGPU fptoi.i128.ll

[ExpandIRInsts] Improve variable naming

Improve naming of variables/blocks, both in the code and the
generated IR.
DeltaFile
+161-161llvm/test/Transforms/ExpandIRInsts/X86/expand-large-fp-convert-fptoui129.ll
+161-161llvm/test/Transforms/ExpandIRInsts/X86/expand-large-fp-convert-fptosi129.ll
+104-104llvm/test/Transforms/ExpandIRInsts/X86/expand-fp-convert-small.ll
+60-60llvm/test/CodeGen/AMDGPU/fptoi.i128.ll
+48-43llvm/lib/CodeGen/ExpandIRInsts.cpp
+534-5295 files

LLVM/project e2abf01clang/include/clang/Analysis/Analyses/LifetimeSafety Loans.h Facts.h, clang/lib/Analysis/LifetimeSafety FactsGenerator.cpp Checker.cpp

Revisit handling moved origins
DeltaFile
+32-24clang/lib/Analysis/LifetimeSafety/FactsGenerator.cpp
+37-9clang/lib/Analysis/LifetimeSafety/Checker.cpp
+40-1clang/include/clang/Analysis/Analyses/LifetimeSafety/Loans.h
+26-9clang/lib/Sema/AnalysisBasedWarnings.cpp
+24-0clang/include/clang/Analysis/Analyses/LifetimeSafety/Facts.h
+12-11clang/lib/Analysis/LifetimeSafety/LifetimeSafety.cpp
+171-5413 files not shown
+253-9419 files

FreeBSD/doc 3d22e69shared contrib-additional.adoc

Add a contributor to the list
DeltaFile
+1-0shared/contrib-additional.adoc
+1-01 files

LLVM/project 25f6470lldb/source/Plugins/Process/FreeBSD NativeProcessFreeBSD.cpp NativeRegisterContextFreeBSD_x86_64.h, lldb/source/Plugins/Process/FreeBSDKernel RegisterContextFreeBSDKernel_i386.cpp ProcessFreeBSDKernel.h

[lldb] [Process/FreeBSD] [Process/FreeBSDKernel] Run clang-format (#178676)

Signed-off-by: Minsoo Choo <minsoochoo0122 at proton.me>
DeltaFile
+2-1lldb/source/Plugins/Process/FreeBSD/NativeProcessFreeBSD.cpp
+1-1lldb/source/Plugins/Process/FreeBSDKernel/RegisterContextFreeBSDKernel_i386.cpp
+1-1lldb/source/Plugins/Process/FreeBSDKernel/ProcessFreeBSDKernel.h
+1-1lldb/source/Plugins/Process/FreeBSD/NativeRegisterContextFreeBSD_x86_64.h
+1-1lldb/source/Plugins/Process/FreeBSD/NativeRegisterContextFreeBSD_arm64.h
+1-1lldb/source/Plugins/Process/FreeBSD/NativeProcessFreeBSD.h
+7-66 files

LLVM/project 79cd919llvm/lib/MC MCObjectFileInfo.cpp

Fix order of includes
DeltaFile
+1-1llvm/lib/MC/MCObjectFileInfo.cpp
+1-11 files

FreeBSD/src d203bd9sys/compat/freebsd32 freebsd32_misc.c, sys/sys ucred.h

freebsd32_setcred: Copy all of the setcred fields individually

This is the more typical style used in compat syscalls.  Modern
compilers are smart enough to coalesce multiple member assignments
into a bulk copy.

Reviewed by:    olce, brooks
Obtained from:  CheriBSD
Sponsored by:   AFRL, DARPA
Differential Revision:  https://reviews.freebsd.org/D53757

(cherry picked from commit f7ab908244e50c8c8edf314424c860e34ea3d7e9)
DeltaFile
+8-4sys/compat/freebsd32/freebsd32_misc.c
+0-2sys/sys/ucred.h
+8-62 files

FreeBSD/src 4b89fb6sys/compat/freebsd32 freebsd32_misc.c, sys/sys ucred.h

freebsd32_setcred: Copy all of the setcred fields individually

This is the more typical style used in compat syscalls.  Modern
compilers are smart enough to coalesce multiple member assignments
into a bulk copy.

Reviewed by:    olce, brooks
Obtained from:  CheriBSD
Sponsored by:   AFRL, DARPA
Differential Revision:  https://reviews.freebsd.org/D53757

(cherry picked from commit f7ab908244e50c8c8edf314424c860e34ea3d7e9)
DeltaFile
+8-4sys/compat/freebsd32/freebsd32_misc.c
+0-2sys/sys/ucred.h
+8-62 files

FreeBSD/src 52864a4sys/compat/freebsd32 freebsd32_misc.c, sys/kern kern_prot.c

setcred: Move initial copyin of struct setcred out to per-ABI syscall

This is the more typical approach used in the tree for system calls
with per-ABI structure layouts.

Reviewed by:    olce, brooks
Obtained from:  CheriBSD
Sponsored by:   AFRL, DARPA
Differential Revision:  https://reviews.freebsd.org/D53756

(cherry picked from commit 6292eecfd95c78abc1ab14f20ceaa507ab9c636a)
DeltaFile
+17-35sys/kern/kern_prot.c
+16-2sys/compat/freebsd32/freebsd32_misc.c
+2-2sys/sys/ucred.h
+35-393 files

FreeBSD/src 7a1a4f1sys/kern kern_prot.c, sys/security/mac mac_syscalls.c mac_syscalls.h

MAC: Use the current thread's user ABI to determine the layout of struct mac

This removes mac_label_copyin32() as mac_label_copyin() can now handle
both native and 32-bit struct mac objects.

Reviewed by:    olce, brooks
Obtained from:  CheriBSD
Sponsored by:   AFRL, DARPA
Differential Revision:  https://reviews.freebsd.org/D53755

(cherry picked from commit 134d00bd2c910cc7cc21c11fba093ff82bbb9344)
DeltaFile
+5-20sys/security/mac/mac_syscalls.c
+1-8sys/security/mac/mac_syscalls.h
+1-6sys/kern/kern_prot.c
+7-343 files

FreeBSD/src 2fc26b2sys/dev/cxgbe/tom t4_tls.c t4_cpl_io.c

cxgbe tom: Send auxiliary TLS work requests as raw WR mbufs

In particular, the work request to update the TCB state when switching
from plain TCP to TLS is now queued on the connection's offload
transmit queue rather than over the per-port control queue.

This also handles an unlikely edge case that a connection does not
have sufficient credits to transmit other work requests synchronously
such as programming the key in on-card memory or altering TCB fields.

Reviewed by:    np
Sponsored by:   Chelsio Communications
Differential Revision:  https://reviews.freebsd.org/D47763

(cherry picked from commit d869395ac4bd248da7c5bdc67afb19ca89fbeeee)
DeltaFile
+27-29sys/dev/cxgbe/tom/t4_tls.c
+22-14sys/dev/cxgbe/tom/t4_cpl_io.c
+2-0sys/dev/cxgbe/tom/t4_tom.h
+51-433 files

FreeBSD/src 507dc6csys/dev/cxgbe/tom t4_ddp.c t4_tom.h

cxgbe tom: Export alloc_raw_mbuf for use in other TOE drivers

Reviewed by:    np
Sponsored by:   Chelsio Communications
Differential Revision:  https://reviews.freebsd.org/D47762

(cherry picked from commit a7aab22d2bf36191baa646fc136ca020dad209f3)
DeltaFile
+1-1sys/dev/cxgbe/tom/t4_ddp.c
+1-0sys/dev/cxgbe/tom/t4_tom.h
+2-12 files

FreeBSD/src bde291csys/dev/cxgbe/tom t4_cpl_io.c t4_tls.c

cxgbe tom: Support sending "raw" WR mbufs on plain TCP and TLS sockets

This is intended to support control work requests that manipulate
connection state but do not transmit data.  Raw WRs are transmitted
immediately if possible, otherwise they are queued to an mbufq in the
toe pcb until sufficient credits are available.  Raw WRs take
precendence over transmitting socket data.

Reviewed by:    np
Sponsored by:   Chelsio Communications
Differential Revision:  https://reviews.freebsd.org/D47761

(cherry picked from commit e2a2a7581c9663a08b8d92a34040d6fcdfc20816)
DeltaFile
+85-0sys/dev/cxgbe/tom/t4_cpl_io.c
+13-0sys/dev/cxgbe/tom/t4_tls.c
+2-0sys/dev/cxgbe/tom/t4_tom.h
+100-03 files

FreeBSD/src 4df8a30sys/dev/cxgbe/cxgbei icl_cxgbei.c, sys/dev/cxgbe/iw_cxgbe qp.c

cxgbe tom: Halve the size of offload transmit software descriptors

Use bitfields to pack tx_credits and plen into a single 32-bit word.

Reviewed by:    np
Sponsored by:   Chelsio Communications
Differential Revision:  https://reviews.freebsd.org/D47759

(cherry picked from commit 5a38857684907c52982787dbac2c5e5c8abfd4f8)
DeltaFile
+16-0sys/dev/cxgbe/tom/t4_cpl_io.c
+5-2sys/dev/cxgbe/tom/t4_tom.h
+4-0sys/dev/cxgbe/tom/t4_tls.c
+2-0sys/dev/cxgbe/iw_cxgbe/qp.c
+2-0sys/dev/cxgbe/tom/t4_tom.c
+2-0sys/dev/cxgbe/cxgbei/icl_cxgbei.c
+31-26 files

FreeBSD/ports e724055games/opengfx distinfo Makefile

games/opengfx: update: 7.1 -> 8.0

ChangeLog:      https://github.com/OpenTTD/OpenGFX/compare/7.1...8.0
PR:             292789

Sponsored by:   tipi.work
DeltaFile
+3-3games/opengfx/distinfo
+1-1games/opengfx/Makefile
+4-42 files

LLVM/project 58ca5afllvm/lib/MC MCObjectFileInfo.cpp, llvm/test/CodeGen/SystemZ zos-dwarf.ll

[GOFF] Add emission of debug sections

This PR adds the definition of the debug sections for emission into
GOFF files. Currently, there is no debugger available which supports
all the sections. However, they all must defined to avoid regression
in LIT test cases.
DeltaFile
+61-0llvm/lib/MC/MCObjectFileInfo.cpp
+31-0llvm/test/CodeGen/SystemZ/zos-dwarf.ll
+92-02 files

FreeBSD/src 4af3e6ctools/build make.py

cross-build make.py: Permit specifying cross toolchains by a package name

Add a --cross-toolchain option whose value is a package name.  This is
currently only supported with brew on macOS.  A sample invocation is
`--cross-toolchain=llvm at 19`.

Differential Revision:  https://reviews.freebsd.org/D51741

(cherry picked from commit 81fc74fd26da2f75c3010595db7a706c3e28d95b)
DeltaFile
+30-10tools/build/make.py
+30-101 files

FreeBSD/src 244f794tools/build make.py

cross-build make.py: Handle lld brew packages on macOS

Homebrew uses separate packages for llvm and lld starting with llvm19.
To handle this case automatically, pass the binary_name to
default_cross_toolchain() and only use the automatic path for a given
binary if the binary is found in the path (not just if the directory
exists).  Add a second clause for ld.lld that looks for a lld package
if lld wasn't found in the llvm directory.

Note that manually specifying the path cannot use a single
--cross-bindir option.  Instead, XLD must be manually set in addition
to --cross-bindir when requesting a specific version.

Reviewed by:    arichardson
Differential Revision:  https://reviews.freebsd.org/D51653

(cherry picked from commit e68d702b3a1fc52145e70d861db89a0f20bfc3a0)
DeltaFile
+30-12tools/build/make.py
+30-121 files

FreeBSD/src f3ab969sys/dev/pci pci_iov.c pci_iov_private.h

pci_iov: Support dynamic subordinate bus growth during VF creation

Certain SR-IOV devices enumerate Virtual Functions (VFs) on a different
PCIe bus than their parent Physical Function (PF).  In such cases, the
default subordinate bus range assigned by BIOS may be insufficient to cover
all VFs.

This patch dynamically expands the subordinate bus range by:
- Allocating additional bus numbers using bus_alloc_resource() when VFs are
  initialized
- Releasing the reserved bus range during VF deletion via
  bus_release_resource()

Reviewed by:    jhb

(cherry picked from commit f7951799877c16cb901be1acc8d6643f0693cec4)
DeltaFile
+21-4sys/dev/pci/pci_iov.c
+2-0sys/dev/pci/pci_iov_private.h
+23-42 files

FreeBSD/src fa8f3d3tools/boot rootgen.sh

tools/boot/rootgen: Remove stray zfsboot1 from ZFS + MBR + UEFI function

This was copy-pasted from the ZFS + MBF + BIOS function, but without
the corresponding code to extract zfsboot1 from /boot/zfsboot via
dd(1).  It's also not necessary since UEFI booting doesn't make use of
BSD label boot blocks (note the lack of any -b option to mkimg when
generating the BSD partition in mk_nogeli_mbr_ufs_uefi()).

Reviewed by:    imp, emaste
Differential Revision:  https://reviews.freebsd.org/D51544

(cherry picked from commit e958bc1c13377767d9b2cf87d072d923aa3d482a)
DeltaFile
+1-1tools/boot/rootgen.sh
+1-11 files

FreeBSD/src 5fce28csys/dev/cxgbe/crypto t6_kern_tls.c

cxgbe nic TLS: Correct IPv6 payload length

Sponsored by:   Chelsio Communications

(cherry picked from commit 54f8c44ecf4a28a649d75ad6d0daaf3206ae9247)
DeltaFile
+6-3sys/dev/cxgbe/crypto/t6_kern_tls.c
+6-31 files

FreeBSD/src aee8d42sys/dev/cxgbe/crypto t6_kern_tls.c

cxgbe nic TLS: Fix requests with 8 bytes of immediate data padding

Requests whose immediate data do not end on a 16-byte boundary are
padded with zeroes before the next WR command.  Since ULP commands are
8 byte aligned, if there are more than 8 bytes of padding, the
immediate data is padded with zeroes up to an 8 byte boundary and the
last 8 bytes contain a ULP NOOP command.

In the case of exactly 8 bytes of padding, the result should be that
no zeroes are inserted, only the ULP NOOP.  However, the code was
actually inserting 8 bytes of zero padding followed by the ULP NOOP
causing the following real command to be misaligned.  Fix this by
skipping the zero padding if there exactly 8 padding bytes.

Reported by:    Sony Arpita Das @ Chelsio
Sponsored by:   Chelsio Communications

(cherry picked from commit 2befd06588325c541d400fcc4915a1adfd1c7d17)
DeltaFile
+5-3sys/dev/cxgbe/crypto/t6_kern_tls.c
+5-31 files

FreeBSD/src d0e6d75contrib/kyua/utils/fs directory.cpp, contrib/kyua/utils/logging operations.cpp

kyua: Don't pass NULL to std::unique_ptr<>::reset()

No functional change, this is simply more idiomatic.

Reviewed by:    olce, emaste
Differential Revision:  https://reviews.freebsd.org/D50091

(cherry picked from commit d61c8bca8648fa6dfa89bd5c7dc75726a2740c15)
DeltaFile
+5-5contrib/kyua/utils/process/child.cpp
+3-3contrib/kyua/utils/signals/interrupts.cpp
+3-3contrib/kyua/utils/signals/timer.cpp
+2-2contrib/kyua/utils/process/executor.cpp
+1-1contrib/kyua/utils/logging/operations.cpp
+1-1contrib/kyua/utils/fs/directory.cpp
+15-156 files

FreeBSD/src 7982c36contrib/kyua/utils/process child.cpp

kyua: Don't pass NULL to unique_ptr constructors

This is ambiguous when NULL is defined to an integral constant.
Instead, use the more iodiomatic pattern of {} to construct a default
pointer.

Reviewed by:    olce
Differential Revision:  https://reviews.freebsd.org/D50090

(cherry picked from commit 26d4ac7a2725c0ab2d536c402fc0185fe7afed85)
DeltaFile
+2-2contrib/kyua/utils/process/child.cpp
+2-21 files

FreeBSD/src 09d09e2contrib/kyua/utils/config nodes.cpp, contrib/kyua/utils/process child_test.cpp child.cpp

kyua: Switch from std::auto_ptr<> to std::unique_ptr<>

A few places were assigning auto_ptr<>s depending on the ownership
handoff.  These now use an explicit std::move() as required by
unique_ptr<>.

Reviewed by:    ngie, emaste
Differential Revision:  https://reviews.freebsd.org/D49790

(cherry picked from commit b392a90ba4e5ea07d8a88a834fd102191d1967bf)
DeltaFile
+22-22contrib/kyua/utils/process/child_test.cpp
+13-13contrib/kyua/utils/process/child.cpp
+9-9contrib/kyua/utils/config/nodes.cpp
+9-9contrib/kyua/utils/signals/interrupts.cpp
+7-7contrib/kyua/utils/process/child.hpp
+4-4contrib/kyua/utils/process/child.ipp
+64-6435 files not shown
+122-12541 files

LLVM/project f37bf0cclang/lib/Basic/Targets RISCV.h, clang/test/CodeGen ext-int-cc.c

Revert "[RISCV] Support RISCV BitInt larger than 128 (#175515)" (#178311)

This reverts commit e3156c531da5aa4ec604605ed4e19638879d773c.

We need to resolve a crash on trunk and LLVM 22. Reverting makes it
easier to backport.

Fixes #176637.
DeltaFile
+850-5,393llvm/test/CodeGen/RISCV/fpclamptosat.ll
+0-2,175llvm/test/CodeGen/RISCV/bitint-fp-conv-200.ll
+36-218clang/test/CodeGen/RISCV/bitint.c
+0-4clang/lib/Basic/Targets/RISCV.h
+0-2llvm/lib/Target/RISCV/RISCVISelLowering.cpp
+2-0clang/test/CodeGen/ext-int-cc.c
+888-7,7926 files

FreeBSD/src f4973f9contrib/atf/atf-c++ check_test.cpp check.cpp, contrib/atf/atf-c++/detail process_test.cpp

atf: Switch from std::auto_ptr<> to std::unique_ptr<>

This mirrors upstream commit f053ab687f6e27aa264f599ecbfc5ef27ad4e2d3.

Reviewed by:    emaste
Differential Revision:  https://reviews.freebsd.org/D49789

(cherry picked from commit 5e6befdaca5194a8fb91b48d5f678942f22fa8f1)
DeltaFile
+11-11contrib/atf/atf-c++/check_test.cpp
+4-4contrib/atf/atf-c++/detail/process_test.cpp
+4-4contrib/atf/atf-sh/atf-check.cpp
+0-4libexec/atf/atf-check/Makefile
+2-2contrib/atf/atf-c++/check.cpp
+2-2contrib/atf/atf-c++/check.hpp
+23-274 files not shown
+23-3810 files

FreeBSD/src 82e0343contrib/lutok stack_cleaner.hpp, lib/liblutok Makefile

lutok: Switch from std::auto_ptr<> to std::unique_ptr<>

This mirrors upstream commit bd5904144c9778a07685f3e4efa6ef011a5480ec.

Reviewed by:    igoro, imp, emaste
Differential Revision:  https://reviews.freebsd.org/D49788

(cherry picked from commit 25f2634a1f4b27c9804b705e85bc104a2eac67b9)
DeltaFile
+0-4lib/liblutok/Makefile
+1-1contrib/lutok/stack_cleaner.hpp
+1-52 files

FreeBSD/src 239fd18usr.sbin/ctladm ctladm.8 ctladm.c

ctladm: portlist -i lists target and initiator names rather than addresses

Sponsored by:   Chelsio Communications

(cherry picked from commit 8206fcc5ef82a0e0518ed5e3a011ef38893b3eb6)
DeltaFile
+2-2usr.sbin/ctladm/ctladm.8
+1-1usr.sbin/ctladm/ctladm.c
+3-32 files

FreeBSD/src 3b622bdusr.sbin/ctladm ctladm.c

ctladm: Use nvlist instead of home-rolled name-value lists

Reviewed by:    asomers
Sponsored by:   Chelsio Communications
Differential Revision:  https://reviews.freebsd.org/D48774

(cherry picked from commit 4dfc2553c3732b142fd6122f223971419e359799)
DeltaFile
+55-72usr.sbin/ctladm/ctladm.c
+55-721 files