Page MenuHomeFreeBSD

bdragon (Brandon Bergren)
Animal

Projects

User Details

User Since
Jun 6 2018, 11:31 PM (75 w, 5 d)

Recent Activity

Sun, Nov 17

bdragon updated the diff for D22403: [PowerPC] ELFv2 libdtrace support (userland side).

Actually initialize uses_funcdesc properly.

Sun, Nov 17, 6:59 PM · DTrace, PowerPC

Sat, Nov 16

bdragon created D22421: [PowerPC] Fix *context on ELFv2.
Sat, Nov 16, 8:11 PM · PowerPC
bdragon created D22403: [PowerPC] ELFv2 libdtrace support (userland side).
Sat, Nov 16, 3:58 AM · DTrace, PowerPC

Thu, Nov 14

bdragon accepted D22317: [PowerPC64] Fix broken kernel modules due to LLD 9+ TOC optimization.

Looks good to me too.

Thu, Nov 14, 7:38 PM

Wed, Nov 13

bdragon updated the diff for D22349: [PowerPC] Kernel fixes for ppc32 lld.

Fix the powerpcspe linker script as well.

Wed, Nov 13, 5:58 PM · PowerPC
bdragon created D22349: [PowerPC] Kernel fixes for ppc32 lld.
Wed, Nov 13, 5:52 PM · PowerPC

Sat, Nov 9

bdragon added inline comments to D20378: [PowerPC64] LLVM as default toolchain for PowerPC and PowerPC64.
Sat, Nov 9, 4:14 AM

Sun, Nov 3

bdragon added a comment to D22039: Mk/bsd.port.mk: detect powerpc64 abi .

Note to anyone confused about PPC_ABI being specific to ppc64: The powerpc and powerpcspe abi is NOT changing (only the compiler), as there is no such thing as 32 bit ELFv2 ABI.

Sun, Nov 3, 1:02 AM

Sat, Nov 2

bdragon created D22223: [PowerPC] Add opcode dumping format character to ddb.
Sat, Nov 2, 10:40 PM · PowerPC
bdragon updated the diff for D22121: [PowerPC] fix cntlzw opcode disassembly.

Splitting the opcode dumping format character out to a separate diff.

Sat, Nov 2, 10:37 PM · PowerPC
bdragon added inline comments to D21999: [PowerPC] Book-E clang support.
Sat, Nov 2, 8:37 PM · PowerPC
bdragon updated the diff for D21999: [PowerPC] Book-E clang support.

Update patch to properly fix gcc / clang differences in warning flags.

Sat, Nov 2, 8:35 PM · PowerPC

Wed, Oct 23

bdragon added inline comments to D22014: powerpc/mpc85xx: Add MSI support for Freescale PowerPC SoCs.
Wed, Oct 23, 5:11 AM
bdragon added inline comments to D22050: powerpc/booke: Simplify the MPC85XX PCIe root complex driver.
Wed, Oct 23, 3:05 AM
bdragon accepted D22050: powerpc/booke: Simplify the MPC85XX PCIe root complex driver.

Tested previously on GCC4 kernel on X5000.

Wed, Oct 23, 2:53 AM
bdragon updated the diff for D21999: [PowerPC] Book-E clang support.

Remove an unnecessary patch band.

Wed, Oct 23, 2:29 AM · PowerPC
bdragon added a comment to D21999: [PowerPC] Book-E clang support.

updating inline comments

Wed, Oct 23, 2:21 AM · PowerPC
bdragon updated the diff for D21999: [PowerPC] Book-E clang support.

Addressing review comments.

Wed, Oct 23, 2:14 AM · PowerPC
bdragon created D22121: [PowerPC] fix cntlzw opcode disassembly.
Wed, Oct 23, 12:11 AM · PowerPC

Oct 16 2019

bdragon added a comment to D20261: [PowerPC64] Use ld.bfd to build LIB32 and STAND - when using llvm.

Needs rework for recent libcompat changes.

