[CUDA][clang] Remove parenthesized #pragma unroll warning (#244791)
nvcc accepts both `#pragma unroll N` and `#pragma unroll (N)` and
generates identical code, and the CUDA C++ Programming Guide
documents the parenthesized form.
The `-Wcuda-compat` warning matched pre-CUDA-8.0 `nvcc` behavior, when
the unroll factor had to be a literal. CUDA 8.0 added support for integral
constant expressions, so the warning is obsolete.
Assisted-By Claude
[mlir][vector] Allow single-element strided load/store in LLVM lowering (#241579)
The verifier allows a non-unit stride in the most minor memref dim when
`vector.load`/`vector.store` accesses a single element. The LLVM
lowering still asserts unit stride, so this crashes
`-convert-vector-to-llvm`:
```mlir
func.func @f(%m: memref<4xf32, strided<[3]>>, %i: index) -> vector<1xf32> {
%0 = vector.load %m[%i] : memref<4xf32, strided<[3]>>, vector<1xf32>
return %0 : vector<1xf32>
}
```
This patch moves the verifier condition into
`vector::isValidLoadStoreMemRefLayout` and uses it in both places, so
they cannot diverge again.
Fixes #239720
drm/amd/display: remove duplicated prev_p_state_change_support assignment
From Melissa Wen
dc95f03eb15ce2ef5d5a2e84acd90788bf1ccba6 in linux-6.18.y/6.18.65
11e8f72b09a6a3c0950b9558abd37559dd098698 in mainline linux
drm/amd/display: assign missing trace entry in amdgpu_dm_dc_clocks_state
From Melissa Wen
0b79819d925c9357bd9138e9c5f75b03c6fd5214 in linux-6.18.y/6.18.65
ec167063dbf9fc66dc1364b6f9dd220c6742edeb in mainline linux
drm/amdgpu/userq: fix reading the WPTR at a non-zero BO offset
From Jesse Zhang
cef7ee11e45c54ac06710f0d990ecd7d4cac5ed2 in linux-6.18.y/6.18.65
c7ae3b2043282da8de92bd925c8f6bb614633181 in mainline linux
drm/amdgpu/userq: use drm_exec in amdgpu_userq_fence_read_wptr
From Sunil Khatri
a645c6f241162fde8a42af19e3562c80d772fb51 in linux-6.18.y/6.18.65
3aab50410653fe7eb35eb6f9c2b27e3549ab09e6 in mainline linux
drm/amdgpu/userq: need to unref bo
From David (Ming Qiang) Wu
496f0c0c60ec62802b0f13b393871eb81b1d0869 in linux-6.18.y/6.18.65
b665f29a2f93a266183dc8cd5d732f203157613b in mainline linux
[AMDGPU][AsmParser] Pre-commit tests for v_pk_fmac_f16 fp inline constants. NFC (#245422)
Add GFX11/GFX12/GFX13 MC tests for v_pk_fmac_f16 with fp literal tokens
that are f16 inline constants (0.5, -1.0), a non-inlinable fp value
(1.5), an integer literal (0x3800), and an explicit lit(0.5). The check
lines reflect current behavior, where 0.5 and -1.0 are encoded as 32-bit
literals.
Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
drm/amdgpu/atom: bound the VBIOS date, part number, version and build getters
From Hari Mishal
7c806bd9403535e8f7e8d266728fa82073e5f741 in linux-6.18.y/6.18.65
aee05c455ad3e72df9a0591baf0b60da518800f3 in mainline linux
audio/sound-firmware-cirrus: New port
Firmware for the Cirrus Logic smart speaker amplifiers found behind the
HDA codec of some laptops: the DSP program (wmfw) and the per-amplifier
tuning files (bin) that the snd_cs35l54(4) driver downloads at attach.
The files come from linux-firmware and are installed as raw files under
/boot/firmware/cirrus/, where firmware(9) loads them on demand.
The cs35l54 flavor covers the CS35L54 platforms listed in
linux-firmware, such as the HP ZBook Ultra G1a.
Reviewed by: manu, christos
Pull Request: https://ron-dev.freebsd.org/FreeBSD/ports/pulls/20
secure: Add ssh-sk-client to all consumers of libssh
These all failed to link with ld.bfd used by GCC due to
Fssh_sshsk_sign being an unresolved symbol.
Fixes: 65d8491719bb ("secure: Adapt Makefile to ssh-sk-client everywhere")
(cherry picked from commit a098111a28ed59e1ab1101ad09913f0235ebd28f)
drm/amdgpu: bounds check ATOM IIO table parsing
From Lijo Lazar
226a362f0dbb9046cf19082a9df99a0e6733a55e in linux-6.18.y/6.18.65
be88697602238c3dcb47bbc2db1eef923f63e78b in mainline linux
drm/amdgpu: Print full vbios info
From Lijo Lazar
1aefcbe6f20e8aa9b5112aab2c2b5ab8cb0c7472 in linux-6.18.y/6.18.65
4fd7b724a87a4051401ee2ed64c26c9249582040 in mainline linux
drm/amd: Add correct prefix for VBIOS message
From Mario Limonciello
f6008ac99237993362b96384cd3b944af5206d0f in linux-6.18.y/6.18.65
e6c7ebeaba4080562e71a59a788ac90b41e09240 in mainline linux
[clang-format] Fix InsertBraces rebinding an else in a preprocessor branch (#239414)
Don't insert braces around a body ending in an `if` whose `else` may
appear in a preprocessor branch skipped in the current formatting pass.
Inserting those braces can attach the `else` to a different `if` or
leave it without a matching `if`.
Fixes #239332.
drm/amd/pm: bound SCLK FCW range entries to the table size
From Hari Mishal
5ad40ed9d6888cc4828808cf49bdf58ec5f48290 in linux-6.18.y/6.18.65
f35aa5c77f5fca20fc269d6221df19c7b96704a5 in mainline linux
tarfs: tests: Increase timeout (again)
Bump the timeout value (a little more), to avoid cutoff on emulated
architectures on ci.freebsd.org.
Reported by: Jenkins
Fixes: 47015e454661 ("tests: Increase timeout")
MFC after: 3 days
(cherry picked from commit a551b0524953cbfa4f1035c6d968623e64f4436a)
tarfs: tests: Increase timeout (again 2)
Bump the timeout value (for the third time), to avoid cutoff on emulated
architectures on ci.freebsd.org. One of the runners will take
considerably more time to complete this test.
Reported by: Jenkins
Fixes: a551b0524953 ("tarfs: tests: Increase timeout (again)")
MFC after: 3 days
(cherry picked from commit a4f0a60e05293f3f517324f3ebc41046a79a9feb)
pf tests: give rules_counter:4G more time
Sponsored by: Rubicon Communications, LLC ("Netgate")
(cherry picked from commit 8217075f9ecb12fa9a4cf746541b9d3e1dc57e79)
drm/amd/display: Reset DET of HUBPs without a plane before outstanding updates
From Roman Li
f7426011a30947397fd49cf6ac482efc782640aa in linux-6.18.y/6.18.65
f3afbf7d832ab138655afc96bd42226775d03ce7 in mainline linux
makefs: tests: Double the timeout of ZFS file_extend test
The test makefs_zfs_tests:file_extend is timing out on ci.freebsd.org.
Double the default timeout to allow it to finish.
Reported by: Jenkins
Reviewed by: asomers
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D54425
(cherry picked from commit 065f02174f76a49fbf537ee51ed8068d3d398b08)
makefs: tests: Double the timeout of ZFS compression test
The test makefs_zfs_tests:compression is timing out on ci.freebsd.org.
Double the default timeout to allow it to finish.
While here, check if the file exists before cleaning up, otherwise, cat
may fail.
Reported by: Jenkins
Reviewed by: asomers
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D54424
(cherry picked from commit 9f28e92637e9a29124f407b74d7665a921865a53)
drm/amdgpu: don't walk the CS chunks when allocating them failed
From Jesse Zhang
e3be92649ed377d41b1687a84139fc17f335c21f in linux-6.18.y/6.18.65
ade92d50aad6799a5a9d7e73cd1604fd0576e656 in mainline linux
[clang] Add __builtin_iseqsig (#244875)
Add the __builtin_iseqsig builtin that GCC provides for the C23
iseqsig macro. It takes two real floating-point arguments, with the
usual arithmetic conversions like the other comparison builtins
(__builtin_isless and friends), and returns whether they compare
equal. Unlike those builtins it is a signaling comparison, so emit it
with CreateFCmpS: a constrained fcmps when FP exceptions are modeled,
and a plain fcmp oeq otherwise, the same as ==.
When FP exceptions are modeled, don't constant fold it outside of a
constant context if an operand is a NaN, as for the comparison
operators, so that "invalid" is still raised.
Like GCC's builtin, it does not set errno. A C library can use it to
implement iseqsig when math_errhandling does not include MATH_ERRNO.
Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
drm/amdgpu/userq: wait for GPU reset before mapping or unmapping queues
From Prike Liang
901615891d4046d379bd579e536e2ccba395b84f in linux-6.18.y/6.18.65
623507b8f4fe24851b2f1cb2c177f8ae3c8584b8 in mainline linux
[lld/mac] Make order file handling look more like in the ELF port (#242735)
I made a PR to port #241470 to ELF (#242729). In doing so, I realized
that the ELF port's approach of getting symbols from the symbol table
and just local symbols from files is both faster (we don't need to
process symbols that make it into the symbol table many times) and more
correct (it allows handling symbols that aren't in any files, such as
alias symbols. Xcode's ld supports listing those in order_files. We used
to not support that, now we do). So switch to ELF's approach.
In a sense, ports #242729 back to MachO.
Linking Chromium Framework on an M4 Max, with Chromium's order file (5
symbols):
"Sort segments and sections" (median of 7): 41 ms -> 31 ms
Total link (hyperfine, 15 runs): 4.022 s +- 0.046 s -> 4.016 s +- 0.037
s
User time: 7.58 s -> 7.52 s
[9 lines not shown]