Page MenuHomeFreeBSD
Feed Advanced Search

Jun 7 2019

cem added a comment to D20324: Introduce the ARB tree(3) macros.

I'll elaborate more soon, but basically, this is in the context of https://reviews.freebsd.org/D20477. In short: this is less about using it "when you need a tree", and more about having a tree that you can easily transfer between domains, in this case between the kernel and userspace.

Jun 7 2019, 2:30 AM
cem requested changes to D20477: Introduce stats(3).

So like, what's the motivation of this change? What are the goals? How was this design chosen? There's 6000 lines of diff present as a fait accompli without any kind of socialization on arch@ or anywhere else. Code is great, but the high level stuff is missing.

Jun 7 2019, 2:30 AM
cem requested changes to D20116: Introduce <sys/qmath.h>.

The concept is cool but it's impossible to closely review 2000 lines of novel content. On the plus side, half of that is manual page and 1/4 is test cases, so that increases confidence somewhat. Still 500 lines of dense header macros with approximately zero comments (just API specification).

Jun 7 2019, 2:20 AM
cem updated the diff for D20312: random(4): Generalize algorithm-independent APIs.

Adjust test to pass bytes, rather than block count.

Jun 7 2019, 1:58 AM
cem added a reviewer for D20392: random(4): Add regression tests for uint128 implementation, Chacha CTR: secteam.
Jun 7 2019, 1:54 AM
cem updated the diff for D20392: random(4): Add regression tests for uint128 implementation, Chacha CTR.

Rebase onto SVN head

  • keystream API takes blocks, not bytes still
  • Drop uint128_add64 API tests, which does not exist
Jun 7 2019, 1:53 AM
cem accepted D20546: Allow fail points to have separate declarations, definitions, and evals.
Jun 7 2019, 1:31 AM

Jun 6 2019

cem added a comment to D20529: bhyve: fix reporting of virtio scsi seg_max.

In my opinion, no. To my knowledge, I'm the only person to report this, and I only hit it by running OneFS under bhyve, which uses a larger MAXPHYS.

Jun 6 2019, 7:07 PM
cem added a comment to D20529: bhyve: fix reporting of virtio scsi seg_max.

Fix it in bhyve instead

Jun 6 2019, 3:39 PM
cem added a comment to D20529: bhyve: fix reporting of virtio scsi seg_max.

What is the panic message?

Jun 6 2019, 4:32 AM
cem updated the diff for D20312: random(4): Generalize algorithm-independent APIs.

Restore previous PAGE_SIZE lock yielding behavior.

Jun 6 2019, 3:51 AM

Jun 5 2019

cem accepted D20529: bhyve: fix reporting of virtio scsi seg_max.
Jun 5 2019, 9:49 PM
cem added inline comments to D20526: Fix a fasttrap race..
Jun 5 2019, 8:29 PM
cem added inline comments to D20526: Fix a fasttrap race..
Jun 5 2019, 8:18 PM
cem added a comment to D20324: Introduce the ARB tree(3) macros.

I think I understand this a bit better than I did yesterday. The idea is that you allocate your array of objects, and initialize the ARB with the array size, so there's an upper limit on the number of entries in the tree.

Jun 5 2019, 8:09 PM
cem added inline comments to D20519: Add a debugging facility to manually reclaim a vnode.
Jun 5 2019, 6:51 PM
cem accepted D20526: Fix a fasttrap race..

LGTM.

Jun 5 2019, 6:48 PM
cem added a comment to D20324: Introduce the ARB tree(3) macros.

I'm interested in hearing more about the motivation too.

Jun 5 2019, 4:48 PM
cem added inline comments to D20519: Add a debugging facility to manually reclaim a vnode.
Jun 5 2019, 4:27 PM
cem added a comment to D20458: first step towards enforcing must-succeed semantics for bus accessors.
In D20458#443358, @avg wrote:

I would like to commit this change as is now. And then change printf to KASSERT in a week rather than in a month.
Hope that no one would object.

Jun 5 2019, 1:59 PM
cem added inline comments to D20519: Add a debugging facility to manually reclaim a vnode.
Jun 5 2019, 1:45 AM
cem added inline comments to D20519: Add a debugging facility to manually reclaim a vnode.
Jun 5 2019, 12:25 AM
cem added inline comments to D20508: Use parse_integer to avoid sign extension..
Jun 5 2019, 12:25 AM

