<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/sys/i386, branch main</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=main</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=main'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2026-04-01T11:15:42Z</updated>
<entry>
<title>pmap: Do not use PMAP_LOCK_INIT with kernel_pmap</title>
<updated>2026-04-01T11:15:42Z</updated>
<author>
<name>Mark Johnston</name>
<email>markj@FreeBSD.org</email>
</author>
<published>2026-04-01T09:15:26Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=c6a1c1260f02e44b7f44b1e3735ce5dbd785544d'/>
<id>urn:sha1:c6a1c1260f02e44b7f44b1e3735ce5dbd785544d</id>
<content type='text'>
The kernel_pmap lock is a bit special: it does not need the DUPOK flag,
and it really belongs to a different lock class.  If it belongs to the
same class as regular pmap locks, then witness may report warnings when
performing UMA allocations under a regular pmap lock, if the allocation
triggers a pmap_growkernel() call.

Replace instances of PMAP_LOCK_INIT(kernel_pmap) with inline mtx_init()
calls to silence some witness warnings for harmless behaviour I see with
some uncommitted test programs.

Reviewed by:	alc, kib
MFC after:	2 weeks
Differential Revision:	https://reviews.freebsd.org/D56185
</content>
</entry>
<entry>
<title>routing: Retire ROUTE_MPATH compile option</title>
<updated>2026-03-27T20:25:33Z</updated>
<author>
<name>Pouria Mousavizadeh Tehrani</name>
<email>pouria@FreeBSD.org</email>
</author>
<published>2026-03-27T11:20:05Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=254b23eb1f540844cf2a90f2781ae4231c5701ce'/>
<id>urn:sha1:254b23eb1f540844cf2a90f2781ae4231c5701ce</id>
<content type='text'>
The ROUTE_MPATH compile option was introduced to
test the new multipath implementation.
Since compiling it has no overhead and it's enabled
by default, remove it.

Reviewed by:	melifaro, markj
Relnotes:	yes
Differential Revision: https://reviews.freebsd.org/D55884
</content>
</entry>
<entry>
<title>kernel: Be clearer about what ZSTDIO is for</title>
<updated>2026-03-21T07:21:45Z</updated>
<author>
<name>Dag-Erling Smørgrav</name>
<email>des@FreeBSD.org</email>
</author>
<published>2026-03-21T07:21:24Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=092687a031064dc08ac198648c6393cc50b06cee'/>
<id>urn:sha1:092687a031064dc08ac198648c6393cc50b06cee</id>
<content type='text'>
ZSTDIO is not just for core dumps, and it is now required by ZFS, so
move it (and GZIO, which is still just for dumps) to a new “Compression
support” section in GENERIC, and add them both to MINIMAL.

MFC after:	1 week
Reviewed by:	imp
Differential Revision:	https://reviews.freebsd.org/D55940
</content>
</entry>
<entry>
<title>hwpmc: Remove left over k7, xscale and p4 references pmc</title>
<updated>2026-03-07T15:17:43Z</updated>
<author>
<name>Ali Mashtizadeh</name>
<email>mashti@uwaterloo.ca</email>
</author>
<published>2026-02-20T21:05:41Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=e409e51f83963beaeb95eec82c5f43e44545d6b9'/>
<id>urn:sha1:e409e51f83963beaeb95eec82c5f43e44545d6b9</id>
<content type='text'>
Support for these processors was removed a few years ago, but a few
references remain that should be removed.

Sponsored by: Netflix
Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/2039
</content>
</entry>
<entry>
<title>x86: change signatures of ipi_{bitmap,swi}_handler() to take pointer</title>
<updated>2026-03-07T03:58:48Z</updated>
<author>
<name>Konstantin Belousov</name>
<email>kib@FreeBSD.org</email>
</author>
<published>2026-02-27T03:54:06Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=fdc1f34506346fd26db8bfb80ba69d1af844c53a'/>
<id>urn:sha1:fdc1f34506346fd26db8bfb80ba69d1af844c53a</id>
<content type='text'>
to the frame instead of the frame itself. It is some stretch of the
amd64 ABI, and is not easily fullfilled when handlers are called from C
and not asm. In particular, the struct frame is passed by value but is
modified by callees, with the expectation that the caller will see the
modifications.

Reviewed by:	markj
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Differential revision:	https://reviews.freebsd.org/D55679
</content>
</entry>
<entry>
<title>sys: Retire le(4)</title>
<updated>2026-03-02T19:10:15Z</updated>
<author>
<name>Ed Maste</name>
<email>emaste@FreeBSD.org</email>
</author>
<published>2025-10-24T17:26:03Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=7a323f873662dae95a061d1eaf8b1d9d1a0f8a23'/>
<id>urn:sha1:7a323f873662dae95a061d1eaf8b1d9d1a0f8a23</id>
<content type='text'>
We retired most obsolete 10 and 10/100 Ethernet NIC drivers in 2019 --
see commits following ebcf740a32ae ("FCP-101: remove obsolete 10 and
10/100 Ethernet drivers.).

