[ARM][NFC] Add tests for bf16 vector calling convention (#242825)
In preparation for
- https://github.com/llvm/llvm-project/pull/224867
Pin down the calling convention for bf16 on arm, especially when `bf16`
is not available natively and the fallback mechanism is used.
I've also included a test that PR adds that on other targets caught a
bug with how bf16 was handled. Arm gets it right already, but we may as
well test for it explicitly.
[flang][acc] Scalarize firstprivate array descriptors. (#246157)
Extend ACCOptimizeFirstprivateMap to scalarize read-only, known-rank
array descriptors. Read lower bounds, extents, and byte strides before
the offload region and rebuild the descriptor with fir.create_box inside
it. Use a null base when consumers do not require the base address;
otherwise, retain the original descriptor load to extract the device
base. Add tests for both cases to the existing pass test.
Assisted-by: Codex
Release check: ask the API with the token, and reject drafts itself
The unauthenticated releases API is rate limited per runner IP. In run
45708823276 every try got 403 although continuous-server was public,
so the job failed and continuous-desktop never published.
Co-Authored-By: Claude Opus 5.5 <noreply at anthropic.com>
Add the truesearch.status event
The event sends what truesearch.status returns: on subscribe, on each
change in the indexer's status, and every 5 seconds while a pass runs.
Middleware holds one indexer subscription for all subscribers, so the
event takes no argument. While the indexer is down or refuses, it polls
every 5 seconds.
Each dataset's status gains progress and last_pass.
nd6: Do not make SLAAC addresses usable with ifdisabled
Setting TENTATIVE was what made these addresses unusable, because
TENTATIVE is part of IN6_IFF_NOTREADY.
keep setting TENTATIVE in nd6_timer() and nd6_ioctl() to not making
them usable.
Reported by: llm-postcr
Fixes: c7cd7e7fad57 ("nd6: Add support for Optimistic DAD (RFC 4429)")
Differential Revision: https://reviews.freebsd.org/D55229
rtnetlink: Fix IFA_F_PERMANENT and IFA_F_DADFAILED flags
in6_flags_to_nl() sets IFA_F_PERMANENT/IFA_F_DADFAILED flags on
the function argument, not nl_flags, so netlink never reports them.
Reported by: llm-postcr
Fixes: 30d0fc6f3391 ("netlink: export more IPv6 ifa info")
MFC after: 3 days
[SLP] Use costing to decide between Strided Loads and Compressed Loads (#235944)
For small vectors with small strides, the vectorized load can be
represented as either a stride or a masked compress. Rather than
preferentially choose compression, decide based on the relative costs.
Relands #226540.
dnode_sync: Relax constraint on indirect freeing
One of the roles of the dnode sync thread is freeing. There are two
modes of this operation: freeing a portion of an object, and freeing
the object itself.
Freeing is handled by `free_children()`. This function verifies that
if the dnode has children there must be at least one marked as dirty
before proceeding to recursively free the tree of block pointers.
As described in a comment, this VERIFY is overly strict. In practice,
children may not be marked as dirty when the dnode itself is being
freed. Relax the VERIFY slightly by avoiding the VERIFY when indirect
blocks are to be immediately freed, to more closely match the comment
motivating the VERIFY.
While here, clarify the logic of the test by using VERIFY_IMPLY instead
of chaining multiple tests.
[9 lines not shown]
libsysdecode: Avoid non-portable \> word end boundary in mktables
Whilst we bootstrap our own sed when building on non-FreeBSD, it uses
the system regex(3) implementation, and so inherits its extensions, not
our own. Our implementation and glibc's both include this extension to
POSIX, but macOS's does not, and so even with our bootstrap sed we
cannot use the \> extension when built and run on macOS.
Unfortunately, there is no alternative form we can use; whilst macOS
implements [[:>:]] as an extension that provides this same feature, and
so do we, the regex(3) implementation in glibc does not, and the only
alternative glibc offers is \b, which neither us nor macOS implement.
We could make the form used conditional on the OS, but that starts to
get messy once other Linux libcs enter the picture, which in theory we
somewhat support.
Rewrite both uses to avoid the need for \>. For gen_table, use a pattern
to match the identifier that is precisely the (non-extended) C99
[27 lines not shown]
sound: Unlock the channel when chn_reset() fails in dsp_chn_alloc()
If chn_reset() fails, dsp_chn_alloc() returns with the channel lock
held, dsp_open() calls dsp_close() as part of its cdevpriv error path,
and this causes both a mutex recursion on the channel lock in
dsp_close(), as well a lock order reversal.
Approved by: re (cperciva)
Fixes: 02d4eeabfd73 ("sound: Allocate vchans on-demand")
Reported by: llm-postcr
MFC after: Immediately
Sponsored by: The FreeBSD Foundation
Reviewed by: markj
Differential Revision: https://reviews.freebsd.org/D61793
(cherry picked from commit 01a8cd5ebe9368fd115fb5060bcb1e60d1bbdf1f)
(cherry picked from commit 55b89b7b529f1c37a749adadb11aba4f8e9e51ca)
snd_dummy: Do not use dummy_chan_io() as mpu401's interrupt handler
dummy_chan_io() runs with sc->lock held, but mpu401 calls its handler
from a callout with no mutex associated with it, so writing to the MIDI
device node caused a panic.
Give mpu401 its own handler, and leave MIDI to mpu401's timer instead of
the PCM callout.
Approved by: re (cperciva)
Fixes: e963472ef853 ("snd_dummy: Initial MIDI support")
Sponsored by: The FreeBSD Foundation
(cherry picked from commit c8d1c94741231d95964b91910880769019478854)
(cherry picked from commit 5541489df676c9723cac2d665bb4e6705cc3ce53)
snd_uaudio: Fix the MIDI TX round-robin
Nothing advances curr_cable, so umidi_bulk_write_callback() only
services cable 0, which is a problem on MIDI devices with more than one
jack.
Approved by: re (cperciva)
Fixes: 039477d3e7e7 ("snd_uaudio: Simplify chan->curr_cable calculation in uaudio_bulk_write_callback()")
Sponsored by: The FreeBSD Foundation
MFC after: 1 day
(cherry picked from commit f58613868b50dfd6c2adc7128ea60d7b276fdbf1)
(cherry picked from commit 6f80968093eccb5f9de1cfffd5a45c2163b605b4)
snd_uaudio: Do not touch mixer_lock when there is no mixer
Using the mixer lock unconditionally panics because the lock is
uninitialized on devices with no audio interfaces, for instance
MIDI-only keyboards.
Approved by: re (cperciva)
Fixes: 9a00e0b8ca56 ("snd_uaudio: Do not use snd_mixer->lock as mixer_lock")
MFC after: 3 days
Sponsored by: The FreeBSD Foundation
Reviewed by: markj
Differential Revision: https://reviews.freebsd.org/D61506
(cherry picked from commit dabd959b17597ad790327020a667ced9a05d7499)
(cherry picked from commit 682a7750f6c07bc367e573fc9fdfa90eb8e5bf9f)
syscons: let VT_WAITACTIVE wait for a vty that was never opened
VT_WAITACTIVE slept on the target vty's scr_stat, which exists only
once something has opened the vty. Since 8aefdd25a3 (bug #2481) a
NULL scr_stat makes it return 0 at once, so waiting for an unopened
vty reported it as active right away.
Do as FreeBSD's syscons: compare the vty index with the current one
and sleep on a per-index channel, &sc->dev[i], which exists whether
or not the vty was opened. The switch code wakes that channel.
Bug: https://bugs.dragonflybsd.org/issues/3472
Reviewed-by: @dillon
[GlobalISel] Preserve cache hint metadata through IRTranslator (#224522)
Preserve cache hint metadata when lowering from IR to gMIR. Supports
loads/stores atomic loads/stores, atomicrmw, cmpxchg, memcpy, memmov,
and memset and target memory intrinsics.