Jun 4 2019

cem added inline comments to D20508: Use parse_integer to avoid sign extension..
Jun 4 2019, 10:31 PM
cem added a comment to D20324: Introduce the ARB tree(3) macros.

What is the benefit of this new data structure over existing data structures? Do you have empirical results?

Jun 4 2019, 10:09 PM
cem created D20517: fsck_msdosfs: Use le32enc/le16enc macros to simplify.
Jun 4 2019, 4:52 PM
cem added a comment to D20508: Use parse_integer to avoid sign extension..
In D20508#443091, @jhb wrote:

I find that less readable to add a cast for one of the 4 calls to this function in an expression. This route seems to avoid the need to do similar hacks when decoding other multi-byte values in the future as well.

Jun 4 2019, 4:20 PM
cem committed rS348629: daemon(8): Don't block SIGTERM during restart delay.
daemon(8): Don't block SIGTERM during restart delay
Jun 4 2019, 4:07 PM
cem closed D20509: daemon(8): Don't block TERM during restart delay.
Jun 4 2019, 4:07 PM
cem added inline comments to D20508: Use parse_integer to avoid sign extension..
Jun 4 2019, 1:58 PM
cem created D20509: daemon(8): Don't block TERM during restart delay.
Jun 4 2019, 4:02 AM
cem committed rS348599: virtio(4): Add PNP match metadata for virtio devices.
virtio(4): Add PNP match metadata for virtio devices
Jun 4 2019, 2:37 AM
cem closed D20407: virtio(4): Add PNP match metadata for virtio devices.
Jun 4 2019, 2:37 AM
cem committed rS348598: virtio(4): Expose PNP metadata through newbus.
virtio(4): Expose PNP metadata through newbus
Jun 4 2019, 2:35 AM
cem closed D20406: virtio(4): Expose PNP metadata through newbus.
Jun 4 2019, 2:35 AM
cem added a comment to D20406: virtio(4): Expose PNP metadata through newbus.

@bryanv , do you have any remaining concerns with this one? Thanks!

Jun 4 2019, 12:42 AM
cem added a comment to D20407: virtio(4): Add PNP match metadata for virtio devices.

@bryanv, do you have any remaining concerns about this one or could it go in?

Jun 4 2019, 12:02 AM
cem committed rS348595: virtio_random(4): Fix random(4) integration.
virtio_random(4): Fix random(4) integration
Jun 4 2019, 12:01 AM
cem closed D20419: virtio_random(4): Fix random(4) integration.
Jun 4 2019, 12:01 AM

Jun 3 2019

cem committed rS348594: style.9: Codify tolerance for eliding blank lines.
style.9: Codify tolerance for eliding blank lines
Jun 3 2019, 11:57 PM
cem closed D20448: style.9: Codify tolerance for eliding blank lines.
Jun 3 2019, 11:57 PM
cem added inline comments to D20508: Use parse_integer to avoid sign extension..
Jun 3 2019, 11:36 PM
cem accepted D20508: Use parse_integer to avoid sign extension..

I'd cast the left shift instead (leaving the return type matching the type and range of the decoded value), but don't feel strongly about it. This works.

Jun 3 2019, 11:35 PM

Jun 2 2019

cem updated the diff for D20419: virtio_random(4): Fix random(4) integration.
  • Drop unneeded headers
Jun 2 2019, 10:47 PM
cem updated the diff for D20419: virtio_random(4): Fix random(4) integration.
  • Only allow first virtio_random device to attach
Jun 2 2019, 10:45 PM

Jun 1 2019

cem added a comment to D20419: virtio_random(4): Fix random(4) integration.

Other drivers following the callout pattern seem to be: bcm2835_rng.c, octeon_rnd.c, hifn7751.c, glxsb.c, tpm20.c although perhaps there is a desired functional difference that I am not aware of.

Jun 1 2019, 10:02 PM
cem added inline comments to D20406: virtio(4): Expose PNP metadata through newbus.
Jun 1 2019, 9:49 PM
cem closed D20466: random(4): Fix RANDOM_LOADABLE build.
Jun 1 2019, 1:22 AM
cem committed rS348489: random(4): Fix RANDOM_LOADABLE build.
random(4): Fix RANDOM_LOADABLE build
Jun 1 2019, 1:22 AM

