Page MenuHomeFreeBSD

bdragon (Brandon Bergren)
Animal

Projects

User Details

User Since
Jun 6 2018, 11:31 PM (335 w, 3 h)

Recent Activity

Mar 21 2022

bdragon accepted D34621: powerpcspe: fix PCI enumeration on ppce500.

Looks good to me on inspection. That was always something annoying about trying to configure the PCI bus on ppce500 in qemu. Things should be a lot easier to work with now, before this, we had to manually assign slots high enough.

Mar 21 2022, 6:53 PM

May 7 2021

bdragon added a comment to D30099: lang/rust: Update to 1.52.0.

Final powerpc changes:

May 7 2021, 1:12 AM

May 5 2021

bdragon added a comment to D30099: lang/rust: Update to 1.52.0.

Finalized boostraps for powerpc uploaded to my public_distfiles on freefall.

May 5 2021, 11:53 PM

May 4 2021

bdragon added a comment to D30099: lang/rust: Update to 1.52.0.

Note: I have the bootstrap side working for 32 bit powerpc, been holding off on submitting it though because I haven't successfully gotten a full lang/rust build out of it yet (problems with linking.)

That's nice. What problems specifically?

Out of range PLT relocs.

http://drop.rtk0.net/20210504.txt

May 4 2021, 7:04 PM
bdragon added a comment to D30099: lang/rust: Update to 1.52.0.

Note: I have the bootstrap side working for 32 bit powerpc, been holding off on submitting it though because I haven't successfully gotten a full lang/rust build out of it yet (problems with linking.)

That's nice. What problems specifically?

May 4 2021, 3:29 PM
bdragon added a comment to D30099: lang/rust: Update to 1.52.0.

Note: I have the bootstrap side working for 32 bit powerpc, been holding off on submitting it though because I haven't successfully gotten a full lang/rust build out of it yet (problems with linking.) I did upstream the obligatory openssl-src-rs crate changes needed to bootstrap though at https://github.com/alexcrichton/openssl-src-rs/commit/9cc3301e6168237d2b466cb92d5535e0a6252c51 .

May 4 2021, 2:12 PM

May 1 2021

bdragon added a comment to D22818: [PowerPC] Add .iplt to powerpc linker scripts.

It ended up being not entirely necessary due to the linker behavior of forcing required sections into whatever segment is a natural fit for them, unless we explicitly break it with /DISCARD/.

May 1 2021, 10:38 PM · PowerPC

Apr 27 2021

bdragon closed D30011: riscv: Remove old qemu compatibility code.
Apr 27 2021, 9:26 PM · riscv
bdragon committed rG6e1abda231bf: riscv: Remove old qemu compatibility code (authored by bdragon).
riscv: Remove old qemu compatibility code
Apr 27 2021, 9:26 PM
bdragon updated the summary of D30011: riscv: Remove old qemu compatibility code.
Apr 27 2021, 4:23 PM · riscv
bdragon requested review of D30011: riscv: Remove old qemu compatibility code.
Apr 27 2021, 4:22 PM · riscv

Apr 20 2021

bdragon added inline comments to D29851: [PowerPC] Fix outdated FP regs on fork(2) and friends.
Apr 20 2021, 9:35 PM · PowerPC
bdragon added inline comments to D29136: WIP: [PowerPC] PowerMac timebase sync for G4.
Apr 20 2021, 4:40 AM · PowerPC
bdragon updated the diff for D29136: WIP: [PowerPC] PowerMac timebase sync for G4.

Rebase against latest code.

Apr 20 2021, 4:39 AM · PowerPC
bdragon added a comment to D29136: WIP: [PowerPC] PowerMac timebase sync for G4.

Updating comments

