Add <sys/cdefs.h> inclusion to a number of headers.
These are the last non-contrib headers that were using macros from
<sys/cdefs.h> but were not including it.
18303 pfexecd door thread pool grows without bound
Reviewed by: Bill Sommerfeld <sommerfeld at hamachi.org>
Reviewed by: Jason King <jason.brian.king+illumos at gmail.com>
Approved by: Robert Mustacchi <rm+illumos at fingolfin.org>
18302 libsecdb crashes on memory exhaustion due to unchecked allocations
Reviewed by: Bill Sommerfeld <sommerfeld at hamachi.org>
Reviewed by: Jason King <jason.brian.king+illumos at gmail.com>
Reviewed by: Toomas Soome <tsoome at me.com>
Approved by: Robert Mustacchi <rm+illumos at fingolfin.org>
Revert "Reland [PowerPC] improve performance on the isNan and !isNan function in case of -ffp-model=strict" (#214751)
the commit 7e1aba74a4f702dbd0b5c2ebc87f88dffb851b6e
cause following problem:
Commit
https://github.com/llvm/llvm-project/commit/7e1aba74a4f702dbd0b5c2ebc87f88dffb851b6e
moved setOperationAction(IS_FPCLASS, MVT::f32/f64, Custom) to an
unconditional block, causing all PPC targets — including
powerpc64-ibm-aix -m32 — to mark IS_FPCLASS as Custom. This exposed two
crashes when compiling compiler-rt/builtins for 32-bit AIX (-m32
-mcpu=pwr7):
Crash 1 — masks fcFinite/fcInf/fcInf|fcNan at -O2 (divdc3.c, muldc3.c)
At -O2, IS_FPCLASS nodes carry the nofpexcept flag. For mask 504
(fcFinite, from __builtin_isfinite under -ffp-model=strict) and mask 519
(fcInf|fcNan, injected post-legalize when SimplifySetCC transforms
[23 lines not shown]
[AMDGPU] Promote <2 x bfloat> select to i32 (#214598)
`select` on <2 x bfloat> has no operation action registered, so it
defaults to Expand. The vector legalizer scalarizes it into two 16-bit
selects, which are promoted to i16 and selected as a pair of
V_CNDMASK_B16 plus shifts and a repack to reassemble the result on
targets without true16.
AMDGPU/GlobalISel: Legalize BF16 for FP math opcodes (#214059)
Make the BF16 form of G_FCONSTANT legal.
Widen BF16 G_FADD, G_FMUL, G_FMA, and G_FCANONICALIZE to F32.
Revert "release: Ship firmware from kmods repo on DVD"
This was a good idea, but we don't build metapackages in the kmods
repo so it ends up breaking the release build. I might resurrect this
change if/when the kmods repo includes the wifi-firmware-kmod
metapackage.
This reverts commit bda8028146694ee490543b35e3349e060936fde4.
MFC after: 1 second
Approved by: re (cperciva)
(cherry picked from commit ca0cff79320d49d3f10bd3aa3c472fa450a5c494)
(cherry picked from commit daf81f32f834f8619dceca745758983ccc767866)
Revert "release: Ship firmware from kmods repo on DVD"
This was a good idea, but we don't build metapackages in the kmods
repo so it ends up breaking the release build. I might resurrect this
change if/when the kmods repo includes the wifi-firmware-kmod
metapackage.
This reverts commit bda8028146694ee490543b35e3349e060936fde4.
MFC after: 1 second
(cherry picked from commit ca0cff79320d49d3f10bd3aa3c472fa450a5c494)
Revert "release: Ship firmware from kmods repo on DVD"
This was a good idea, but we don't build metapackages in the kmods
repo so it ends up breaking the release build. I might resurrect this
change if/when the kmods repo includes the wifi-firmware-kmod
metapackage.
This reverts commit bda8028146694ee490543b35e3349e060936fde4.
MFC after: 1 second
(cherry picked from commit ca0cff79320d49d3f10bd3aa3c472fa450a5c494)
Revert "release: Ship firmware from kmods repo on DVD"
This was a good idea, but we don't build metapackages in the kmods
repo so it ends up breaking the release build. I might resurrect this
change if/when the kmods repo includes the wifi-firmware-kmod
metapackage.
This reverts commit bda8028146694ee490543b35e3349e060936fde4.
MFC after: 1 second
sys/socket.h: Fix AF_MAX
AF_MAX was always intended to be one more than the greatest allocated
value. Jeff broke this in 2013. Unfortunately, a bunch of people then
decided to adapt to the mistake instead of correcting it.
Fixes: 863c7e45628d (" - Reserve a special AF for SDP. The one we were incorrectly using before was taken by another AF.")
MFC after: 3 days
Sponsored by: Klara, Inc.
Sponsored by: NetApp, Inc.
Reviewed by: kevans, glebius
Differential Revision: https://reviews.freebsd.org/D58597
(cherry picked from commit ddd850aa7720f77b6605599655df898b16ed74cc)
sys/socket.h: Fix AF_MAX
AF_MAX was always intended to be one more than the greatest allocated
value. Jeff broke this in 2013. Unfortunately, a bunch of people then
decided to adapt to the mistake instead of correcting it.
Fixes: 863c7e45628d (" - Reserve a special AF for SDP. The one we were incorrectly using before was taken by another AF.")
MFC after: 3 days
Sponsored by: Klara, Inc.
Sponsored by: NetApp, Inc.
Reviewed by: kevans, glebius
Differential Revision: https://reviews.freebsd.org/D58597
(cherry picked from commit ddd850aa7720f77b6605599655df898b16ed74cc)
[clang-tidy][docs] Note MISRA/AUTOSAR checks are not accepted (#214661)
Checks that directly reference MISRA/AUTOSAR are not accepted for
legal/license reasons. Generic overlapping checks without such links
remain fine.
Fixes #160940
[offload] Use pinned memory for KLE
Reduce kernel launch latency by using the fast path "pinned host memory
-> device memory" for submitting the kernel launch environment to the
device.
Claude assisted with this patch.
[offload] Pool host and shared allocations
Route them through a memory manager, like the device allocations. Also,
move the registration as pinned memory to the plugin site since only the
plugin knows if the corresponding host/shared memory is pinned.
Improves performance of affected allocations by ballpark 1,000x.