[PATCH v4 1/2] efi_loader: make EFI_HAVE_RUNTIME_RESET a user-selectable option

Ilias Apalodimas ilias.apalodimas at linaro.org
Wed Mar 25 07:59:55 CET 2026


Thanks Ashwin

On Tue, 24 Mar 2026 at 19:59, Aswin Murugan
<aswin.murugan at oss.qualcomm.com> wrote:
>
> From: Aswin Murugan <aswin.murugan at oss.qualcomm.com>
>
> Expose EFI_HAVE_RUNTIME_RESET as a proper Kconfig boolean with a prompt
> so platforms can explicitly enable or disable advertising the EFI reset
> runtime service.
>
> The current PSCI-based EFI runtime reset implementation is always
> enabled whenever CONFIG_PSCI_RESET is selected, but it does not support
> passing the additional arguments required for specialized reset modes.
> As a result, reboot requests such as bootloader mode or EDL mode cannot
> be propagated correctly and instead fall back to a normal reboot.
>
> By making EFI_HAVE_RUNTIME_RESET user-configurable, platforms that
> depend on extended PSCI reset can now explicitly disable EFI runtime
> reset handling even when CONFIG_PSCI_RESET is enabled, ensuring
> that the kernel retains full control of advanced reboot paths.
>
> Default behavior for existing platforms remains unchanged.
>
> Signed-off-by: Aswin Murugan <aswin.murugan at oss.qualcomm.com>

Reviewed-by: Ilias Apalodimas <ilias.apalodimas at linaro.org>


> ---
>  lib/efi_loader/Kconfig | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/lib/efi_loader/Kconfig b/lib/efi_loader/Kconfig
> index 13e44be1d06..31d1c4fc257 100644
> --- a/lib/efi_loader/Kconfig
> +++ b/lib/efi_loader/Kconfig
> @@ -100,8 +100,7 @@ config EFI_SET_TIME
>           can be used by an EFI application to adjust the real time clock.
>
>  config EFI_HAVE_RUNTIME_RESET
> -       # bool "Reset runtime service is available"
> -       bool
> +       bool "Reset runtime service"
>         default y
>         depends on ARCH_BCM283X || FSL_LAYERSCAPE || PSCI_RESET || \
>                    SANDBOX || SYSRESET_SBI || SYSRESET_X86
> --
> 2.34.1
>


More information about the U-Boot mailing list