Apr 20 2021, 4:21 AM · PowerPC
bdragon committed rGcf8bf3edf8ee: powerpc/aim: Update timebase directly on resume instead of through platform (authored by jhibbits).
powerpc/aim: Update timebase directly on resume instead of through platform
Apr 20 2021, 4:19 AM
bdragon committed rGac42b63648b1: powerpc/powermac: Constrain 'cpu_sleep()' for AIM to mpc745x (authored by jhibbits).
powerpc/powermac: Constrain 'cpu_sleep()' for AIM to mpc745x
Apr 20 2021, 4:19 AM
bdragon retitled D29851: [PowerPC] Fix outdated FP regs on fork(2) and friends from [PowerPC] Fix outdated FP regs on fork() and friends to [PowerPC] Fix outdated FP regs on fork(2) and friends.
Apr 20 2021, 4:06 AM · PowerPC
bdragon updated the test plan for D29851: [PowerPC] Fix outdated FP regs on fork(2) and friends.
Apr 20 2021, 4:03 AM · PowerPC
bdragon requested review of D29851: [PowerPC] Fix outdated FP regs on fork(2) and friends.
Apr 20 2021, 4:01 AM · PowerPC
bdragon added inline comments to D29808: powerpc64/pmap: NUMA-ize radix PMAP.
Apr 20 2021, 3:49 AM

Apr 12 2021

bdragon committed rG908d607bd100: [PowerPC] Fix NUMA checking for powernv (authored by bdragon).
[PowerPC] Fix NUMA checking for powernv
Apr 12 2021, 3:49 AM

Apr 8 2021

bdragon accepted D29623: Fix phdr_tls_data for static binaries; Fix recursion on rtld_bind_lock in dynamic dl_iterate_phdr.

Retested powerpc/powerpcspe. Still good.

Apr 8 2021, 6:59 PM
bdragon accepted D29623: Fix phdr_tls_data for static binaries; Fix recursion on rtld_bind_lock in dynamic dl_iterate_phdr.

Oh! So it's not a contract between libc and rtld, it's just internal functionality that is used in both static libc as well as rtld, so it ends up being hidden visibility and just a common piece of code that both happen to pull in. Makes sense to me now.

Apr 8 2021, 3:17 AM
bdragon added a comment to D29623: Fix phdr_tls_data for static binaries; Fix recursion on rtld_bind_lock in dynamic dl_iterate_phdr.

Testing libexec/rtld-elf, lib/csu, lib/libthr on powerpc*.

Apr 8 2021, 1:21 AM

Apr 7 2021

bdragon committed rG557ab8869921: [PowerPC] Remove unused IPI type count tracking. (authored by jhibbits).
[PowerPC] Remove unused IPI type count tracking.
Apr 7 2021, 3:13 AM
bdragon committed rGa8b0d01fedbf: powerpc/pseries: Add new hypercall definition, H_REGISTER_PROC_TBL (authored by jhibbits).
powerpc/pseries: Add new hypercall definition, H_REGISTER_PROC_TBL
Apr 7 2021, 3:13 AM

Apr 5 2021

bdragon committed rG0c9f52d4cebf: powerpc: Fix programmer's switch driver and add to GENERIC (authored by bdragon).
powerpc: Fix programmer's switch driver and add to GENERIC
Apr 5 2021, 5:10 PM
bdragon closed D29131: [PowerPC] Fix programmer's switch driver and add to GENERIC.
Apr 5 2021, 5:10 PM · PowerPC

Apr 1 2021

bdragon added inline comments to D29465: [PowerPC] Fix kboot bootloader.
Apr 1 2021, 2:53 AM · PowerPC
bdragon added a comment to D29465: [PowerPC] Fix kboot bootloader.

BTW I got a second PS3 in the mail today so I now have the ability to test both a modern OtherOS++ (Rebug 4.86.1) setup and a classic OtherOS on OFW 2.80 setup.

Apr 1 2021, 2:48 AM · PowerPC
bdragon added a comment to D29465: [PowerPC] Fix kboot bootloader.

I haven't had any luck doing raw kernel loads on mine. Are you trying with ELFv1 or ELFv2 kernels? I can't get either 12.2 or -current kernels to load properly, is there some special petitboot version you are using with yours?

Apr 1 2021, 2:42 AM · PowerPC
bdragon updated the diff for D29465: [PowerPC] Fix kboot bootloader.
  • Fix bug in host_open error path
  • Fix linker script problems
Apr 1 2021, 2:40 AM · PowerPC

Mar 31 2021

bdragon accepted D28580: powernv: Include NUMA locality information in the CPU topology.

