Page MenuHomeFreeBSD

nwhitehorn (Nathan Whitehorn)
User

Projects

User Details

User Since
Sep 10 2014, 9:01 PM (540 w, 3 d)

Recent Activity

Tue, Dec 31

nwhitehorn accepted D48259: swab: Fix implementation to support overlapping copies.

This looks great to me -- thanks!

Tue, Dec 31, 12:12 AM

Dec 11 2024

nwhitehorn added a comment to D46268: Implement CLOCK_TAI.
In D46268#1094187, @imp wrote:

My apologies for being so tardy to review this. I found one issue where FBCLOCK_LEAPSEC is never set anywhere, suggesting the change is incomplete. I'd expect it be set for the new TAI stuff, so I don't see how these changes could work. But perhaps I'm missing something.

Dec 11 2024, 3:45 PM
nwhitehorn added a comment to D46268: Implement CLOCK_TAI.
In D46268#1094187, @imp wrote:

My apologies for being so tardy to review this. I found one issue where FBCLOCK_LEAPSEC is never set anywhere, suggesting the change is incomplete. I'd expect it be set for the new TAI stuff, so I don't see how these changes could work. But perhaps I'm missing something.

Dec 11 2024, 3:33 PM

Nov 22 2024

nwhitehorn updated the diff for D46268: Implement CLOCK_TAI.

Add CLOCK_TAI support to timer_create(2).

Nov 22 2024, 12:48 PM

Sep 28 2024

nwhitehorn updated the summary of D46268: Implement CLOCK_TAI.
Sep 28 2024, 5:32 PM

Aug 13 2024

nwhitehorn updated the diff for D46268: Implement CLOCK_TAI.

Proposed commit message:

Aug 13 2024, 4:54 PM
nwhitehorn added a comment to D46268: Implement CLOCK_TAI.

Thanks -- my commit bit has sadly expired, so I will update the diff here a last time if you are able to commit. Otherwise, I can try to reactivate it.

Aug 13 2024, 4:52 PM
nwhitehorn added a comment to D46268: Implement CLOCK_TAI.

At the risk of derailing this thread entirely, having now stared at this whole code path for a while and being ever-more-profoundly annoyed by the whole mess, there are very few places we actually depend on CLOCK_REALTIME being UTC besides that POSIX says it is. It looks like it would be pretty easy to add a CLOCK_UTC definition and then a kernel tunable to switch CLOCK_REALTIME between CLOCK_UTC and CLOCK_TAI. Having a CLOCK_UTC, even if it is defined equal to CLOCK_REALTIME, might also help us annotate the limited number of places we actually really want specifically UTC in our own code. It's a thought anyway -- please ignore for the purposes of this review.

Aug 13 2024, 3:18 PM
nwhitehorn updated the diff for D46268: Implement CLOCK_TAI.

Added support for CLOCK_TAI to clock_nanosleep(2) and clock_getres(2), which were overlooked in the original patch. Not present in mutex timeouts, in-kernel timers, or timerfd, which seem like projects for the future.

Aug 13 2024, 2:31 AM

Aug 11 2024

nwhitehorn added a comment to D46268: Implement CLOCK_TAI.

Yeah, Linux's lack of error propagation was a surprise to me too. I have somewhat mixed feelings about EINVAL as the error code: it is supposed to be for if the clock doesn't exist rather than clocks that are not configured properly, but the TAI clock also doesn't exactly exist in some sense before the TAI-UTC offset is programmed.

Aug 11 2024, 8:52 PM
nwhitehorn updated the diff for D46268: Implement CLOCK_TAI.

Provide full-context diff.

Aug 11 2024, 8:46 PM
nwhitehorn added a comment to D46268: Implement CLOCK_TAI.

As an aside, I tested the behavior of this code during leap seconds using this Linux test and it does the right thing, incrementing monotonically without glitches:

Aug 11 2024, 12:26 PM

Aug 10 2024

nwhitehorn added a comment to D46268: Implement CLOCK_TAI.

None of the Linux code I have seen checks the return value of clock_gettime(), since the return value on Linux is useless. The approaches I have seen taken are either hope-and-pray-the-result-is-right (the more common one) or to use some elaborate external checks (e.g. calling ntp_gettime() and checking for the TAI offset to be non-zero) to make sure that the kernel has the right TAI offset programmed in. We could conceivably add bug-for-bug compatibility and make it give UTC time *and* return EINVAL, but I doubt there is any code that really wants CLOCK_TAI to return UTC time and then suddenly jump 37 seconds later on.

Aug 10 2024, 8:21 PM
nwhitehorn updated the diff for D46268: Implement CLOCK_TAI.

I think this makes CLOCK_TAI behave rationally during a leap second.

Aug 10 2024, 8:16 PM
nwhitehorn updated the diff for D46268: Implement CLOCK_TAI.

Mention returning EINVAL before the TAI/UTC offset is known in the man page.

Aug 10 2024, 7:25 PM
nwhitehorn requested review of D46268: Implement CLOCK_TAI.
Aug 10 2024, 7:24 PM

Jan 2 2022

nwhitehorn committed rGdfa5a74357f3: Fix grammatical issues. (authored by nwhitehorn).
Fix grammatical issues.
Jan 2 2022, 12:35 AM

Jun 26 2021

nwhitehorn committed rG5a4dffac6001: Fix scripted installation from media without local distfiles. (authored by nwhitehorn).
Fix scripted installation from media without local distfiles.
Jun 26 2021, 12:36 AM

Jun 23 2021

nwhitehorn accepted D30877: bsdinstall: Avoid double-mounting /dev.

Thanks for spotting this!

Jun 23 2021, 12:55 PM

Jun 2 2021

nwhitehorn updated subscribers of D30554: ofwbus: remove handling of resources from ofwbus.

I *think* this will be fine if the equivalent code moves to PPC nexus (where it came from in the first place long ago).

Jun 2 2021, 6:23 PM

May 28 2021

nwhitehorn committed rG40923b0c81cc: Fix scripted installation from media without local distfiles. (authored by nwhitehorn).
Fix scripted installation from media without local distfiles.
May 28 2021, 2:02 PM
nwhitehorn committed rG4aaf6dd0a6b1: Fix scripted installs on EFI systems using ZFS root with zfsboot. (authored by nwhitehorn).
Fix scripted installs on EFI systems using ZFS root with zfsboot.
May 28 2021, 1:44 PM

May 14 2021

nwhitehorn committed rG34766aa8cb51: Fix scripted installs on EFI systems using ZFS root with zfsboot. (authored by nwhitehorn).
Fix scripted installs on EFI systems using ZFS root with zfsboot.
May 14 2021, 12:33 PM

May 7 2021

nwhitehorn accepted D30018: powerpc: Rework IPI message processing.

Looks good to me, assuming it works anyway.

May 7 2021, 2:08 PM

May 6 2021

nwhitehorn closed D12302: Move EFI FAT creation to here to obviate need for the boot1.efifat file.

Overtaken by events long ago.

May 6 2021, 6:39 PM

Apr 29 2021

nwhitehorn accepted D30003: powerpc64: Optimize radix trap handling a little more.

Looks good to me. Thanks! There are probably more instances of this kind of thing lying around.

Apr 29 2021, 12:29 PM

Apr 27 2021

nwhitehorn committed rG0658ecb05dea: Use makefs(8) in release VM-image generation instead of md(4) and newfs. (authored by nwhitehorn).
Use makefs(8) in release VM-image generation instead of md(4) and newfs.
Apr 27 2021, 1:10 AM
nwhitehorn committed rG3d9fd6ad1c11: Allocate extra inodes in makefs when leaving free space in UFS images. (authored by nwhitehorn).
Allocate extra inodes in makefs when leaving free space in UFS images.
Apr 27 2021, 1:10 AM

Apr 16 2021

nwhitehorn committed rG5ec4eb443e81: Add a new mode to the scripted partition editor for variant disk names. (authored by nwhitehorn).
Add a new mode to the scripted partition editor for variant disk names.
Apr 16 2021, 3:19 AM

