mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/2] riscv: Use EFI runtime services for poweroff and restart
@ 2026-06-15 23:28 Atish Patra
  2026-06-15 23:28 ` [PATCH 1/2] riscv: efi: Power off via EFI runtime services when available Atish Patra
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Atish Patra @ 2026-06-15 23:28 UTC (permalink / raw)
  To: Ard Biesheuvel, Ilias Apalodimas, Paul Walmsley, Palmer Dabbelt,
	Albert Ou, Alexandre Ghiti, Atish Patra
  Cc: linux-efi, linux-riscv, linux-kernel, Atish Patra

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@meta.com>
---
Atish Patra (2):
      riscv: efi: Power off via EFI runtime services when available
      riscv: Restart via EFI runtime services when available

 arch/riscv/kernel/efi.c   | 5 +++++
 arch/riscv/kernel/reset.c | 7 +++++++
 2 files changed, 12 insertions(+)
---
base-commit: 8cd9520d35a6c38db6567e97dd93b1f11f185dc6
change-id: 20260615-efi_reset_shutdown-792040a83f18

Best regards,
-- 
Atish Patra <atishp@meta.com>


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2026-06-25 20:14 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-15 23:28 [PATCH 0/2] riscv: Use EFI runtime services for poweroff and restart Atish Patra
2026-06-15 23:28 ` [PATCH 1/2] riscv: efi: Power off via EFI runtime services when available Atish Patra
2026-06-16  4:29   ` Sunil V L
2026-06-15 23:28 ` [PATCH 2/2] riscv: Restart " Atish Patra
2026-06-16  4:29   ` Sunil V L
2026-06-25 20:14 ` [PATCH 0/2] riscv: Use EFI runtime services for poweroff and restart Paul Walmsley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome