<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/sys/dev/md, branch releng/14.2</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=releng%2F14.2</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=releng%2F14.2'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2024-10-20T00:33:04Z</updated>
<entry>
<title>md(4): always trim the last partial sector</title>
<updated>2024-10-20T00:33:04Z</updated>
<author>
<name>Konstantin Belousov</name>
<email>kib@FreeBSD.org</email>
</author>
<published>2024-10-13T21:28:22Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=959f0d0cdb1482d754f24b7ae16bda0ac2e7b31a'/>
<id>urn:sha1:959f0d0cdb1482d754f24b7ae16bda0ac2e7b31a</id>
<content type='text'>
PR:	281978

(cherry picked from commit 4bf34c597c44a2393ac5ec483e9cecac128d8202)
</content>
</entry>
<entry>
<title>md: round-trip the MUSTDEALLOC and RESERVE options</title>
<updated>2024-06-15T13:03:23Z</updated>
<author>
<name>Alan Somers</name>
<email>asomers@FreeBSD.org</email>
</author>
<published>2024-06-01T18:00:03Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=35e9830283561820a1fcb21b46b6f01e87700dec'/>
<id>urn:sha1:35e9830283561820a1fcb21b46b6f01e87700dec</id>
<content type='text'>
If those options are requested when the device is created, ensure that
they will be reported by MDIOCQUERY.

Reviewed by:	imp
Pull Request:	https://github.com/freebsd/freebsd-src/pull/1270

(cherry picked from commit 9d449caddd4f442ba4ebfd2edafa1aef4fcba4c8)
</content>
</entry>
<entry>
<title>sys: Remove $FreeBSD$: two-line .h pattern</title>
<updated>2023-08-16T17:54:11Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2023-08-16T17:54:11Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=95ee2897e98f5d444f26ed2334cc7c439f9c16c6'/>
<id>urn:sha1:95ee2897e98f5d444f26ed2334cc7c439f9c16c6</id>
<content type='text'>
Remove /^\s*\*\n \*\s+\$FreeBSD\$$\n/
</content>
</entry>
<entry>
<title>md driver compat32: fix structure padding for arm, powerpc</title>
<updated>2023-08-08T14:09:03Z</updated>
<author>
<name>Mike Karels</name>
<email>karels@FreeBSD.org</email>
</author>
<published>2023-08-08T14:09:03Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=58a46cfd751ac726ddca8544bf73a290b0154a57'/>
<id>urn:sha1:58a46cfd751ac726ddca8544bf73a290b0154a57</id>
<content type='text'>
Because the 32-bit md_ioctl structure contains 64-bit members, arm
and powerpc add padding to a multiple of 8.  i386 doesn't do this.
The md_ioctl32 definition was correct for amd64/i386 without padding,
but wrong for arm64 and powerpc64.  Make __packed__ conditional on
__amd64__, and test for the expected size on non-amd64.  Note that
mdconfig is used in the ATF test suite.  Note, I verified the
structure size for powerpc, but was unable to test.

MFC after:	1 week
Reviewed by:	jrtc27
Differential Revision:	https://reviews.freebsd.org/D41339
Discussed with:	jhibbits
</content>
</entry>
<entry>
<title>Pre-quote macros passed to .incbin to avoid unwanted substitution</title>
<updated>2023-07-28T04:08:43Z</updated>
<author>
<name>Jessica Clarke</name>
<email>jrtc27@FreeBSD.org</email>
</author>
<published>2023-07-28T04:08:43Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=8a6ab0f71f1857037233fae19991b972b430d83c'/>
<id>urn:sha1:8a6ab0f71f1857037233fae19991b972b430d83c</id>
<content type='text'>
Currently for the MFS, firmware and VDSO template assembly files we pass
the path to include with .incbin unquoted and use __XSTRING within the
assembly file to stringify it. However, __XSTRING doesn't just perform a
single level of expansion, it performs the normal full expansion of the
macro, and so if the path itself happens to tokenise to something that
includes a defined macro in it that will itself be substituted. For
example, with #define MACRO 1, a path like /path/containing/MACRO/in/it
will expand to /path/containing/1/in/it and then, when stringified, end
up as "/path/containing/1/in/it", not the intended string. Normally,
macros have names that start or end witih underscores and are unlikely
to appear in a tokenised path (even if technically they could), but now
that we've switched to GNU C as of commit ec41a96daaa6 ("sys: Switch the
kernel's C standard from C99 to GNU99.") there are a few new macros
defined which don't start or end with underscores: unix, which is always
defined to 1, and i386, which is defined to 1 on i386. The former
probably doesn't appear in user paths in practice, but the latter has
been seen to and is likely quite common in the wild.

