Page MenuHomeFreeBSD
Feed Advanced Search

Aug 4 2025

jhibbits added a comment to D51623: amd64: Add kexec support.

One global question I have, most likely you must execute the handoff and start executing the new kernel on AP, not BSPs. In other words. the reboot must migrate to AP if it not already did it.

Aug 4 2025, 6:04 PM
jhibbits added a comment to D51620: syscalls: Regen after adding kexec_load syscall.
In D51620#1181458, @imp wrote:

You don't need to get this reviewed.

Aug 4 2025, 5:58 PM
jhibbits added inline comments to D51623: amd64: Add kexec support.
Aug 4 2025, 3:58 PM

Jul 31 2025

jhibbits added inline comments to D51619: kern: Introduce kexec system feature (MI).
Jul 31 2025, 12:29 PM
jhibbits added inline comments to D51619: kern: Introduce kexec system feature (MI).
Jul 31 2025, 3:18 AM

Jul 30 2025

jhibbits abandoned D47358: rescue: Implement a direct dumper for arm64 and amd64.

Abandoned in favor of the kexec stack.

Jul 30 2025, 7:50 PM
jhibbits added a comment to D51622: amd64: Add cpu_stop() support to go UP after SMP.
In D51622#1179455, @kib wrote:

In fact, I retract my proposal with the INIT IPI. If SMI is broadcasted, other CPUs would not enter the SMI handler, and the sending CPU most likely hang waiting for the reply.

So yes, the cli;hlt loop is the best, but it should be executed from the memory which is not overwritten during kexec.

Jul 30 2025, 7:19 PM
jhibbits added inline comments to D51621: kexec: Introduce basic arm64 support.
Jul 30 2025, 6:59 PM
jhibbits added a comment to D51622: amd64: Add cpu_stop() support to go UP after SMP.

I should add that this is sort of how Linux does it as well (synchronize, disable interrupts, go catatonic and hope for the best)

Jul 30 2025, 6:47 PM
jhibbits added a comment to D51622: amd64: Add cpu_stop() support to go UP after SMP.
In D51622#1179431, @kib wrote:
In D51622#1179429, @kib wrote:
In D51622#1179347, @kib wrote:

Why do we need this at all? Why cannot you use e.g. stop_cpus() or stop_cpus_hard() or even smp_rendezvous() to do that? It can be done in MI, and definitely does not require new IPI vector.

The purpose of this is to make the CPU go catatonic so that it requires a core reset to continue. The handler disables all interrupts before going catatonic, so it requires the LAPIC INIT sequence to restore. We don't want the CPU to execute any other instructions until reset because the memory may have been overwritten.

Then explain this, at least as a comment in the code.

Jul 30 2025, 6:39 PM
jhibbits added a comment to D51622: amd64: Add cpu_stop() support to go UP after SMP.
In D51622#1179347, @kib wrote:

Why do we need this at all? Why cannot you use e.g. stop_cpus() or stop_cpus_hard() or even smp_rendezvous() to do that? It can be done in MI, and definitely does not require new IPI vector.

Jul 30 2025, 5:17 PM
jhibbits added inline comments to D51619: kern: Introduce kexec system feature (MI).
Jul 30 2025, 5:15 PM
jhibbits added inline comments to D51625: kexec: Add dummy headers for powerpc, arm, and riscv.
Jul 30 2025, 2:35 PM
jhibbits added inline comments to D51621: kexec: Introduce basic arm64 support.
Jul 30 2025, 1:54 PM

Jul 29 2025

