tests/sys/file: add tests for the lowest fd after fork
fdcopy() skips plain kqueues and close-on-fork descriptors when it
copies the table into the child. Check that dup(2) in the child still
returns the lowest unused descriptor, both when the skipped descriptor
is the lowest free slot and when it sits above an existing hole.
Test cases:
kqueue_no_hole a plain kqueue is the lowest descriptor; the
child's dup() reuses its slot
kqueue_two two adjacent plain kqueues; the child's dup()
returns the lower one
kqueue_above_hole a plain kqueue sits above a closed descriptor;
the child's dup() returns the hole
kqueue_cponfork a KQUEUE_CPONFORK kqueue is copied; the child's
dup() returns the next slot
clofork_no_hole an O_CLOFORK descriptor is the lowest one; the
child's dup() reuses its slot
[14 lines not shown]
[libc] Return the written character from putc, fputc and putchar on baremetal and gpu (#240248)
Follow-up to #239980, which changed the generic implementations to
return the character written as an unsigned char converted to int, as C
requires, and updated the shared tests to expect it. The baremetal and
gpu implementations still returned zero.
Each of the six functions now returns `static_cast<int>(uc)` on success.
Assisted-by: Claude
[CIR] Emit no-trapping-math and stack-protector-buffer-size function attribute (#234029)
Mirror classic codegen's `getDefaultFunctionAttributes` by setting
`"no-trapping-math"` (when FP exceptions are ignored) and
`"stack-protector-buffer-size"` on function definitions and
declarations. Both are lowered to LLVM IR through the `passthrough`
attribute array, since `llvm.func` has no dedicated fields for them.
Most changes are related to testing.
---------
Co-authored-by: Claude Opus 5.5 (1M context) <noreply at anthropic.com>
drm/amdgpu/powerplay: Align get_tonga_state_array() header with prototype
From Srinivasan Shanmugam
34bdda87c1890b18f0dc40211ec755e392168c6c in linux-6.18.y/6.18.61
4986757d3207383c052689532e505edccc6df7c8 in mainline linux
drm/amdgpu/uvd3.1: Fix checking whether UVD firmware keyselect was already set
From Timur Kristof
b97686f158517c81b3936ac28b987cbdaf0b7f8e in linux-6.18.y/6.18.61
800ea86e83e137395eba54103e5c459c2bc9965f in mainline linux
drm/amd/display: guard dc_sink dereferences in MST mode validation
From Hari Mishal
5684a6c24c0d7c40ef2c4ccb3e4a64cffe76a791 in linux-6.18.y/6.18.61
217f64f348c90cba62164e7ff38e0ccf78a5ca09 in mainline linux
drm/amdgpu/gmc12: properly pass flush_type to gmc_v12_0_flush_vm_hub()
From Alex Deucher
81a1c7eba334786aed6806a29699bd284fc12029 in linux-6.18.y/6.18.61
0bfb1bfc82e8fa386d4fad1caa5812b6afafa626 in mainline linux
drm/amdgpu: remove gart_window_lock usage from gmc v12
From Pierre-Eric Pelloux-Prayer
84cc155bf4cd4ab518bb91b517c1b760b0de6c04 in linux-6.18.y/6.18.61
c79cf5a7d903a16459846b4296fc3cd988837c54 in mainline linux
drm/amd/display: Fix fast updates on DCE 6.x
From Timur Kristof
bdb5784531b2148f00a5ff5df0fc61bceebf4525 in linux-6.18.y/6.18.61
88427119e1f039c8cdffd63726c136a986ef519f in mainline linux
drm/amdkfd: Avoid integer underflow in EOP ring size calculation.
From David Francis
3c97f7cb6c48826663648b6081b614c2befc8ac7 in linux-6.18.y/6.18.61
8ee521b8b189799e361d4233c5180ba56656d4d4 in mainline linux
devel/got: update to 0.130.1
User-visible changes:
- default to using SHA256 object IDs in newly created repositories
The got-portable-0.130 release accidentally skipped some commits
from got 0.130.
(cherry picked from commit 734848d93cd26f5028d7fbc57e2d0b31a27bf9d2)
devel/got: Cherry-pick patches for shared locking
When operating on a worktree, got locks the tree in order to avoid
problems with concurrent operations. Until now, got always used
exclusive locks, which caused problems when e.g. two separate parts
of the FreeBSD release build ran 'got tree' at once.
This has been fixed upstream but the 15.2 release cycle needs the
changes urgently and can't wait for the next got-portable release,
so cherry-pick those patches.
Reviewed by: naddy
Sponsored by: Amazon
MFC after: 1 minute
Differential Revision: https://reviews.freebsd.org/D61327
(cherry picked from commit 31363b8551ac3b98eb991be84e7c8b2f8c5aaabf)
devel/got: update to 0.130
User-visible changes:
- default to using SHA256 object IDs in newly created repositories
(cherry picked from commit bacaa99e545873d253f31dc46f3b70da9356b749)
drm/amdkfd: Avoid integer underflow with ffs in EOP ring size calc
From David Francis
9e8f43579f849fba0dd1059160f50bd44a767366 in linux-6.18.y/6.18.61
c883d0a132d430ef7ebb23fd94323be94d0fbdb8 in mainline linux
drm/amdkfd: Guard m->cp_hqd_eop_control setting by q->eop_ring_buffer_size
From Xiaogang Chen
2f16636913db49afa65d36324cc8187c76e0b567 in linux-6.18.y/6.18.61
8cd2ea7bab77b7aa087b1a6cc26d2df03c2a6ed9 in mainline linux
drm/amd/pm: fix gpu metrics energy accumulator for smu 13.0.0/13.0.7
From Kevin Wang
6ba19e15b3e17f0493ec7f8cd4a1c2bbf4e6ba1e in linux-6.18.y/6.18.61
13ddcc7acb9adbed7627e952a61d1d62cd9546fc in mainline linux
drm/amd/display: Remove const Qualifier From Non-Pointer Fields
From Austin Zheng
18c77e2bd13c3dadeb3c88b475fa75d3dfc3878d in linux-6.18.y/6.18.61
93a77d353cb26772ae2fba50ae7321ae996b7f00 in mainline linux
drm/amd/display: add const qualifiers to watermark params struct
From Wenjing Liu
ebc73f622313ff50bff23baa20db85936105b02f in linux-6.18.y/6.18.61
dd2308c1d007d7a3416c02e542abdc6acc23966d in mainline linux
drm/amd/display: Update P-state naming for clarity.
From Austin Zheng
04a1c2898d4713d36225328dbf02737006c8506d in linux-6.18.y/6.18.61
e44ee152a5ea8ee1b5f5440a754a9fd17639f230 in mainline linux