Apr 15 2021

nwhitehorn committed rGa93b45d61516: Delete memstick images for PowerPC. (authored by nwhitehorn).
Delete memstick images for PowerPC.
Apr 15 2021, 1:28 PM
nwhitehorn committed rGccaa830e1720: Add GPT PREP-boot type to mkimg(1) from geom_gpt. (authored by nwhitehorn).
Add GPT PREP-boot type to mkimg(1) from geom_gpt.
Apr 15 2021, 1:28 PM

Apr 12 2021

nwhitehorn committed rGd6dfcb6b27b5: Tweak language involving ZFS installation; no content changes. (authored by nwhitehorn).
Tweak language involving ZFS installation; no content changes.
Apr 12 2021, 2:02 PM
nwhitehorn committed rG7bcb10d21079: Add some general notes about scripted installations. (authored by nwhitehorn).
Add some general notes about scripted installations.
Apr 12 2021, 2:02 PM
nwhitehorn committed rG63a9b1641a67: Include examples of how to build script-install media. (authored by nwhitehorn).
Include examples of how to build script-install media.
Apr 12 2021, 2:01 PM
nwhitehorn committed rGc87050f027a4: Improve example install scripts, making them simpler and more robust. (authored by nwhitehorn).
Improve example install scripts, making them simpler and more robust.
Apr 12 2021, 2:01 PM
nwhitehorn committed rGe37df024e090: Clarify that scripted installations don't require specification of boot (authored by nwhitehorn).
Clarify that scripted installations don't require specification of boot
Apr 12 2021, 2:01 PM

Apr 7 2021

nwhitehorn added a comment to D29349: security/py-yubikey-manager: Update to 4.0.0.

Nope, that's broken too in the same way:

Apr 7 2021, 1:39 PM

Apr 6 2021

nwhitehorn committed rGafb6a168f8ee: Allocate extra inodes in makefs when leaving free space in UFS images. (authored by nwhitehorn).
Allocate extra inodes in makefs when leaving free space in UFS images.
Apr 6 2021, 5:46 PM
nwhitehorn closed D29492: Add more inodes to VM images by having makefs allocate extra inodes when making images with free space..
Apr 6 2021, 5:46 PM
nwhitehorn added a comment to D29349: security/py-yubikey-manager: Update to 4.0.0.

This update doesn't actually work, though it does build:

Apr 6 2021, 2:25 PM
nwhitehorn added a comment to D29492: Add more inodes to VM images by having makefs allocate extra inodes when making images with free space..

Thanks, fixed 0/1->false/true.

Apr 6 2021, 1:22 PM
nwhitehorn updated the diff for D29492: Add more inodes to VM images by having makefs allocate extra inodes when making images with free space..

More diff context, no functional changes.

Apr 6 2021, 1:03 PM

Apr 5 2021

nwhitehorn updated the diff for D29492: Add more inodes to VM images by having makefs allocate extra inodes when making images with free space..

Fix some fat-fingering and rename an argument to better reflect what it does.

Apr 5 2021, 4:02 PM
nwhitehorn updated the diff for D29492: Add more inodes to VM images by having makefs allocate extra inodes when making images with free space..

Instead of adjusting parameters when generating VM images, adjust makefs to make free inodes when making free space. Relevant code copied from newfs(8).

Apr 5 2021, 3:44 PM
nwhitehorn committed rGb8639a1098a7: Tweak language involving ZFS installation; no content changes. (authored by nwhitehorn).
Tweak language involving ZFS installation; no content changes.
Apr 5 2021, 2:24 PM
nwhitehorn committed rG3b20b988e0f1: Add some general notes about scripted installations. (authored by nwhitehorn).
Add some general notes about scripted installations.
Apr 5 2021, 2:24 PM

Mar 30 2021

nwhitehorn added a comment to D29492: Add more inodes to VM images by having makefs allocate extra inodes when making images with free space..

So makefs(8), by default, creates a file system that can exactly hold the input tree (no extra space, no extra inodes, no extra anything). If we change the defaults in makefs(8), it seems like there are a few options:

Mar 30 2021, 12:47 AM

Mar 29 2021

nwhitehorn requested review of D29492: Add more inodes to VM images by having makefs allocate extra inodes when making images with free space..
Mar 29 2021, 9:56 PM

Mar 28 2021

nwhitehorn added a comment to D29465: [PowerPC] Fix kboot bootloader.

I should also mention: one other path here is just to delete loader.kboot, since I'm not really sure it's useful. Even my PS3 loads the kernel directly from petitboot these days.

Mar 28 2021, 1:28 AM · PowerPC
nwhitehorn added a comment to D29465: [PowerPC] Fix kboot bootloader.

Thanks! This looks basically sane. I'll try to smoke-test it in the next few days; if I don't report back by Wednesday, treat this comment as approval.

Mar 28 2021, 1:27 AM · PowerPC

Mar 26 2021

nwhitehorn committed rG5140034cc077: Add a new mode to the scripted partition editor for variant disk names. (authored by nwhitehorn).
Add a new mode to the scripted partition editor for variant disk names.
Mar 26 2021, 3:44 PM

Mar 23 2021

nwhitehorn committed rG3ef46634cd5a: Fix scripted installs on EFI systems after default mounting of the ESP. (authored by nwhitehorn).
Fix scripted installs on EFI systems after default mounting of the ESP.
Mar 23 2021, 9:15 PM
nwhitehorn committed rG4601382e1362: Fix scripted installs on EFI systems after default mounting of the ESP. (authored by nwhitehorn).
Fix scripted installs on EFI systems after default mounting of the ESP.
Mar 23 2021, 7:22 PM
nwhitehorn committed rGc2f16c595eb5: Fix scripted installs on EFI systems after default mounting of the ESP. (authored by nwhitehorn).
Fix scripted installs on EFI systems after default mounting of the ESP.
Mar 23 2021, 1:31 PM
nwhitehorn closed D29380: Fix scripted installations on EFI systems for 13.0.
Mar 23 2021, 1:30 PM

Mar 22 2021

nwhitehorn committed rG9f88bee14659: Bump documentation date after recent updates to bsdinstall.8. (authored by nwhitehorn).
Bump documentation date after recent updates to bsdinstall.8.
Mar 22 2021, 11:43 PM
nwhitehorn committed rGc8923d191dd3: Include examples of how to build script-install media. (authored by nwhitehorn).
Include examples of how to build script-install media.
Mar 22 2021, 8:00 PM
nwhitehorn committed rGf91026bf462f: Improve example install scripts, making them simpler and more robust. (authored by nwhitehorn).
Improve example install scripts, making them simpler and more robust.
Mar 22 2021, 8:00 PM
nwhitehorn updated the diff for D29380: Fix scripted installations on EFI systems for 13.0.

Fix missing newline.

Mar 22 2021, 7:56 PM
nwhitehorn updated the summary of D29380: Fix scripted installations on EFI systems for 13.0.
Mar 22 2021, 6:20 PM
nwhitehorn requested review of D29380: Fix scripted installations on EFI systems for 13.0.
Mar 22 2021, 6:18 PM

Mar 19 2021

nwhitehorn committed rGe8b4c5a6226b: Clarify that scripted installations don't require specification of boot (authored by nwhitehorn).
Clarify that scripted installations don't require specification of boot
Mar 19 2021, 1:47 PM

Mar 11 2021

nwhitehorn committed rG3dbc2213dacb: Mount the EFI system partition (ESP) on newly-installed systems and VM (authored by nwhitehorn).
Mount the EFI system partition (ESP) on newly-installed systems and VM
Mar 11 2021, 7:40 PM

Mar 10 2021

nwhitehorn committed rP567970: Update the libpurple Slack module to a more recent version, which chases the….
Update the libpurple Slack module to a more recent version, which chases the…
Mar 10 2021, 1:47 AM

Mar 9 2021