May 30 2019

cem accepted D20317: Netdump: coalesce writes less than buffer size for more efficient use of network.

LGTM!

May 30 2019, 8:34 PM
cem added a comment to D20317: Netdump: coalesce writes less than buffer size for more efficient use of network.

I added (offset != 0) to the predicate to ignore the final len=0, offset=0 write.

May 30 2019, 8:15 PM
cem retitled D20466: random(4): Fix RANDOM_LOADABLE build from random(4): Fix RANDOM_LOADABLE option build to random(4): Fix RANDOM_LOADABLE build.
May 30 2019, 7:58 PM
cem updated the diff for D20466: random(4): Fix RANDOM_LOADABLE build.
  • Fix linking errors introduced inadvertently in r338324
  • Correct MD HWRNG drivers in files.* to specify !random_loadable
May 30 2019, 7:55 PM
cem updated the test plan for D20466: random(4): Fix RANDOM_LOADABLE build.
May 30 2019, 5:07 AM

May 29 2019

cem added a reviewer for D20466: random(4): Fix RANDOM_LOADABLE build: secteam.
May 29 2019, 9:20 PM
cem created D20466: random(4): Fix RANDOM_LOADABLE build.
May 29 2019, 9:20 PM
cem accepted D20458: first step towards enforcing must-succeed semantics for bus accessors.

Is it worth a ratelimit or do none of these show up often in practice? panic is inherently ratelimiting 😁

May 29 2019, 9:03 PM
cem updated the diff for D20448: style.9: Codify tolerance for eliding blank lines.

Consensus seems to be empty (blank) lines for functions with no locals should
be fully optional. Update the text to match.

May 29 2019, 8:44 PM
cem accepted D20462: newvers: append commit count to uname version string.

If there is a cheap way to do it, it might be nice to stop counting at the first (latest) SVN revision. That way git starts over with lower "revision" numbers once an actual switch is made. It's also a shorter walk through git's object graph.

May 29 2019, 5:32 PM

May 28 2019

cem updated the diff for D20419: virtio_random(4): Fix random(4) integration.
  • Handle short reads.
May 28 2019, 10:03 PM
cem planned changes to D20419: virtio_random(4): Fix random(4) integration.

Hey Bryan,

May 28 2019, 9:06 PM
cem committed rS348337: style.9: Correct usage's definition to match its declaration.
style.9: Correct usage's definition to match its declaration
May 28 2019, 8:44 PM
cem added a comment to D20448: style.9: Codify tolerance for eliding blank lines.

I would even be fine with "If the function has no local variables",

May 28 2019, 6:09 PM
cem updated the test plan for D20448: style.9: Codify tolerance for eliding blank lines.
May 28 2019, 5:45 PM
cem added inline comments to D20407: virtio(4): Add PNP match metadata for virtio devices.
May 28 2019, 5:41 PM
cem created D20448: style.9: Codify tolerance for eliding blank lines.
May 28 2019, 5:36 PM
cem abandoned D20420: Add modevent_nop: NOP module event handler.
May 28 2019, 5:26 PM
cem added inline comments to D20407: virtio(4): Add PNP match metadata for virtio devices.
May 28 2019, 5:20 PM
cem updated the diff for D20419: virtio_random(4): Fix random(4) integration.
  • Use atomic_thread_fence_rel instead of wmb
  • Fix lock leak
May 28 2019, 4:04 PM
cem added a comment to D20419: virtio_random(4): Fix random(4) integration.

It has been a long while since I wrote this driver but the callout pattern was certainly cribbed from another driver in the tree. Has this API changed over the years?

May 28 2019, 3:42 PM

May 27 2019

cem updated the diff for D20420: Add modevent_nop: NOP module event handler.
  • Document in module.9
