Page MenuHomeFreeBSD

jhb (John Baldwin)
User

Projects (9)

User Details

User Since
Mar 11 2014, 8:46 PM (566 w, 1 d)

Recent Activity

Today

jhb updated the diff for D44910: sys: Add cpu_update_pcb hook.

Add asserts

Wed, Jan 15, 7:53 PM
jhb updated subscribers of D44207: pci_host_generic: Use SYS_RES_MEMORY for the parent of I/O resource ranges.

@markj can you test this change on your Ampere box?

Wed, Jan 15, 3:12 PM
jhb added a comment to D45434: pci_host_generic: Permit multiple bridges to share the same I/O window.

Hmm, Warner notes that this does not resolve his reported issue, but his reported issue is also not a regression? (I had been waiting to MFC all my rman changes to stable/14 under the impression it introduced a regression)

Wed, Jan 15, 3:10 PM
jhb closed D48455: Refine comment about size of struct pmap_large_md_page..
Wed, Jan 15, 3:04 PM
jhb committed rG101e825e551a: arm64: Refine comment about size of struct pmap_large_md_page (authored by jhb).
arm64: Refine comment about size of struct pmap_large_md_page
Wed, Jan 15, 3:04 PM

Yesterday

jhb accepted D48451: add UMA_ZONE_NOTRIM & use it for the ktls_buffer zone.

This seems sensible to me.

Tue, Jan 14, 10:26 PM
jhb committed rG618d1621c2d4: nvmecontrol: Fix error message for invalid Fabrics I/O queue size (authored by jhb).
nvmecontrol: Fix error message for invalid Fabrics I/O queue size
Tue, Jan 14, 5:40 PM
jhb updated the diff for D48456: nvmecontrol: Only do name resolution once for Fabrics connections.

Rebase

Tue, Jan 14, 5:39 PM
jhb requested review of D48456: nvmecontrol: Only do name resolution once for Fabrics connections.
Tue, Jan 14, 5:33 PM
jhb updated the diff for D48214: nvmf: Refactor reconnection support.

Reduce diff

Tue, Jan 14, 5:33 PM
jhb updated the diff for D48214: nvmf: Refactor reconnection support.

Generate dle from connected socket, avoiding duplicate sockets

Tue, Jan 14, 5:29 PM
jhb added inline comments to D44910: sys: Add cpu_update_pcb hook.
Tue, Jan 14, 5:03 PM
jhb requested review of D48455: Refine comment about size of struct pmap_large_md_page..
Tue, Jan 14, 3:53 PM
jhb committed rG660331da7a75: Centralize and simpify implemention of some VM macros (authored by brooks).
Centralize and simpify implemention of some VM macros
Tue, Jan 14, 3:50 PM
jhb closed D48450: Centralize and simpify implemention of some VM macros.
Tue, Jan 14, 3:49 PM
jhb updated the diff for D44910: sys: Add cpu_update_pcb hook.

Add a note about other threads being stopped

Tue, Jan 14, 3:47 PM
jhb closed D35401: pmcannotate: Add a '-m' mode option to control per-line annotations..
Tue, Jan 14, 3:41 PM
jhb committed rGde11299323e0: pmcannotate: Add a '-m' mode option to control per-line annotations. (authored by jhb).
pmcannotate: Add a '-m' mode option to control per-line annotations.
Tue, Jan 14, 3:41 PM
jhb committed rGc2cd12b7ae28: cxgbe tom: Make t4_push_frames static to t4_cpl_io.c (authored by jhb).
cxgbe tom: Make t4_push_frames static to t4_cpl_io.c
Tue, Jan 14, 3:36 PM
jhb closed D47760: cxgbe tom: Make t4_push_frames static to t4_cpl_io.c.
Tue, Jan 14, 3:35 PM

Mon, Jan 13

jhb added a comment to D48218: nvme/nvmf: Add NVME_GET_CONTROLLER_DATA ioctl to fetch cached cdata.

Ping

Mon, Jan 13, 8:14 PM
jhb committed rG6751f65e6af1: nvmf: Defer the post-sync shutdown handler to SHUTDOWN_PRI_LAST (authored by jhb).
nvmf: Defer the post-sync shutdown handler to SHUTDOWN_PRI_LAST
Mon, Jan 13, 8:08 PM
jhb requested review of D48450: Centralize and simpify implemention of some VM macros.
Mon, Jan 13, 7:27 PM
jhb added a comment to D43239: Use gnu17 for buildkernel.

I've created a PR to do an exp-run both this and D43237 at https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=284039

Mon, Jan 13, 6:01 PM · Contributor Reviews (src)
jhb requested review of D48446: iflib: Simplify CACHE_PTR_NEXT.
Mon, Jan 13, 3:49 PM

Sat, Jan 11

jhb added inline comments to D48329: ls -h: humanize the total as well.
Sat, Jan 11, 3:13 PM
jhb committed rG40d7ba087737: stand/kshim: Replace devclass_equal with calls to strcmp (authored by jhb).
stand/kshim: Replace devclass_equal with calls to strcmp
Sat, Jan 11, 4:04 AM
jhb committed rGf6f5aa8a2df5: stand/usb: Quiet warnings so this builds again (authored by jhb).
stand/usb: Quiet warnings so this builds again
Sat, Jan 11, 4:04 AM
jhb committed rG8e4535ee5870: stand/kshim: Implement bus_detach_children (authored by jhb).
stand/kshim: Implement bus_detach_children
Sat, Jan 11, 4:04 AM
jhb committed rGee15875c0159: stand/kshim: Update for devclass being removed from DRIVER_MODULE (authored by jhb).
stand/kshim: Update for devclass being removed from DRIVER_MODULE
Sat, Jan 11, 4:04 AM
jhb closed D48412: stand/kshim: Replace devclass_equal with calls to strcmp.
Sat, Jan 11, 4:04 AM
jhb closed D48411: stand/usb: Quiet warnings so this builds again.
Sat, Jan 11, 4:04 AM
jhb committed rG4378bd382ea0: stand/kshim: Replace bus_generic_attach with bus_attach_children (authored by jhb).
stand/kshim: Replace bus_generic_attach with bus_attach_children
Sat, Jan 11, 4:04 AM
jhb closed D48410: stand/kshim: Implement bus_detach_children.
Sat, Jan 11, 4:04 AM
jhb closed D48409: stand/usb: Update for devclass being removed from DRIVER_MODULE.
Sat, Jan 11, 4:04 AM
jhb closed D48404: kshim: Replace bus_generic_attach with bus_attach_children.
Sat, Jan 11, 4:04 AM
jhb added inline comments to D48410: stand/kshim: Implement bus_detach_children.
Sat, Jan 11, 4:00 AM
jhb committed rG84a62d974e74: mlx.4: Remove stale diagnostic message (authored by jhb).
mlx.4: Remove stale diagnostic message
Sat, Jan 11, 3:59 AM
jhb closed D48402: mlx.4: Remove stale diagnostic message.
Sat, Jan 11, 3:58 AM
jhb committed rG550137eab24a: universe: Permit requesting a specific version of GCC (authored by jhb).
universe: Permit requesting a specific version of GCC
Sat, Jan 11, 3:50 AM
jhb closed D48418: universe: Permit requesting a specific version of GCC.
Sat, Jan 11, 3:50 AM
jhb added inline comments to D48329: ls -h: humanize the total as well.
Sat, Jan 11, 3:46 AM

Fri, Jan 10

jhb added a comment to D48182: busdma: Avoid overallocation of bounce pages.