I did a full test run with the updated version of this patch in (among others) and it worked fine.

Mar 31 2021, 4:22 AM · PowerPC
bdragon committed rGa5f07fa0c6b1: powerpc/pseries: Add new hypercall definition, H_REGISTER_PROC_TBL (authored by jhibbits).
powerpc/pseries: Add new hypercall definition, H_REGISTER_PROC_TBL
Mar 31 2021, 4:06 AM
bdragon committed rG895a22583df2: [PowerPC] Fix ISA_206 subword atomics (authored by jhibbits).
[PowerPC] Fix ISA_206 subword atomics
Mar 31 2021, 1:24 AM
bdragon committed rG74f6cb0f316b: [PowerPC] Remove unused IPI type count tracking. (authored by jhibbits).
[PowerPC] Remove unused IPI type count tracking.
Mar 31 2021, 1:12 AM

Mar 30 2021

bdragon accepted D29230: Add support for superpages - pmap_mincore [powerpc64].

OK. Tested on POWER9.

Mar 30 2021, 3:10 AM · PowerPC

Mar 29 2021

bdragon accepted D29439: Clean up a couple of MD warts in vm_fault_populate():.

OK PowerPC

Mar 29 2021, 11:52 PM
bdragon committed rG5a08df100b58: [PowerPC] Fix 32-bit Book-E panic due to pve leak (authored by bdragon).
[PowerPC] Fix 32-bit Book-E panic due to pve leak
Mar 29 2021, 11:24 PM

Mar 28 2021

bdragon committed rG98727c6cd11e: Fix panic when using BOOTP to resolve root path. (authored by bdragon).
Fix panic when using BOOTP to resolve root path.
Mar 28 2021, 7:05 PM
bdragon closed D29464: Fix panic when using BOOTP to resolve root path..
Mar 28 2021, 7:04 PM · network, PowerPC
bdragon committed rGbd94c8ab29c3: [PowerPC] Fix NUMA checking for powernv (authored by bdragon).
[PowerPC] Fix NUMA checking for powernv
Mar 28 2021, 1:44 AM
bdragon requested review of D29465: [PowerPC] Fix kboot bootloader.
Mar 28 2021, 1:18 AM · PowerPC
bdragon requested review of D29464: Fix panic when using BOOTP to resolve root path..
Mar 28 2021, 12:33 AM · network, PowerPC

Mar 27 2021

bdragon accepted D29452: powerpc: Fix powerpcspe WRT FPSCR.

Makes sense to me.

Mar 27 2021, 10:22 PM

Mar 23 2021

bdragon committed rGa9c7d90862ef: [PowerPC] [PowerPCSPE] Fix multiple issues in fpsetmask(). (authored by bdragon).
[PowerPC] [PowerPCSPE] Fix multiple issues in fpsetmask().
Mar 23 2021, 10:01 PM
bdragon committed rG064f09616c67: [PowerPC64] Fix multiple issues in fpsetmask(). (authored by bdragon).
[PowerPC64] Fix multiple issues in fpsetmask().
Mar 23 2021, 10:00 PM

Mar 12 2021

bdragon added inline comments to D29136: WIP: [PowerPC] PowerMac timebase sync for G4.
Mar 12 2021, 4:11 PM · PowerPC

Mar 11 2021

bdragon updated the diff for D29136: WIP: [PowerPC] PowerMac timebase sync for G4.
  • s/frozen/freeze/
  • Add G5 handling for "platform function that is just a GPIO write" style timebase control like PowerMac11,2.
Mar 11 2021, 6:27 PM · PowerPC

Mar 9 2021

bdragon added inline comments to D29136: WIP: [PowerPC] PowerMac timebase sync for G4.
Mar 9 2021, 2:45 AM · PowerPC
bdragon added inline comments to D29136: WIP: [PowerPC] PowerMac timebase sync for G4.
Mar 9 2021, 2:20 AM · PowerPC
bdragon added a comment to D29136: WIP: [PowerPC] PowerMac timebase sync for G4.

In case it helps for some G4 dual socket contexts (captured while the machine happens
to be up and accessible). Turns out each of the cpus has a timebase-enable listed, but
they are numerically equal on the machine in question.

...

timebase-enable:
  00 00 00 73

Yep. 0x73 is the "expected" value for this. It is the GPIO base offset of 0x6a plus the offset to the timebase control of 0x9. As far as I know, that's how all G4s are wired, but we respect the property in case there is a model out there that is wired differently.

Mar 9 2021, 2:17 AM · PowerPC
bdragon accepted D27475: ofwfb: fix boot on LE.

Tested on PPC32.

Mar 9 2021, 1:57 AM · PowerPC

Mar 8 2021

bdragon added inline comments to D29136: WIP: [PowerPC] PowerMac timebase sync for G4.
Mar 8 2021, 11:24 PM · PowerPC
bdragon requested review of D29136: WIP: [PowerPC] PowerMac timebase sync for G4.
Mar 8 2021, 11:02 PM · PowerPC
bdragon requested review of D29131: [PowerPC] Fix programmer's switch driver and add to GENERIC.
Mar 8 2021, 7:45 PM · PowerPC
bdragon committed rG6d7145a2b053: [PowerPC] Allow traversal of oversize OF properties. (authored by bdragon).
[PowerPC] Allow traversal of oversize OF properties.
Mar 8 2021, 7:09 PM
bdragon committed rG015a37124b91: [PowerPC64] Fix multiple issues in fpsetmask(). (authored by bdragon).
[PowerPC64] Fix multiple issues in fpsetmask().
Mar 8 2021, 7:08 PM
bdragon committed rG1a4b9c2827dc: [PowerPC] [PowerPCSPE] Fix multiple issues in fpsetmask(). (authored by bdragon).
[PowerPC] [PowerPCSPE] Fix multiple issues in fpsetmask().
Mar 8 2021, 7:08 PM
bdragon committed rGd905133e26d0: [PowerPC] Fix SPE floating point environment manipulation (authored by bdragon).
[PowerPC] Fix SPE floating point environment manipulation
Mar 8 2021, 7:08 PM
bdragon committed rGa79735386c46: [PowerPC64] Fix multiple issues in fpsetmask(). (authored by bdragon).
[PowerPC64] Fix multiple issues in fpsetmask().
Mar 8 2021, 6:42 PM
bdragon committed rG8b96d6ac04e7: [PowerPC] [PowerPCSPE] Fix multiple issues in fpsetmask(). (authored by bdragon).
[PowerPC] [PowerPCSPE] Fix multiple issues in fpsetmask().
Mar 8 2021, 6:42 PM
bdragon committed rG102e7117bcf3: [PowerPC64LE] pseries: Fix input buffering logic. (authored by bdragon).
[PowerPC64LE] pseries: Fix input buffering logic.
Mar 8 2021, 6:37 PM

Mar 6 2021

bdragon committed rGbad9fa56620e: [PowerPC] Fix AP bringup on 32-bit AIM SMP (authored by bdragon).
[PowerPC] Fix AP bringup on 32-bit AIM SMP
Mar 6 2021, 9:48 PM

Mar 5 2021

bdragon accepted D29068: Put /boot/efi back in mtree.

Confirmed that I can still install on powerpc64le in qemu with this change, and that the empty /boot/efi directory exists again.

Mar 5 2021, 3:42 PM

Mar 1 2021

bdragon committed rG384ee7cc6e9e: [PowerPC] [PowerPCSPE] Fix multiple issues in fpsetmask(). (authored by bdragon).
[PowerPC] [PowerPCSPE] Fix multiple issues in fpsetmask().
Mar 1 2021, 3:18 AM
bdragon committed rGdd95b39235dd: [PowerPC64] Fix multiple issues in fpsetmask(). (authored by bdragon).
[PowerPC64] Fix multiple issues in fpsetmask().
Mar 1 2021, 2:39 AM

Feb 25 2021

bdragon committed rG5001c579baff: [PowerPC64LE] pseries: Fix input buffering logic. (authored by bdragon).
[PowerPC64LE] pseries: Fix input buffering logic.
Feb 25 2021, 8:52 PM

Feb 18 2021

bdragon accepted D28604: ofwfb: fix incorrect colors on powerpc*, add new tunable parameters.

Should be good for HEAD.