jhibbits requested review of D51625: kexec: Add dummy headers for powerpc, arm, and riscv.
Jul 29 2025, 6:56 PM
jhibbits requested review of D51624: x86/intr: Handle case of disabling MSI after release.
Jul 29 2025, 6:56 PM
jhibbits requested review of D51623: amd64: Add kexec support.
Jul 29 2025, 6:56 PM
jhibbits requested review of D51622: amd64: Add cpu_stop() support to go UP after SMP.
Jul 29 2025, 6:56 PM
jhibbits requested review of D51621: kexec: Introduce basic arm64 support.
Jul 29 2025, 6:55 PM
jhibbits requested review of D51620: syscalls: Regen after adding kexec_load syscall.
Jul 29 2025, 6:55 PM
jhibbits requested review of D51619: kern: Introduce kexec system feature (MI).
Jul 29 2025, 6:55 PM

Jul 21 2025

jhibbits committed rG6e211ff4902a: libc/powerpc64: Fix swapcontext(3) (authored by tpearson_raptorengineering.com).
libc/powerpc64: Fix swapcontext(3)
Jul 21 2025, 3:05 AM
jhibbits committed rG90a9ce456740: powerpc: Fix multiple issues with FP/VSX save/restore (authored by tpearson_raptorengineering.com).
powerpc: Fix multiple issues with FP/VSX save/restore
Jul 21 2025, 3:05 AM
jhibbits committed rGe04d629d5394: powerpc: Reserve correct scratch region size below stack (authored by tpearson_raptorengineering.com).
powerpc: Reserve correct scratch region size below stack
Jul 21 2025, 3:05 AM

Jul 13 2025

jhibbits committed rG8efa35fea384: libc/powerpc64: Fix swapcontext(3) (authored by tpearson_raptorengineering.com).
libc/powerpc64: Fix swapcontext(3)
Jul 13 2025, 6:03 PM
jhibbits committed rG077e30e61d7e: powerpc: Fix multiple issues with FP/VSX save/restore (authored by tpearson_raptorengineering.com).
powerpc: Fix multiple issues with FP/VSX save/restore
Jul 13 2025, 6:03 PM
jhibbits committed rG645bb3efc320: powerpc: Reserve correct scratch region size below stack (authored by tpearson_raptorengineering.com).
powerpc: Reserve correct scratch region size below stack
Jul 13 2025, 6:02 PM

Jul 11 2025

jhibbits added inline comments to D44274: ossl: Add GCM support on powerpc64/powerpc64le (POWER8+).
Jul 11 2025, 6:46 PM

Jun 25 2025

jhibbits committed rG0d7abc6e1f78: IfAPI: Finish etherswitch driver conversions (authored by jhibbits).
IfAPI: Finish etherswitch driver conversions
Jun 25 2025, 8:02 PM
jhibbits committed rG564df56098e0: nexus: Add device_shutdown where missing (authored by jhibbits).
nexus: Add device_shutdown where missing
Jun 25 2025, 8:02 PM

Jun 2 2025

jhibbits added a comment to D44274: ossl: Add GCM support on powerpc64/powerpc64le (POWER8+).

Is there anything blocking this now?

Jun 2 2025, 6:42 PM

May 30 2025

jhibbits added inline comments to D50590: stand: Add mod_align_size variable.
May 30 2025, 4:04 PM
jhibbits added inline comments to D50590: stand: Add mod_align_size variable.
May 30 2025, 3:41 PM
jhibbits accepted D50587: stand: Retire arch_loadaddr, pending its replacement.

Math checks out. Haven't tested, but looks correct to me. I'll test it later, and won't hold it up.

May 30 2025, 2:56 PM

May 29 2025

jhibbits accepted D50585: stand: Introduce md_align.
May 29 2025, 12:58 PM
jhibbits accepted D50588: style: Use static consistently.
May 29 2025, 12:57 PM

May 27 2025

jhibbits accepted D50445: convert_ifapi: handle the special case of getting interface name.
May 27 2025, 3:32 PM

May 15 2025

jhibbits committed rGac1943f97c01: powerpc: Always use BE tag in nexus_map_resource (authored by jhibbits).
powerpc: Always use BE tag in nexus_map_resource
May 15 2025, 1:08 PM
jhibbits committed rG45d585ab7f22: powerpc: Always use BE tag in nexus_map_resource (authored by jhibbits).
powerpc: Always use BE tag in nexus_map_resource
May 15 2025, 1:50 AM

