Page MenuHomeFreeBSD
Feed Advanced Search

Mon, Jun 3

imp added a comment to D45451: LinuxKPI: Add min_not_zero() to linux/minmax.h.

I'd planned on merging bnxt* stuff today.

Mon, Jun 3, 4:21 PM
imp added inline comments to D44665: stddef.h: Update for C23.
Mon, Jun 3, 3:18 PM · Contributor Reviews (src)
imp committed rG079d67b1d861: sys: Disable C standards prior to C99 from kernel build (authored by minsoochoo0122_proton.me).
sys: Disable C standards prior to C99 from kernel build
Mon, Jun 3, 3:15 PM
imp added a comment to D44145: Disable C standards under C99 from kernel build.

I think this is ready now, so I'll land it.
I'm satisfied that old-school construct was for our old-school 4.2 gcc, which has aged out of support everywhere.

Mon, Jun 3, 2:53 PM · Contributor Reviews (src)
Herald added a reviewer for D38023: Reorganise certain arm64 assembly code for efficiency: andrew.

So where does this stand? My arm assembler fu is weak, but I know that at least the pcb.h bits are good. I don't know how to read Andrew's comments on this, though.

Mon, Jun 3, 2:49 PM
imp accepted D44893: Simplify signal handling code in libthr by removing use of SYS_sigreturn.
Mon, Jun 3, 2:44 PM
imp accepted D45463: Fix off-by-one bug in btpand.

The update looks good to my eyes

Mon, Jun 3, 2:38 PM
imp added a comment to D45447: Use correct function declaration for yyerror.

I can land this too, it looks perfect now.

Mon, Jun 3, 1:54 PM
imp accepted D45447: Use correct function declaration for yyerror.
Mon, Jun 3, 1:45 PM
imp accepted D45462: nvmf: Handle shutdowns more gracefully.
Mon, Jun 3, 2:38 AM

Sun, Jun 2

imp added a reviewer for D45450: bnxt_re: Define min_not_zero macro only if it is not defined yet.: sumit.saxena_broadcom.com.
Sun, Jun 2, 7:12 PM
imp accepted D45457: nvmf: Pass const pointers to namespace data to nvmf_*_ns.
Sun, Jun 2, 7:10 PM
imp accepted D45458: nvmf: Refactor nvmf_add_namespaces to be more generic.

This is definitely better as it is. And I'm not 100% sure about the rescan stuff... it was my takeaway before I had to remove the 1 NVMe card I had that supported namespace management from my active system... I played around with several different combos, and I think I saw the repeat in a sloop of delete ns ; add ns... But that's been a couple of years.

Sun, Jun 2, 7:10 PM
imp accepted D45459: nvmf: Factor out most of nvmf_rescan_ns into a helper routine.

I think this looks good... Agree again on the locking, unless we're seralized somehow... but maybe the locking needs to be more reference-county rather than just pure locking because what does one do with the namespace pointers? And what use of them might need protection against the dying namespace we can't quite free yet issue that I see lurking. Thankfully, namespace changes are super rare, so we have time to work it out.

Sun, Jun 2, 7:03 PM
imp accepted D45460: nvmf: Rescan all namespaces if the changed NS log page is too large.
Sun, Jun 2, 6:59 PM
imp accepted D45461: nvmf: Rescan namespaces after reconnecting.

