Page MenuHomeFreeBSD

jhb (John Baldwin)
User

Projects (10)

User Details

User Since
Mar 11 2014, 8:46 PM (626 w, 4 d)

Recent Activity

Yesterday

jhb accepted D55800: bhyve/virtio: Fix comparison of integer expressions of different signedness.
Sat, Mar 14, 4:19 PM

Fri, Mar 13

jhb updated the diff for D55833: lindebugfs: Pass user buffer pointers to the read/write file operations.

Don't use IOVEC_ADVANCE

Fri, Mar 13, 4:12 PM
jhb added inline comments to D55833: lindebugfs: Pass user buffer pointers to the read/write file operations.
Fri, Mar 13, 1:49 PM
jhb updated the summary of D55833: lindebugfs: Pass user buffer pointers to the read/write file operations.
Fri, Mar 13, 1:46 PM
jhb updated the diff for D55833: lindebugfs: Pass user buffer pointers to the read/write file operations.

Fix simple_attr as well

Fri, Mar 13, 1:45 PM
jhb requested review of D55845: LinuxKPI: Better handling of zero-size and off-the-end reads.
Fri, Mar 13, 1:44 PM
jhb added a comment to D55833: lindebugfs: Pass user buffer pointers to the read/write file operations.

I found another place I need to update (simple_attr), will update the review later today with those changes as well.

Fri, Mar 13, 1:38 PM

Thu, Mar 12

jhb added a comment to D55833: lindebugfs: Pass user buffer pointers to the read/write file operations.

This also makes me appreciate struct uio.

Thu, Mar 12, 8:53 PM
jhb added a comment to D55833: lindebugfs: Pass user buffer pointers to the read/write file operations.

This would be an alternate fix instead of D55816. Note that I have compiled this, but have no good way to test it so would appreciate some testing.

Thu, Mar 12, 8:52 PM
jhb requested review of D55833: lindebugfs: Pass user buffer pointers to the read/write file operations.
Thu, Mar 12, 8:50 PM
jhb accepted D55810: x86 FRED: add CPUID, MSR, and CR4 bits.
Thu, Mar 12, 3:48 PM
jhb added a comment to D55800: bhyve/virtio: Fix comparison of integer expressions of different signedness.

To be fair, I think the cast is required in the one place the function is used, so I think it is fine to make the function match the one use case.

Thu, Mar 12, 3:47 PM
jhb accepted D55809: amd64: move code to check for traps with interrupts disabled into helpers.

Given the check for interrupts being disabled is in the new hooks, I wonder if the name should reflect that? I also think spelling out user vs kernel would be more readable? Maybe trap_check_intr_user or something? Not that the name matters tremendously.

Thu, Mar 12, 3:42 PM
jhb accepted D55827: amd64: move code to clear PSL_T on debug exception into a helper.

I guess you plan to make these ifuncs for FRED?

Thu, Mar 12, 3:29 PM
jhb added inline comments to D55816: lindebugfs: Don't pass a kernel pointer to copy_from_user.
Thu, Mar 12, 3:25 PM
jhb accepted D55818: nvme: replace bus_space_[read|write]_4 with bus_[read|write]_4.

When committing, you can just use Matt's name as the commit author (you will still be the committer). I agree with Jess on reformatting the macros.

Thu, Mar 12, 3:15 PM
jhb accepted D55817: nvme: removed unused 'regs' variable.

Great that we already use bus_space. I feared the worst when I saw this assignment fly by in the earlier diff.

Thu, Mar 12, 3:12 PM
jhb accepted D55808: amd64: move efirt trap checks into the helper.
Thu, Mar 12, 3:11 PM
jhb accepted D55806: shm: Zero struct kinfo_file in sysctl handler.
Thu, Mar 12, 3:10 PM
jhb accepted D55810: x86 FRED: add CPUID, MSR, and CR4 bits.
Thu, Mar 12, 3:09 PM
jhb added a comment to D55819: queue.h: Reorder STAILQ_INSERT_TAIL.

In particular, is the invariant you are tripping over QCMD_STAILQ_CHECK_TAIL?

Thu, Mar 12, 2:53 PM

Wed, Mar 11

jhb requested review of D55816: lindebugfs: Don't pass a kernel pointer to copy_from_user.
Wed, Mar 11, 7:15 PM
jhb added a comment to D55767: ctld: Support multiple physical ports in a target.

Bug reporter confirmed this fixes support for multiple ports.

Wed, Mar 11, 4:10 PM

Tue, Mar 10