May 14 2025

jhibbits added a reverting change for rG86d20eaadfd1: powernv: Add RF_BIGENDIAN resource flag: rGbf2166bd72ad: Revert "powernv: Add RF_BIGENDIAN resource flag".
May 14 2025, 1:50 PM
jhibbits committed rGbf2166bd72ad: Revert "powernv: Add RF_BIGENDIAN resource flag" (authored by jhibbits).
Revert "powernv: Add RF_BIGENDIAN resource flag"
May 14 2025, 1:50 PM

May 13 2025

jhibbits committed rG86d20eaadfd1: powernv: Add RF_BIGENDIAN resource flag (authored by jhibbits).
powernv: Add RF_BIGENDIAN resource flag
May 13 2025, 10:47 PM
jhibbits added inline comments to D48482: sound: Simplify locking during device creation.
May 13 2025, 5:03 PM
jhibbits committed rGc4921a0faaf1: powerpc: Always use BE tag in nexus_map_resource (authored by jhibbits).
powerpc: Always use BE tag in nexus_map_resource
May 13 2025, 2:29 AM

May 12 2025

jhibbits updated the diff for D42982: powerpc: Add first Linuxulator support (ELFv1, BE, powerpc64).

Eliminate (most of) the ifdef soup in linux_ioctl.h by following @imp's suggestion.

May 12 2025, 2:50 AM

May 9 2025

jhibbits requested changes to D50264: wtap build error - missing header file.
May 9 2025, 4:57 PM ยท wireless
jhibbits added a comment to D50264: wtap build error - missing header file.

I'm not sure why this was never connected to the build, I would have fixed it during my IfAPI work if it were connected then.

May 9 2025, 4:57 PM ยท wireless

Apr 29 2025

jhibbits added inline comments to D49182: watchdog: Add a new "Control" ioctl.
Apr 29 2025, 3:13 AM

Apr 17 2025

jhibbits accepted D49868: kboot: Implement data_from_kernel to read kernel variables.
Apr 17 2025, 6:11 PM
jhibbits accepted D49866: kboot/amd64: Use segs framework to find kernel location.
Apr 17 2025, 4:00 PM
jhibbits accepted D49867: kboot/amd64: Use efi_bi_loadsmap in bi_loadsmap.
Apr 17 2025, 4:00 PM
jhibbits accepted D49864: kboot/amd64: Use common routines for memory map parsing.
Apr 17 2025, 3:09 PM
jhibbits accepted D49863: kboot: Move common EFI stuff from aarch64 to libkboot.
Apr 17 2025, 3:02 PM
jhibbits accepted D49862: kboot: Method to populate the avail array from EFI map.
Apr 17 2025, 1:44 PM
jhibbits accepted D49861: kboot: Account for machine specific padding.
Apr 17 2025, 1:42 PM
jhibbits accepted D49860: arm64: Reword a comment about kexec / kboot path.
Apr 17 2025, 1:42 PM
jhibbits accepted D49859: loader: Remove unneeded includes.
Apr 17 2025, 1:41 PM
jhibbits accepted D49858: kboot: Save the upper limit of the call stack..
Apr 17 2025, 1:41 PM
jhibbits accepted D49857: kboot: format nit.
Apr 17 2025, 1:40 PM
jhibbits accepted D49856: kboot: Add option to parse 32-bit quantity.
Apr 17 2025, 1:40 PM
jhibbits accepted D49855: kboot: .note.GNU-stack is needed.
Apr 17 2025, 1:39 PM
jhibbits accepted D49854: kboot: Spell Reserved correctly.
Apr 17 2025, 1:38 PM

Apr 7 2025

jhibbits accepted D49692: fdt: fix panic in fdt_slicer/geom due to recent geom changes.
Apr 7 2025, 1:08 AM