le(4) was retained with with the note "Emulated by QEMU, alternatives
don't yet work for mips64."  MIPS has since been removed from the tree
and emulators and virtual machines offer many other, more suitable
devices.

Reviewed by:	brooks
Relnotes:	Yes
Sponsored by:	The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D55516
</content>
</entry>
<entry>
<title>hwpmc: Initial support for AMD IBS</title>
<updated>2026-02-27T21:22:16Z</updated>
<author>
<name>Ali Mashtizadeh</name>
<email>ali@mashtizadeh.com</email>
</author>
<published>2026-01-30T09:12:17Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=e51ef8ae490fc9f73191f33e7ad388c2511c454a'/>
<id>urn:sha1:e51ef8ae490fc9f73191f33e7ad388c2511c454a</id>
<content type='text'>
This patch adds support for AMD IBS.  It adds a new class of performance
counter that cotains two events: ibs-fetch and ibs-op events. Unlike
most existing sampled events, IBS events provide a number of values
containing extra information regarding the sample.  To support this we
use the existing callchain event, and introduce a new flag for multipart
payloads.  The first 8 bytes of the pc_sample contains a header that
defines up to four payloads.

Sponsored by: Netflix

Reviewed by: imp,mhorne
Pull Request: https://github.com/freebsd/freebsd-src/pull/2022
</content>
</entry>
<entry>
<title>i386,amd64: Explicitly set ECX=0 in do_cpuid() to be future-proof</title>
<updated>2026-02-20T15:26:20Z</updated>
<author>
<name>Aaron LI</name>
<email>aly@aaronly.me</email>
</author>
<published>2026-02-16T04:00:12Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=89d7b30c652c98ea12abc5eb9424464cbfb45953'/>
<id>urn:sha1:89d7b30c652c98ea12abc5eb9424464cbfb45953</id>
<content type='text'>
In principle, do_cpuid() should only be used for CPUID leaves without
sub-leaves.  Even accessing sub-leaf zero (ECX=0), one must use
cpuid_count(ax, 0) rather than cpuid(ax).

However, one might assume do_cpuid(ax) is equivalent to
cpuid_count(ax, 0), but the old do_cpuid() did not initialize ECX before
executing the CPUID instruction.  If ECX contained a non-zero value, the
instruction could return unexpected results, potentially leading to
subtle and hard-to-debug issues, especially in ported code.

To be future-proof and to help port code, adjust do_cpuid(ax) to be
cpuid_count(ax, 0) to explicitly set ECX=0.

It's believed that this change does not fix any real bugs in FreeBSD.

See also the DragonFly commit:
https://github.com/DragonFlyBSD/DragonFlyBSD/commit/0087a1d163488a57787a9a6431dd94070b1988d4

Signed-off-by: Aaron LI &lt;aly@aaronly.me&gt;
Reviewed by: kib
Pull Request: https://github.com/freebsd/freebsd-src/pull/2027
</content>
</entry>
<entry>
<title>Revert "pcb.h: mark struct pcb to be preserved"</title>
<updated>2026-02-09T18:55:57Z</updated>
<author>
<name>Konstantin Belousov</name>
<email>kib@FreeBSD.org</email>
</author>
<published>2026-02-09T18:25:17Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=24038d696e5030f622e87d6651e9dab1cd7fcb2a'/>
<id>urn:sha1:24038d696e5030f622e87d6651e9dab1cd7fcb2a</id>
<content type='text'>
kgdb only uses the marked fields from dumppcb for initial frame
reconstruction.

This reverts commit 8f23665fed2fbaf4481359b4d2fcdd7b9feb40e3.
</content>
</entry>
<entry>
<title>pcb.h: mark struct pcb to be preserved</title>
<updated>2026-02-09T04:17:16Z</updated>
<author>
<name>Minsoo Choo</name>
<email>minsoochoo0122@proton.me</email>
</author>
<published>2026-02-06T20:03:53Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=8f23665fed2fbaf4481359b4d2fcdd7b9feb40e3'/>
<id>urn:sha1:8f23665fed2fbaf4481359b4d2fcdd7b9feb40e3</id>
<content type='text'>
There are programs that depend on this structure (e.g. kernel debuggers)
that breaks when the ABI changes.

Signed-off-by:	Minsoo Choo &lt;minsoochoo0122@proton.me&gt;
Reviewed by:	kib
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D55149
</content>
</entry>
</feed>
