Skip to content

PSCI via EFI#618

Draft
svenpeter42 wants to merge 8 commits into
mainfrom
psci-via-efi
Draft

PSCI via EFI#618
svenpeter42 wants to merge 8 commits into
mainfrom
psci-via-efi

Conversation

@svenpeter42

Copy link
Copy Markdown
Member

No description provided.

@svenpeter42 svenpeter42 changed the title Psci via efi PSCI via EFI Jul 8, 2026
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>
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

Successfully merging this pull request may close these issues.

1 participant