public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [PATCH 1/2] cmd: sbi: add Supervisor Software Events extension
@ 2024-04-17 14:01 Heinrich Schuchardt
  2024-04-17 14:01 ` [PATCH 2/2] cmd: sbi: add coreboot and oreboot implementation IDs Heinrich Schuchardt
  2024-05-01 14:18 ` [PATCH 1/2] cmd: sbi: add Supervisor Software Events extension Leo Liang
  0 siblings, 2 replies; 4+ messages in thread
From: Heinrich Schuchardt @ 2024-04-17 14:01 UTC (permalink / raw)
  To: Rick Chen; +Cc: Leo, u-boot, Heinrich Schuchardt

OpenSBI has implemented the Supervisor Software Events Extension.
Allow detecting it in the sbi command.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
---
 arch/riscv/include/asm/sbi.h | 1 +
 cmd/riscv/sbi.c              | 1 +
 2 files changed, 2 insertions(+)

diff --git a/arch/riscv/include/asm/sbi.h b/arch/riscv/include/asm/sbi.h
index d1113f3d703..ad32dedb589 100644
--- a/arch/riscv/include/asm/sbi.h
+++ b/arch/riscv/include/asm/sbi.h
@@ -34,6 +34,7 @@ enum sbi_ext_id {
 	SBI_EXT_NACL = 0x4E41434C,
 	SBI_EXT_STA = 0x535441,
 	SBI_EXT_DBTR = 0x44425452,
+	SBI_EXT_SSE = 0x535345,
 };
 
 enum sbi_ext_base_fid {
diff --git a/cmd/riscv/sbi.c b/cmd/riscv/sbi.c
index bd9d9c4765d..55507b0aa63 100644
--- a/cmd/riscv/sbi.c
+++ b/cmd/riscv/sbi.c
@@ -54,6 +54,7 @@ static struct sbi_ext extensions[] = {
 	{ SBI_EXT_NACL,			      "Nested Acceleration Extension" },
 	{ SBI_EXT_STA,			      "Steal-time Accounting Extension" },
 	{ SBI_EXT_DBTR,			      "Debug Trigger Extension" },
+	{ SBI_EXT_SSE,			      "Supervisor Software Events" },
 };
 
 static int do_sbi(struct cmd_tbl *cmdtp, int flag, int argc,
-- 
2.43.0


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

* [PATCH 2/2] cmd: sbi: add coreboot and oreboot implementation IDs
  2024-04-17 14:01 [PATCH 1/2] cmd: sbi: add Supervisor Software Events extension Heinrich Schuchardt
@ 2024-04-17 14:01 ` Heinrich Schuchardt
  2024-05-01 14:19   ` Leo Liang
  2024-05-01 14:18 ` [PATCH 1/2] cmd: sbi: add Supervisor Software Events extension Leo Liang
  1 sibling, 1 reply; 4+ messages in thread
From: Heinrich Schuchardt @ 2024-04-17 14:01 UTC (permalink / raw)
  To: Rick Chen; +Cc: Leo, u-boot, Heinrich Schuchardt

Let the sbi command detect the coreboot and oreboot SBI Implementation IDs
defined in SBI specification v2.0.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
---
 cmd/riscv/sbi.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/cmd/riscv/sbi.c b/cmd/riscv/sbi.c
index 55507b0aa63..2d8ee7e5bbb 100644
--- a/cmd/riscv/sbi.c
+++ b/cmd/riscv/sbi.c
@@ -29,6 +29,8 @@ static struct sbi_imp implementations[] = {
 	{ 6, "Coffer" },
 	{ 7, "Xen Project" },
 	{ 8, "PolarFire Hart Software Services" },
+	{ 9, "coreboot" },
+	{ 10, "oreboot" },
 };
 
 static struct sbi_ext extensions[] = {
-- 
2.43.0


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

* Re: [PATCH 1/2] cmd: sbi: add Supervisor Software Events extension
  2024-04-17 14:01 [PATCH 1/2] cmd: sbi: add Supervisor Software Events extension Heinrich Schuchardt
  2024-04-17 14:01 ` [PATCH 2/2] cmd: sbi: add coreboot and oreboot implementation IDs Heinrich Schuchardt
@ 2024-05-01 14:18 ` Leo Liang
  1 sibling, 0 replies; 4+ messages in thread
From: Leo Liang @ 2024-05-01 14:18 UTC (permalink / raw)
  To: Heinrich Schuchardt; +Cc: Rick Chen, u-boot

On Wed, Apr 17, 2024 at 04:01:27PM +0200, Heinrich Schuchardt wrote:
> OpenSBI has implemented the Supervisor Software Events Extension.
> Allow detecting it in the sbi command.
> 
> Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
> ---
>  arch/riscv/include/asm/sbi.h | 1 +
>  cmd/riscv/sbi.c              | 1 +
>  2 files changed, 2 insertions(+)

Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>

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

* Re: [PATCH 2/2] cmd: sbi: add coreboot and oreboot implementation IDs
  2024-04-17 14:01 ` [PATCH 2/2] cmd: sbi: add coreboot and oreboot implementation IDs Heinrich Schuchardt
@ 2024-05-01 14:19   ` Leo Liang
  0 siblings, 0 replies; 4+ messages in thread
From: Leo Liang @ 2024-05-01 14:19 UTC (permalink / raw)
  To: Heinrich Schuchardt; +Cc: Rick Chen, u-boot

On Wed, Apr 17, 2024 at 04:01:28PM +0200, Heinrich Schuchardt wrote:
> Let the sbi command detect the coreboot and oreboot SBI Implementation IDs
> defined in SBI specification v2.0.
> 
> Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
> ---
>  cmd/riscv/sbi.c | 2 ++
>  1 file changed, 2 insertions(+)

Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>

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

end of thread, other threads:[~2024-05-01 14:19 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-17 14:01 [PATCH 1/2] cmd: sbi: add Supervisor Software Events extension Heinrich Schuchardt
2024-04-17 14:01 ` [PATCH 2/2] cmd: sbi: add coreboot and oreboot implementation IDs Heinrich Schuchardt
2024-05-01 14:19   ` Leo Liang
2024-05-01 14:18 ` [PATCH 1/2] cmd: sbi: add Supervisor Software Events extension Leo Liang

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