Feb 18 2021, 9:59 PM · PowerPC

Feb 15 2021

bdragon added a comment to D28604: ofwfb: fix incorrect colors on powerpc*, add new tunable parameters.

Universe build went fine.

Feb 15 2021, 3:21 PM · PowerPC

Feb 12 2021

bdragon added a comment to D28604: ofwfb: fix incorrect colors on powerpc*, add new tunable parameters.

Confirmed correct on an nvidia-based powerbook g4.

Feb 12 2021, 4:59 AM · PowerPC

Feb 11 2021

bdragon added a comment to D28580: powernv: Include NUMA locality information in the CPU topology.

On a deca-core POWER8 (SMT-8):

Presumably this is not a NUMA system? Or should we be seeing an additional layer in the topology?

Feb 11 2021, 5:20 PM · PowerPC
bdragon added a comment to D28580: powernv: Include NUMA locality information in the CPU topology.

One possible problem with your assumptions is that arbitray cores may be GUARDed out for a given boot. So some cores may exist but be offline due to being deconfig'd during IPL. I'm not sure whether that would have an effect on this or not. The IPL logic will always deconfig the entire core, and therefore the entire thread/smt group when there is a fault entry. So the domains might have differing numbers of online cores.

When is this done in practice?

I'm not a huge fan of assuming that all domains have an identical number of cores, this assumption is just needed to use the somewhat simplistic smp_topo_*() functions. I'll revisit this and see if I can handle asymmetric domains without having to complicate the code too much.

Feb 11 2021, 5:16 PM · PowerPC
bdragon added a comment to D28580: powernv: Include NUMA locality information in the CPU topology.

One possible problem with your assumptions is that arbitray cores may be GUARDed out for a given boot. So some cores may exist but be offline due to being deconfig'd during IPL. I'm not sure whether that would have an effect on this or not. The IPL logic will always deconfig the entire core, and therefore the entire thread/smt group when there is a fault entry. So the domains might have differing numbers of online cores.

Feb 11 2021, 3:29 AM · PowerPC
bdragon added a comment to D28580: powernv: Include NUMA locality information in the CPU topology.

On a deca-core POWER8 (SMT-8):

Feb 11 2021, 3:17 AM · PowerPC
bdragon added a comment to D28580: powernv: Include NUMA locality information in the CPU topology.

Since jhibbits tried for Talos II already, I will try on TYAN POWER8 instead.

Feb 11 2021, 1:53 AM · PowerPC

Feb 10 2021

bdragon changed the repository for D28580: powernv: Include NUMA locality information in the CPU topology from rS FreeBSD src repository - subversion to rG FreeBSD src repository.
Feb 10 2021, 9:48 PM · PowerPC
bdragon added a comment to D28580: powernv: Include NUMA locality information in the CPU topology.

Will try this on Talos II.

Feb 10 2021, 9:46 PM · PowerPC
bdragon committed rGc48cbd0254de: powerpc64: Fix boot on virtual-mode OF (PowerMac G5) (authored by bdragon).
powerpc64: Fix boot on virtual-mode OF (PowerMac G5)
Feb 10 2021, 3:44 AM
bdragon committed rG187492ef639f: powerpc64: Fix boot on virtual-mode OF (PowerMac G5) (authored by bdragon).
powerpc64: Fix boot on virtual-mode OF (PowerMac G5)
Feb 10 2021, 3:21 AM

Feb 9 2021

bdragon added inline comments to D27475: ofwfb: fix boot on LE.
Feb 9 2021, 4:33 PM · PowerPC

Feb 7 2021

bdragon committed rGd26f2a50ff48: powerpc64: Fix boot on virtual-mode OF (PowerMac G5) (authored by bdragon).
powerpc64: Fix boot on virtual-mode OF (PowerMac G5)
Feb 7 2021, 10:15 PM

Feb 4 2021

bdragon accepted D28475: mrsas: update man file and add driver to powerpc64le/GENERIC64LE.

Looks good.

Feb 4 2021, 2:09 PM · PowerPC

Feb 2 2021

bdragon committed R9:bd3ec6a73499: Trivial change: Remove duplicated paragraph. (authored by bdragon).
Trivial change: Remove duplicated paragraph.
Feb 2 2021, 4:22 PM

