powerpc64: Fix disappearing low memory on radix MMU systems (POWER9)
The FreeBSD radix implementation piggybacks on the physical memory
allocation function from the HPT implementation, but did not share
the same state information for number of physical memory ranges.
This led to a situation where the HPT physical memory allocator
would attempt to shift the physical memory ranges in the shared
range table, but would use the wrong number of entries, thus
overwriting the large segment of low memory that should have been
available for e.g. 32-bit DMA.
Incorrect physical memory map:
real memory = 33997058048 (32422 MB)
available KVA = 34359619583 (32767 MB)
Physical memory chunk(s):
0x0000000000003000 - 0x0000000000002fff, 0 bytes (0 pages)
0x000000000000e000 - 0x000000000000ffff, 8192 bytes (2 pages)
0x0000000000094000 - 0x0000000000ffffff, 16171008 bytes (3948 pages)
[28 lines not shown]
[Analysis][NFC] Use EnumStrings for VecFuncs (#246605)
Currently, a VecDesc contains StringRefs, which cause dynamic
relocations. Port these to use compact EnumStrings storage instead. This
reduces the size of .data.rel.ro by ~108kiB.
sysutils/vm-bhyve-devel: Update to the latest commit
This commit includes initial support for vlanfilter switch. See also
upstream PR [1] for brief usage instructions.
This feature is still under development and has some rough edges. Its
behaviour may change, so please use it with caution.
[1] https://github.com/freebsd/vm-bhyve/pull/153
(cherry picked from commit 6081c967f77610933e72afdb1dea7e42e15ed02f)
sysutils/vm-bhyve-devel: Update to the latest commit
This commit includes initial support for vlanfilter switch. See also
upstream PR [1] for brief usage instructions.
This feature is still under development and has some rough edges. Its
behaviour may change, so please use it with caution.
[1] https://github.com/freebsd/vm-bhyve/pull/153
[Bazel] Remove unnecessary arm-specific select in BUILD (#246329)
and scope x86 BLAKE3 macros to local_defines. This limits defines
propagation to other targets.
- Drop BLAKE3_USE_NEON, dispatched at
llvm/lib/Support/BLAKE3/blake3_impl.h
- Move x86 BLAKE3_* into local_defines to prevent propagation.
ibcore: Avoid quadratic uverbs ID allocation
FreeBSD's LinuxKPI xa_alloc() starts at index zero for each allocation.
The per-file uverbs XArray holds protection domains, completion queues,
queue pairs, and memory regions. As the number of live objects grows,
each new handle probes all occupied lower IDs, making large connection
setups increasingly expensive.
Keep the optimization in the OFED uverbs caller: track the next candidate
ID in ib_uverbs_file, reserve under the XArray lock, and advance the
cursor on success. On a collision, search forward and wrap through the
32-bit handle space. Existing lookup, commit, erase, and destruction
paths are unchanged. Freed lower IDs are reused after wraparound.
Signed-off-by: Lewandowski, Rafal <rafal.lewandowski at intel.com>
Reviewed by: bartosz.sobczak_intel.com, kib
MFC after: 2 weeks
Sponsored by: Intel Corporation
Differential Revision: https://reviews.freebsd.org/D60405
misc/kimi-code: Update to 2.8.1
Read-only shell commands are approved on their own where the agent used
to ask for every one, and a new ask rule brings the prompt back.
Drops the experimental parameter that started a subagent with the
caller's conversation.
Changes:
https://github.com/MoonshotAI/kimi-code/releases
Sponsored by: Netzkommune GmbH
[ORC] Add SystemZ ABI for lazy call-through and indirect stub support (#235879)
This PR adds the OrcSystemZ ABI class with a resolver, trampolines, and
indirect stubs for lazy compilation on s390x. Register it in the
indirection utilities, the lazy call-through manager, and the compile
callback and stub manager factories.
Resolves: #231908
[Hexagon] Declare command line options in TableGen (#241871)
Move some cl::opts that the Hexagon CodeGen passes and subtarget read
into HexagonOptions.td. llvm-min-tblgen generates a HexagonOptions
struct from it, so the file-level cl::opt variables for these options
are gone. The default values are the same as before.
HexagonTargetMachine binds its copy of the struct once, from
MCTargetOptions::LibraryOptions. HexagonSubtarget takes the same
reference from its TargetMachine, and the passes read the values through
the subtarget. The struct is registered from
LLVMInitializeHexagonTarget().
A few options needed a different field type to keep their behavior:
- Options that were checked with getNumOccurrences() are std::optional
fields, such as hexagon-hvx-widen and shrink-frame-limit.
- Options where the code needs to know whether the user set a value
(enable-bsb-sched, hexagon-long-calls) are BoolOrDefault.
[30 lines not shown]
[CIR] Use one check for ignorable FP exceptions (#245985)
Speculation and lowering each decided on their own whether a constrained
operation can ignore floating-point exceptions, and they disagreed. An
operation with `fenv<strict_except = false>` was speculatable but
lowered to `fpexcept.maytrap`, and one with masked but strict exceptions
was not speculatable but lowered to `fpexcept.ignore`. `cir.vec.fcmp`
never folded a constrained comparison.
This adds `FenvAttr::canIgnoreExceptions()`, true when exceptions are
masked and not strict, and uses it in all three places:
- Speculation already used this condition and does not change.
- Lowering emits `fpexcept.ignore` when it holds, and otherwise
`fpexcept.strict` or `fpexcept.maytrap` by `strict_except`. Three
hand-written forms change: `fenv<strict_except = false>` goes from
maytrap to ignore, masked exceptions with `strict_except = true` from
ignore to strict, and unmasked or unknown exceptions without
`strict_except` from ignore to maytrap. The first changes an existing
[9 lines not shown]
IDS: refuse dropping alert logs to read-only users
Dropping an alert log deletes an archived log or empties the current
one, so like clearing a log (18e6cb5aee) it is now refused to a user
with user-config-readonly.
Assisted-by: Claude:claude-opus-5-5
Signed-off-by: Gennaro Cimmino <gcimmino at rayonra.net>
(cherry picked from commit 4bcc2067ee86e5142d0bccf907d5efc6f215854d)
Beginnings of IPI infrastructure for m68k. cpu_need_resched()
and cpu_signotify() need MP hooks, so relocate those to m68k_machdep.c.
cpu_need_proftick() gets relocated, too, so we can make some assertions.
Implementations cribbed from Alpha.
[AMDGPU][NFCI] Let novm operands be parsed and created
b9b7b31e2368 set AlwaysIgnoreNegative for exp_vm, so novm is
parsed and then dropped without producing an operand. This is not
needed, because vm is already an optional operand.
[X86] SimplifyMultipleUseDemandedBitsForTargetNode - skip unnecessary (VSRLI (VSHLI X, C1), C1) ZERO_EXTEND_INREG patterns (#246639)
If we're clearing the upper bits, but never demanding them, then skip
the shift-pair
Yak shaving for #245048
[AMDGPU] Defer S_WAITCNT_DEPCTR erasure and updates in expert mode (#246081)
A pre-existing S_WAITCNT_DEPCTR was erased, or had its VA_VDST and
VM_VSRC fields relaxed, as soon as the incoming state made those waits
look redundant. In a loop header that happens on the first visit, before
the backedge adds the instructions of the loop body. The wait is then
lost when the header is visited again with them pending.
Keep the original operand of every S_WAITCNT_DEPCTR, including
duplicates, while iterating to the fixed point, and only apply the final
encoding or erase the instruction at the end of the pass.
Assisted by: Claude Opus 5.5
netinet6: check for detached interface in ip6_output() #357
A TCP retransmit can reach ip6_output() after PPPoE teardown has
cleared the outgoing interface's IPv6 data. The first per-interface
statistics update then dereferences a NULL pointer.
Reuse the preliminary check from ip6_tryforward() in 5afe2ee0908.
Check the selected interface before the statistics update and return
EHOSTUNREACH if its address-family data is no longer initialized.
[CIR] Use the FP environment of a compound assignment for its conversions (#246035)
`ScalarExprEmitter::emitCompoundAssignLValue` emitted the conversions of
a compound assignment, from the left operand to the computation type and
back, without a `CIRGenFPOptionsRAII`. Under `#pragma STDC FENV_ACCESS
ON` the arithmetic was constrained but the conversions of `x *= 0.1` or
`i += x` got the default environment, and lowered to plain `fpext`,
`fptrunc`, `sitofp` and `fptosi` where classic codegen emits constrained
intrinsics.
Install the RAII with the features of the assignment after the left
operand is loaded, as classic codegen does.
Assisted-by: Claude Code (Fable 5.2).
mail/mutt: Move HCACHE_LMDB to devel/lmdb
- Change HCACHE_LMDB to devel/lmdb.
- See 0cea189105efe0/pkg info -D lmdb for migration of database files.
- Move PORTREVISION for portclippy.
PR: 300053