Re: [PATCH 0/2] riscv: Use EFI runtime services for poweroff and restart

From: Paul Walmsley

Date: Thu Jun 25 2026 - 16:15:06 EST


On Mon, 15 Jun 2026, Atish Patra wrote:

> Today RISC-V always uses the SBI SRST extension for both poweroff and restart,
> even when UEFI runtime services are available. This series makes RISC-V prefer
> EFI runtime services for both paths when available. The reset via EFI is
> required for EFI capsule updates and also documented as a preferred method
> in BRS 1.0 spec (e.g. URT_030)[1]
>
> Behavior on SBI-only (non-EFI) systems is unchanged.
>
> Tested under QEMU 'virt' with EDK2/UEFI firmware exposing runtime
> ResetSystem().
>
> [1] https://docs.riscv.org/reference/brs/uefi.html#uefi
>
> Signed-off-by: Atish Patra <atishp@xxxxxxxx>

Thanks, queued for v7.3.


- Paul