Dec 30 2020

bdragon closed D27365: [POWERPC64LE] fix sysctl dev.opal_sensor.* on little-endian kernel.

Manually closing. Phab didn't pick up on the commit message due to a glitch in the documentation.

Dec 30 2020, 10:44 PM · PowerPC
bdragon accepted D27443: [POWERPC64LE] enable IPMI using OPAL bus.

Yes please.

Dec 30 2020, 10:13 PM · PowerPC

Dec 25 2020

bdragon committed rG2ca7f72fee3c: MFC r364447: (authored by bdragon).
MFC r364447:
Dec 25 2020, 9:09 PM
bdragon committed rGa6922d706d52: MFC r364447: (authored by bdragon).
MFC r364447:
Dec 25 2020, 9:09 PM
bdragon committed rGefc7664f9ba1: MFC r361703: (authored by bdragon).
MFC r361703:
Dec 25 2020, 8:49 PM
bdragon committed rG5c51ee529fd4: MFC r361024: (authored by bdragon).
MFC r361024:
Dec 25 2020, 8:40 PM

Dec 13 2020

bdragon closed D27453: [PowerPC] Floating-point exception trap followup.
Dec 13 2020, 3:59 AM · PowerPC
bdragon committed rS368604: [PowerPC] Floating-point exception trap followup.
[PowerPC] Floating-point exception trap followup
Dec 13 2020, 3:59 AM

Dec 12 2020

bdragon updated the diff for D27453: [PowerPC] Floating-point exception trap followup.

Addressing review comments.

Dec 12 2020, 11:47 PM · PowerPC

Dec 5 2020

bdragon added a comment to D27387: Add CFI start/end proc directives to arm64, i386, and ppc.

I'm fine with it on readthrough, I just hadn't gotten around to the actual tests. If it broke anything in powerpc land, it should be easy to fix. Thanks for tidying up the procedure annotations!

Dec 5 2020, 3:18 AM

Dec 3 2020

bdragon requested review of D27453: [PowerPC] Floating-point exception trap followup.
Dec 3 2020, 1:44 AM · PowerPC
bdragon closed D27431: [PowerPC64LE] Fix LE VSX/fpr interop.
Dec 3 2020, 1:40 AM · PowerPC
bdragon committed rS368290: [PowerPC64LE] Fix LE VSX/fpr interop.
[PowerPC64LE] Fix LE VSX/fpr interop
Dec 3 2020, 1:40 AM

Dec 1 2020

bdragon requested review of D27431: [PowerPC64LE] Fix LE VSX/fpr interop.
Dec 1 2020, 1:11 AM · PowerPC

Nov 23 2020

bdragon added a comment to D27293: lang/rust: Update to 1.48.0.

Doesn't apply on fresh ports tree:

C         devel/cargo-c/Makefile
>         rejected hunk @@ -2,6 +2,7 @@
C         lang/rust/files/patch-compiler_rustc__target_src_spec_i686__unknown__freebsd.rs
>         rejected hunk @@ -1,5 +1,5 @@
C         lang/rust/files/powerpc64-elfv1/patch-compiler_rustc__llvm_build.rs
>         rejected hunk @@ -1,5 +1,5 @@
C         lang/rust/files/powerpc64-elfv2/patch-compiler_rustc__target_src_abi_call_powerpc64.rs
>         rejected hunk @@ -1,5 +1,5 @@
C         lang/rust/files/powerpc64-elfv2/patch-compiler_rustc__target_src_spec_powerpc64__unknown__freebsd.rs
>         rejected hunk @@ -1,5 +1,5 @@
C         lang/rust/files/powerpc64le/patch-compiler_rustc__target_src_spec_mod.rs
>         rejected hunk @@ -1,5 +1,5 @@

Yeah, that's just a side effect of moved files. I worked around this on my end when patching by pre-moving the changed patch files.

I don't know why the uploaded patch isn't able to do this automatically, I think it might have just been uploaded with the wrong options or needs to be applied in a certain manner. It's not showing up as a delete/add like usual though.

Nov 23 2020, 1:00 AM