LinuxKPI: pci: implement pci_clear_and_set_config_dword()
Implement pci_clear_and_set_config_dword() as a combination of
read and write config_dword. Note while the read function returns
an error value its current implementation can never fail so we do
not have to deal with the error case.
This is needed by an rtw89 update.
MFC after: 3 days
Reviewed by: dumbbell
Differential Revision: https://reviews.freebsd.org/D60687
LinuxKPI: add field_get() and FIELD_GET_SIGNED()
An updated rtw89 driver uses both so add them with the added
__FIELD_GET() not doing any extra checks. We assume the Linux
counterpart will do that and drivers will fail them there, so
no need to add assertions here.
MFC after: 3 days
Reviwed by: dumbbell
Differential Revision: https://reviews.freebsd.org/D60716
LinuxKPI: firmware: ensure name stays valid
The name argument passed into request_firmware_nowait() may only be
valid locally in the calling function and could be out of scope by the
time the task runs; make a copy to ensure it stays valid over the
callback.
MFC after: 3 days
Reviewed by: dumbbell
Differential Revision: https://reviews.freebsd.org/D60630
LinuxKPI: add spinlock_bh guard support
We will likely have to add more DEFINE_LOCK_GUARD_1 cleanup.h
defintions for various lock types. Add the one for spinlock_bh
as a wireless driver update needs it.
MFC after: 3 days
Reviewed by: dumbbell
Differential Revision: https://reviews.freebsd.org/D60631
LinuxKPI: rework cleanup.h to use CLASS
After adding DEFINE_CLASS and CLASS in f2a2e02ae54b to cleanup.h
cleanup that file some from the original implementation:
- Rename CLEANUP_NAME to LKPI_CLASS_NAME to (a) match the CLASS
implementation idea and (b) tell it is an internal macro and not
a LinuxKPI one.
- consistently use LKPI_CLASS_NAME() rather than doing multiple ##.
- consistently use _constructor and _destructor instead of _create
and _destroy.
- consistently use _name instead of _n and _type instead of _t; the
latter helps a lot to keep the typedef _type LKPI_CLASS_NAME(_name, _t)
apart.
- With this the former DECLARE now matches CLASS so remove the former
in favour of the latter.
- With this DEFINE_GUARD() can now be implemented as a single
LINUXKPI_]DEFINE_CLASS() call.
- In guard() and scoped_guard() start using __UNIQUE_ID() which was
added in 8b05d84be9e28 rather than manually using ## __COUNTER__.
[7 lines not shown]
vtnet_ctrl_announce_ack_cmd: Remove busdma
This function was added after busdma was added to vtnet, but there
were bugs in the busdma functionality and that got backed out. The
busdma bits need to be stripped from vtnet_ctrl_announce_ack_cmd as
well.
Direct commit to releng/15.2.
PR: 301485
Reviewed by: adrian
Approved by: re (cperciva)
Differential Revision: https://reviews.freebsd.org/D62436
net-p2p/go-ethereum: Update 1.17.10 => 1.17.11
This is a maintenance release with a number of performance improvements
and have Amsterdam scheduled on Hoodi. Hoodi node operators should
upgrade before December 15, 2026 at 19:12:24 UTC (timestamp 1797361944,
epoch 143616).
Changelog:
https://github.com/ethereum/go-ethereum/releases/tag/v1.17.11
PR: 301486
MFH: 2026Q4
icmp6: re-derive rth after the second m_pullup in icmp6_notify_error
The routing-header pullup may reallocate the mbuf. rth still points
into the old one and is used to read ip6r_nxt.
Reviewed by: markj
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D62410
textproc/rubygem-asciidoctor-revealjs: New port
Asciidoctor.reveal.js is a converter for Asciidoctor and Asciidoctor.js
that transforms an AsciiDoc document into an HTML5 presentation designed
to be executed by the reveal.js presentation framework.
WWW: https://github.com/asciidoctor/asciidoctor-reveal.js
PR: 295937
x11-wm/leftwm: Disable journald-log feature
The leftwm binary is built with default log feature using journald,
which is for Linux (using systemd), but for FreeBSD it needs to be
built with sys-log (or file-log) feature.
PR: 301488, 292926
MFH: 2026Q4
(cherry picked from commit ef516f80a9d38008ba142cd900ae505113ebacf5)
rtld: add unwind info to the 32-bit powerpc trampolines
_rtld_bind_start and _rtld_bind_secureplt_start set up a stack frame but
don't tell the unwinder about it, so a backtrace taken in the binder
stops there.
Approved by: jhibbits (blanket)
Fixes: 78599c32efed ("Add CFI start/end proc directives to arm64, i386, and ppc")
rtld: keep FP and vector registers out of the C code on 32-bit powerpc
clang expects __tls_get_addr() to preserve the floating-point and vector
registers, and _rtld_bind_start only saves the integer ones. When lib32
is built for a CPU with AltiVec or VSX, the first TLS access in a
dlopen()ed library clobbers vs0, v2 and v3 in the caller, because
clang vectorizes rtld's memset() and memcpy().
Build the 32-bit rtld without AltiVec, VSX and hard float, like the
64-bit one.
Approved by: jhibbits (blanket)
administration: glebius and pstef to bugmeister
This matches what we did in organization.dot in the src tree.
While here, document linimon as the lead matching other teams entries.
x11-wm/leftwm: Disable journald-log feature
The leftwm binary is built with default log feature using journald,
which is for Linux (using systemd), but for FreeBSD it needs to be
built with sys-log (or file-log) feature.
PR: 301488, 292926
MFH: 2026Q4
powerpc/powernv: clear the OPAL async completion flag after use
When the heartbeat picks up an async completion, it marks the token as
completed. opal_wait_completion() never cleared that mark, so the next
request made with the same token could get the old message back while
firmware was still working on the new one.
The mark is cleared when a token is allocated, so only callers that
reuse a token are affected. opal_flash does that for every block, but
firmware finishes flash requests before the call returns.
Reported by: llm-postcr
Approved by: jhibbits (blanket)
MFC after: 1 week
devel/llvm-apple: upgrade to 6.4.3 and disable i386
I got a warning from portscout that it doesn’t build i386. We don’t
need i386 support, so we can drop it.
Differential Revision: https://reviews.freebsd.org/D62420
graphics/shaderc: Unbreak after unflavorization of glslang
glslc and libshaderc_shared.so.1 try to link in libglslang.so and
libSPIRV.so, which are now installed along with their static parts. So
we need to add glslang to LIB_DEPENDS instead of BUILD_DEPENDS.
PR: 301481
Reported by: Bruno Damour <bruno at ruomad.net>, dim
Tested by: Bruno Damour <bruno at ruomad.net>, dim
Co-authored-by: Dimitry Andric <dim at FreeBSD.org>