May 27 2019, 10:35 PM
cem committed rS348309: kldxref(8): Sort MDT_MODULE info first in linker.hints output.
kldxref(8): Sort MDT_MODULE info first in linker.hints output
May 27 2019, 5:33 PM
cem closed D20405: kldxref(8): Sort MDT_MODULE info first in linker.hints output.
May 27 2019, 5:33 PM
cem created D20420: Add modevent_nop: NOP module event handler.
May 27 2019, 1:53 AM
cem updated the diff for D20407: virtio(4): Add PNP match metadata for virtio devices.
  • Drop modevent handler changes.
May 27 2019, 1:44 AM
cem added a comment to D19298: AESNI version of CCM+CBC-MAC.
In D19298#440806, @ngie wrote:
  1. This broke the build with gcc:
May 27 2019, 1:07 AM
cem committed rS348295: virtio_random(4): Remove unneeded reference to device.
virtio_random(4): Remove unneeded reference to device
May 27 2019, 12:56 AM
cem committed rS348294: virtio.4: Add missing devices and Xr.
virtio.4: Add missing devices and Xr
May 27 2019, 12:51 AM
cem committed rS348293: aesni(4): Fix trivial type typo.
aesni(4): Fix trivial type typo
May 27 2019, 12:48 AM
cem committed rS348292: sys/bufobj.h: Avoid using C++ reserved keyword 'private'.
sys/bufobj.h: Avoid using C++ reserved keyword 'private'
May 27 2019, 12:43 AM

May 26 2019

cem updated the diff for D20406: virtio(4): Expose PNP metadata through newbus.
  • Extract child_pnp_info routine to virtio.c using generic ivar routines.
  • Add missing IVAR accessors to virtio_mmio(4).
May 26 2019, 11:54 PM
cem created D20419: virtio_random(4): Fix random(4) integration.
May 26 2019, 11:39 PM
cem added inline comments to D20407: virtio(4): Add PNP match metadata for virtio devices.
May 26 2019, 4:46 AM
cem added inline comments to D20406: virtio(4): Expose PNP metadata through newbus.
May 26 2019, 4:42 AM

May 25 2019

cem added a comment to D20406: virtio(4): Expose PNP metadata through newbus.

Looks ok to me, but I don't understand the tradeoffs involved in sharing the pnpinfo format among multiple bus types. Is it theoretically possible for there to be a collision, e.g., where two different drivers, one for mmio and one for pci, match on the same string?

May 25 2019, 9:29 PM
cem added inline comments to D20407: virtio(4): Add PNP match metadata for virtio devices.
May 25 2019, 9:25 PM
cem updated the summary of D20405: kldxref(8): Sort MDT_MODULE info first in linker.hints output.
May 25 2019, 9:05 PM
cem updated the diff for D20405: kldxref(8): Sort MDT_MODULE info first in linker.hints output.

Rework comment wording describing the change.

May 25 2019, 9:05 PM
cem added inline comments to D20405: kldxref(8): Sort MDT_MODULE info first in linker.hints output.
May 25 2019, 9:04 PM
cem committed rP502615: x11/terminology: Update to 1.4.1.
x11/terminology: Update to 1.4.1
May 25 2019, 6:07 PM
cem closed D20408: x11/terminology: Update to 1.4.1.
May 25 2019, 6:07 PM
cem added a comment to D20408: x11/terminology: Update to 1.4.1.

Thanks!

May 25 2019, 6:07 PM
cem added inline comments to D20405: kldxref(8): Sort MDT_MODULE info first in linker.hints output.
May 25 2019, 4:48 PM
cem created D20408: x11/terminology: Update to 1.4.1.
May 25 2019, 6:58 AM
cem created D20407: virtio(4): Add PNP match metadata for virtio devices.
May 25 2019, 4:48 AM
cem created D20406: virtio(4): Expose PNP metadata through newbus.
May 25 2019, 4:46 AM
cem created D20405: kldxref(8): Sort MDT_MODULE info first in linker.hints output.
May 25 2019, 4:43 AM
cem committed rS348262: virtio_pci(4): Fix typo in read_ivar method.
virtio_pci(4): Fix typo in read_ivar method
May 25 2019, 1:59 AM

May 24 2019

cem committed rS348255: Disable intr_storm_threshold mechanism by default.
Disable intr_storm_threshold mechanism by default
May 24 2019, 10:33 PM
cem closed D20401: Disable intr_storm_threshold mechanism by default.
May 24 2019, 10:33 PM