[Sparc][MC] Reject out-of-range %rN register names (#245110)
matchRegisterName only parsed the first two digits after "%r", so
"%r100" was accepted as %r10 (%o2), "%r145" as %r14 (%sp) and "%r310"
as %r31 (%i7). Parse the whole number instead.
GNU as rejects these names too.
Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
[mlir][nvgpu] Do not convert transfers masked by vector.mask to async copies (#238721)
`createAsyncGroups` checked the mask operand of a
`vector.transfer_write` but not an enclosing `vector.mask`. A
region-masked write was replaced in place, which dropped the mask and
left non-maskable ops inside the `vector.mask` region, failing
verification.
Reject transfers masked by `vector.mask`.
Found while auditing the `in_bounds` readers for #227821.
Part of #239511.
[orc-rt][ORC] Let controllers create SimpleNativeMemoryMaps (#245113)
Executors previously had to create a SimpleNativeMemoryMap up front and
publish it under an instance symbol. This commit adds a create
entrypoint, orc_rt_ci_sps_SimpleNativeMemoryMap_create, that constructs
a new instance, adds it to the calling Session as a Service, and returns
its address. Executors still decide whether SimpleNativeMemoryMap is
available, but controllers now decide whether to create instances, and
how many.
orc-rt changes:
* SimpleNativeMemoryMap's Create methods are replaced with a public
constructor, and its header no longer depends on the SPS controller
interface.
* sps::ci::addSimpleNativeMemoryMap adds the create entrypoint along
with the memory operations. It is still called from sps::ci::addAll.
* ogre no longer creates an instance, since sps::ci::addAll now
publishes the create entrypoint.
[14 lines not shown]
[mlir][acc] Translate the acc.offload_entry attribute to an offloading entry (#242809)
Add the acc.offload_entry unit attribute, which marks a global host
symbol (either a function or a global variable) that the offload runtime
must be able to associate with its device counterpart. The translation
emits entries that are registered with the OpenACC runtime libacctarget.
Assisted-by: Claude Sonnet 5.5
tpm: crb: Do not attach when no CRB interface answers
Some firmware describes a CRB TPM that is not there: a Protectli FW6
with coreboot 4.12 publishes a TPM2 table at 0xfed40000, but no PTT
answers and the Intel ME interface is absent too. Every register
reads all-ones, so attach failed only after 0.6 s of state timeouts,
with ready, idle and locality messages that hid the cause.
Check INTF_ID once, as tpm_tis12_probe() does for TPM 1.2.
Reviewed by: kbowling
Approved by: kbowling
MFC after: 1 week
Pull Request: https://ron-dev.freebsd.org/FreeBSD/src/pulls/128
[clang-repl] Use an in-memory main file and createTarget in CreateCI (#243830)
This PR simplifies how clang-repl sets up its compiler instance.
clang-repl needs an empty starting file, which was previously provided
through a heap-allocated buffer that leaked if nothing used it, so the
unit tests had to free it by hand. That file is now an empty in-memory
input that needs no cleanup, so the manual cleanup in the tests is
removed.
It also replaces the hand-written target setup with clang's existing
`createTarget()` helper.
Assisted by Claude Opus 5.5
Mk/Uses/kde.mk: Fix indents for pre-commit hooks
[pre-commit] ERROR: kde.mk is not properly indented -- please use /tmp/check_indentations-kde.mk.TaMU8uQEjL/kde.mk which was created using Tools/scripts/indent_make_if.pl
Fixes: 8facaa7b8b25 - Mk/*: Bring support for Plasma 6 LTS release
[mlir][acc] Translate #acc.offload_packager to LLVM IR (#242808)
Add a translation library for the OpenACC dialect that implements the
offloading translation interface of #acc.offload_packager. Each object
of a gpu.binary is wrapped in an offloading binary of kind OpenACC,
carrying the target triple and architecture, and the images are placed
in the .llvm.offloading section of the host module for the offloading
linker wrapper to extract.
Assisted-by: Claude Sonnet 5.5
CI: install the live ISO onto a blank disk and boot the installed system (#690)
* CI: install the live ISO onto a blank disk and boot the installed system
install-test (nextbsd/nextbsd#686) boots each live ISO in QEMU with a
blank 32 GB disk, runs the installer engine on it as Installer.app's
helper does (do-install.sh -d vtbd0), powers off, then boots the
installed disk alone and checks it. The file system is read off the
booted system: UFS installs are checked today, and the full ZFS layout
(pool NextBSD, the six datasets, bootfs, host ID, bectl) strictly as
soon as the ISO's engine installs ZFS. Both also check the login
account's home under /Local/Users, dsstatus and dspromote's
same-file-system rule; Desktop also checks WindowServer and loginwindow.
The harness pieces are assembled in tests/install-test.sh (no harness
change). The job runs on pushes, manual runs and PRs touching the
workflow, tests/ or build.sh, and is not in release's needs.
Co-Authored-By: Claude Opus 5.5 <noreply at anthropic.com>
[7 lines not shown]
[mlir][acc] Translate the acc.offload_entry attribute to an offloading entry
Add the acc.offload_entry unit attribute, which marks a global host symbol
(either a function or a global variable) that the offload runtime must be able
to associate with its device counterpart. The translation emits entries that
are registered with the OpenACC runtime libacctarget.
Assisted-by: Claude Sonnet 5.5
[mlir][acc] Translate #acc.offload_packager to LLVM IR
Add a translation library for the OpenACC dialect that implements the
offloading translation interface of #acc.offload_packager. Each object
of a gpu.binary is wrapped in an offloading binary of kind OpenACC,
carrying the target triple and architecture, and the images are placed
in the .llvm.offloading section of the host module for the offloading
linker wrapper to extract.
Assisted-by: Claude Sonnet 5.5
[mlir][acc] Add the #acc.offload_packager offloading handler (#242807)
Add an offloading handler attribute for gpu.module and gpu.binary that
is meant to embed the device images in the host object as LLVM
offloading binaries of kind OpenACC, for the offloading linker wrapper
to link and register with the OpenACC runtime.
Assisted-by: Claude Sonnet 5.5