]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
cmd/sbi: display new extensions
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Wed, 2 Aug 2023 20:39:46 +0000 (22:39 +0200)
committerLeo Yu-Chi Liang <ycliang@andestech.com>
Thu, 10 Aug 2023 02:57:56 +0000 (10:57 +0800)
The SBI specification v2.0-rc2 defines new extensions:

* Nested Acceleration Extension (NACL)
* Steal Time Accounting (STA)

Allow the sbi command to display these.

Add missing implementation IDs.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
arch/riscv/include/asm/sbi.h
cmd/riscv/sbi.c

index 769369997dda38f756fd4cceffa2f0def524d906..009a26885c6ff1138bf6fbe17b650f24a497b61d 100644 (file)
@@ -31,6 +31,8 @@ enum sbi_ext_id {
        SBI_EXT_DBCN = 0x4442434E,
        SBI_EXT_SUSP = 0x53555350,
        SBI_EXT_CPPC = 0x43505043,
+       SBI_EXT_NACL = 0x4E41434C,
+       SBI_EXT_STA = 0x535441,
 };
 
 enum sbi_ext_base_fid {
index c4707fe52078b99b92cf71362df779be1532604d..32761c595eb35cd33a6137ce9d3af08921ed911a 100644 (file)
@@ -27,6 +27,8 @@ static struct sbi_imp implementations[] = {
        { 4, "RustSBI" },
        { 5, "Diosix" },
        { 6, "Coffer" },
+       { 7, "Xen Project" },
+       { 8, "PolarFire Hart Software Services" },
 };
 
 static struct sbi_ext extensions[] = {
@@ -49,6 +51,8 @@ static struct sbi_ext extensions[] = {
        { SBI_EXT_DBCN,                       "Debug Console Extension" },
        { SBI_EXT_SUSP,                       "System Suspend Extension" },
        { SBI_EXT_CPPC,                       "Collaborative Processor Performance Control Extension" },
+       { SBI_EXT_NACL,                       "Nested Acceleration Extension" },
+       { SBI_EXT_STA,                        "Steal-time Accounting Extension" },
 };
 
 static int do_sbi(struct cmd_tbl *cmdtp, int flag, int argc,