nwhitehorn committed rG611d83116a6c: Mount the EFI system partition (ESP) on newly-installed systems and VM (authored by nwhitehorn).
Mount the EFI system partition (ESP) on newly-installed systems and VM
Mar 9 2021, 2:24 PM

Mar 6 2021

nwhitehorn closed D29068: Put /boot/efi back in mtree.
Mar 6 2021, 2:02 AM
nwhitehorn committed rGe77cf2a4ab32: Restore /boot/efi to mtree. (authored by nwhitehorn).
Restore /boot/efi to mtree.
Mar 6 2021, 2:02 AM
nwhitehorn added a comment to D29068: Put /boot/efi back in mtree.

This is a move in the right directions, at least this is state created by the installer.

Mar 6 2021, 1:50 AM

Mar 4 2021

nwhitehorn requested review of D29068: Put /boot/efi back in mtree.
Mar 4 2021, 7:59 PM

Mar 3 2021

nwhitehorn added a comment to D28979: release: correct VMSIZE example/documentation.

We could also have makefs use expand_number(3) instead. Apologies for breakage!

Mar 3 2021, 6:16 PM
nwhitehorn added a comment to D28814: hier.7: move ESP mountpoint to /efi (from /boot/efi).

This patch looks good to me from a technical point of view. I have no opinion on /boot/efi vs. /efi, so won't comment on the ultimate merits of the change, but you're welcome to include a "Reviewed by:" from me if this goes in.

Mar 3 2021, 2:21 PM

Mar 2 2021

nwhitehorn committed rG2c26d77d989a: Remove /boot/efi from mtree, missed in 0b7472b3d8d2. (authored by nwhitehorn).
Remove /boot/efi from mtree, missed in 0b7472b3d8d2.
Mar 2 2021, 4:50 PM

Feb 25 2021

nwhitehorn added a comment to D28912: Use makefs(8) in release VM-image generation instead of mdconfig/newfs/etc..

Just committed this. I agree about 13.0 -- I was planning to merge to stable/13 after 13.0 has branched and smoke-test this in HEAD for a bit in the meantime.

Feb 25 2021, 2:26 AM
nwhitehorn closed D28912: Use makefs(8) in release VM-image generation instead of mdconfig/newfs/etc..
Feb 25 2021, 2:26 AM
nwhitehorn committed rG1ca8842f3ad9: Use makefs(8) in release VM-image generation instead of md(4) and newfs. (authored by nwhitehorn).
Use makefs(8) in release VM-image generation instead of md(4) and newfs.
Feb 25 2021, 2:26 AM

Feb 24 2021

nwhitehorn committed rGf7aebfbe5c0a: Add GPT PREP-boot type to mkimg(1) from geom_gpt. (authored by nwhitehorn).
Add GPT PREP-boot type to mkimg(1) from geom_gpt.
Feb 24 2021, 3:34 PM
nwhitehorn requested review of D28912: Use makefs(8) in release VM-image generation instead of mdconfig/newfs/etc..
Feb 24 2021, 3:27 PM
nwhitehorn committed rGe70eb4027151: Mount the ESP on /boot/efi in VM images. (authored by nwhitehorn).
Mount the ESP on /boot/efi in VM images.
Feb 24 2021, 1:20 PM
nwhitehorn committed rG1af48800c20f: Delete memstick images for PowerPC. (authored by nwhitehorn).
Delete memstick images for PowerPC.
Feb 24 2021, 3:20 AM

Feb 23 2021

nwhitehorn committed rG0b7472b3d8d2: Mount the EFI system partition (ESP) on newly-installed systems. (authored by nwhitehorn).
Mount the EFI system partition (ESP) on newly-installed systems.
Feb 23 2021, 9:25 PM
nwhitehorn closed D28897: Mount ESP on newly-installed systems.
Feb 23 2021, 9:24 PM
nwhitehorn retitled D28897: Mount ESP on newly-installed systems from Mount ESP on newly-installed systems (WIP) to Mount ESP on newly-installed systems.
Feb 23 2021, 8:27 PM
nwhitehorn updated the diff for D28897: Mount ESP on newly-installed systems.

