Page MenuHomeFreeBSD
Feed Advanced Search

Yesterday

jhb updated the diff for D48675: libdevinfo: Avoid false positives for the root0 sentinel value.

Switch to -1

Tue, Jan 28, 8:34 PM

Mon, Jan 27

jhb added a comment to D47312: watchdog: Convert to using sbintime_t format.

So if I'm reading this correctly, there are a couple of changes here that aren't quite described in the commit log:

Mon, Jan 27, 2:48 PM
jhb added inline comments to D48675: libdevinfo: Avoid false positives for the root0 sentinel value.
Mon, Jan 27, 2:27 PM
jhb added a comment to D43239: Use gnu17 for buildkernel.
In D43239#1108863, @imp wrote:
In D43239#1108862, @jhb wrote:

So the one failure in the exp-run is apparently we have a port that builds the FreeBSD libusb for Linux using /compat/linux/bin/gcc and that version of GCC is too old to support c17.

So do we care? And is it too old to support gnu11? There's no material difference between the two that affects us, right? Could that port not use tgat, assuming upgrading to a newer gcc isn't possible...

Mon, Jan 27, 2:21 PM · Contributor Reviews (src)
jhb accepted D48600: busdma: Always initialize bounce page STAILQ.

FYI, all other arches unconditionally STAILQ_INIT() the list in allocated maps. 32-bit arm initializes the list twice which is somewhat confusing.

Mon, Jan 27, 2:19 PM · PowerPC

Sat, Jan 25

jhb added a comment to D48676: devinfo: Distinguish resources owned by unnamed devices from free resources.

Compared to the output from the previous review, the changed lines for devinfo -uv are:

Sat, Jan 25, 3:55 AM
jhb requested review of D48676: devinfo: Distinguish resources owned by unnamed devices from free resources.
Sat, Jan 25, 3:52 AM
jhb added a comment to D48675: libdevinfo: Avoid false positives for the root0 sentinel value.

Before in a VM:

Sat, Jan 25, 3:46 AM
jhb updated the diff for D48675: libdevinfo: Avoid false positives for the root0 sentinel value.

Fix looking up root0

Sat, Jan 25, 3:43 AM
jhb requested review of D48675: libdevinfo: Avoid false positives for the root0 sentinel value.
Sat, Jan 25, 2:42 AM
jhb added a comment to D48501: simplebus: Stop accepting SYS_RES_IOPORT resources.

Sigh, so yeah, the simple fix is DEVINFO_ROOT_DEVICE should probably be (uintptr_t)-1 or some such instead of NULL. Looks like libdevinfo is used by some ports like libinput and kwin. :( We could always just bump the SHLIB_MAJOR in main to fix this and not worry about fixing stable branches?

Sat, Jan 25, 2:36 AM
jhb added a comment to D48501: simplebus: Stop accepting SYS_RES_IOPORT resources.

That makes sense. The bit that doesn't to me is the portion of the range that's marked as owned by root0. Is that just a quirk of libdevinfo's DEVINFO_ROOT_DEVICE sentinel being 0, which is the same as NULL reports, i.e. for when there's no parent? Seems like that should instead be a different sentinel so NULL device fields can be handled correctly (that or each caller needs to check for NULL).

Sat, Jan 25, 2:27 AM
jhb added a comment to D48674: sys: Add DECLARE_MODULE_RELENG for use by external kernel modules.
In D48674#1110075, @imp wrote:

This is a good idea...
Not entirely sure, though, we can hit the KBI stability needed for it.

Sat, Jan 25, 2:24 AM

Fri, Jan 24

jhb added a comment to D48501: simplebus: Stop accepting SYS_RES_IOPORT resources.
In D48501#1109382, @jhb wrote:

Booting a RISC-V image under qemu with a virtio-rng-pci device seems to have exercised this as it has a pci_host_generic as a child of a simplebus:

pcib0: <Generic PCI host controller> mem 0x30000000-0x3fffffff on simplebus1
pcib0: parsing FDT for ECAM0:
pcib0: Bus is cache-coherent
pcib0: PCI addr: 0x0, CPU addr: 0x3000000, Size: 0x10000, Type: I/O port
pcib0: PCI addr: 0x40000000, CPU addr: 0x40000000, Size: 0x40000000, Type: memory
pcib0: PCI addr: 0x400000000, CPU addr: 0x400000000, Size: 0x400000000, Type: memory
pci0: <PCI bus> on pcib0
pci0: domain=0, physical bus=0
found-> vendor=0x1b36, dev=0x0008, revid=0x00
        domain=0, bus=0, slot=0, func=0
        class=06-00-00, hdrtype=0x00, mfdev=0
        cmdreg=0x0000, statreg=0x0000, cachelnsz=0 (dwords)
        lattimer=0x00 (0 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns)
found-> vendor=0x1af4, dev=0x1005, revid=0x00
        domain=0, bus=0, slot=1, func=0
        class=00-ff-00, hdrtype=0x00, mfdev=0
        cmdreg=0x0000, statreg=0x0010, cachelnsz=0 (dwords)
        lattimer=0x00 (0 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns)
        intpin=a, irq=0
        MSI-X supports 2 messages in map 0x14
        map[10]: type I/O Port, range 32, base 0, size  5, port disabled
        map[14]: type Memory, range 32, base 0, size 12, memory disabled
        map[20]: type Prefetchable Memory, range 64, base 0, size 14, memory disabled
virtio_pci0: <VirtIO PCI (legacy) Entropy adapter> irq 16 at device 1.0 on pci0
virtio_pci0: Lazy allocation of 0x20 bytes rid 0x10 type 4 at 0
virtio_pci0: Lazy allocation of 0x1000 bytes rid 0x14 type 3 at 0x40000000
`

Some command output:

root@riscv64:~ # pciconf -lb
hostb0@pci0:0:0:0:      class=0x060000 rev=0x00 hdr=0x00 vendor=0x1b36 device=0x0008 subvendor=0x1af4 subdevice=0x1100
virtio_pci0@pci0:0:1:0: class=0x00ff00 rev=0x00 hdr=0x00 vendor=0x1af4 device=0x1005 subvendor=0x1af4 subdevice=0x0004
    bar   [10] = type I/O Port, range 32, base 0, size 32, enabled
    bar   [14] = type Memory, range 32, base 0x40000000, size 4096, enabled
    bar   [20] = type Prefetchable Memory, range 64, base 0, size 16384, enabled
root@riscv64:~ # devinfo -u
I/O memory addresses:
    0x0-0xfffff (root0)
    0x100000-0x100fff (riscv_syscon0)
    0x101000-0x101fff (goldfish_rtc0)
    0x102000-0x2ffffff (root0)
    0x3000000-0x300ffff (pcib0)
    0x3010000-0xbffffff (root0)
....
pcib0 I/O port window:
    0x0-0x1f (virtio_pci0)
    0x20-0xffff (root0)
....

Not with D44207 though, right? Even absent this change it should show up as I/O memory rather than I/O port, right? Or is that just showing that it's still an I/O port from pcib0 downwards; if so, that's not so relevant because that's not changed, what's relevant is how simplebus0 and above see it?

Fri, Jan 24, 10:21 PM
jhb added inline comments to D48674: sys: Add DECLARE_MODULE_RELENG for use by external kernel modules.
Fri, Jan 24, 9:20 PM
jhb added a comment to D48674: sys: Add DECLARE_MODULE_RELENG for use by external kernel modules.

I would suggest we do something in drm-kmod along the lines of:

Fri, Jan 24, 9:19 PM
jhb requested review of D48674: sys: Add DECLARE_MODULE_RELENG for use by external kernel modules.
Fri, Jan 24, 9:17 PM
jhb accepted D48659: sysctl: Add a regression test which runs sysctl -a.
Fri, Jan 24, 6:06 PM
jhb committed rGca81304f7cbe: ctld: Fix assertion against the wrong field (authored by jhb).
ctld: Fix assertion against the wrong field
Fri, Jan 24, 2:55 PM
jhb committed rGb4a5ab97c810: ctld: Factor out code to setup a listening socket into a separate function (authored by jhb).
ctld: Factor out code to setup a listening socket into a separate function
Fri, Jan 24, 2:55 PM
jhb committed rGdd3603749cb7: iscsi: Move valid_iscsi_name to libiscsiutil (authored by jhb).
iscsi: Move valid_iscsi_name to libiscsiutil
Fri, Jan 24, 2:55 PM
jhb committed rG78cd9f0c0941: ctld: Use bool in uclparse.c (authored by jhb).
ctld: Use bool in uclparse.c
Fri, Jan 24, 2:55 PM
jhb closed D48622: ctld: Fix assertion against the wrong field.
Fri, Jan 24, 2:55 PM
jhb closed D48596: ctld: Factor our code to setup a listening socket into a separate function.
Fri, Jan 24, 2:55 PM
jhb closed D48593: iscsi: Move valid_iscsi_name to libiscsiutil.
Fri, Jan 24, 2:55 PM
jhb closed D48594: ctld: Use bool in uclparse.c.
Fri, Jan 24, 2:55 PM
jhb committed rG8bba2c0f8958: nvmf: Refactor reconnection support (authored by jhb).
nvmf: Refactor reconnection support
Fri, Jan 24, 2:51 PM
jhb closed D48214: nvmf: Refactor reconnection support.
Fri, Jan 24, 2:51 PM
jhb requested review of D48654: nvmecontrol: Consolidate error paths in connect_nvm_queues().
Fri, Jan 24, 2:41 PM
jhb updated the diff for D48214: nvmf: Refactor reconnection support.

Use getnameinfo

Fri, Jan 24, 2:41 PM

Thu, Jan 23

jhb updated the diff for D48456: nvmecontrol: Only do name resolution once for Fabrics connections.

Add missing free

Thu, Jan 23, 11:29 PM
jhb committed rG2f51074c90ad: riscv nexus: Remove support for I/O port resources (authored by jhb).
riscv nexus: Remove support for I/O port resources
Thu, Jan 23, 11:28 PM
jhb committed rGbf6c4ee6f0c8: arm64 nexus: Remove support for I/O port resources (authored by jhb).
arm64 nexus: Remove support for I/O port resources
Thu, Jan 23, 11:28 PM
jhb closed D48582: riscv nexus: Remove support for I/O port resources.
Thu, Jan 23, 11:28 PM
jhb closed D48581: arm64 nexus: Remove support for I/O port resources.
Thu, Jan 23, 11:28 PM
jhb added a comment to D48501: simplebus: Stop accepting SYS_RES_IOPORT resources.

Booting a RISC-V image under qemu with a virtio-rng-pci device seems to have exercised this as it has a pci_host_generic as a child of a simplebus:

Thu, Jan 23, 11:26 PM
jhb added reviewers for D48501: simplebus: Stop accepting SYS_RES_IOPORT resources: jrtc27, markj.
Thu, Jan 23, 11:24 PM
jhb added inline comments to D48456: nvmecontrol: Only do name resolution once for Fabrics connections.
Thu, Jan 23, 10:35 PM
jhb added inline comments to D48597: ctld: Use kevent(2) for socket events rather than select(2).
Thu, Jan 23, 8:38 PM
jhb updated the diff for D48595: ctld: Use nvlist instead of home-rolled name-value lists.

Restore various error checks

Thu, Jan 23, 8:36 PM
jhb requested review of D48648: libiscsiutil: Add log_warnc() and log_errc() functions.
Thu, Jan 23, 8:35 PM
jhb added a comment to D48595: ctld: Use nvlist instead of home-rolled name-value lists.
In D48595#1109269, @mav wrote:
In D48595#1109250, @jhb wrote:

I'm not quite sure where to put the nvlist_error calls TBH.

Kind of everywhere where errors are possible, I think. On a quick look it seems nvlist functions just stop working after some first error has happened. So I guess it may produce weird results if errors are not checked the caller. But In particular I've noticed that you removed ability to return errors from few places in parse.y.

Thu, Jan 23, 7:22 PM
jhb updated the diff for D48594: ctld: Use bool in uclparse.c.

Two more that I missed

Thu, Jan 23, 7:14 PM
jhb added inline comments to D48622: ctld: Fix assertion against the wrong field.
Thu, Jan 23, 6:53 PM
jhb committed rGa9ffa9b3d4d0: RELNOTES: Document removal of vinum support (authored by jhb).
RELNOTES: Document removal of vinum support
Thu, Jan 23, 6:17 PM
jhb closed D48644: RELNOTES: Document removal of vinum support.
Thu, Jan 23, 6:17 PM
jhb closed D48540: Remove references to gvinum(8) in various manpages.
Thu, Jan 23, 6:17 PM
jhb committed rG27bd6c32bbb4: Remove references to gvinum(8) in various manpages (authored by jhb).
Remove references to gvinum(8) in various manpages
Thu, Jan 23, 6:17 PM
jhb closed D48624: articles/vinum: Add a deprecation warning.
Thu, Jan 23, 6:13 PM
jhb committed R9:2edd03b96d78: articles/vinum: Add a deprecation warning (authored by jhb).
articles/vinum: Add a deprecation warning
Thu, Jan 23, 6:13 PM
jhb closed D48542: gvinum(8): Remove userland tool for managing vinum volumes.
Thu, Jan 23, 6:12 PM
jhb added a comment to D48595: ctld: Use nvlist instead of home-rolled name-value lists.

I'm not quite sure where to put the nvlist_error calls TBH.

Thu, Jan 23, 6:11 PM
jhb requested review of D48644: RELNOTES: Document removal of vinum support.
Thu, Jan 23, 6:08 PM
jhb requested review of D48624: articles/vinum: Add a deprecation warning.
Thu, Jan 23, 4:50 PM
jhb committed rG63d7fcf2a0f4: bsdlabel.8: Don't document how to create vinum partitions (authored by jhb).
bsdlabel.8: Don't document how to create vinum partitions
Thu, Jan 23, 4:22 PM
jhb committed rG8432ddac21b3: ccdconfig.8: Bump Dd for gvinum removal (authored by jhb).
ccdconfig.8: Bump Dd for gvinum removal
Thu, Jan 23, 4:22 PM
jhb committed rG719747125bbb: ffsinfo: Remove support for vinum volumes (authored by jhb).
ffsinfo: Remove support for vinum volumes
Thu, Jan 23, 4:21 PM
jhb committed rG2b12e6676a00: fdisk: Remove support for vinum volumes (authored by jhb).
fdisk: Remove support for vinum volumes
Thu, Jan 23, 4:21 PM
jhb closed D48539: bsdlabel.8: Don't document how to create vinum partitions.
Thu, Jan 23, 4:21 PM
jhb committed rGf87bb5967670: gvinum: Remove kernel support (authored by jhb).
gvinum: Remove kernel support
Thu, Jan 23, 4:21 PM
jhb committed rGe51036fbf3f8: gvinum(8): Remove userland tool for managing vinum volumes (authored by jhb).
gvinum(8): Remove userland tool for managing vinum volumes
Thu, Jan 23, 4:21 PM
jhb closed D48537: fdisk: Remove support for vinum volumes.
Thu, Jan 23, 4:21 PM
jhb closed D48538: ffsinfo: Remove support for vinum volumes.
Thu, Jan 23, 4:21 PM
jhb closed D48541: gvinum: Remove kernel support.
Thu, Jan 23, 4:21 PM
jhb requested review of D48622: ctld: Fix assertion against the wrong field.
Thu, Jan 23, 3:50 PM
jhb updated the diff for D48595: ctld: Use nvlist instead of home-rolled name-value lists.

Drop unused type arg

Thu, Jan 23, 3:50 PM
jhb added inline comments to D48597: ctld: Use kevent(2) for socket events rather than select(2).
Thu, Jan 23, 3:47 PM
jhb committed rG86116ab256c4: ccdconfig.8: Refer to graid(8) and zfs(8) instead of gvinum(8) (authored by jhb).
ccdconfig.8: Refer to graid(8) and zfs(8) instead of gvinum(8)
Thu, Jan 23, 3:32 PM
jhb committed rG916f6e6dd3a9: gvinum.8: Update deprecation warning to note that this is removed in 15.0 (authored by jhb).
gvinum.8: Update deprecation warning to note that this is removed in 15.0
Thu, Jan 23, 3:32 PM
jhb closed D48536: ccdconfig.8: Refer to graid(8) and zfs(8) instead of gvinum(8).
Thu, Jan 23, 3:32 PM
jhb closed D48592: gvinum.8: Update deprecation warning to note that this is removed in 15.0.
Thu, Jan 23, 3:32 PM
jhb added a comment to D43239: Use gnu17 for buildkernel.

So the one failure in the exp-run is apparently we have a port that builds the FreeBSD libusb for Linux using /compat/linux/bin/gcc and that version of GCC is too old to support c17.

Thu, Jan 23, 3:21 PM · Contributor Reviews (src)
jhb added inline comments to D48597: ctld: Use kevent(2) for socket events rather than select(2).
Thu, Jan 23, 2:53 PM
jhb added inline comments to D48595: ctld: Use nvlist instead of home-rolled name-value lists.
Thu, Jan 23, 2:48 PM
jhb added inline comments to D48595: ctld: Use nvlist instead of home-rolled name-value lists.
Thu, Jan 23, 2:47 PM

Wed, Jan 22

jhb added inline comments to D48597: ctld: Use kevent(2) for socket events rather than select(2).
Wed, Jan 22, 8:49 PM
jhb added a comment to D48593: iscsi: Move valid_iscsi_name to libiscsiutil.

I have some WIP to add nvme support to ctld and this series of commits are some cleanups before the meatier changes. To date libiscsiutil has just been a place to reduce code duplication between iscsiutil and ctld. Some bits like the log_* wrapper functions aren't iscsi specific and probably don't belong there but would be duplicated otherwise. :(

Wed, Jan 22, 8:44 PM
jhb committed rG237e9b7f5e90: ctld: Trim trailing whitespace (authored by jhb).
ctld: Trim trailing whitespace
Wed, Jan 22, 7:59 PM
jhb requested review of D48597: ctld: Use kevent(2) for socket events rather than select(2).
Wed, Jan 22, 7:53 PM
jhb requested review of D48596: ctld: Factor our code to setup a listening socket into a separate function.
Wed, Jan 22, 7:53 PM
jhb requested review of D48595: ctld: Use nvlist instead of home-rolled name-value lists.
Wed, Jan 22, 7:53 PM
jhb requested review of D48593: iscsi: Move valid_iscsi_name to libiscsiutil.
Wed, Jan 22, 7:53 PM
jhb requested review of D48594: ctld: Use bool in uclparse.c.
Wed, Jan 22, 7:53 PM
jhb added a comment to D48537: fdisk: Remove support for vinum volumes.
In D48537#1107487, @imp wrote:

Though we are deleting this...

Wed, Jan 22, 3:31 PM
jhb updated the diff for D48536: ccdconfig.8: Refer to graid(8) and zfs(8) instead of gvinum(8).

Mention zfs

Wed, Jan 22, 3:30 PM
jhb added a comment to D48592: gvinum.8: Update deprecation warning to note that this is removed in 15.0.

This fulfills the promise made in b218441ac074d9cb9417e284980bf87f79a89585 and is intended to be an MFC candidate.

Wed, Jan 22, 3:29 PM
jhb requested review of D48592: gvinum.8: Update deprecation warning to note that this is removed in 15.0.
Wed, Jan 22, 3:28 PM
jhb retitled D48536: ccdconfig.8: Refer to graid(8) and zfs(8) instead of gvinum(8) from ccdconfig.8: Refer to graid(8) instead of gvinum(8) to ccdconfig.8: Refer to graid(8) and zfs(8) instead of gvinum(8).
Wed, Jan 22, 3:23 PM

Tue, Jan 21

jhb added a reviewer for D48582: riscv nexus: Remove support for I/O port resources: jrtc27.
Tue, Jan 21, 5:37 PM
jhb committed rGc19f1ad1c252: pci_host_generic: Use SYS_RES_MEMORY for the parent of I/O resource ranges (authored by jhb).
pci_host_generic: Use SYS_RES_MEMORY for the parent of I/O resource ranges
Tue, Jan 21, 4:03 PM
jhb closed D44207: pci_host_generic: Use SYS_RES_MEMORY for the parent of I/O resource ranges.
Tue, Jan 21, 4:03 PM
jhb added a comment to D44207: pci_host_generic: Use SYS_RES_MEMORY for the parent of I/O resource ranges.
In D44207#1108078, @jhb wrote:

Actually, can you show me the parent devices of pcib0? I wonder if ACPI was passing these requests up to the arm64 nexus and if it was just treating I/O ports as memory?

Tue, Jan 21, 4:02 PM
jhb requested review of D48582: riscv nexus: Remove support for I/O port resources.
Tue, Jan 21, 4:01 PM
jhb requested review of D48581: arm64 nexus: Remove support for I/O port resources.
Tue, Jan 21, 4:01 PM
jhb added a comment to D44207: pci_host_generic: Use SYS_RES_MEMORY for the parent of I/O resource ranges.
In D44207#1108043, @jhb wrote:
In D44207#1107878, @jhb wrote:
In D44207#1105839, @jhb wrote:

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

It boots fine with this change. Is there anything in particular you'd like to see?

Booting fine is the main thing I wanted to see. Can you also apply D48501 (in the stack) on top of this and make sure it still boots fine?

It still boots without problems, but this system boots using ACPI, I think that patch is a no-op here.

Ah, fair enough.

Tue, Jan 21, 3:53 PM
jhb accepted D48576: etcupdate: Restrict access to the conflicts directory.
Tue, Jan 21, 3:26 PM
jhb added inline comments to D45333: x86/pci: add sysctl for intel_graphics_gen.
Tue, Jan 21, 3:25 PM
jhb added a comment to D44207: pci_host_generic: Use SYS_RES_MEMORY for the parent of I/O resource ranges.
In D44207#1107878, @jhb wrote:
In D44207#1105839, @jhb wrote:

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

It boots fine with this change. Is there anything in particular you'd like to see?

Booting fine is the main thing I wanted to see. Can you also apply D48501 (in the stack) on top of this and make sure it still boots fine?

It still boots without problems, but this system boots using ACPI, I think that patch is a no-op here.

Tue, Jan 21, 3:21 PM
jhb added a comment to D44207: pci_host_generic: Use SYS_RES_MEMORY for the parent of I/O resource ranges.
In D44207#1105839, @jhb wrote:

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

It boots fine with this change. Is there anything in particular you'd like to see?

Tue, Jan 21, 3:08 AM
jhb added a comment to D48541: gvinum: Remove kernel support.

ObsoleteFiles entry too?

Tue, Jan 21, 3:07 AM