arm64Project
ActivePublic

Details

Description

FreeBSD/arm64

Recent Activity

Tue, Jun 5

kibab closed D15568: Enable high-speed on the card before increasing frequency on the controller.
Tue, Jun 5, 11:03 AM · ARM, arm64

Mon, Jun 4

imp accepted D15568: Enable high-speed on the card before increasing frequency on the controller.

other than the minor style nits, this looks good.

Mon, Jun 4, 8:27 PM · ARM, arm64

Fri, May 25

kibab closed D15569: Fix building GENERIC-MMCCAM on arm64.
Fri, May 25, 7:00 PM · arm64
manu accepted D15569: Fix building GENERIC-MMCCAM on arm64.

s/all SDHCI/all MMC/

Fri, May 25, 3:44 PM · arm64
imp accepted D15569: Fix building GENERIC-MMCCAM on arm64.
Fri, May 25, 3:26 PM · arm64
kibab created D15569: Fix building GENERIC-MMCCAM on arm64.
Fri, May 25, 10:12 AM · arm64
kibab created D15568: Enable high-speed on the card before increasing frequency on the controller.
Fri, May 25, 9:46 AM · ARM, arm64

May 12 2018

markj closed D15359: DTrace aarch64: Avoid calling unwind_frame() in the probe context.
May 12 2018, 3:35 PM · arm64, DTrace

May 9 2018

markj added a comment to D15359: DTrace aarch64: Avoid calling unwind_frame() in the probe context.

Given the simplicity of this unwinding code, I think it's reasonable to just keep it inline like we do on amd64. DTrace reimplements quite a lot of "standard" code for the same reason as we do here.

May 9 2018, 2:56 PM · arm64, DTrace

May 8 2018

domagoj.stolfa_gmail.com updated the diff for D15359: DTrace aarch64: Avoid calling unwind_frame() in the probe context.

Preemptively remove a redundant check for INKERNEL(fp).

May 8 2018, 9:23 PM · arm64, DTrace
domagoj.stolfa_gmail.com added a comment to D15359: DTrace aarch64: Avoid calling unwind_frame() in the probe context.

Why not just exclude it in fbt_provide_module_function? I'd prefer we keep the unwinding code together, maybe with a comment that it may be called from such a context.

May 8 2018, 9:22 PM · arm64, DTrace
andrew added a comment to D15359: DTrace aarch64: Avoid calling unwind_frame() in the probe context.

Why not just exclude it in fbt_provide_module_function? I'd prefer we keep the unwinding code together, maybe with a comment that it may be called from such a context.

May 8 2018, 9:15 PM · arm64, DTrace
domagoj.stolfa_gmail.com added a comment to D15359: DTrace aarch64: Avoid calling unwind_frame() in the probe context.

however, in the future a patch that enabled instrumentation of inlined functions could accidentally break DTrace on aarch64.

Was the problem found while working on such a patch? :)

May 8 2018, 8:55 PM · arm64, DTrace
markj accepted D15359: DTrace aarch64: Avoid calling unwind_frame() in the probe context.

however, in the future a patch that enabled instrumentation of inlined functions could accidentally break DTrace on aarch64.

May 8 2018, 8:53 PM · arm64, DTrace
domagoj.stolfa_gmail.com updated the summary of D15359: DTrace aarch64: Avoid calling unwind_frame() in the probe context.
May 8 2018, 8:51 PM · arm64, DTrace
manu accepted D15359: DTrace aarch64: Avoid calling unwind_frame() in the probe context.

Ok for me, also tested on pine64

May 8 2018, 8:41 PM · arm64, DTrace
domagoj.stolfa_gmail.com created D15359: DTrace aarch64: Avoid calling unwind_frame() in the probe context.
May 8 2018, 8:37 PM · arm64, DTrace

Nov 26 2017

ed closed D13148: Add a Saved Process Status Register bit for AArch32 execution mode..
Nov 26 2017, 2:56 PM · arm64, ARM
andrew accepted D13148: Add a Saved Process Status Register bit for AArch32 execution mode..
Nov 26 2017, 2:55 PM · arm64, ARM
ed updated the diff for D13148: Add a Saved Process Status Register bit for AArch32 execution mode..

Rebase.

Nov 26 2017, 2:55 PM · arm64, ARM
andrew added inline comments to D13148: Add a Saved Process Status Register bit for AArch32 execution mode..
Nov 26 2017, 2:53 PM · arm64, ARM
ed added a comment to D13148: Add a Saved Process Status Register bit for AArch32 execution mode..

Maybe you're referring to switching between 64-bit and 32-bit code without going through EL1 first. This is explicitly documented as unsupported.

No, from memory it was an incorrect check the value passed to the kernel from userspace was wrong. I did make sure we have a check on signal return, however for it to work we need to check M[4] is set correctly. With this change the user could change this bit.

Nov 26 2017, 2:36 PM · arm64, ARM
ed updated the diff for D13148: Add a Saved Process Status Register bit for AArch32 execution mode..

Don't allow PSR_AARCH32 to be set in sigreturn().

Nov 26 2017, 2:35 PM · arm64, ARM
ed closed D13146: Make 32-bit system calls end up in svc_handler()..
Nov 26 2017, 2:28 PM · arm64, ARM
andrew added a comment to D13148: Add a Saved Process Status Register bit for AArch32 execution mode..
In D13148#273977, @ed wrote:
In D13148#273913, @ed wrote:

This would be benign, right? For the kernel, it is irrelevant whether user space sets or clears this flag. Just like NZCV, etc.

I'm not sure how the kernel would handle userspace changing between 64 and 32 bit code.

It's pretty straight-forward how that's handled, right? The only way this can take effect is by going through EL1, the kernel, first. For the CPU, it would just be an ordinary context switch like any other.