jhb accepted D55800: bhyve/virtio: Fix comparison of integer expressions of different signedness.
Tue, Mar 10, 6:58 PM
jhb committed rG14b8a27883c1: pciconf: Add a tree mode (authored by jhb).
pciconf: Add a tree mode
Tue, Mar 10, 4:55 PM
jhb committed rG98a0d2283701: pciconf.8: Reorganize slightly to handle additional modes (authored by jhb).
pciconf.8: Reorganize slightly to handle additional modes
Tue, Mar 10, 4:55 PM
jhb committed rG9a1394957c30: 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
Tue, Mar 10, 4:54 PM
jhb committed rG7e7a1b61531a: 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
Tue, Mar 10, 4:54 PM
jhb committed rGc3ac5f14c8b3: pci.4: Quote argument to -width for a list block (authored by jhb).
pci.4: Quote argument to -width for a list block
Tue, Mar 10, 4:54 PM
jhb committed rGc8fb16542a52: 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
Tue, Mar 10, 4:54 PM
jhb closed D55774: pciconf: Add a tree mode.
Tue, Mar 10, 4:54 PM
jhb closed D55773: pciconf.8: Reorganize slightly to handle additional modes.
Tue, Mar 10, 4:54 PM
jhb closed D55772: pciconf: Use the exported values of bus numbers for PCI bridges.
Tue, Mar 10, 4:54 PM
jhb committed rG9eb035ff8439: pciconf: Factor out fetching of matching devices from list_devs (authored by jhb).
pciconf: Factor out fetching of matching devices from list_devs
Tue, Mar 10, 4:54 PM
jhb closed D55771: pci: Export bus numbers for bridge devices in struct pci_conf.
Tue, Mar 10, 4:54 PM
jhb closed D55770: pci.4: Quote argument to -width for a bullet list.
Tue, Mar 10, 4:54 PM
jhb closed D55769: pciconf: Use a single enum to track the current operation mode.
Tue, Mar 10, 4:54 PM
jhb closed D55768: pciconf: Factor out fetching of matching devices from list_devs.
Tue, Mar 10, 4:54 PM
jhb added a comment to D55800: bhyve/virtio: Fix comparison of integer expressions of different signedness.

The error of having assert() invoke code that is required (such that the code will just flat out break if you build with NDEBUG) still needs fixing. Siva's version fixes that bigger bug. I think It's fine if buf_to_iov() returns size_t, but I think the -1 is still useful from iov_to_buf to avoid ambiguity for a return value of 0. reallocf() is also a good fix.

Tue, Mar 10, 4:42 PM
jhb added a comment to D55795: bhyve/virtio-scsi: fix sign-compare warning on gcc15.

Sigh, this is kind of terrible. Code that is required should never be invoked as part of assert(). Your change is correct, but I think style-wise it is better to declare bufsize at the start of the function instead of creating a nested block.

Tue, Mar 10, 4:40 PM
jhb added a comment to D55566: universe: move build logs to OBJROOT.

I actually find it really convenient that the log files are in .CURDIR.

Tue, Mar 10, 4:17 PM

Mon, Mar 9

jhb added a reviewer for D55770: pci.4: Quote argument to -width for a bullet list: manpages.
Mon, Mar 9, 7:23 PM
jhb added a comment to D55774: pciconf: Add a tree mode.

Sample output available at https://reviews.freebsd.org/P704

Mon, Mar 9, 3:50 PM
jhb requested review of D55774: pciconf: Add a tree mode.
Mon, Mar 9, 3:49 PM
jhb requested review of D55773: pciconf.8: Reorganize slightly to handle additional modes.
Mon, Mar 9, 3:49 PM
jhb requested review of D55772: pciconf: Use the exported values of bus numbers for PCI bridges.
Mon, Mar 9, 3:48 PM
jhb requested review of D55771: pci: Export bus numbers for bridge devices in struct pci_conf.
Mon, Mar 9, 3:48 PM
jhb requested review of D55770: pci.4: Quote argument to -width for a bullet list.
Mon, Mar 9, 3:48 PM
jhb requested review of D55769: pciconf: Use a single enum to track the current operation mode.
Mon, Mar 9, 3:48 PM
jhb requested review of D55768: pciconf: Factor out fetching of matching devices from list_devs.
Mon, Mar 9, 3:48 PM
jhb requested review of D55767: ctld: Support multiple physical ports in a target.
Mon, Mar 9, 3:43 PM
jhb accepted D55747: cxgbetool: create one backend routine for all the loadX cmds.

Maybe also note in the commit log that this adds support for reading from non-regular files such as FIFOs?

Mon, Mar 9, 2:06 PM

Fri, Mar 6

