All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/1] cmd/riscv/sbi: support System Reset Extension
@ 2021-01-17 21:27 Heinrich Schuchardt
  2021-01-21  3:52 ` Pragnesh Patel
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Heinrich Schuchardt @ 2021-01-17 21:27 UTC (permalink / raw)
  To: u-boot

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

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

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
---
 cmd/riscv/sbi.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/cmd/riscv/sbi.c b/cmd/riscv/sbi.c
index e66fc8e41d..9897483eb6 100644
--- a/cmd/riscv/sbi.c
+++ b/cmd/riscv/sbi.c
@@ -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

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

* [PATCH 1/1] cmd/riscv/sbi: support System Reset Extension
  2021-01-17 21:27 [PATCH 1/1] cmd/riscv/sbi: support System Reset Extension Heinrich Schuchardt
@ 2021-01-21  3:52 ` Pragnesh Patel
  2021-02-04  2:31 ` Leo Liang
  2021-02-04  3:06 ` Bin Meng
  2 siblings, 0 replies; 4+ messages in thread
From: Pragnesh Patel @ 2021-01-21  3:52 UTC (permalink / raw)
  To: u-boot

>-----Original Message-----
>From: Heinrich Schuchardt <xypron.glpk@gmx.de>
>Sent: 18 January 2021 02:57
>To: Rick Chen <rick@andestech.com>
>Cc: Atish Patra <atish.patra@wdc.com>; Bin Meng <bin.meng@windriver.com>;
>Pragnesh Patel <pragnesh.patel@openfive.com>; u-boot at lists.denx.de; Heinrich
>Schuchardt <xypron.glpk@gmx.de>
>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").
>
>Cf. https://github.com/riscv/riscv-sbi-doc
>
>Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
>---
> cmd/riscv/sbi.c | 1 +
> 1 file changed, 1 insertion(+)

Reviewed-by: Pragnesh Patel <pragnesh.patel@openfive.com>

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

* [PATCH 1/1] cmd/riscv/sbi: support System Reset Extension
  2021-01-17 21:27 [PATCH 1/1] cmd/riscv/sbi: support System Reset Extension Heinrich Schuchardt
  2021-01-21  3:52 ` Pragnesh Patel
@ 2021-02-04  2:31 ` Leo Liang
  2021-02-04  3:06 ` Bin Meng
  2 siblings, 0 replies; 4+ messages in thread
From: Leo Liang @ 2021-02-04  2:31 UTC (permalink / raw)
  To: u-boot

On Sun, Jan 17, 2021 at 09:27:13PM +0000, Heinrich Schuchardt wrote:
> Let the sbi command detect the 'System Reset Extension'
> (EID #0x53525354 "SRST").
> 
> Cf. https://github.com/riscv/riscv-sbi-doc
> 
> Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
> ---
>  cmd/riscv/sbi.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/cmd/riscv/sbi.c b/cmd/riscv/sbi.c
> index e66fc8e41d..9897483eb6 100644
> --- a/cmd/riscv/sbi.c
> +++ b/cmd/riscv/sbi.c
> @@ -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
>

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

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

* [PATCH 1/1] cmd/riscv/sbi: support System Reset Extension
  2021-01-17 21:27 [PATCH 1/1] cmd/riscv/sbi: support System Reset Extension Heinrich Schuchardt
  2021-01-21  3:52 ` Pragnesh Patel
  2021-02-04  2:31 ` Leo Liang
@ 2021-02-04  3:06 ` Bin Meng
  2 siblings, 0 replies; 4+ messages in thread
From: Bin Meng @ 2021-02-04  3:06 UTC (permalink / raw)
  To: u-boot

On Mon, Jan 18, 2021 at 5:27 AM Heinrich Schuchardt <xypron.glpk@gmx.de> wrote:
>
> Let the sbi command detect the 'System Reset Extension'
> (EID #0x53525354 "SRST").
>
> Cf. https://github.com/riscv/riscv-sbi-doc
>
> Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
> ---
>  cmd/riscv/sbi.c | 1 +
>  1 file changed, 1 insertion(+)
>

Reviewed-by: Bin Meng <bin.meng@windriver.com>

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

Regards,
Bin

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

end of thread, other threads:[~2021-02-04  3:06 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-01-17 21:27 [PATCH 1/1] cmd/riscv/sbi: support System Reset Extension Heinrich Schuchardt
2021-01-21  3:52 ` Pragnesh Patel
2021-02-04  2:31 ` Leo Liang
2021-02-04  3:06 ` Bin Meng

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.