[PATCH v5 1/1] cmd: provide command sbi

Pragnesh Patel pragnesh.patel at openfive.com
Fri Aug 21 06:39:53 CEST 2020


>-----Original Message-----
>From: Heinrich Schuchardt <xypron.glpk at gmx.de>
>Sent: 20 August 2020 23:14
>To: Rick Chen <rick at andestech.com>
>Cc: Bin Meng <bmeng.cn at gmail.com>; Pragnesh Patel
><pragnesh.patel at openfive.com>; Lukas Auer <lukas at auer.io>; Atish Patra
><atish.patra at wdc.com>; u-boot at lists.denx.de; Heinrich Schuchardt
><xypron.glpk at gmx.de>; Bin Meng <bin.meng at windriver.com>
>Subject: [PATCH v5 1/1] cmd: provide command sbi
>
>[External Email] Do not click links or attachments unless you recognize the
>sender and know the content is safe
>
>Provide a command to display information about the SBI implementation.
>
>The output might look like:
>
>=> sbi
>SBI 0.2
>OpenSBI
>Extensions:
>  sbi_set_timer
>  sbi_console_putchar
>  sbi_console_getchar
>  sbi_clear_ipi
>  sbi_send_ipi
>  sbi_remote_fence_i
>  sbi_remote_sfence_vma
>  sbi_remote_sfence_vma_asid
>  sbi_shutdown
>  SBI Base Functionality
>  Timer Extension
>  IPI Extension
>  RFENCE Extension
>  Hart State Management Extension
>
>The command can be used to construct a unit test checking that the
>communication with the SEE is working.
>
>Signed-off-by: Heinrich Schuchardt <xypron.glpk at gmx.de>
>Reviewed-by: Atish Patra <atish.patra at wdc.com>
>Reviewed-by: Bin Meng <bin.meng at windriver.com>
>Tested-by: Bin Meng <bin.meng at windriver.com>
>---
>v5:
>        The sbi command takes no arguments. Set maxargs=1.
>v4:
>        only show command name 'sbi' as short description in Kconfig menu
>        as suggested by Bin
>v3:
>        add dependency on CONFIG_SBI_V02
>        use lower case for sbi in Kconfig
>v2:
>        provide a non-blank long help text
>---
> arch/riscv/include/asm/sbi.h |  2 +
> arch/riscv/lib/sbi.c         | 36 ++++++++++++++++
> cmd/Kconfig                  |  6 +++
> cmd/riscv/Makefile           |  1 +
> cmd/riscv/sbi.c              | 82 ++++++++++++++++++++++++++++++++++++
> 5 files changed, 127 insertions(+)
> create mode 100644 cmd/riscv/sbi.c

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



More information about the U-Boot mailing list