Skip to contentSkip to conversation

include: sbi: Change spec version to 2.0

PATCH New Anup Patel 3 participants 3 messages Oct 10, 2023 – Oct 19, 2023

lore
Share & tools
lore

Anup Patel

author
#0 lore raw

PATCH 1/1 include: sbi: Change spec version to 2.0

Now that SBI v2.0 specification is frozen, we change spec verion implemented by OpenSBI to v2.0.

---
 include/sbi/sbi_ecall.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/sbi/sbi_ecall.h +1 -1
index 90f33ba..027213c 100644
@@ -13,7 +13,7 @@
 #include <sbi/sbi_types.h>
 #include <sbi/sbi_list.h>
 
-#define SBI_ECALL_VERSION_MAJOR		1
+#define SBI_ECALL_VERSION_MAJOR		2
 #define SBI_ECALL_VERSION_MINOR		0
 #define SBI_OPENSBI_IMPID		1
 
Signature · 1 line
2.34.1
#1 lore raw

PATCH 1/1 include: sbi: Change spec version to 2.0

Quoted 24 lines · Anup Patel

Now that SBI v2.0 specification is frozen, we change spec verion implemented by OpenSBI to v2.0.

---
 include/sbi/sbi_ecall.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/sbi/sbi_ecall.h +1 -1
index 90f33ba..027213c 100644
@@ -13,7 +13,7 @@
 #include <sbi/sbi_types.h>
 #include <sbi/sbi_list.h>
 
-#define SBI_ECALL_VERSION_MAJOR		1
+#define SBI_ECALL_VERSION_MAJOR		2
 #define SBI_ECALL_VERSION_MINOR		0
 #define SBI_OPENSBI_IMPID		1
 
Signature · 1 line
2.34.1

It'd be good to get this merged and also build a new version of opensbi which can be incorporated into QEMU. Without this change several new SBI extensions won't be usable by Linux, even though the implementations are present, because Linux checks that the SBI implementation version is at least as big as the spec version where the extensions were frozen.

Thanks,
drew

Applied
#2 lore raw

PATCH 1/1 include: sbi: Change spec version to 2.0

In reply to Anup Patel
Quoted 5 lines · On Tue, Oct 10, 2023 at 3:51?PM Anup Patel <[email protected]> wrote:

Now that SBI v2.0 specification is frozen, we change spec verion implemented by OpenSBI to v2.0.

Applied this patch to the riscv/opensbi repo.

Thanks,
Anup

Quoted 20 lines
---
 include/sbi/sbi_ecall.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/sbi/sbi_ecall.h +1 -2
index 90f33ba..027213c 100644
@@ -13,7 +13,7 @@
 #include <sbi/sbi_types.h>
 #include <sbi/sbi_list.h>
 
-#define SBI_ECALL_VERSION_MAJOR                1
+#define SBI_ECALL_VERSION_MAJOR                2
 #define SBI_ECALL_VERSION_MINOR                0
 #define SBI_OPENSBI_IMPID              1
 
--

2.34.1