Mar 29 2025

jhibbits committed rG7a4907250452: powerpc/trap: Change prediction of NOFAULTING in trap_pfault() (authored by jhibbits).
powerpc/trap: Change prediction of NOFAULTING in trap_pfault()
Mar 29 2025, 12:20 AM

Mar 28 2025

jhibbits accepted D49538: zfs: enable FPU on powerpc*.
Mar 28 2025, 12:34 PM
jhibbits committed rGff9c290648df: powernv: Explicitly enable the facilities we support (authored by jhibbits).
powernv: Explicitly enable the facilities we support
Mar 28 2025, 2:34 AM
jhibbits committed rG16caf6a11ec2: powerpc: Add Hypervisor Facility Unavailable handling (authored by jhibbits).
powerpc: Add Hypervisor Facility Unavailable handling
Mar 28 2025, 2:34 AM

Mar 27 2025

jhibbits accepted D49530: ipmi: fix runtime on powerpc64le.

Slightly cleaner would be to use a local variable for msg_len, and write it out at the end, but this is fine.

Mar 27 2025, 1:11 PM

Mar 26 2025

jhibbits committed rGc11b70191511: geom: Push GEOM sysinit ordering to after devctl (authored by jhibbits).
geom: Push GEOM sysinit ordering to after devctl
Mar 26 2025, 2:58 PM

Mar 19 2025

jhibbits committed rGfe73eb441f1c: powernv: Explicitly enable the facilities we support (authored by jhibbits).
powernv: Explicitly enable the facilities we support
Mar 19 2025, 10:35 PM
jhibbits committed rG0b663e0cee89: powerpc: Add Hypervisor Facility Unavailable handling (authored by jhibbits).
powerpc: Add Hypervisor Facility Unavailable handling
Mar 19 2025, 10:35 PM

Mar 13 2025

jhibbits requested review of D49345: sys/getenv: Fix getenv_uint64 to properly handle high set bit.
Mar 13 2025, 4:27 PM

Mar 1 2025

jhibbits closed D47931: IfAPI: Update ifnet(9) man page.
Mar 1 2025, 9:43 PM
jhibbits committed rGc21c8a10d739: IfAPI: Update ifnet(9) man page (authored by jhibbits).
IfAPI: Update ifnet(9) man page
Mar 1 2025, 9:43 PM

Feb 28 2025

jhibbits added inline comments to D47931: IfAPI: Update ifnet(9) man page.
Feb 28 2025, 9:27 PM
jhibbits updated the diff for D47931: IfAPI: Update ifnet(9) man page.

Address feedback from @ziaee.

Feb 28 2025, 9:27 PM
jhibbits added inline comments to D47931: IfAPI: Update ifnet(9) man page.
Feb 28 2025, 8:38 PM
jhibbits added a comment to D47931: IfAPI: Update ifnet(9) man page.

Ping? Been a couple months, want to wrap it all up.

Feb 28 2025, 8:18 PM
jhibbits abandoned D47312: watchdog: Convert to using sbintime_t format.

Split into D49182 and D49183

Feb 28 2025, 7:01 PM
jhibbits added reviewers for D49182: watchdog: Add a new "Control" ioctl: jhb, imp, phk, stevek.
Feb 28 2025, 7:00 PM
jhibbits added reviewers for D49183: watchdog: Convert to using sbintime_t format: jhb, phk, stevek, imp.
Feb 28 2025, 6:59 PM
jhibbits requested review of D49183: watchdog: Convert to using sbintime_t format.
Feb 28 2025, 6:55 PM
jhibbits requested review of D49182: watchdog: Add a new "Control" ioctl.
Feb 28 2025, 6:55 PM

Feb 18 2025

jhibbits accepted D49046: RELNOTES: document pf's ABI breakage.
Feb 18 2025, 2:31 PM
jhibbits added inline comments to D49046: RELNOTES: document pf's ABI breakage.
Feb 18 2025, 2:20 PM

