[DA] Require `nsw` for AddRecs in the WeakCrossing SIV test (#185041)
Before the start of the algorithm in weak crossing SIV test, we need to
ensure both addrecs are `nsw`
grant SHARING_ADMIN ZFS resource RBAC privileges
The SHARING_ADMIN role requires ability to create but not
destroy ZFS datasets and zvols. This commit adds a new role
ZFS_RESOURCE_DELETE and changes it so that zfs.resource.destroy
requires this role as opposed to ZFS_RESOURCE_WRITE. This commit
also grants ZFS_RESOURCE_WRITE role to SHARING_ADMIN so that
RBAC contract isn't broken when UI transitions to new endpoints.
NAS-140462 / 26.0.0-BETA.2 / Include internal datasets in encrypted dataset queries for unlock (by Qubad786) (#18591)
## Problem
During pool unlock, TrueNAS container internal datasets are
unintentionally
filtered out and not included in the unlock process. As a result, these
datasets remain locked, leading to issues with container functionality.
## Solution
- Introduced a new flag in `pool.dataset.query` to control inclusion of
internal datasets.
- Updated the encrypted dataset unlock logic to use this flag during
recursive
unlock operations, ensuring that internal datasets are also unlocked.
Original PR: https://github.com/truenas/middleware/pull/18583
Co-authored-by: M. Rehan <mrehanlm93 at gmail.com>
clang: Reorder linker aux-triple handling
Move the IsCuda check out from the IsCuda || isHIP block. Keep
this from splitting the aux-triple handling for future convenience.
OS-8723 Expose virtio1 zone attribute via vmadm
Reviewed by: Nahum Shalman <nshalman at edgecast.io>
Reviewed by: Carlos Neira <cneira at edgecast.io>
Approved by: Nahum Shalman <nshalman at edgecast.io>
[MLIR][SparseTensor] Add #undef FAILURE_IF_FAILED and ERROR_IF (#188685)
Both DimLvlMapParser.cpp and LvlTypeParser.cpp define FAILURE_IF_FAILED
and ERROR_IF macros that are never undefined, which can leak into
subsequent translation units in unity builds. Add #undef at the end of
each file. See
https://discourse.llvm.org/t/rfc-enabling-unity-build/90306 for more
info.
"clauded" not coded
[MLIR][SparseTensor] Add missing #undef REMUI and DIVUI (#188686)
LoopEmitter.cpp and SparseTensorIterator.cpp define REMUI and DIVUI
macros but the existing #undef block at the end of each file omits them.
This can leak the macros into subsequent translation units in unity
builds. See https://discourse.llvm.org/t/rfc-enabling-unity-build/90306
for more info.
"clauded" not coded
[Clang] Fix constant bit widths in gpuintrin.h (#189387)
Summary:
The `ull` suffix can mean 128 bits on some architectures. Replace this
with the `stdint.h` constructor to be certain.
Reapply "[AMDGPU] Add HWUI pressure heuristics to coexec strategy (#184929)" (#189121)
Reland https://github.com/llvm/llvm-project/pull/184929 after fixing
some issues in the NDEBUG builds.
3a640ee is unchanged from the previously approved PR, the unreviewed
portion of this PR is 9cabd8d
[Clang] Improve scan in gpuintrin.h (#189381)
Summary:
Right now the scan checks to avoid the unspecified behavior in
`clzg(0)`. This is used as the source to the shuffle instruction, but
the argument is discarded at zero anyway. So, we simply pass unspecified
behavior to shuffle and then discard it. This should be fine. The scan
routines are expected to be optimal.
Also renames `sum` to `add`.
Track and propagate STANDBY ALUA state explicitly
Drive the STANDBY target group through OFFLINE -> TRANSITIONING ->
NONOPTIMIZED across the failover and standby_after_start lifecycle,
updating both nodes at each transition so RTPG responses are accurate
on whichever node an initiator queries. On reload, the current state
is consulted rather than hardcoding nonoptimized.
[lld][Hexagon] Fix out-of-range PLT branch thunks (#186545)
Linking large Hexagon binaries (e.g. ASan runtime with >8 MiB of text)
fails with R_HEX_B22_PCREL / R_HEX_PLT_B22_PCREL relocation overflow on
calls to PLT entries, even though the thunk infrastructure exists and
needsThunks is set.
needsThunk() always used s.getVA() to compute the branch destination,
even for PLT calls where the actual destination is the PLT entry. This
meant the distance check used the wrong address and failed to create
thunks when the PLT entry was out of B22_PCREL range.
Fix by using s.getPltVA() when expr == R_PLT_PC. Also override
getThunkSectionSpacing() so ThunkSections are pre-created at appropriate
intervals for large binaries.
[LLVMABI] Create ABI Utils (#185105)
This PR introduces `ABIFunctionInfo` and surrounding utility helpers,
and is part of the set of breakout PRs to upstream the LLVM ABI lowering
library prototyped in https://github.com/llvm/llvm-project/pull/140112.
`ABIFunctionInfo` is directly analogous to `CGFunctionInfo` from Clang's
existing CodeGen pipeline, and represents an ABI lowered view of the
function signature, decoupled from both the Clang AST and LLVM IR.
`ABIArgInfo` encodes lowering decisions and currently supports
Direct,Extend,Indirect and Ignore which are required for our initial
goal of implementing x86-64 SysV and BPF, but this will change as the
library grows to represent more targets that need them.
This PR is a direct precursor to the implementation of `ABIInfo` in the
library as demonstrated in the PR linked above..
Track and propagate STANDBY ALUA state explicitly
Drive the STANDBY target group through OFFLINE -> TRANSITIONING ->
NONOPTIMIZED across the failover and standby_after_start lifecycle,
updating both nodes at each transition so RTPG responses are accurate
on whichever node an initiator queries. On reload, the current state
is consulted rather than hardcoding nonoptimized.
[AMDGPU][TTI] Update cost model for transcendental instructions to be more precise (#189430)
Introduce `getTransInstrCost` instead of `getQuarterRateInstrCost` for transcendental ops
NAS-140462 / 27.0.0-BETA.1 / Include internal datasets in encrypted dataset queries for unlock (#18583)
## Problem
During pool unlock, TrueNAS container internal datasets are
unintentionally
filtered out and not included in the unlock process. As a result, these
datasets remain locked, leading to issues with container functionality.
## Solution
- Introduced a new flag in `pool.dataset.query` to control inclusion of
internal datasets.
- Updated the encrypted dataset unlock logic to use this flag during
recursive
unlock operations, ensuring that internal datasets are also unlocked.
[flang][OpenMP] Remove misplaced comment, NFC (#189449)
Remove the seemingly random comment listing clauses allowed on a DO
construct. The nearby code has nothing to do with clauses.