Fix this by defining the macro pre-quoted instead of using __XSTRING.
Note that technically we don't need to do this for vdso_wrap.S today as
all the paths passed to it are safe file names with no user-controlled
prefix but we should do it anyway for consistency and robustness against
future changes.

This allows make tinderbox to pass when built with source and object
directories inside ~/path-with-unix, which would otherwise expand to
~/path-with-1 and break.

PR:	272744
Fixes:	ec41a96daaa6 ("sys: Switch the kernel's C standard from C99 to GNU99.")
</content>
</entry>
<entry>
<title>md: Get rid of the pbuf zone</title>
<updated>2023-05-23T14:27:10Z</updated>
<author>
<name>Mark Johnston</name>
<email>markj@FreeBSD.org</email>
</author>
<published>2023-05-23T14:14:06Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=30038a8b4efc6d0b9f8f295e28bc205fe9728310'/>
<id>urn:sha1:30038a8b4efc6d0b9f8f295e28bc205fe9728310</id>
<content type='text'>
The zone is used solely to provide KVA for mapping BIOs so that we can
pass mapped buffers to VOP_READ and VOP_WRITE.  Currently we preallocate
nswbuf/10 bufs for this purpose during boot.

The intent was to limit KVA usage on 32-bit systems, but the
preallocation means that we in fact consumed more KVA than needed unless
one has more than nswbuf/10 (typically 25) vnode-backed MD devices
in existence, which I would argue is the uncommon case.

Meanwhile, all I/O to an MD is handled by a dedicated thread, so we can
instead simply preallocate the KVA region at MD device creation time.

Event:		BSDCan 2023
Reviewed by:	kib
MFC after:	1 month
Differential Revision:	https://reviews.freebsd.org/D40215
</content>
</entry>
<entry>
<title>md.c: another style fix</title>
<updated>2023-01-20T02:39:36Z</updated>
<author>
<name>Konstantin Belousov</name>
<email>kib@FreeBSD.org</email>
</author>
<published>2023-01-20T02:39:36Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=ad8feb1ed9996593df8b4b7259057c6e263aa130'/>
<id>urn:sha1:ad8feb1ed9996593df8b4b7259057c6e263aa130</id>
<content type='text'>
Noted by:	jkim
Sponsored by:	The FreeBSD Foundation
MFC after:	3 days
</content>
</entry>
<entry>
<title>Handle ERELOOKUP from VOP_FSYNC() in several other places</title>
<updated>2023-01-20T01:54:56Z</updated>
<author>
<name>Konstantin Belousov</name>
<email>kib@FreeBSD.org</email>
</author>
<published>2023-01-18T21:09:10Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=6189672e600814fec4cc165d25ae050fb2f3a999'/>
<id>urn:sha1:6189672e600814fec4cc165d25ae050fb2f3a999</id>
<content type='text'>
We need to repeat the operation if the vnode was relocked.

Reported and reviewed by:	markj
Tested by:	pho
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Differential revision:	https://reviews.freebsd.org/D38114
</content>
</entry>
<entry>
<title>vfs: NDFREE(&amp;nd, NDF_ONLY_PNBUF) -&gt; NDFREE_PNBUF(&amp;nd)</title>
<updated>2022-03-24T10:20:51Z</updated>
<author>
<name>Mateusz Guzik</name>
<email>mjg@FreeBSD.org</email>
</author>
<published>2022-03-24T10:10:03Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=bb92cd7bcd16f3f36cdbda18d8193619892715fb'/>
<id>urn:sha1:bb92cd7bcd16f3f36cdbda18d8193619892715fb</id>
<content type='text'>
</content>
</entry>
<entry>
<title>md(4): Add dummy support of the BIO_FLUSH command for malloc and swap</title>
<updated>2022-02-17T19:21:56Z</updated>
<author>
<name>Aleksandr Fedorov</name>
<email>afedorov@FreeBSD.org</email>
</author>
<published>2022-02-17T19:21:56Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=cb28dfb27d12f1cbd7831f370c01493c01d74b10'/>
<id>urn:sha1:cb28dfb27d12f1cbd7831f370c01493c01d74b10</id>
<content type='text'>
backend.

PR:	260200
Reported by:	editor@callfortesting.org
Reviewed by:	vmaffione (mentor), markj
Approved by:	vmaffione (mentor), markj
Differential Revision:	https://reviews.freebsd.org/D34260
</content>
</entry>
</feed>
