Page MenuHomeFreeBSD

jhb (John Baldwin)
User

Projects (10)

User Details

User Since
Mar 11 2014, 8:46 PM (632 w, 5 d)

Recent Activity

Fri, Apr 24

jhb requested review of D56628: ctl_ioctl_frontend: Reject out-of-range initiator IDs.
Fri, Apr 24, 8:35 PM
jhb accepted D45268: libgcc_s: Add a linker script to link to libgcc.
Fri, Apr 24, 8:03 PM
jhb requested review of D56625: kobj: Use M_WAITOK in kobj_init.
Fri, Apr 24, 8:00 PM
jhb requested review of D56624: kobj: Assert class passed to kobj_init_static is compiled.
Fri, Apr 24, 8:00 PM
jhb committed rG50c4b12485fe: acpi_apm: Narrow scope of ACPI_LOCK (authored by jhb).
acpi_apm: Narrow scope of ACPI_LOCK
Fri, Apr 24, 7:54 PM
jhb committed rG363996314872: acpi_apm: Don't recurse on ACPI_LOCK in apmreadfilt (authored by jhb).
acpi_apm: Don't recurse on ACPI_LOCK in apmreadfilt
Fri, Apr 24, 7:54 PM
jhb committed rGc4a3c64993fd: pciconf.8: Reorganize slightly to handle additional modes (authored by jhb).
pciconf.8: Reorganize slightly to handle additional modes
Fri, Apr 24, 6:02 PM
jhb committed rGb9a823bcb986: devinfo: Support PCI DBSF and ACPI handles for -p (authored by jhb).
devinfo: Support PCI DBSF and ACPI handles for -p
Fri, Apr 24, 6:02 PM
jhb committed rGa783b0bca2ca: acpi_apm: Don't recurse on ACPI_LOCK in apmreadfilt (authored by jhb).
acpi_apm: Don't recurse on ACPI_LOCK in apmreadfilt
Fri, Apr 24, 5:57 PM
jhb committed rG8fae13b0d261: LinuxKPI: Fix simple_read_from_buffer for zero-size and off-the-end reads (authored by jhb).
LinuxKPI: Fix simple_read_from_buffer for zero-size and off-the-end reads
Fri, Apr 24, 5:57 PM
jhb committed rGa7cf142ba904: acpi_apm: Narrow scope of ACPI_LOCK (authored by jhb).
acpi_apm: Narrow scope of ACPI_LOCK
Fri, Apr 24, 5:57 PM
jhb committed rG2b9d85fd82df: lindebugfs: Pass user buffer pointers to the read/write file operations (authored by jhb).
lindebugfs: Pass user buffer pointers to the read/write file operations
Fri, Apr 24, 5:57 PM
jhb committed rG072744dbd55b: LinuxKPI: Use simple_read_from_buffer in simple_attr_read and seq_read (authored by jhb).
LinuxKPI: Use simple_read_from_buffer in simple_attr_read and seq_read
Fri, Apr 24, 5:57 PM
jhb committed rG65d949e9a81e: libc/quad: fix missing closing #endif in Symbol.map (authored by delphij).
libc/quad: fix missing closing #endif in Symbol.map
Fri, Apr 24, 5:57 PM
jhb committed rGcd1180d273a8: LinuxKPI: Clear the sbuf at the start of each call to seq_read (authored by jhb).
LinuxKPI: Clear the sbuf at the start of each call to seq_read
Fri, Apr 24, 5:57 PM
jhb committed rGae4ae80a27a3: pciconf: Add a tree mode (authored by jhb).
pciconf: Add a tree mode
Fri, Apr 24, 5:57 PM
jhb committed rG5daad074124c: pciconf: Use the exported values of bus numbers for PCI bridges (authored by jhb).
pciconf: Use the exported values of bus numbers for PCI bridges
Fri, Apr 24, 5:57 PM
jhb committed rG920d0afddc82: pci: Export bus numbers for bridge devices in struct pci_conf (authored by jhb).
pci: Export bus numbers for bridge devices in struct pci_conf
Fri, Apr 24, 5:57 PM
jhb committed rG92d9d996538b: Do not fail 'devctl clear driver' if another driver is not found (authored by saper_saper.info).
Do not fail 'devctl clear driver' if another driver is not found
Fri, Apr 24, 5:57 PM
jhb committed rGf97ba9f0c863: pci.4: Quote argument to -width for a list block (authored by jhb).
pci.4: Quote argument to -width for a list block
Fri, Apr 24, 5:57 PM
jhb committed rGf1bf5417c64e: pciconf: Use a single enum to track the current operation mode (authored by jhb).
pciconf: Use a single enum to track the current operation mode
Fri, Apr 24, 5:57 PM
jhb committed rG7f4940dd226c: sys: Don't pass RF_ALLOCATED to bus_alloc_resource* (authored by jhb).
sys: Don't pass RF_ALLOCATED to bus_alloc_resource*
Fri, Apr 24, 5:57 PM
jhb committed rG893cf0292352: libc/quad: Switch to per-arch lists of symbols (authored by jhb).
libc/quad: Switch to per-arch lists of symbols
Fri, Apr 24, 5:57 PM
jhb committed rG656838ab3fcc: pciconf: Factor out fetching of matching devices from list_devs (authored by jhb).
pciconf: Factor out fetching of matching devices from list_devs
Fri, Apr 24, 5:57 PM
jhb committed rGc23161bc1afc: bsd.linker.mk: Sort list of linker features (authored by jhb).
bsd.linker.mk: Sort list of linker features
Fri, Apr 24, 5:57 PM
jhb committed rG0a9ffadcf9ff: libc/quad: narrow list of symbols exposed for 32-bit arm (authored by jhb).
libc/quad: narrow list of symbols exposed for 32-bit arm
Fri, Apr 24, 5:57 PM
jhb committed rGdbba1080f245: bsd.linker.mk: Document ifunc, ifunc-noplt, riscv-relaxations features (authored by jhb).
bsd.linker.mk: Document ifunc, ifunc-noplt, riscv-relaxations features
Fri, Apr 24, 5:57 PM
jhb committed rGd9421acec5d2: sys: Declare 'end' as an extern char[] (authored by jhb).
sys: Declare 'end' as an extern char[]
Fri, Apr 24, 5:57 PM
jhb committed rG249c230d7546: sdiob: Forward-declare struct sdio_func (authored by jhb).
sdiob: Forward-declare struct sdio_func
Fri, Apr 24, 5:57 PM
jhb committed rG2e3a575bf7a5: ccp: Don't name anonymous structure and union types (authored by jhb).
ccp: Don't name anonymous structure and union types
Fri, Apr 24, 5:57 PM
jhb committed rGd46ff9d8389b: __builtin_align_down: Cast value to __uintptr_t in the fallback (authored by jhb).
__builtin_align_down: Cast value to __uintptr_t in the fallback
Fri, Apr 24, 5:57 PM
jhb committed rGd17f7f9e911a: vchiq: Fix return type of vchiq_copy_from_user (authored by jhb).
vchiq: Fix return type of vchiq_copy_from_user
Fri, Apr 24, 5:57 PM
jhb committed rG7e7745666352: ctld: Honor the default maximum I/O queue size for NVMeoF controllers (authored by jhb).
ctld: Honor the default maximum I/O queue size for NVMeoF controllers
Fri, Apr 24, 5:57 PM
jhb committed rG45c8b3b908f3: nvmf: Limit the default I/O queue size to 128 entries (authored by jhb).
nvmf: Limit the default I/O queue size to 128 entries
Fri, Apr 24, 5:57 PM
jhb committed rG4f20ccd7500b: pcib: Assume a window where both the base and limit are 0 is uninitialized (authored by jhb).
pcib: Assume a window where both the base and limit are 0 is uninitialized
Fri, Apr 24, 5:57 PM
jhb committed rGb833e83b79bd: arm64: Explicitly use movz (authored by jhb).
arm64: Explicitly use movz
Fri, Apr 24, 5:56 PM
jhb committed rG59aa4cf921af: arm bcm2835: Appease a warning from GCC (authored by jhb).
arm bcm2835: Appease a warning from GCC
Fri, Apr 24, 5:56 PM
jhb committed rG9c6f96d18998: sctp: Use __sdt_used for variables only used by SDT probes (authored by jhb).
sctp: Use __sdt_used for variables only used by SDT probes
Fri, Apr 24, 5:56 PM
jhb committed rGe2f8bae08fb9: ext2fs: Use __sdt_used for variables only used by SDT probes (authored by jhb).
ext2fs: Use __sdt_used for variables only used by SDT probes
Fri, Apr 24, 5:56 PM
jhb committed rG06fcab1f02fe: sdhci_fdt_rockchip: Don't return 0 from probe routine (authored by jhb).
sdhci_fdt_rockchip: Don't return 0 from probe routine
Fri, Apr 24, 5:56 PM
jhb committed rG2df675298a99: sdhci_fdt_rockchip: Move ofw_bus_status_okay check (authored by jhb).
sdhci_fdt_rockchip: Move ofw_bus_status_okay check
Fri, Apr 24, 5:56 PM
jhb committed rG1c7e291da65a: libmd aarch64: Use ands instead of bics to round down the length (authored by jhb).
libmd aarch64: Use ands instead of bics to round down the length
Fri, Apr 24, 5:56 PM
jhb committed rGb339a4a042f9: spibus: Don't leak KVA when freeing a mmap region (authored by jhb).
spibus: Don't leak KVA when freeing a mmap region
Fri, Apr 24, 5:56 PM
jhb committed rG42107129088c: universe: Bump default GCC version to 15 (authored by jhb).
universe: Bump default GCC version to 15
Fri, Apr 24, 5:56 PM
jhb committed rG7a2de8121a2f: tests/fusefs: appease gcc -Wcast-qual (authored by rlibby).
tests/fusefs: appease gcc -Wcast-qual
Fri, Apr 24, 3:31 PM
jhb committed rG3b0fc4472aa5: bhyve/slirp: Avoid a nested declaration of environ (authored by markj).
bhyve/slirp: Avoid a nested declaration of environ
Fri, Apr 24, 3:31 PM
jhb committed rG3a86c769feb9: sys/time: appease gcc -Wtype-limits (authored by rlibby).
sys/time: appease gcc -Wtype-limits
Fri, Apr 24, 3:31 PM
jhb committed rG9c4106c35059: rtld: silence clang's unterminated-string-initialization warning (authored by arichardson).
rtld: silence clang's unterminated-string-initialization warning
Fri, Apr 24, 3:31 PM
jhb committed rG66b5d1ffadb6: libthr: fix -Wunterminated-string-initialization (authored by arichardson).
libthr: fix -Wunterminated-string-initialization
Fri, Apr 24, 3:30 PM
jhb committed rG27a7b982ba6e: libfetch: Fix -Wunterminated-string-initialization (authored by arichardson).
libfetch: Fix -Wunterminated-string-initialization
Fri, Apr 24, 3:30 PM
jhb added a reverting change for rGf4db342d4419: libkern: remove old ffs/fls routines: rGd100ff6c09c9: libkern: Add libcalls for ffs and __ffsdi2.
Fri, Apr 24, 3:30 PM
jhb committed rGbc28aaff6078: Makefile.inc1: Don't mark GCC broken for riscv64 (authored by jhb).
Makefile.inc1: Don't mark GCC broken for riscv64
Fri, Apr 24, 3:30 PM
jhb committed rGd6e1660971ce: sdt: Use the "cc" operand modifier for the address of probes for GCC 15+ (authored by jhb).
sdt: Use the "cc" operand modifier for the address of probes for GCC 15+
Fri, Apr 24, 3:30 PM
jhb committed rGd100ff6c09c9: libkern: Add libcalls for ffs and __ffsdi2 (authored by jhb).
libkern: Add libcalls for ffs and __ffsdi2
Fri, Apr 24, 3:30 PM
jhb committed rG9fefd5146b74: riscv: Add ffs.c and ffsdi2.c (authored by jhb).
riscv: Add ffs.c and ffsdi2.c
Fri, Apr 24, 3:30 PM
jhb committed rG91cdb8f0c1c4: riscv: Enable the zifencei extension explicitly in -march (authored by jhb).
riscv: Enable the zifencei extension explicitly in -march
Fri, Apr 24, 3:30 PM
jhb committed rGdadecd7293e2: stand: Add compiler builtins needed by GCC for RISC-V (authored by jhb).
stand: Add compiler builtins needed by GCC for RISC-V
Fri, Apr 24, 3:30 PM
jhb committed rG63e4b5c5e924: kyua: Workaround unclear warning from GCC (authored by jhb).
kyua: Workaround unclear warning from GCC
Fri, Apr 24, 3:30 PM
jhb committed rGec5370457e3a: stand: Use the correct OUTPUT_ARCH in the linker script for RISC-V (authored by jhb).
stand: Use the correct OUTPUT_ARCH in the linker script for RISC-V
Fri, Apr 24, 3:30 PM
jhb committed rG6ca22d1666be: wlanstat: Drop unneeded bsd.compiler.mk from Makefile (authored by jhb).
wlanstat: Drop unneeded bsd.compiler.mk from Makefile
Fri, Apr 24, 3:30 PM
jhb committed rG628d378aaa4e: bsd.sys.mk: Silence a few GCC warnings for C++ (authored by jhb).
bsd.sys.mk: Silence a few GCC warnings for C++
Fri, Apr 24, 3:30 PM
jhb committed rG441beb326fbf: netbsd-tests t_regex_att: Use __nonstring for a non-string constant (authored by jhb).
netbsd-tests t_regex_att: Use __nonstring for a non-string constant
Fri, Apr 24, 3:30 PM
jhb committed rGf5b85cc09186: sys: Use __is_aligned and __align_down for some kstack alignment operations (authored by jhb).
sys: Use __is_aligned and __align_down for some kstack alignment operations
Fri, Apr 24, 3:30 PM
jhb added a reverting change for D40699: libkern: remove old ffs/fls routines: rGd100ff6c09c9: libkern: Add libcalls for ffs and __ffsdi2.
Fri, Apr 24, 3:30 PM
jhb committed rGc9501b977642: powerpc: Fix alignment of initial PCB on kstack (authored by jhb).
powerpc: Fix alignment of initial PCB on kstack
Fri, Apr 24, 3:30 PM
jhb committed rG251267aa38af: arm: Make init_proc0 static (authored by jhb).
arm: Make init_proc0 static
Fri, Apr 24, 3:30 PM
jhb committed rGc62cae9b53fe: rpctls_impl.c: Use a direct cast to uintptr_t instead of __DECONST (authored by jhb).
rpctls_impl.c: Use a direct cast to uintptr_t instead of __DECONST
Fri, Apr 24, 3:30 PM
jhb committed rGc57d2b6f97d2: rtld: Use a helper variable to simplify a few lines (authored by jhb).
rtld: Use a helper variable to simplify a few lines
Fri, Apr 24, 3:30 PM
jhb committed rGff90e613e783: acpi: Add a function to deregister all ioctl commands using the same function (authored by jhb).
acpi: Add a function to deregister all ioctl commands using the same function
Fri, Apr 24, 3:30 PM
jhb committed rG4f536daec8fb: rtld: Switch to using <assert.h> for assert (authored by jhb).
rtld: Switch to using <assert.h> for assert
Fri, Apr 24, 3:29 PM
jhb committed rG4bbc38778316: rtld: Simplify walking program headers (authored by jhb).
rtld: Simplify walking program headers
Fri, Apr 24, 3:29 PM
jhb committed rG3c01c7df9840: rtld: Use uintptr_t instead of Elf_Addr for init/fini function pointers (authored by jhb).
rtld: Use uintptr_t instead of Elf_Addr for init/fini function pointers
Fri, Apr 24, 3:29 PM
jhb committed rG852edd195aee: csu: Remove unused constant (authored by jhb).
csu: Remove unused constant
Fri, Apr 24, 3:29 PM
jhb committed rGdeebb011a443: swab: Correctly treat the data as misaligned (authored by jhb).
swab: Correctly treat the data as misaligned
Fri, Apr 24, 3:29 PM
jhb committed rG2d3136984827: acpi: Statically initialize acpi_ioctl_hooks (authored by jhb).
acpi: Statically initialize acpi_ioctl_hooks
Fri, Apr 24, 3:29 PM
jhb committed rGdc1b130c6a07: sys/modules/acpi/Makefile: One line per subdirectory (authored by jhb).
sys/modules/acpi/Makefile: One line per subdirectory
Fri, Apr 24, 3:29 PM
jhb committed rGb2516469fed2: Build acpi kernel modules on aarch64 (authored by jhb).
Build acpi kernel modules on aarch64
Fri, Apr 24, 3:29 PM
jhb committed rG5c373870e9d6: acpi: Use M_WAITOK in acpi_register_ioctl (authored by jhb).
acpi: Use M_WAITOK in acpi_register_ioctl
Fri, Apr 24, 3:29 PM
jhb committed rG03792b24472f: acpi: Reject duplicate handlers for ioctl commands (authored by jhb).
acpi: Reject duplicate handlers for ioctl commands
Fri, Apr 24, 3:29 PM
jhb committed rGf6add67808f3: acpi_apei: Remove the hest member from the softc (authored by jhb).
acpi_apei: Remove the hest member from the softc
Fri, Apr 24, 3:29 PM
jhb committed rG8963d6715331: acpi: Free ivars in bus_child_deleted method (authored by jhb).
acpi: Free ivars in bus_child_deleted method
Fri, Apr 24, 3:29 PM
jhb committed rG2233463df7de: cxgbe: Stop using bus_space_tag/handle directly (authored by jhb).
cxgbe: Stop using bus_space_tag/handle directly
Fri, Apr 24, 3:29 PM
jhb committed rG41abe983dbd9: nvme: Use memcpy instead of memmove in nvme_cdata_get_disk_ident (authored by jhb).
nvme: Use memcpy instead of memmove in nvme_cdata_get_disk_ident
Fri, Apr 24, 3:29 PM
jhb committed rG80c8d742510c: nvme: Include <sys/systm.h> explicitly for memmove (authored by jhb).
nvme: Include <sys/systm.h> explicitly for memmove
Fri, Apr 24, 3:29 PM
jhb committed rGd37cbfe3ef55: nvme: Abstract out function to obtain a disk ident string from cdata (authored by jhb).
nvme: Abstract out function to obtain a disk ident string from cdata
Fri, Apr 24, 3:29 PM
jhb committed rGfad5c74b0449: nvmf: Add support for DIOCGIDENT (authored by jhb).
nvmf: Add support for DIOCGIDENT
Fri, Apr 24, 3:29 PM
jhb added a reviewer for D56533: ctld: Simplify pidfile rename handling in conf::apply: kevans.
Fri, Apr 24, 2:17 PM
jhb added inline comments to D56532: ctld: Add a dedicated conf method for shutting down.
Fri, Apr 24, 2:17 PM
jhb added a reviewer for D56532: ctld: Add a dedicated conf method for shutting down: kevans.
Fri, Apr 24, 2:15 PM
jhb added a reviewer for D56531: ctld: Mark a few more isns_* methods in the conf class private: kevans.
Fri, Apr 24, 2:15 PM
jhb added a reviewer for D56530: ctld: Remove redundant call to conf::isns_schedule_update: kevans.
Fri, Apr 24, 2:14 PM
jhb accepted D51782: ctld: kernel-sourced portal groups are not dummies.
Fri, Apr 24, 2:14 PM

Thu, Apr 23

jhb committed rG614ef718496e: ctld: Don't add an iscsi port for targets with only kernel ports (authored by thomsonk_yandex.com).
ctld: Don't add an iscsi port for targets with only kernel ports
Thu, Apr 23, 7:18 PM
jhb committed rGaad4fec5d7e2: ctld: Move the pidfile handle out to a global variable (authored by jhb).
ctld: Move the pidfile handle out to a global variable
Thu, Apr 23, 7:18 PM
jhb committed rG3df5cc33d894: ctld: Ports without a portal group are not dummy ports (authored by jhb).
ctld: Ports without a portal group are not dummy ports
Thu, Apr 23, 7:18 PM
jhb closed D56527: ctld: Move the pidfile handle out to a global variable.
Thu, Apr 23, 7:18 PM
jhb closed D56524: ctld: Ports without a portal group are not dummy ports.
Thu, Apr 23, 7:18 PM
jhb closed D56523: ctld: Don't add an iscsi port for targets with only kernel ports.
Thu, Apr 23, 7:18 PM
jhb added a comment to D56541: ctld: convert an EEXIST in kernel port creation to an update request.
In D56541#1296047, @jhb wrote:
In D56541#1295966, @jhb wrote:

So you may be interested in my other fixes where I had incorrectly labeled all kernel ports as dummy ports by mistake. See https://reviews.freebsd.org/D56524 and the related stack (and all the back and forth in the associated PR). I wonder if you even need this change anymore once that series of changes lands.

