-
Notifications
You must be signed in to change notification settings - Fork 72
loader: handle non-PSCI ARM platforms better #457
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -189,7 +189,7 @@ int plat_start_cpu(int logical_cpu) | |
| while (__atomic_load_n(&arm_spin_table_secondary_cpu_data, __ATOMIC_ACQUIRE) != 0); | ||
| arm_spin_table_cpu_start(logical_cpu, (uint64_t)sp); | ||
| return 0; | ||
| #else | ||
| #elif !defined(ARM_PSCI_UNAVAILABLE) | ||
| uint64_t ret = arm_smc64_call( | ||
| PSCI_FUNCTION_CPU_ON, | ||
| /* target_cpu */ psci_target_cpus[logical_cpu], | ||
|
|
@@ -204,5 +204,8 @@ int plat_start_cpu(int logical_cpu) | |
| } | ||
|
|
||
| return ret; | ||
| #else | ||
| LDR_PRINT("ERROR", 0, "unknown CPU start method for this platform"); | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This might as well be a compile error?
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Resolved offline, |
||
| return -1; | ||
| #endif | ||
| } | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it makes more sense to have it as like,
SMP_BOOT_METHOD == ARM_PSCIorSMP_BOOT_METHOD == SPIN_TABLEor w/e (not if-def'd)There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Talked in-person with @midnightveil ,
SMP_BOOT_METHODdoesn't really work well when you still need to skip PSCI version checking.