Nov 26 2017, 1:24 PM · arm64, ARM
andrew accepted D13146: Make 32-bit system calls end up in svc_handler()..
Nov 26 2017, 1:00 PM · arm64, ARM
ed added a comment to D13146: Make 32-bit system calls end up in svc_handler()..

Considering that there is no need to split up this into two code paths for 32-bit/64-bit at least for what I'm trying to achieve, would you mind if I went ahead, committing this change as is? Once this change and D13148 land, I can work towards getting the sysent for cloudabi32 committed.

Nov 26 2017, 12:44 PM · arm64, ARM

Nov 24 2017

ed closed D13145: Set CP15BEN in SCTLR to make memory barriers work in 32-bit mode..
Nov 24 2017, 1:52 PM · arm64, ARM
ed closed D13144: Add rudimentary support for building FreeBSD/arm64 with COMPAT_FREEBSD32..
Nov 24 2017, 1:51 PM · arm64, ARM
andrew accepted D13145: Set CP15BEN in SCTLR to make memory barriers work in 32-bit mode..
Nov 24 2017, 1:49 PM · arm64, ARM
andrew accepted D13144: Add rudimentary support for building FreeBSD/arm64 with COMPAT_FREEBSD32..
Nov 24 2017, 1:45 PM · arm64, ARM

Nov 19 2017

ed added a comment to D13148: Add a Saved Process Status Register bit for AArch32 execution mode..
In D13148#273913, @ed wrote:

This would be benign, right? For the kernel, it is irrelevant whether user space sets or clears this flag. Just like NZCV, etc.

I'm not sure how the kernel would handle userspace changing between 64 and 32 bit code.

Nov 19 2017, 7:45 PM · arm64, ARM
andrew added a comment to D13148: Add a Saved Process Status Register bit for AArch32 execution mode..
In D13148#273913, @ed wrote:

This would be benign, right? For the kernel, it is irrelevant whether user space sets or clears this flag. Just like NZCV, etc.

Nov 19 2017, 3:19 PM · arm64, ARM
ed added a comment to D13148: Add a Saved Process Status Register bit for AArch32 execution mode..

This will allow userspace to switch between AArch64 and AArch32 via sigreturn. sys_sigreturn has checks on the PSR bits to ensure they are safe to install that this will break.

Nov 19 2017, 12:49 PM · arm64, ARM
ed added a comment to D13146: Make 32-bit system calls end up in svc_handler()..

I split the syncronous exception out into a new handler in my compat32 patch as it allows further sanity checks, e.g. that the kernel thinks the current process should be in 32-bit mode.

Nov 19 2017, 12:45 PM · arm64, ARM
ed added a comment to D13145: Set CP15BEN in SCTLR to make memory barriers work in 32-bit mode..

Are we expecting to run armv6 code, or should we just support armv7?

Nov 19 2017, 12:40 PM · arm64, ARM
ed added inline comments to D13144: Add rudimentary support for building FreeBSD/arm64 with COMPAT_FREEBSD32..
Nov 19 2017, 12:40 PM · arm64, ARM
ed updated the summary of D13144: Add rudimentary support for building FreeBSD/arm64 with COMPAT_FREEBSD32..
Nov 19 2017, 12:39 PM · arm64, ARM
ed updated the diff for D13144: Add rudimentary support for building FreeBSD/arm64 with COMPAT_FREEBSD32..

Announce armv7 instead of armv6.

Nov 19 2017, 12:39 PM · arm64, ARM
andrew added a comment to D13145: Set CP15BEN in SCTLR to make memory barriers work in 32-bit mode..

Are we expecting to run armv6 code, or should we just support armv7?

Nov 19 2017, 11:34 AM · arm64, ARM
andrew requested changes to D13148: Add a Saved Process Status Register bit for AArch32 execution mode..

This will allow userspace to switch between AArch64 and AArch32 via sigreturn. sys_sigreturn has checks on the PSR bits to ensure they are safe to install that this will break.

Nov 19 2017, 11:33 AM · arm64, ARM
andrew added a comment to D13146: Make 32-bit system calls end up in svc_handler()..

I split the syncronous exception out into a new handler in my compat32 patch as it allows further sanity checks, e.g. that the kernel thinks the current process should be in 32-bit mode.

Nov 19 2017, 11:30 AM · arm64, ARM
andrew added inline comments to D13144: Add rudimentary support for building FreeBSD/arm64 with COMPAT_FREEBSD32..
Nov 19 2017, 10:51 AM · arm64, ARM

Nov 18 2017

ed added inline comments to D13144: Add rudimentary support for building FreeBSD/arm64 with COMPAT_FREEBSD32..
Nov 18 2017, 7:35 PM · arm64, ARM
ed added inline comments to D13144: Add rudimentary support for building FreeBSD/arm64 with COMPAT_FREEBSD32..
Nov 18 2017, 7:34 PM · arm64, ARM
ed added projects to D13148: Add a Saved Process Status Register bit for AArch32 execution mode.: ARM, arm64.
Nov 18 2017, 7:29 PM · arm64, ARM
ed added projects to D13146: Make 32-bit system calls end up in svc_handler().: ARM, arm64.
Nov 18 2017, 6:51 PM · arm64, ARM
ed added projects to D13143: Make rtld use read(2) instead of mmap(2) for ELF headers: ARM, arm64.
Nov 18 2017, 6:51 PM
manu added projects to D13145: Set CP15BEN in SCTLR to make memory barriers work in 32-bit mode.: ARM, arm64.
Nov 18 2017, 6:38 PM · arm64, ARM
manu added projects to D13144: Add rudimentary support for building FreeBSD/arm64 with COMPAT_FREEBSD32.: ARM, arm64.
Nov 18 2017, 6:36 PM · arm64, ARM