Oct 16 2019, 1:58 AM
bdragon accepted D22044: Clear PGA_WRITEABLE in moea_remove_pvo()..
Oct 16 2019, 1:47 AM
bdragon added a comment to D19237: Fix TARGET_TRIPLE assembly and retrieve OS version automatically.

Needs reroll after the massive libcompat changes settle down.

Oct 16 2019, 1:03 AM

Oct 15 2019

bdragon added a comment to D22044: Clear PGA_WRITEABLE in moea_remove_pvo()..

Tested on G4 in combination with D22041.

Oct 15 2019, 11:59 PM
bdragon added a comment to D22041: Fix assert in powerpc pmaps after introduction of object busy..

X5000: OK with one caveat -- I currently have to disable ehci.

Oct 15 2019, 11:12 PM
bdragon added a comment to D22041: Fix assert in powerpc pmaps after introduction of object busy..

RB800: OK

Oct 15 2019, 10:48 PM
bdragon added a comment to D22041: Fix assert in powerpc pmaps after introduction of object busy..

G4 appears to be working now when using markj's patch on top of this.

Oct 15 2019, 10:20 PM
bdragon added a comment to D22041: Fix assert in powerpc pmaps after introduction of object busy..

ok, rebuilt with nooptions vt so the ofw console stays up.

Oct 15 2019, 9:16 PM
bdragon added a comment to D22041: Fix assert in powerpc pmaps after introduction of object busy..

screenshot of the backtrace at http://drop.rtk0.net/IMG_1255.JPG

Oct 15 2019, 8:46 PM
bdragon added a comment to D22041: Fix assert in powerpc pmaps after introduction of object busy..

G4: panic: vm_page_free_prep: mapping flags set in page 0xd032c9f8

Oct 15 2019, 8:38 PM
bdragon accepted D22041: Fix assert in powerpc pmaps after introduction of object busy..

X5000: Gets further, hangs with witness lock held too long on usbd_ctrl_lock during "sh /etc/rc autoboot" (Probably a separate issue)
POWER9: OK
G5: OK
RB800: Not tested yet
G4: Not tested yet

Oct 15 2019, 7:28 PM
bdragon added a comment to D22041: Fix assert in powerpc pmaps after introduction of object busy..

I don't see an actual change for flags -> pmap_flags in mmu_booke_enter_locked(), did you upload the right diff?

Oct 15 2019, 6:11 PM
bdragon requested changes to D22041: Fix assert in powerpc pmaps after introduction of object busy..

booke compile errors.

Oct 15 2019, 5:50 PM
bdragon added inline comments to D22041: Fix assert in powerpc pmaps after introduction of object busy..
Oct 15 2019, 5:31 PM
bdragon added inline comments to D22041: Fix assert in powerpc pmaps after introduction of object busy..
Oct 15 2019, 5:29 PM

Oct 12 2019

bdragon accepted D21829: powerpc: Add AmigaOne platform, a subclass of MPC85xx.

Tested on X5000 w/ clang9 kernel.

Oct 12 2019, 11:00 PM
bdragon added a comment to D20261: [PowerPC64] Use ld.bfd to build LIB32 and STAND - when using llvm.

Needs reroll due to recent changes in Makefile.libcompat. (Although lld ppc32 support is coming along which will render this moot anyway)

Oct 12 2019, 8:45 PM
bdragon added a comment to D21999: [PowerPC] Book-E clang support.

adding some misc. notes inline

Oct 12 2019, 6:18 PM · PowerPC
bdragon created D21999: [PowerPC] Book-E clang support.
Oct 12 2019, 6:08 PM · PowerPC
bdragon retitled D21988: [PowerPC] [BookE] Fix read past end of struct from [PowerPC] Fix read past end of struct to [PowerPC] [BookE] Fix read past end of struct.
Oct 12 2019, 1:14 AM · PowerPC
bdragon created D21988: [PowerPC] [BookE] Fix read past end of struct.
Oct 12 2019, 1:13 AM · PowerPC

Oct 11 2019

bdragon added a comment to D21954: gcore: Add powerpc64 32-bit gcore support.

Oh, looks like it's on top of D21947.

Oct 11 2019, 1:59 AM
bdragon added a comment to D21954: gcore: Add powerpc64 32-bit gcore support.

Hmm, none of this is applying for me. Where did the aarch64 version come from? I'm not seeing it in svn.

Oct 11 2019, 1:56 AM

Sep 28 2019

bdragon created D21834: Fix nondeterministic load of fdt_slicer.
Sep 28 2019, 7:11 PM

Sep 23 2019

bdragon added a comment to D21765: www/firefox: WIP port to powerpc64.

re: the build.rs patch, perhaps use EXTRA_PATCHES inside a conditional in the Makefile?

Sep 23 2019, 2:54 PM · PowerPC
bdragon added a project to D21765: www/firefox: WIP port to powerpc64: PowerPC.
Sep 23 2019, 2:51 PM · PowerPC

Sep 14 2019

bdragon created D21656: Fix aux_info corruption in rtld direct execution mode.
Sep 14 2019, 3:54 AM

Sep 10 2019

bdragon added inline comments to D19237: Fix TARGET_TRIPLE assembly and retrieve OS version automatically.
Sep 10 2019, 1:45 PM

Sep 9 2019

bdragon added inline comments to D21476: [PowerPC] force applications linked with lib CSU to have .got.
Sep 9 2019, 3:16 PM

Sep 7 2019

bdragon added inline comments to D19237: Fix TARGET_TRIPLE assembly and retrieve OS version automatically.
Sep 7 2019, 10:39 PM
bdragon added inline comments to D21163: Make p_vaddr % p_align == p_offset % p_align for TLS segments..
Sep 7 2019, 3:49 AM
bdragon added inline comments to D21163: Make p_vaddr % p_align == p_offset % p_align for TLS segments..
Sep 7 2019, 3:41 AM
bdragon added inline comments to D21163: Make p_vaddr % p_align == p_offset % p_align for TLS segments..
Sep 7 2019, 2:08 AM
bdragon added inline comments to D21163: Make p_vaddr % p_align == p_offset % p_align for TLS segments..
Sep 7 2019, 1:57 AM

Sep 6 2019

bdragon added a comment to D21163: Make p_vaddr % p_align == p_offset % p_align for TLS segments..

Hmm, calculations on powerpc64 seem to be offset incorrectly in both cases with the patched lld. Gonna meditate on a disassembly for a bit.

Sep 6 2019, 11:24 PM
bdragon added a comment to D21163: Make p_vaddr % p_align == p_offset % p_align for TLS segments..

Testing powerpc64.

Sep 6 2019, 8:52 PM

Sep 1 2019

bdragon added a comment to D21476: [PowerPC] force applications linked with lib CSU to have .got.

Interesting thought. That seems to me like it should also help a lot with the logic in ld.bfd as well.

Sep 1 2019, 6:30 PM

Aug 30 2019

bdragon added inline comments to D21449: powerpc/pmap: NUMA-ize vm_page_array on powerpc.
Aug 30 2019, 7:35 PM

Aug 17 2019

bdragon added a comment to D21301: powerpc: Link Book-E kernels at the same address as AIM kernels.