Now tested and working, with UFS and ZFS, including multi-disk ZFS setups. In principle ready for commit.

Feb 23 2021, 8:12 PM
nwhitehorn updated the diff for D28897: Mount ESP on newly-installed systems.

Now does ZFS (including redundant setups) as well. Still not fully tested.

Feb 23 2021, 5:02 PM
nwhitehorn added a comment to D28897: Mount ESP on newly-installed systems.

@imp any thoughts on the gmirror solution for ZFS? I think it solves 95% of the update issues and shouldn't be too bad to implement.

Feb 23 2021, 3:26 PM
nwhitehorn requested review of D28897: Mount ESP on newly-installed systems.
Feb 23 2021, 3:09 PM

Feb 20 2021

nwhitehorn added a comment to D28814: hier.7: move ESP mountpoint to /efi (from /boot/efi).

Just to be pedantic: We actually *do* have /boot as separate on some systems (e.g. recent powerpc64), but those systems are mutually exclusive with EFI systems. I have a mild preference /boot/efi, but it doesn't really matter much so long as we pick something -- the status quo is it not being mounted *at all*, so reliability of mounting or whatever is obviously a second-order issue.

Feb 20 2021, 1:49 AM

Dec 17 2020

nwhitehorn committed rS368718: Make non-debug kernels installable..
Make non-debug kernels installable.
Dec 17 2020, 2:20 PM

Dec 13 2020

nwhitehorn committed R9:4cc52c752887: Add myself to website, with a news article. (authored by nwhitehorn).
Add myself to website, with a news article.
Dec 13 2020, 5:48 PM
nwhitehorn committed R9:8528d4bd7d0b: Add myself to developers list. (authored by nwhitehorn).
Add myself to developers list.
Dec 13 2020, 5:48 PM
nwhitehorn committed R9:9ce5365ef595: Add myself to authors list. (authored by nwhitehorn).
Add myself to authors list.
Dec 13 2020, 5:48 PM
nwhitehorn committed R9:009ca73b1469: Add my PGP key in appropriate places. (authored by nwhitehorn).
Add my PGP key in appropriate places.
Dec 13 2020, 5:48 PM
nwhitehorn committed R9:74da878eda9e: Update PowerPC platform Known Issues to reflect the issues that still (authored by nwhitehorn).
Update PowerPC platform Known Issues to reflect the issues that still
Dec 13 2020, 5:42 PM
nwhitehorn committed R9:92740a2da1b4: Reflect the declining list of caveats attached to the PowerPC port. This (authored by nwhitehorn).
Reflect the declining list of caveats attached to the PowerPC port. This
Dec 13 2020, 5:37 PM
nwhitehorn committed R9:06e09685e5a0: Update PowerPC port page to reflect the introduction of G5 support and (authored by nwhitehorn).
Update PowerPC port page to reflect the introduction of G5 support and
Dec 13 2020, 5:32 PM

Oct 29 2020

nwhitehorn committed rP553626: Updates net-im/slack-libpurple by two years, bringing in a wide variety of.
Updates net-im/slack-libpurple by two years, bringing in a wide variety of
Oct 29 2020, 3:40 PM

Oct 15 2020

nwhitehorn committed rS366723: Provide a slightly more-tolerant set of thermal parameters for PowerMac.
Provide a slightly more-tolerant set of thermal parameters for PowerMac
Oct 15 2020, 1:43 PM

Jul 6 2020

nwhitehorn committed rP541344: Now in Michigan..
Now in Michigan.
Jul 6 2020, 2:08 PM

May 12 2020

nwhitehorn added a comment to D15243: Powerpc64: Enable Hardware Transactional Memory.

So, HTM is removed in PowerISA 3.1 and it's broken on POWER9. Is it even worth doing at this point? I'm inclined to abandon this.

May 12 2020, 4:03 AM · PowerPC

May 10 2020

nwhitehorn committed rP534857: Update to a newer SEMS snapshot, which brings some minor bugfixes related.
Update to a newer SEMS snapshot, which brings some minor bugfixes related
May 10 2020, 5:44 PM