It would be tempting to hoist the pages calculation out of the this inner loop and just doing if ((bz->map_count + 1) * pages < bz->bz_total_pages && bz->bz_total_pages < maxpages) as the condition. You'd have to basically add 1 more to the map count if BUS_DMA_MIN_ALLOC_COMP was set (and then stop setting the flag in the else). That would avoid continuously reserving pages up to the bz_total_pages limit if you just keep destroying and freeing maps (e.g. if a NIC driver destroyed all its rings and maps for ifconfig down/up). However, if multiple tags share the same zone you can perhaps get starvation across tags. If we wanted to avoid that problem, we could instead track how many pages a tag has allocated so far, and then the expression would be if ((bz->map_count + 1) * pages < dmat->bounce_pages && bz->bz_total_pages < maxpages). That also nicely handles the BUS_DMA_MIN_ALLOC_COMP case and we could drop that flag entirely.

Fri, Jan 10, 10:23 PM
jhb updated the diff for D45434: pci_host_generic: Permit multiple bridges to share the same I/O window.

Fix build and rebase

Fri, Jan 10, 8:48 PM
jhb requested review of D48418: universe: Permit requesting a specific version of GCC.
Fri, Jan 10, 3:47 PM
jhb added a comment to D48373: bus_generic_print_child.9: Document bus_print_domain.
In D48373#1104076, @kib wrote:
In D48373#1104032, @jhb wrote:

@kib btw while documenting this, I do wonder if we shouldn't just merge bus_print_child_domain into bus_print_child_footer?

Why? On the principle that it is not used by anything else? But there are already approx. 10 callers of the function.

Fri, Jan 10, 3:11 PM
jhb closed D48403: twe.4: Remove manpage for previously-removed driver.
Fri, Jan 10, 3:08 PM
jhb accepted D48413: vt: drop the lock before calling vd_postswitch.
Fri, Jan 10, 12:15 PM
jhb added a comment to D48414: vt: avoid grabbing locks for KERNEL_PANICKED() as well.

I'm fine with this. Don't the locking implementations just bail without panicking though if a panic is already active, or is the nested panic not inside a lock but elsewhere?

Fri, Jan 10, 12:12 PM
jhb added inline comments to D48408: kobj: convert KOBJOPLOOKUP() to returning pointer to function.
Fri, Jan 10, 12:08 PM
jhb added inline comments to D48412: stand/kshim: Replace devclass_equal with calls to strcmp.
Fri, Jan 10, 12:02 PM
jhb added a comment to D48411: stand/usb: Quiet warnings so this builds again.

I do not know how to actually test this but it builds again. I had to do a hack to build tools/sysinit and then symlink that into my path to get stand/usb to actually build. I can run the test program but it doesn't do anything (and I'm not sure how to get it to do anything).

Fri, Jan 10, 3:25 AM
jhb requested review of D48412: stand/kshim: Replace devclass_equal with calls to strcmp.
Fri, Jan 10, 3:22 AM
jhb requested review of D48411: stand/usb: Quiet warnings so this builds again.
Fri, Jan 10, 3:22 AM
jhb requested review of D48410: stand/kshim: Implement bus_detach_children.
Fri, Jan 10, 3:22 AM
jhb requested review of D48409: stand/usb: Update for devclass being removed from DRIVER_MODULE.
Fri, Jan 10, 3:22 AM
jhb committed rGed49d3b31d42: twe.4: Remove manpage for previously-removed driver (authored by jhb).
twe.4: Remove manpage for previously-removed driver
Fri, Jan 10, 2:11 AM
jhb accepted D48405: HW Relnotes: Remove twe(4).

This syntax is fine

Fri, Jan 10, 12:46 AM
jhb updated the diff for D44910: sys: Add cpu_update_pcb hook.

Push curthread check out to callers

Fri, Jan 10, 12:45 AM

Thu, Jan 9

jhb added a comment to D48405: HW Relnotes: Remove twe(4).

Indeed, it is listed for 14.0 through 14.2, and we failed to mention the removal of twe(4) in the 14.0 release notes (we did mention twa(4) and several other drivers)

Thu, Jan 9, 9:44 PM
jhb accepted D48405: HW Relnotes: Remove twe(4).

