All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/3] riscv: enable SBI system reset
@ 2021-09-05  8:37 Heinrich Schuchardt
  2021-09-05  8:37 ` [PATCH v3 1/3] riscv: add missing SBI extension definitions Heinrich Schuchardt
                   ` (2 more replies)
  0 siblings, 3 replies; 14+ messages in thread
From: Heinrich Schuchardt @ 2021-09-05  8:37 UTC (permalink / raw)
  To: Rick Chen, Leo Yu-Chi Liang
  Cc: Alexander Graf, Bin Meng, Green Wan, Sean Anderson,
	Marek Behún, Chee Hong Ang, Simon Glass, Ley Foon Tan,
	Priyanka Jain, Sebastian Reichel, Siew Chin Lim,
	Dimitri John Ledkov, u-boot, Heinrich Schuchardt

The purpose of this series is to provide the UEFI ResetSystem() service at
runtime on RISC-V systems.

With SBI v0.3 a system reset extension is available. This allows to
implement reboot and poweroff in U-Boot in a system independent way.

* Provide missing constants
* Provide a system reset driver using the system reset extension.
* Provide a UEFI runtime implementation for system reset

v3:
	add SBI_HSM_HART_STATUS_SUSPENDED,
	    SBI_HSM_HART_STATUS_SUSPEND_PENDING,
	    SBI_HSM_HART_STATUS_RESUME_PENDING
v2:
	correct constants that were blindly copied from Linux

Heinrich Schuchardt (3):
  riscv: add missing SBI extension definitions
  cmd/sbi: use constants instead of numerical values
  sysreset: provide SBI based sysreset driver

 MAINTAINERS                     |  1 +
 arch/riscv/cpu/cpu.c            | 13 ++++-
 arch/riscv/include/asm/sbi.h    | 41 +++++++++++++-
 arch/riscv/lib/sbi.c            | 21 ++++++--
 cmd/riscv/sbi.c                 | 30 +++++------
 drivers/sysreset/Kconfig        | 11 ++++
 drivers/sysreset/Makefile       |  1 +
 drivers/sysreset/sysreset_sbi.c | 96 +++++++++++++++++++++++++++++++++
 lib/efi_loader/Kconfig          |  2 +-
 9 files changed, 193 insertions(+), 23 deletions(-)
 create mode 100644 drivers/sysreset/sysreset_sbi.c

--
2.30.2


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

end of thread, other threads:[~2021-09-06  5:58 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-05  8:37 [PATCH v3 0/3] riscv: enable SBI system reset Heinrich Schuchardt
2021-09-05  8:37 ` [PATCH v3 1/3] riscv: add missing SBI extension definitions Heinrich Schuchardt
2021-09-05 12:00   ` Bin Meng
2021-09-05  8:37 ` [PATCH v3 2/3] cmd/sbi: use constants instead of numerical values Heinrich Schuchardt
2021-09-05 12:01   ` Bin Meng
2021-09-05  8:37 ` [PATCH v3 3/3] sysreset: provide SBI based sysreset driver Heinrich Schuchardt
2021-09-05 11:59   ` Bin Meng
2021-09-05 16:49     ` Heinrich Schuchardt
2021-09-05 17:00       ` Bin Meng
2021-09-05 17:21         ` Heinrich Schuchardt
2021-09-06  1:47           ` Bin Meng
2021-09-06  4:45             ` Heinrich Schuchardt
2021-09-06  5:22               ` Bin Meng
2021-09-06  5:58                 ` Heinrich Schuchardt

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.