[PATCH 17/25] fwu_arm_psa: Add FWU acceptance mechanism
Michal Simek
michal.simek at amd.com
Fri Jul 4 11:01:10 CEST 2025
On 7/2/25 17:25, abdellatif.elkhlifi at arm.com wrote:
> From: Abdellatif El Khlifi <abdellatif.elkhlifi at arm.com>
>
> Accept the FWU at ExitBootServices()
>
> Provide the FWU_ACCEPT_IMAGE ABI and setup an event triggered
> on ExitBootServices().
> This mechanism notifies Secure world that the system booted
> successfully by accepting the images in trial state.
>
> Also, add FWU_ARM_PSA_ACCEPT_IMAGES config
> to allow platforms to switch off image acceptance
> in ExitBootServices().
>
> Signed-off-by: Abdellatif El Khlifi <abdellatif.elkhlifi at arm.com>
> Cc: Sughosh Ganu <sughosh.ganu at linaro.org>
> Cc: Tom Rini <trini at konsulko.com>
> Cc: Ilias Apalodimas <ilias.apalodimas at linaro.org>
> Cc: Simon Glass <sjg at chromium.org>
> Cc: Michal Simek <michal.simek at amd.com>
> Cc: Marek Vasut <marek.vasut+renesas at mailbox.org>
> Cc: Casey Connolly <casey.connolly at linaro.org>
> ---
> include/fwu_arm_psa.h | 22 +++-
> lib/fwu_updates/Kconfig | 8 ++
> lib/fwu_updates/fwu_arm_psa.c | 183 ++++++++++++++++++++++++++++++++++
> 3 files changed, 212 insertions(+), 1 deletion(-)
>
> diff --git a/include/fwu_arm_psa.h b/include/fwu_arm_psa.h
> index a8f0ff93d51..451d8b614e3 100644
> --- a/include/fwu_arm_psa.h
> +++ b/include/fwu_arm_psa.h
> @@ -84,9 +84,10 @@ enum fwu_abis {
> FWU_WRITE_STREAM = 20,
> FWU_READ_STREAM = 21,
> FWU_COMMIT = 22,
> + FWU_ACCEPT_IMAGE = 23,
> /* To be updated when adding new FWU IDs */
> FWU_FIRST_ID = FWU_DISCOVER, /* Lowest number ID */
> - FWU_LAST_ID = FWU_COMMIT, /* Highest number ID */
> + FWU_LAST_ID = FWU_ACCEPT_IMAGE, /* Highest number ID */
> };
>
> enum fwu_abi_errcode {
> @@ -311,6 +312,25 @@ struct __packed fwu_write_stream_resp {
> int status;
> };
>
> +/*
/** for marking kernel-doc format. Please fix this in the whole series.
M
More information about the U-Boot
mailing list