Not sure if we need to retroactively fix any release notes? It was removed in 14.0 and later.

Thu, Jan 9, 9:40 PM
jhb updated subscribers of D45434: pci_host_generic: Permit multiple bridges to share the same I/O window.

@allanjude, @kevans, @markj in reference to testing on large arm64 boxes with multiple top-level pcibX devices

Thu, Jan 9, 9:28 PM
jhb accepted D48289: arm64: apple: fix aic for !SMP configurations.
Thu, Jan 9, 9:17 PM
jhb added a comment to D48404: kshim: Replace bus_generic_attach with bus_attach_children.

stand/usb still does not build though. Removing devclass from DRIVER_MODULE has broken the kshim bits quite a bit and needs some reworking.

Thu, Jan 9, 8:51 PM
jhb updated subscribers of D48373: bus_generic_print_child.9: Document bus_print_domain.

@kib btw while documenting this, I do wonder if we shouldn't just merge bus_print_child_domain into bus_print_child_footer?

Thu, Jan 9, 8:49 PM
jhb added inline comments to D48373: bus_generic_print_child.9: Document bus_print_domain.
Thu, Jan 9, 8:48 PM
jhb requested review of D48404: kshim: Replace bus_generic_attach with bus_attach_children.
Thu, Jan 9, 8:44 PM
jhb requested review of D48403: twe.4: Remove manpage for previously-removed driver.
Thu, Jan 9, 8:44 PM
jhb requested review of D48402: mlx.4: Remove stale diagnostic message.
Thu, Jan 9, 8:44 PM
jhb updated the diff for D48368: bus_attach_children.9: New manpage for functions operating on children.

Adjust stale Xr in DRIVER_ATTACH

Thu, Jan 9, 8:43 PM
jhb added a comment to D48369: bus_generic_attach.9: Remove manpage for deprecated function.

Sir, using current from yesterday i see a xref to this page in DEVICE_ATTACH(9), the diagnostics section of mlx(4) and twe(4), and the function appears to still be used in stand/kshim/bsd_kernel.*, sys/kern/subr_bus.c, and sys/sys/bus.h.

Thu, Jan 9, 8:25 PM
jhb updated the diff for D48368: bus_attach_children.9: New manpage for functions operating on children.

Fix sort order of Xrefs

Thu, Jan 9, 8:24 PM
jhb added a comment to D48368: bus_attach_children.9: New manpage for functions operating on children.

The patch probably fails to apply because earlier patches in this stack already patch share/man/man9/Makefile

Thu, Jan 9, 8:23 PM
jhb committed rGccabc7c2e556: DEVICE_IDENTIFY.9: Modernize description and use cases (authored by jhb).
DEVICE_IDENTIFY.9: Modernize description and use cases
Thu, Jan 9, 8:22 PM
jhb closed D48367: DEVICE_IDENTIFY.9: Modernize description and use cases.
Thu, Jan 9, 8:21 PM
jhb added inline comments to D48367: DEVICE_IDENTIFY.9: Modernize description and use cases.
Thu, Jan 9, 8:19 PM
jhb updated the diff for D48366: BUS_HINTED_CHILD.9: New manpage to document this bus method.

Drop quotes from .Nd

Thu, Jan 9, 8:12 PM
jhb committed rG6af088c736c2: BUS_CHILD_DETACHED.9: This is also called if DEVICE_ATTACH fails (authored by jhb).
BUS_CHILD_DETACHED.9: This is also called if DEVICE_ATTACH fails
Thu, Jan 9, 8:10 PM
jhb closed D48363: BUS_CHILD_DETACHED.9: This is also called if DEVICE_ATTACH fails.
Thu, Jan 9, 8:09 PM
jhb reopened D43239: Use gnu17 for buildkernel.
Thu, Jan 9, 7:07 PM · Contributor Reviews (src)
jhb closed D43239: Use gnu17 for buildkernel.
Thu, Jan 9, 7:02 PM · Contributor Reviews (src)
jhb committed rGc6eb7f3fbffd: zstd: Add a stub <assert.h> for the kernel (authored by minsoochoo0122_proton.me).
zstd: Add a stub <assert.h> for the kernel
Thu, Jan 9, 7:02 PM
jhb added a comment to D43239: Use gnu17 for buildkernel.