jhb committed rG1e4086d05297: sys: Don't pass RF_ALLOCATED to bus_alloc_resource* (authored by jhb).
sys: Don't pass RF_ALLOCATED to bus_alloc_resource*
Fri, Mar 6, 9:33 PM
jhb closed D55683: sys: Don't pass RF_ALLOCATED to bus_alloc_resource*.
Fri, Mar 6, 9:33 PM
jhb closed D55673: devinfo: Support PCI DBSF and ACPI handles for -p.
Fri, Mar 6, 9:33 PM
jhb committed rGca25b1b26379: devinfo: Support PCI DBSF and ACPI handles for -p (authored by jhb).
devinfo: Support PCI DBSF and ACPI handles for -p
Fri, Mar 6, 9:33 PM
jhb created P704 pciconf -t output.
Fri, Mar 6, 7:55 PM
jhb accepted D52885: style.9: Encourage style changes when doing significant modifications.

Some wording nits and suggestions.

Fri, Mar 6, 4:35 PM
jhb requested review of D55683: sys: Don't pass RF_ALLOCATED to bus_alloc_resource*.
Fri, Mar 6, 3:25 AM

Thu, Mar 5

jhb committed rG54bf594851f6: libc/quad: Switch to per-arch lists of symbols (authored by jhb).
libc/quad: Switch to per-arch lists of symbols
Thu, Mar 5, 7:08 PM
jhb committed rG27cfa8ec633a: 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
Thu, Mar 5, 7:08 PM
jhb committed rGcf92fa337074: bsd.linker.mk: Sort list of linker features (authored by jhb).
bsd.linker.mk: Sort list of linker features
Thu, Mar 5, 7:08 PM
jhb committed rG1b77f6ec6b9f: bsd.linker.mk: Document ifunc, ifunc-noplt, riscv-relaxations features (authored by jhb).
bsd.linker.mk: Document ifunc, ifunc-noplt, riscv-relaxations features
Thu, Mar 5, 7:08 PM
jhb committed rGd19f2af2b7f9: acpi: Don't attach a "wake" sysctl node to devices without the ACPI flags IVAR (authored by jhb).
acpi: Don't attach a "wake" sysctl node to devices without the ACPI flags IVAR
Thu, Mar 5, 7:08 PM
jhb closed D55658: libc/quad: Switch to per-arch lists of symbols.
Thu, Mar 5, 7:08 PM
jhb closed D55657: libc/quad: narrow list of symbols exposed for 32-bit arm.
Thu, Mar 5, 7:08 PM
jhb closed D55656: bsd.linker.mk: Sort list of linker features.
Thu, Mar 5, 7:08 PM
jhb closed D55562: acpi: Don't attach a "wake" sysctl node to devices without the ACPI flags IVAR.
Thu, Mar 5, 7:08 PM
jhb closed D55655: bsd.linker.mk: Document ifunc, ifunc-noplt, riscv-relaxations features.
Thu, Mar 5, 7:07 PM
jhb added a comment to D55655: bsd.linker.mk: Document ifunc, ifunc-noplt, riscv-relaxations features.

I agree we can drop support for the GPLv2 binutils.

Thu, Mar 5, 6:42 PM
jhb added a reviewer for D55563: acpi_pcib: Don't implement the ACPI flags IVAR: obiwac.
Thu, Mar 5, 6:40 PM
jhb requested review of D55673: devinfo: Support PCI DBSF and ACPI handles for -p.
Thu, Mar 5, 5:34 PM

Wed, Mar 4

jhb requested review of D55658: libc/quad: Switch to per-arch lists of symbols.
Wed, Mar 4, 8:25 PM
jhb requested review of D55657: libc/quad: narrow list of symbols exposed for 32-bit arm.
Wed, Mar 4, 8:25 PM
jhb requested review of D55656: bsd.linker.mk: Sort list of linker features.
Wed, Mar 4, 8:25 PM
jhb requested review of D55655: bsd.linker.mk: Document ifunc, ifunc-noplt, riscv-relaxations features.
Wed, Mar 4, 8:24 PM
jhb committed rG00ff89c1e0c8: acpi: Treat ACPI_IVAR_FLAGS as a global IVAR (authored by jhb).
acpi: Treat ACPI_IVAR_FLAGS as a global IVAR
Wed, Mar 4, 8:20 PM
jhb closed D55561: acpi: Treat ACPI_IVAR_FLAGS as a global IVAR.
Wed, Mar 4, 8:20 PM
jhb added a comment to D55609: acpi_bus: Fix acpi_get_flag error..

This is actually not correct, please see my other stack of reviews. We are adding this node twice for some PCI buses, and this just ensures we add it twice for every bus. In particular, see the description in D55563.

