Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SMP on Odroid-C2 #52

Closed
OYTIS opened this issue Mar 29, 2020 · 1 comment
Closed

SMP on Odroid-C2 #52

OYTIS opened this issue Mar 29, 2020 · 1 comment

Comments

@OYTIS
Copy link
Contributor

OYTIS commented Mar 29, 2020

Is it still not supported as per documentation? PSCI is supported in elfloader, and Amlogic S905 uses PSCI. Short test with setting KernelMaxNumNodes to 4 and specifying affinity in camkes assembly file worked. Not sure how to get the current cpu from the thread though, getcpu syscall seems to be not implemented

@xurtis
Copy link
Contributor

xurtis commented Mar 30, 2020

Is it still not supported as per documentation? PSCI is supported in elfloader, and Amlogic S905 uses PSCI. Short test with setting KernelMaxNumNodes to 4 and specifying affinity in camkes assembly file worked.

Thanks for bringing this to our attention @OYTIS. SMP does work on the ODroidC2.

Some outdated documentation we had recommended using 0x10000000 as the physical load address of the boot image when using u-boot. This would lead to the boot image overwriting the secure monitor causing subsequent cores not to boot (amongst an unknown number of other issues).

Using 0x20000000 as the load address in u-boot (as the current documentation suggests) resolves these issues.

Not sure how to get the current cpu from the thread though, getcpu syscall seems to be not implemented.

There is no way to do this in the verified kernel but if all you're looking for is to verify that the code is actually running on the intended core a combination of seL4_DebugRun and assembly code to read the multiprocessor affinity register should work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants