PSCI via EFI#618
Draft
svenpeter42 wants to merge 8 commits into
Draft
Conversation
d59f6f4 to
28f84d3
Compare
We're about to add PSCI code that will be called after the OS has booted and taken over control over most hardware, especially the USB ports. From all the available iodevs only dockchannel and the Samsung UART are simple enough to still be used in that context. Signed-off-by: Sven Peter <sven@svenpeter.dev>
Pre-M1 SoCs support 64 KiB pagesizes and we will need to map m1n1's text and data sections from inside the booted OS kernel to provide PSCI support. Align all section to 64 KiB so that this is cleanly possible. Signed-off-by: Sven Peter <sven@svenpeter.dev>
We're about to add PSCI code that will run inside the OS kernel with the kernel having full control over the pagetables. When stacks are allocated on the heap we have to specifically map them as EFI RUNTIME descriptors which is a bit annoying to get right. Instead, just put them into .bss which will be mapped anyway. This increases .bss by a bit more than 1MB which is negligible on these machines with >8GiB RAM. Signed-off-by: Sven Peter <sven@svenpeter.dev>
Signed-off-by: Sven Peter <sven@svenpeter.dev>
Signed-off-by: Sven Peter <sven@svenpeter.dev>
Signed-off-by: Sven Peter <sven@svenpeter.dev>
The ADT is no longer available once we're called into from PSCI but we may need to bring up or down cores. Just cache all the information we need. Signed-off-by: Sven Peter <sven@svenpeter.dev>
Signed-off-by: Sven Peter <sven@svenpeter.dev>
28f84d3 to
d30913b
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.