On Sat, Jun 27, 2026 at 03:44:13PM +0100, Harsimran Singh Tungal wrote: > Add the FF-A runtime infrastructure needed after ExitBootServices() so > EFI runtime services can continue to use the FF-A transport layer. > Introduce drivers/firmware/arm-ffa/arm-ffa-runtime.c and > include/arm_ffa_runtime.h with runtime-resident FF-A helpers for > direct messaging, SMC invocation, and error translation. Add the > sandbox runtime SMC wrapper, the ARM_FFA_RT_MODE Kconfig option, and > the ExitBootServices hook that copies the required FF-A runtime data > into resident storage before enabling the runtime context. > > Tag the runtime code and data with __efi_runtime and > __efi_runtime_data so they remain available after > ExitBootServices(). > > Reviewed-by: Simon Glass <[email protected]> > Signed-off-by: Harsimran Singh Tungal <[email protected]> > > ---- > Changelog: > =============== > > v3: > > Simon: > > - Move ExitBootServices event registration to the end of probe > - Use an early-return guard and log missing-context with log_warning() > - Rename the runtime-context helpers to the ffa_runtime_context_* form > - Drop the unrelated whitespace-only hunk > - Fix commit message styling > > v2: > > Simon: > > - Leave runtime mode disabled if private data is missing > and update the log message > - Remove unused global-data plumbing > - Switch to `IS_ENABLED(CONFIG_ARM_FFA_RT_MODE)` > - Fix style issues > - Register the ExitBootServices event earlier in probe > - Keep the runtime-enabled flag separate from copied boot time data > > Signed-off-by: Harsimran Singh Tungal <[email protected]>
Acked-by: Abdellatif El Khlifi <[email protected]>