Is this a good place to add a brief note about why this is a good idea, either in the commit message or in the code? (If so, I'd lean towards the former).

Sun, Jun 2, 6:57 PM

Sat, Jun 1

imp added a comment to D45434: pci_host_generic: Permit multiple bridges to share the same I/O window.

This looks good, I'll test it when I return from BSDCan

Sat, Jun 1, 5:50 PM
imp accepted D45433: acpi/pci/vmd: Fix a nit with nested resource mapping requests.
Sat, Jun 1, 5:49 PM
imp accepted D45437: lam: fail on I/O errors.
Sat, Jun 1, 5:26 PM
imp added inline comments to D45438: comm: handle input arguments being NULL.
Sat, Jun 1, 5:26 PM
imp accepted D45439: comm: flush stdout for error checking prior to exiting.
Sat, Jun 1, 5:25 PM
imp committed rG4b72bab96e89: mdconfig: don't print NUL in the options list (authored by asomers).
mdconfig: don't print NUL in the options list
Sat, Jun 1, 3:01 PM
imp accepted D45432: bhnd: Remove orphaned driver for the BHND USB core.
Sat, Jun 1, 5:57 AM

Fri, May 31

imp committed rG9c0d6df100ed: man bluetooth/fwdownloaders: alignment nits, SPDX (authored by concussious.bugzilla_runbox.com).
man bluetooth/fwdownloaders: alignment nits, SPDX
Fri, May 31, 8:30 PM
imp committed rGd37eb5104722: contrib: Remove various $FreeBSD$ tags not upstream (authored by imp).
contrib: Remove various $FreeBSD$ tags not upstream
Fri, May 31, 7:50 PM
imp committed rGd0a9cc17ba44: sys/contrib: Mop up $FreeBSD$ tags (authored by imp).
sys/contrib: Mop up $FreeBSD$ tags
Fri, May 31, 7:46 PM
imp accepted D45426: stddef.h/stdlib.h: Remove unused rune_t.
Fri, May 31, 7:32 PM
imp committed rG6e0278408ea0: sys/unistd.h: Use correct POSIX_VERION of 200809L (authored by imp).
sys/unistd.h: Use correct POSIX_VERION of 200809L
Fri, May 31, 6:15 PM
imp committed rG2c901189bb65: man bluetooth/fwdownloaders: terse descriptions (authored by concussious.bugzilla_runbox.com).
man bluetooth/fwdownloaders: terse descriptions
Fri, May 31, 5:42 PM
imp committed rG2e30926a680d: FreeBSD bump POSIX_VERISON to 200809L (authored by imp).
FreeBSD bump POSIX_VERISON to 200809L
Fri, May 31, 4:54 PM
imp committed rGa8fe2d331be3: posix_async: FreeBSD also defines {make|swap|get|set}context (authored by imp).
posix_async: FreeBSD also defines {make|swap|get|set}context
Fri, May 31, 4:54 PM
imp committed rGcab9ccf3ff8c: wpa: Diff reduction with upstream (authored by imp).
wpa: Diff reduction with upstream
Fri, May 31, 4:08 PM
imp accepted D45423: ufs: use IOVEC_* macros.
Fri, May 31, 3:56 PM

May 31 2024

imp closed D45385: localedef: Bootstrap better.

d28bbfa2715a45c841e0eeec38d7f7b73513c66e landed this change. I forgot to tag it as reviewed.

May 31 2024, 3:36 PM
imp committed rG108de784513d: Redefine CLOCK_BOOTTIME to alias CLOCK_MONOTONIC, not CLOCK_UPTIME (authored by val_packett.cool).
Redefine CLOCK_BOOTTIME to alias CLOCK_MONOTONIC, not CLOCK_UPTIME
May 31 2024, 2:48 PM
imp committed rGe03e8b077433: sys/param.h: Bump FreeBSD_version to 1500019 for CLOCK_ define changes (authored by imp).
sys/param.h: Bump FreeBSD_version to 1500019 for CLOCK_ define changes
May 31 2024, 2:47 PM
imp committed rG676041c41ba5: WPA: Allow CLOCK_BOOTTIME and CLOCK_MONOTONIC to #define the same (authored by imp).
WPA: Allow CLOCK_BOOTTIME and CLOCK_MONOTONIC to #define the same
May 31 2024, 2:47 PM
imp closed D39270: Redefine CLOCK_BOOTTIME to alias CLOCK_MONOTONIC, not CLOCK_UPTIME.
May 31 2024, 2:47 PM
imp closed D45418: WPA: Allow CLOCK_BOOTTIME and CLOCK_MONOTONIC to #define the same.
May 31 2024, 2:47 PM
imp added a comment to D39270: Redefine CLOCK_BOOTTIME to alias CLOCK_MONOTONIC, not CLOCK_UPTIME.

I'll bump as a separate commit.

May 31 2024, 2:39 PM
imp added a comment to D39270: Redefine CLOCK_BOOTTIME to alias CLOCK_MONOTONIC, not CLOCK_UPTIME.

FreeBSD version bump?

May 31 2024, 2:31 PM
imp accepted D45420: mitigations.7: mention supervisor mode memory access protections.
May 31 2024, 2:20 PM
imp updated the diff for D45418: WPA: Allow CLOCK_BOOTTIME and CLOCK_MONOTONIC to #define the same.

Simplify the #ifdefs, even though this is a bit longer than the prior
expressions.

May 31 2024, 2:16 PM
imp committed rGd28bbfa2715a: localedef: Bootstrap better (authored by imp).
localedef: Bootstrap better
May 31 2024, 4:00 AM
imp committed rG8ccdf86ee575: smbus manuals: include term SMBus in description (authored by concussious.bugzilla_runbox.com).
smbus manuals: include term SMBus in description
May 31 2024, 1:34 AM
imp committed rGdddf29712f38: smbfs manuals: describe consistently (authored by concussious.bugzilla_runbox.com).
smbfs manuals: describe consistently
May 31 2024, 1:31 AM

May 30 2024

imp added reviewers for D45418: WPA: Allow CLOCK_BOOTTIME and CLOCK_MONOTONIC to #define the same: val_packett.cool, cy, adrian.
May 30 2024, 8:57 PM
imp added a comment to D39270: Redefine CLOCK_BOOTTIME to alias CLOCK_MONOTONIC, not CLOCK_UPTIME.

https://reviews.freebsd.org/D45418

May 30 2024, 8:57 PM
imp requested review of D45418: WPA: Allow CLOCK_BOOTTIME and CLOCK_MONOTONIC to #define the same.
May 30 2024, 8:56 PM
imp added a comment to D39270: Redefine CLOCK_BOOTTIME to alias CLOCK_MONOTONIC, not CLOCK_UPTIME.

This breaks wpa

diff --git a/contrib/wpa/src/utils/os_unix.c b/contrib/wpa/src/utils/os_unix.c
index 315c973f3228..1a0cefbbb188 100644
--- a/contrib/wpa/src/utils/os_unix.c
+++ b/contrib/wpa/src/utils/os_unix.c
@@ -97,12 +97,12 @@ int os_get_reltime(struct os_reltime *t)
                        return 0;
                }
                switch (clock_id) {
-#ifdef CLOCK_BOOTTIME
+#if (defined(CLOCK_BOOTTIME) && defined(CLOCK_MONOTONIC)) && (CLOCK_MONOTONIC != CLOCK_BOOTTIME)
                case CLOCK_BOOTTIME:
                        clock_id = CLOCK_MONOTONIC;
                        break;
 #endif
-#ifdef CLOCK_MONOTONIC
+#if defined(CLOCK_MONOTONIC) && (!defined(CLOCK_BOOTTIME) || CLOCK_MONOTONIC != CLOCK_BOOTTIME)
                case CLOCK_MONOTONIC:
                        clock_id = CLOCK_REALTIME;
                        break;
May 30 2024, 8:49 PM
imp added a comment to D39270: Redefine CLOCK_BOOTTIME to alias CLOCK_MONOTONIC, not CLOCK_UPTIME.

I'm convinced this is good. I'll push it in.

May 30 2024, 8:08 PM
imp accepted D39270: Redefine CLOCK_BOOTTIME to alias CLOCK_MONOTONIC, not CLOCK_UPTIME.
May 30 2024, 8:02 PM
imp accepted D45414: nvme: Change namespace device name.

This looks good.
It conflicts with what i did here, but you did it better so I'll rebase.

May 30 2024, 6:32 PM
imp requested review of D45416: linux: Translate Linux NVME ioctls to the lower layers..
May 30 2024, 6:30 PM
imp requested review of D45415: nvme: Add Linux copatible ioctls.
May 30 2024, 6:30 PM
imp accepted D45406: pci: Consistently use pci_vf_* for suballocated VF memory resources.
May 30 2024, 1:23 PM
imp accepted D45405: pci: Use kobj typedefs for new-bus method prototypes.
May 30 2024, 1:22 PM
imp updated the test plan for D45404: biosboot: Detect memory disks from PXE.
May 30 2024, 1:38 AM
Herald added a reviewer for D27349: add support for MEMDISK loaded disk images to bootloader and md: manu.

rebased and lightly reworked
https://reviews.freebsd.org/D45404

May 30 2024, 1:36 AM
imp requested review of D45404: biosboot: Detect memory disks from PXE.
May 30 2024, 1:35 AM

May 29 2024

imp committed rG19dbf72a2701: bhyve: correctly remove a memory mapping (authored by khorben_defora.org).
bhyve: correctly remove a memory mapping
May 29 2024, 7:42 PM
imp committed rGf13275cf03ae: export $autoboot var when running from $boottrace_cmd (authored by samm).
export $autoboot var when running from $boottrace_cmd
May 29 2024, 7:35 PM
imp committed rG11333dd580b7: rc: improve NAME_setup handling (authored by franco_opnsense.org).
rc: improve NAME_setup handling
May 29 2024, 5:29 PM
imp added a reverting change for rG6bad7d2486b3: checkstyle9.pl: Add check for missing space between ) {: rGb661d9e64d73: Revert "checkstyle9.pl: Add check for missing space between ) {".
May 29 2024, 5:18 PM
imp committed rGb661d9e64d73: Revert "checkstyle9.pl: Add check for missing space between ) {" (authored by imp).
Revert "checkstyle9.pl: Add check for missing space between ) {"
May 29 2024, 5:18 PM
imp committed rGb8a7548399ed: LINT: Don't build bnxt on 32-bit platforms (authored by imp).
LINT: Don't build bnxt on 32-bit platforms
May 29 2024, 4:52 PM
imp committed rG6bad7d2486b3: checkstyle9.pl: Add check for missing space between ) { (authored by imp).
checkstyle9.pl: Add check for missing space between ) {
May 29 2024, 4:01 PM
imp committed rGc48820a4487e: minor style tweak. (authored by imp).
minor style tweak.
May 29 2024, 3:55 PM
imp committed rG175b2c00a6bc: Fix bnxt build in LINT (authored by imp).
Fix bnxt build in LINT
May 29 2024, 3:51 PM
imp committed rG5360d017be83: loader: Fix G overflowing for G(4) on 32-bit builds (authored by Ahmad Khalifa <ahmadkhalifa570@gmail.com>).
loader: Fix G overflowing for G(4) on 32-bit builds
May 29 2024, 2:40 PM
imp committed rGdcc7b3698d03: loader: Allow overriding NEWVERSWHAT (authored by Ahmad Khalifa <ahmadkhalifa570@gmail.com>).
loader: Allow overriding NEWVERSWHAT
May 29 2024, 2:31 PM
imp committed rG6d849754b996: linux: implement PR_CHILD_SET_SUBREAPER (authored by Son Phan Trung <phantrungson17@gmail.com>).
linux: implement PR_CHILD_SET_SUBREAPER
May 29 2024, 1:59 PM

May 28 2024

imp added a comment to D45286: [DRAFT} Add support for Atheros AR9271.

Is this ready?
If so please add achad and bz as reviewers.

May 28 2024, 2:58 PM
imp added a comment to D36259: rc: also run NAME_setup on NAME_reload.

This won't merge, I'm talking to @imp at https://github.com/freebsd/freebsd-src/pull/1258

May 28 2024, 2:15 PM · rc

May 27 2024

imp added a comment to D45387: runq: API rationalization, code factorization, revised implementation.

Hopefully this is actually multiple commits. This change looks on its surface too large to review due to the 12 different things going on. .

May 27 2024, 11:04 PM
imp accepted D44452: mpi3mr: Divert WriteSame IOs which has unmap and ndob bit set to firmware if its transfer length exceeds firmware limit..

No further comments.

May 27 2024, 8:58 PM
imp added a comment to D45379: kern/vm: Use the dedicated bio zone for the swap bio..
In D45379#1035237, @imp wrote:
root@pkgfactory2:~ # swapinfo
Device          1K-blocks     Used    Avail Capacity
/dev/nda1p1      67108820  7964000 59144820    12%
/dev/nda2p1      67108820  7987416 59121404    12%
Total           134217640 15951416 118266224    12%
root@pkgfactory2:~ # gpart show /dev/nda1
=>       40  134217648  nda1  GPT  (64G)
         40          8        - free -  (4.0K)
         48  134217640     1  freebsd-swap  (64G)

root@pkgfactory2:~ # gpart show /dev/nda2
=>       40  134217648  nda2  GPT  (64G)
         40          8        - free -  (4.0K)
         48  134217640     1  freebsd-swap  (64G)

Both of these drives are mispartitioned. For best performnace they should have at least 1MB if not more alignment for the first partition. Do we really need to add code to handle mis-aligned partition performance problems that are pilot error?

Getting off-topic, yet I have to ask you back. Are you talking about the AFT (4KB-sector) problem? If so, I believe it is sufficient to align to an 8-512B-sector boundary. I understand that the recommendation for the 1MB boundary alignment comes from Windows and Linux. (https://superuser.com/questions/1483928/why-do-windows-and-linux-leave-1mib-unused-before-first-partition) Mac OS X has been found to just align to an 8-512B-sector boundary. (https://forums.macrumors.com/threads/aligning-disk-partitions-to-prevent-ssd-wear.952904/)

May 27 2024, 8:47 PM
imp requested review of D45385: localedef: Bootstrap better.
May 27 2024, 6:18 PM
imp accepted D45382: csh: Remove hardlink /.cshrc.
May 27 2024, 3:25 PM
imp added a comment to D45382: csh: Remove hardlink /.cshrc.

I think this is a good idea.

May 27 2024, 3:25 PM
imp added a comment to D45379: kern/vm: Use the dedicated bio zone for the swap bio..

The other question I have: why is the swap pager going so nuts? Normally, back pressure keeps the source of I/Os from overwhelming the lower layers of the system (which is why allocations are failing and you've moved to a preallocation). Why isn't that the case here? We're flooding it with more traffic than it can process. It would be, imho, much better for it to schedule less I/O at a time than to have these mechanisms to cope with flooding. Are there other drivers that have other issues? Or is nvme somehow special inherently (or because it advertises too much I/O space up the stack?)

May 27 2024, 3:04 PM
imp added reviewers for D45379: kern/vm: Use the dedicated bio zone for the swap bio.: kib, mav.
May 27 2024, 2:49 PM
imp added a comment to D45379: kern/vm: Use the dedicated bio zone for the swap bio..

Prior to any analysis, I assume you're doing this to fix some memory allocation deadlocks in the swap path. Could you describe a concrete scenario where you experienced a problem that this patch solves? Were you swapping to some regular partition, an encrypted one, or some vnode or zvol?

There are two swaps on the GPT partitions of two NVMe drives.

root@pkgfactory2:~ # swapinfo
Device          1K-blocks     Used    Avail Capacity
/dev/nda1p1      67108820  7964000 59144820    12%
/dev/nda2p1      67108820  7987416 59121404    12%
Total           134217640 15951416 118266224    12%
root@pkgfactory2:~ # gpart show /dev/nda1
=>       40  134217648  nda1  GPT  (64G)
         40          8        - free -  (4.0K)
         48  134217640     1  freebsd-swap  (64G)

root@pkgfactory2:~ # gpart show /dev/nda2
=>       40  134217648  nda2  GPT  (64G)
         40          8        - free -  (4.0K)
         48  134217640     1  freebsd-swap  (64G)
May 27 2024, 2:48 PM
imp added a comment to D45380: kern/dev/nvme: Use the per-namespace uma(9) zone for the bio..

I'd like to see data that shows this is the hot path. I recently added counters to count the splits.
Ideally, it would use whatever cloning zones already exist and not invent a new one for the nvme drive, imho.
Do you get the same, better or worse performance if you just disable this feature of the nvme drive entirely?

May 27 2024, 2:44 PM
imp added reviewers for D45380: kern/dev/nvme: Use the per-namespace uma(9) zone for the bio.: kib, chuck, mav.
May 27 2024, 2:36 PM

May 26 2024

imp added inline comments to D45355: cross-build: This is not glibc specific, but Linux specific.
May 26 2024, 9:26 PM
imp added a comment to D45355: cross-build: This is not glibc specific, but Linux specific.

Fixed in https://reviews.freebsd.org/D45374

May 26 2024, 9:24 PM
imp added inline comments to D45351: build: Include sys/cdefs.h in our fcntl.h shim.
May 26 2024, 9:23 PM
imp requested review of D45375: cross-build: Define DEFFILEMODE and ALLPERMS if not defined.
May 26 2024, 9:22 PM
imp requested review of D45374: cross-build: progname.c is used only on linux, so no ifdefs needed.
May 26 2024, 9:22 PM
imp requested review of D45373: cross-build: Move fcntl.h workaround to Linux specific file.
May 26 2024, 9:21 PM
imp added inline comments to D45355: cross-build: This is not glibc specific, but Linux specific.
May 26 2024, 6:15 PM
imp added inline comments to D45351: build: Include sys/cdefs.h in our fcntl.h shim.
May 26 2024, 6:13 PM
imp committed rG0e03402139da: cross-build: This is not glibc specific, but Linux specific (authored by imp).
cross-build: This is not glibc specific, but Linux specific
May 26 2024, 5:41 PM
imp committed rG3c5f0da5106b: cross-build: Define __*int*_t and include sys/cdefs.h (authored by imp).
cross-build: Define __*int*_t and include sys/cdefs.h
May 26 2024, 5:41 PM
imp committed rG27326f895e5f: cross-build: string.h uses mode_t, so we need sys/types.h (authored by imp).
cross-build: string.h uses mode_t, so we need sys/types.h
May 26 2024, 5:41 PM
imp committed rG76efd90ab093: cross-build: Include sys/types.h from sys/param.h (authored by imp).
cross-build: Include sys/types.h from sys/param.h
May 26 2024, 5:41 PM
imp committed rG4300e053618f: build: Include sys/cdefs.h in our fcntl.h shim (authored by imp).
build: Include sys/cdefs.h in our fcntl.h shim
May 26 2024, 5:41 PM
imp closed D45355: cross-build: This is not glibc specific, but Linux specific.
May 26 2024, 5:41 PM
imp committed rG917c0541e4cc: cross-tools: Document a rather bizarre looking construct (authored by imp).
cross-tools: Document a rather bizarre looking construct
May 26 2024, 5:41 PM