Wed, Mar 4, 8:16 PM
jhb added a comment to D55562: acpi: Don't attach a "wake" sysctl node to devices without the ACPI flags IVAR.

Hmm... atopcase(4) still panicked with a similar issue (once I figured out that I needed to add ig4 to my KERNCONF). This may have also occurred because my Mac had low battery and the hardware sends out events at the hardware level to OSes to suspend the host (there's always a chance that this is a bug with atopcase(4)).

This is probably because of the acpi_get_flags() call in acpi_wake_{sleep,run}_prep(). We should be checking if we have ACPI_IVAR_FLAGS in those functions too, or be doing something like D55609.

I think the former is the better solution, because otherwise we're still creating the sysctls even if the driver doesn't support this ivar.

Wed, Mar 4, 8:14 PM
jhb accepted D55650: Makefile.inc1: Don't force LLVM_BINUTILS off for cross-tools.
Wed, Mar 4, 4:00 PM

Fri, Feb 27

jhb requested review of D55563: acpi_pcib: Don't implement the ACPI flags IVAR.
Fri, Feb 27, 3:53 PM
jhb requested review of D55562: acpi: Don't attach a "wake" sysctl node to devices without the ACPI flags IVAR.
Fri, Feb 27, 3:53 PM
jhb requested review of D55561: acpi: Treat ACPI_IVAR_FLAGS as a global IVAR.
Fri, Feb 27, 3:53 PM
jhb accepted D55560: vnet: Ensure space allocated by vnet_data_alloc() is properly aligned.

Nice testing harness!

Fri, Feb 27, 3:17 PM

Wed, Feb 25

jhb committed rGe43730e585fa: cxgbe tom: Use the same WRs as iSCSI to send PDUs for NVMe (authored by jhb).
cxgbe tom: Use the same WRs as iSCSI to send PDUs for NVMe
Wed, Feb 25, 2:24 AM
jhb closed D55470: cxgbe tom: Use the same WRs as iSCSI to send PDUs for NVMe.
Wed, Feb 25, 2:24 AM
jhb committed rGfba56be09f1c: 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
Wed, Feb 25, 2:22 AM
jhb committed rG6513c2845f89: sys: Declare 'end' as an extern char[] (authored by jhb).
sys: Declare 'end' as an extern char[]
Wed, Feb 25, 2:22 AM
jhb closed D53898: sys: Declare 'end' as an extern char[].
Wed, Feb 25, 2:21 AM
jhb closed D52050: 'devctl clear driver' shall not fail if no driver has been found.
Wed, Feb 25, 2:21 AM
jhb accepted D55414: chore: replace {0, 0} with {DEV,KOBJ}METHOD_END where appropriate.

These all look good to me.

Wed, Feb 25, 2:16 AM
jhb added a comment to D55424: Retire dialog.

I also don't think anyone would know what "cdialog" is, but we all know what dialog is. Do we want to move dpv and friends to ports first? Maybe Cy can create new git repos for dpv + libdpv + libfigpar and a port to install them?

Wed, Feb 25, 2:12 AM
jhb added inline comments to D55389: pci: introduce PCI_QUIRK_DISABLE_BUS_RESET.
Wed, Feb 25, 2:09 AM
jhb added a comment to D55072: Remove -fms-extensions throughout the tree.

I would maybe tweak the commit log a bit though:

Wed, Feb 25, 1:54 AM
jhb accepted D55072: Remove -fms-extensions throughout the tree.

I've merged the ccp(4) changes if you want to land the rest of this.

Wed, Feb 25, 1:47 AM
jhb accepted D55310: getnetconfig: make nc_error a thread local variable.

I suspect the complexity wasn't to avoid 4 bytes per thread but more because TLS wasn't reliably working on all of our architectures when this was first written (but I could be wrong). :)

Wed, Feb 25, 1:45 AM
jhb updated subscribers of D55220: virtio: get a correct tag for IOMMU operation.

I would perhaps tweak the commit title to be something like "virtio pci: Enable device models on platforms IOMMUs" And then maybe in the first paragraph after the title use:

Wed, Feb 25, 1:42 AM
jhb accepted D54514: Porters Handbook: bring Versions section up to date.

Thanks for putting up with all my nits

Wed, Feb 25, 1:29 AM · Doc Committers

Tue, Feb 24

jhb committed rG591127bd4839: acpi: Use __BUS_ACCESSOR_DEFAULT and __BUS_ACCESSOR for IVARs (authored by jhb).
acpi: Use __BUS_ACCESSOR_DEFAULT and __BUS_ACCESSOR for IVARs
Tue, Feb 24, 8:34 PM