Skip to contentSkip to conversation

cmd/riscv/sbi: support System Reset Extension

PATCH New Heinrich Schuchardt 4 participants 4 messages Jan 17, 2021 – Feb 4, 2021 RISC-V

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cmd/riscv/sbi: support System Reset Extension

Let the sbi command detect the 'System Reset Extension' (EID #0x53525354 "SRST").

Cf. https://github.com/riscv/riscv-sbi-doc

---
 cmd/riscv/sbi.c | 1 +
 1 file changed, 1 insertion(+)
cmd/riscv/sbi.c +1 -0
index e66fc8e41d..9897483eb6 100644
@@ -29,6 +29,7 @@ static struct sbi_ext extensions[] = {
 	{ 0x00735049, "IPI Extension" },
 	{ 0x52464E43, "RFENCE Extension" },
 	{ 0x0048534D, "Hart State Management Extension" },
+	{ 0x53525354, "System Reset Extension" },
 };
 
 static int do_sbi(struct cmd_tbl *cmdtp, int flag, int argc,

--
2.28.0

#1 lore raw

PATCH 1/1 cmd/riscv/sbi: support System Reset Extension

Quoted 15 lines

-----Original Message-----
From: Heinrich Schuchardt <[email protected]>
Sent: 18 January 2021 02:57
To: Rick Chen <[email protected]>
Cc: Atish Patra <[email protected]>; Bin Meng <[email protected]>; Pragnesh Patel <[email protected]>; u-boot at lists.denx.de; Heinrich Schuchardt <[email protected]>
Subject: [PATCH 1/1] cmd/riscv/sbi: support System Reset Extension

[External Email] Do not click links or attachments unless you recognize the sender and know the content is safe

Let the sbi command detect the 'System Reset Extension' (EID #0x53525354 "SRST").

Quoted 6 lines

Cf. https://github.com/riscv/riscv-sbi-doc

---
cmd/riscv/sbi.c | 1 +

1 file changed, 1 insertion(+)
#2 lore raw

PATCH 1/1 cmd/riscv/sbi: support System Reset Extension

In reply to Heinrich Schuchardt
Quoted 23 lines · Heinrich Schuchardt

Let the sbi command detect the 'System Reset Extension' (EID #0x53525354 "SRST").

Cf. https://github.com/riscv/riscv-sbi-doc

---
 cmd/riscv/sbi.c | 1 +
 1 file changed, 1 insertion(+)
cmd/riscv/sbi.c +1 -1
index e66fc8e41d..9897483eb6 100644
@@ -29,6 +29,7 @@ static struct sbi_ext extensions[] = {
 	{ 0x00735049, "IPI Extension" },
 	{ 0x52464E43, "RFENCE Extension" },
 	{ 0x0048534D, "Hart State Management Extension" },
+	{ 0x53525354, "System Reset Extension" },
 };
 
 static int do_sbi(struct cmd_tbl *cmdtp, int flag, int argc,
--
Quoted 2 lines

2.28.0

#3 lore raw

PATCH 1/1 cmd/riscv/sbi: support System Reset Extension

In reply to Heinrich Schuchardt
Quoted 11 lines · Heinrich Schuchardt

Let the sbi command detect the 'System Reset Extension' (EID #0x53525354 "SRST").

Cf. https://github.com/riscv/riscv-sbi-doc

---
 cmd/riscv/sbi.c | 1 +
 1 file changed, 1 insertion(+)

We should also update the reset command to call into SBI when this extension is available.

Regards,
Bin