Testing locally I found that I did not need the changes to linuxkpi, I only needed the zstd change. For that, I also made the header include <sys/kassert.h> rather than <sys/systm.h> as we define all the assertion macros for the kernel in <sys/kassert.h>.

Thu, Jan 9, 6:33 PM · Contributor Reviews (src)
jhb committed rG2cadbe468a8e: tcp_wrappers: Use default C standard version (authored by minsoochoo0122_proton.me).
tcp_wrappers: Use default C standard version
Thu, Jan 9, 6:11 PM
jhb committed rGd0d7fcbae420: dumpon: Move the _Noreturn keyword before the return type (authored by jhb).
dumpon: Move the _Noreturn keyword before the return type
Thu, Jan 9, 6:11 PM
jhb closed D43236: tcp_wrappers: Use default C standard version.
Thu, Jan 9, 6:10 PM · Contributor Reviews (src)
jhb added a comment to D43237: Use gnu17 for buildworld.

Also, the only contrib things I could find that are using c99 explicitly is ZFS. I wonder if those can use c17?

Thu, Jan 9, 5:44 PM · Contributor Reviews (src)
jhb added a comment to D43237: Use gnu17 for buildworld.

I'm working on trying to merge this and have the following candidate commit message:

Thu, Jan 9, 5:44 PM · Contributor Reviews (src)
jhb added a comment to D48329: ls -h: humanize the total as well.

I vote for just outputting the size in bytes as a single value as well ("x MB")

Thu, Jan 9, 5:03 PM
jhb added a comment to D48347: ls: --group-directories=first/last.

Supporting the GNU ls option (--group-directories-first) as a long option seems fine to me. For the FreeBSD-specific extension the similar long option is probably ok. If -G wasn't already claimed by color ls perhaps that would have been a good candidate, but there are very few remaining single-letter options.

Thu, Jan 9, 4:59 PM
jhb accepted D46656: LinuxKPI: make __kmalloc() play by the rules.

Note my comment in the other review. The kmalloc_node family of functions needs the same fix.

Thu, Jan 9, 4:41 PM
jhb added a comment to D46657: LinuxKPI: switch mallocarray to an lpi implementation using __kmalloc().

This seems certainly fine. This is the semantics required for kcalloc and kmalloc_array

Thu, Jan 9, 4:39 PM
jhb added inline comments to D46752: [hb]: Update instructions to update from source.
Thu, Jan 9, 4:23 PM
jhb added a comment to D48283: ithread: Allow some ithreads to sleep.

Why not use a taskqueue? That is what every other driver that needs this functionality does.

Thu, Jan 9, 4:18 PM

Wed, Jan 8

jhb added inline comments to D48367: DEVICE_IDENTIFY.9: Modernize description and use cases.
Wed, Jan 8, 6:27 PM
jhb added inline comments to D48366: BUS_HINTED_CHILD.9: New manpage to document this bus method.
Wed, Jan 8, 6:26 PM

Tue, Jan 7

jhb added a comment to D48368: bus_attach_children.9: New manpage for functions operating on children.

Possibly device_delete_children should also be in this manpage, but that also highlights that it probably should be renamed (or that all of these functions should be renamed to device_*).

Tue, Jan 7, 6:20 PM
jhb requested review of D48373: bus_generic_print_child.9: Document bus_print_domain.
Tue, Jan 7, 5:05 PM
jhb requested review of D48372: BUS_CONFIG_INTR.9: Describe bus_config_intr() wrapper function.
Tue, Jan 7, 5:05 PM
jhb requested review of D48369: bus_generic_attach.9: Remove manpage for deprecated function.
Tue, Jan 7, 5:05 PM