Feb 12 2025

jhibbits accepted D48897: powerpc: Remove flag CTLFLAG_TUN from sysctl knob hw.platform.
Feb 12 2025, 8:12 PM

Feb 9 2025

jhibbits committed rG80ec95226e17: busdma: Always initialize bounce page STAILQ (authored by sanastasio_raptorengineering.com).
busdma: Always initialize bounce page STAILQ
Feb 9 2025, 5:28 PM
jhibbits closed D48600: busdma: Always initialize bounce page STAILQ.
Feb 9 2025, 5:27 PM ยท PowerPC
jhibbits accepted D48897: powerpc: Remove flag CTLFLAG_TUN from sysctl knob hw.platform.
Feb 9 2025, 5:18 PM
jhibbits accepted D48054: IfAPI: hide struct ifaddr from if_foreach_addr_type() callbacks.
Feb 9 2025, 5:13 PM
jhibbits accepted D48888: powerpc: mmu_radix_page_array_startup(): Don't force allocation from domain 0.
Feb 9 2025, 5:12 PM

Feb 6 2025

jhibbits added a comment to D48633: vm_phys_early_alloc(): Panic on no memory in specific domain, add diagnostics.

I don't think it's possible to have domain 0 unpopulated on powerpc. I do have a patch that implements the NUMAing of mmu_radix_page_array_startup(), but it didn't improve performance any measurable degree when I tested, so never followed through with pushing it.

I see. I've taken care of updating the code under #ifdef notyet as a future reference, just in case.

Can I change the argument to -1 here? This will in practice change nothing as long as domain 0 is populated and not too small.

Feb 6 2025, 7:23 PM
jhibbits added a comment to D48633: vm_phys_early_alloc(): Panic on no memory in specific domain, add diagnostics.

I don't think it's possible to have domain 0 unpopulated on powerpc. I do have a patch that implements the NUMAing of mmu_radix_page_array_startup(), but it didn't improve performance any measurable degree when I tested, so never followed through with pushing it.

Feb 6 2025, 4:57 PM

Jan 27 2025

jhibbits added a comment to D47312: watchdog: Convert to using sbintime_t format.
In D47312#1110694, @jhb wrote:

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

  1. In the existing interface, the "pat" operation (both ioctl and in-kernel) accepts a mask of a control operation and a timeout value. In the new interface, the pat interface only accepts the timeout and a new control operation handles things like resetting the watchdog. I actually think just splitting that change out into its own commit (i.e. adding the new function and ioctl) earlier in the series might be nicer (if it is indeed separable).
Jan 27 2025, 6:59 PM
jhibbits accepted D48600: busdma: Always initialize bounce page STAILQ.
Jan 27 2025, 2:26 PM ยท PowerPC

Jan 24 2025

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

Ping, anyone?

Jan 24 2025, 2:57 PM

Jan 21 2025

jhibbits committed rG6f0c2938e895: Fix latency spikes on return from stop on POWER9+ (authored by Timothy Pearson <tpearson@raptorengineering.com>).
Fix latency spikes on return from stop on POWER9+
Jan 21 2025, 11:16 PM
jhibbits committed rG58f77309c4e0: Add machdep.cpu_idle_max_stop_state tunable (authored by Timothy Pearson <tpearson@raptorengineering.com>).
Add machdep.cpu_idle_max_stop_state tunable
Jan 21 2025, 11:16 PM

Dec 16 2024

jhibbits abandoned D48060: mips: Save off the BSP HWREna register to share with APs.

Abandoned in favor of D48064.

Dec 16 2024, 3:15 PM

Dec 13 2024

jhibbits committed rG6e55ba5b3131: Export the kernel API pgrp_calc_jobc (authored by joyul_juniper.net).
Export the kernel API pgrp_calc_jobc
Dec 13 2024, 6:23 PM