The context for this is the older review that I had tried to get input on: https://reviews.freebsd.org/D51782 -- I don't think your change addresses that, because I seem to be looking at a portal_group_port:

bool                                                                                                          
portal_group_port::is_dummy() const                                                                           
{                                                                                                             
        return (p_portal_group->is_dummy());                                                                  
}

Your out-of-band commentary combined with @asomers notes is what lead me to this path instead, since I couldn't get any traction there...

Oh, oof, there are "kernel" ports and there are "kernel ports". Having been down the long tunnel of the PR I referenced, I am thinking of kernel ports as the things managed by "kports" in ctld now, so physical ports on HBAs, and ioctl ports. Not a pre-existing portal_group port. For a pre-existing portal group port, I guess I'm surprised that we think the port is new. Hmm, looking at your other PR, is the issue that we do indeed add a port and a portal_group, but it has no portals so we think it is a dummy when it isn't? Ah, so it is, and I think I hadn't really understood the issue before now. I think I prefer getting the match right vs ignoring EEXIST errors (which is to say I think I prefer your original patch). If we were going to go the EEXIST route there's not much reason in enumerating non-physical kernel-enumerated ports at all, so I think fixing the match is closer to the code's intent. I might suggest naming the field pg_kernel_enumerated or some such to make it a bit clearer since we have kports so the notion of "kernel port" is a bit overloaded unfortunately.

FWIW, I personally much prefer my original patch as well, since I think it's pretty clear that 9215e501b9e7d3f42567 causing this was a side-effect rather than something intentional. I do think that discrepancy was 100% caused by the noted weirdness in how startup and shutdown works (before your patches) with now-conf::apply, but it'd be nice if we could fix the regression and maybe revisit that after.

Thu, Apr 23, 7:04 PM
jhb committed rGfe3e92e6868d: PHYS_TO_DMAP: Return a void * instead of a vm_offset_t (authored by jhb).
PHYS_TO_DMAP: Return a void * instead of a vm_offset_t
Thu, Apr 23, 6:17 PM