The new KERNBASE allows my RB800 to boot without having to modify it, so that's a definite improvement there.
Will check for regression on G4 / G5 / POWER9 (and maybe test the X5000, if I can finally get uboot loader set up on it so I don't have to futz with mkimg to build test kernels) tomorrow.

Aug 17 2019, 5:05 AM
bdragon added a comment to D21301: powerpc: Link Book-E kernels at the same address as AIM kernels.

on MPC85XXSPE build:

Aug 17 2019, 4:49 AM
bdragon created D21297: Fix loader on powerpc32.
Aug 17 2019, 12:08 AM · PowerPC

Aug 8 2019

bdragon added a comment to D20946: Bypass errno handling in _umtx_op_err on powerpc.

removing belt&suspenders bit.

Aug 8 2019, 4:00 AM · PowerPC

Aug 7 2019

bdragon added inline comments to D21070: [PPC64] Add ifunc support in libcsu.
Aug 7 2019, 8:56 PM
bdragon added inline comments to D21070: [PPC64] Add ifunc support in libcsu.
Aug 7 2019, 8:52 PM
bdragon added inline comments to D21070: [PPC64] Add ifunc support in libcsu.
Aug 7 2019, 8:27 PM

Jul 26 2019

bdragon added a comment to D21061: powerpc64/mmu: Use a SLIST for the PVO delete list, instead of a RB_TREE.

ELFv1 and ELFv2 buildworld worked fine.

Jul 26 2019, 4:34 AM
bdragon added a comment to D21061: powerpc64/mmu: Use a SLIST for the PVO delete list, instead of a RB_TREE.

Boots on ELFv1 and ELFv2. Doing a buildworld to excercise it a bit.

Jul 26 2019, 3:04 AM

Jul 25 2019

bdragon added a comment to D20799: Eliminate the last MI difference in AT_* definitions (for powerpc)..

That's up to jhibbits.

Jul 25 2019, 3:39 AM

Jul 24 2019

bdragon added a comment to D20799: Eliminate the last MI difference in AT_* definitions (for powerpc)..

My patch seemed to fix things. I was able to buildworld and installworld (after rolling base back to a non crashy version).

Jul 24 2019, 1:19 AM

Jul 23 2019

bdragon added a comment to D20799: Eliminate the last MI difference in AT_* definitions (for powerpc)..

I'm going to try this and see if it works:
http://drop.rtk0.net/rtld-auxv-flexibility.patch

Jul 23 2019, 11:24 PM
bdragon added a comment to D20799: Eliminate the last MI difference in AT_* definitions (for powerpc)..

Actually, we might be able to determine what format the aux vector is by heuristics.

Jul 23 2019, 10:52 PM
bdragon added a comment to D20799: Eliminate the last MI difference in AT_* definitions (for powerpc)..

OK, with OLD_AT_COUNT dropped down to 27, it continues working (whether or not I use 32 or 27 in exec_copyout_strings(), so it looks like it will continue to work even if the normal AT_COUNT is incremented in the future.)

Jul 23 2019, 4:25 PM
bdragon added inline comments to D20799: Eliminate the last MI difference in AT_* definitions (for powerpc)..
Jul 23 2019, 2:10 AM

Jul 22 2019

bdragon added a comment to D20799: Eliminate the last MI difference in AT_* definitions (for powerpc)..

Yep, that did it. exec_copyout_strings() needs to use the correct size for the aux vector or it will screw things up somehow.

Jul 22 2019, 9:49 PM
bdragon added a comment to D20799: Eliminate the last MI difference in AT_* definitions (for powerpc)..

I built a test program to examine auxv (or at least libc's idea of it): http://drop.rtk0.net/auxv.c

Jul 22 2019, 9:42 PM
bdragon added a comment to D20799: Eliminate the last MI difference in AT_* definitions (for powerpc)..

Yeah, I had bumped both of the sys/sys/param.h lines to 1300037.

Jul 22 2019, 8:35 PM
bdragon added a comment to D20799: Eliminate the last MI difference in AT_* definitions (for powerpc)..

Yeah, I had. Bumped both in sys/sys/param.h. Getting back into the machine to double check that I didn't do something silly with that now.

Jul 22 2019, 8:23 PM

Jul 20 2019

bdragon added a comment to D20799: Eliminate the last MI difference in AT_* definitions (for powerpc)..

Hmm, additionally, it looks like AT_EXECPATH is damaged, because I can't use /rescue/sh either, it just comes up with the usage.

Jul 20 2019, 4:08 AM
bdragon added a comment to D20799: Eliminate the last MI difference in AT_* definitions (for powerpc)..

elfv1, new kernel, old userland:

Jul 20 2019, 4:04 AM

Jul 13 2019

bdragon updated the summary of D20946: Bypass errno handling in _umtx_op_err on powerpc.
Jul 13 2019, 8:29 PM · PowerPC
bdragon created D20946: Bypass errno handling in _umtx_op_err on powerpc.
Jul 13 2019, 8:28 PM · PowerPC

Jul 7 2019

bdragon added a comment to D20857: [PPC64] pseries: fix realmaxaddr calculation.

Makes sense to me. That's the same sort of thing that chrp_mem_regions() is doing to determine it for its own purposes.

Jul 7 2019, 5:21 PM

Jul 1 2019

bdragon added a comment to D20261: [PowerPC64] Use ld.bfd to build LIB32 and STAND - when using llvm.

Not 100% sure, but I think you should skip the logic if either _NO_INCLUDE_COMPILERMK or _NO_INCLUDE_LINKERMK is defined. That appears to be what controls the variables not being defined.

Jul 1 2019, 8:29 PM

Jun 28 2019

bdragon added a comment to D18547: Fix llvm-tblgen self-bootstrap.

Looks like r344264 and r344798 have fixed this independently.

Jun 28 2019, 6:40 PM

Jun 27 2019

bdragon added a comment to D20782: [PowerPC64] readelf: print description for 'e_flags' in ELF header (ABI type).

Maybe move the EM_PPC: case down to right before the edesc = powerpc_eflags_desc; line and explicitly fall through there so that the e_flags code only runs on ppc64 and not ppc32, but both of them do the edesc?

Jun 27 2019, 4:59 PM

Jun 25 2019

bdragon added a comment to D19046: Rockchip RK3399 PWM driver.

Will address comments and catch up with the latest API changes soon. Poking at it this evening.

Jun 25 2019, 2:34 AM · arm64

Jun 24 2019

D20598: powerpc: Transition to Secure-PLT, like most other OSs is now accepted and ready to land.

Current version tested on iBook G4, still works.
Current version also tested on rb800 (powerpcspe), works as well.

Jun 24 2019, 3:49 PM

Jun 14 2019

bdragon added a comment to D20640: Enable use of ofwcons for early debug.

I like the idea, it beats having to compile a custom kernel. This is also relevant on some of my macintoshes, where the keyboard works in OFW but not in the kernel debugger when I have an early crash.

Jun 14 2019, 7:48 PM

Jun 13 2019

bdragon added a comment to D17512: Fix dpcpu and vnet panics with complex types at the end of the section.

Over in powerpc land, we've been chasing crashes with dpcpu and vnet as well. Our current prospective fix is https://reviews.freebsd.org/D20461 but we don't understand why it seems to fix it.

Jun 13 2019, 1:01 PM

Jun 12 2019

bdragon requested changes to D20337: [PowerPC64] backport of LLVM fixes in preparation for building FreeBSD/PowerPC64.

needs reroll, the backport of most of this landed with r349004.

Jun 12 2019, 10:07 PM
bdragon closed D20608: Fix PPC970 boot after r348783.
Jun 12 2019, 3:58 PM · PowerPC
bdragon committed rS348994: Fix PPC970 boot after r348783.
Fix PPC970 boot after r348783
Jun 12 2019, 3:58 PM
bdragon removed a watcher for PowerPC: bdragon.
Jun 12 2019, 1:42 PM
bdragon added a member for PowerPC: bdragon.
Jun 12 2019, 1:42 PM

Jun 11 2019

bdragon added inline comments to D20598: powerpc: Transition to Secure-PLT, like most other OSs.
Jun 11 2019, 8:32 PM
bdragon updated the diff for D20608: Fix PPC970 boot after r348783.

fix style(9) issue.

Jun 11 2019, 8:01 PM · PowerPC
bdragon created D20608: Fix PPC970 boot after r348783.
Jun 11 2019, 5:00 PM · PowerPC

Jun 2 2019

pi renamed bdragon from git_bdragon.rtk0.net to bdragon.
Jun 2 2019, 5:23 PM

May 27 2019

bdragon updated the summary of D20367: Add missing powerpc64 relocation support to libdwarf.
May 27 2019, 4:45 AM · PowerPC
bdragon retitled D20367: Add missing powerpc64 relocation support to libdwarf from Add missing powerpc64 support to libdwarf to Add missing powerpc64 relocation support to libdwarf.
May 27 2019, 4:41 AM · PowerPC

May 26 2019

bdragon created D20413: Fix link_elf_ctf_get() on big endian platforms.
May 26 2019, 5:39 PM · PowerPC