Add SBI FWFT extension support
cover Add SBI FWFT extension support
This series adds support for SBI FWFT extension. SVADU ISA extension is added in order to add support for FWFT SBI_FWFT_PTE_AD_HW_UPDATING feature.
FWFT extension is not yet ratified but will be present in SBI V3.0 [1]
---
Cl?ment L?ger (5):
lib: sbi: Add SVADU extension support
lib: sbi: add support for firmware features extension
lib: sbi: fwft: add support for SBI_FWFT_MISALIGNED_EXC_DELEG
lib: sbi: fwft: add support for SBI_FWFT_PTE_AD_HW_UPDATING
lib: sbi: implement SBI FWFT extension
include/sbi/riscv_encoding.h | 1 + include/sbi/sbi_ecall_interface.h | 28 +++ include/sbi/sbi_fwft.h | 23 +++ include/sbi/sbi_hart.h | 2 + lib/sbi/Kconfig | 4 + lib/sbi/objects.mk | 4 + lib/sbi/sbi_ecall_fwft.c | 49 ++++++ lib/sbi/sbi_fwft.c | 272 ++++++++++++++++++++++++++++++ lib/sbi/sbi_hart.c | 9 + lib/sbi/sbi_hsm.c | 15 ++ lib/sbi/sbi_init.c | 11 ++ 11 files changed, 418 insertions(+) create mode 100644 include/sbi/sbi_fwft.h create mode 100644 lib/sbi/sbi_ecall_fwft.c create mode 100644 lib/sbi/sbi_fwft.c
Signature · 1 line
2.43.0
PATCH 1/5 lib: sbi: Add SVADU extension support
Add SVADU ISA extension support. By default, clear the ADUE bit to maintain backward-compatibility.
--- include/sbi/riscv_encoding.h | 1 + include/sbi/sbi_hart.h | 2 ++ lib/sbi/sbi_hart.c | 9 +++++++++ 3 files changed, 12 insertions(+)
include/sbi/riscv_encoding.h +1 -0
@@ -211,6 +211,7 @@#define ENVCFG_STCE (_ULL(1) << 63)#define ENVCFG_PBMTE (_ULL(1) << 62) +#define ENVCFG_ADUE (_ULL(1) << 61)#define ENVCFG_CDE (_ULL(1) << 60)#define ENVCFG_CBZE (_UL(1) << 7)#define ENVCFG_CBCFE (_UL(1) << 6)
include/sbi/sbi_hart.h +2 -0
@@ -63,6 +63,8 @@ enum sbi_hart_extensions {SBI_HART_EXT_SSCSRIND ,/** Hart has Ssccfg extension */ SBI_HART_EXT_SSCCFG , +/** Hart has Svadu extension */ +SBI_HART_EXT_SVADU ,/** Maximum index of Hart extension */ SBI_HART_EXT_MAX,
lib/sbi/sbi_hart.c +9 -0
@@ -148,6 +148,14 @@ static void mstatus_init(struct sbi_scratch *scratch)csr_set (CSR_MSECCFG ,MSECCFG_SSEED );csr_clear (CSR_MSECCFG ,MSECCFG_USEED ); } + +if (sbi_hart_has_extension (scratch,SBI_HART_EXT_SVADU )) { +#if __riscv_xlen ==32 +csr_clear (CSR_MENVCFGH ,ENVCFG_ADUE >>32 ); +#else +csr_clear (CSR_MENVCFG ,ENVCFG_ADUE ); +#endif + } }/* Disable all interrupts */
@@ -668,6 +676,7 @@ const struct sbi_hart_ext_data sbi_hart_ext[] = {__SBI_HART_EXT_DATA (smcdeleg,SBI_HART_EXT_SMCDELEG ),__SBI_HART_EXT_DATA (sscsrind,SBI_HART_EXT_SSCSRIND ),__SBI_HART_EXT_DATA (ssccfg,SBI_HART_EXT_SSCCFG ), +__SBI_HART_EXT_DATA (svadu,SBI_HART_EXT_SVADU ), }; _Static_assert(SBI_HART_EXT_MAX == array_size(sbi_hart_ext),
Signature · 1 line
2.43.0
PATCH 1/5 lib: sbi: Add SVADU extension support
Quoted 5 lines · On Tue, May 21, 2024 at 8:31?PM Cl?ment L?ger <[email protected]> wrote:
Add SVADU ISA extension support. By default, clear the ADUE bit to maintain backward-compatibility.
Signed-off-by Cl?ment L?ger <[email protected]>
LGTM.
Regards,
Anup
Quoted 66 lines
--- include/sbi/riscv_encoding.h | 1 + include/sbi/sbi_hart.h | 2 ++ lib/sbi/sbi_hart.c | 9 +++++++++ 3 files changed, 12 insertions(+)include/sbi/riscv_encoding.h +1
-0@@ -211,6 +211,7 @@#define ENVCFG_STCE (_ULL(1) << 63)#define ENVCFG_PBMTE (_ULL(1) << 62) +#define ENVCFG_ADUE (_ULL(1) << 61)#define ENVCFG_CDE (_ULL(1) << 60)#define ENVCFG_CBZE (_UL(1) << 7)#define ENVCFG_CBCFE (_UL(1) << 6)include/sbi/sbi_hart.h +2
-0@@ -63,6 +63,8 @@ enum sbi_hart_extensions {SBI_HART_EXT_SSCSRIND ,/** Hart has Ssccfg extension */ SBI_HART_EXT_SSCCFG , +/** Hart has Svadu extension */ +SBI_HART_EXT_SVADU ,/** Maximum index of Hart extension */ SBI_HART_EXT_MAX,lib/sbi/sbi_hart.c +9
-1@@ -148,6 +148,14 @@ static void mstatus_init(struct sbi_scratch *scratch)csr_set (CSR_MSECCFG ,MSECCFG_SSEED );csr_clear (CSR_MSECCFG ,MSECCFG_USEED ); } + +if (sbi_hart_has_extension (scratch,SBI_HART_EXT_SVADU )) { +#if __riscv_xlen ==32 +csr_clear (CSR_MENVCFGH ,ENVCFG_ADUE >>32 ); +#else +csr_clear (CSR_MENVCFG ,ENVCFG_ADUE ); +#endif + } }/* Disable all interrupts */ @@ -668,6 +676,7 @@ const struct sbi_hart_ext_data sbi_hart_ext[] = {__SBI_HART_EXT_DATA (smcdeleg,SBI_HART_EXT_SMCDELEG ),__SBI_HART_EXT_DATA (sscsrind,SBI_HART_EXT_SSCSRIND ),__SBI_HART_EXT_DATA (ssccfg,SBI_HART_EXT_SSCCFG ), +__SBI_HART_EXT_DATA (svadu,SBI_HART_EXT_SVADU ), }; _Static_assert(SBI_HART_EXT_MAX == array_size(sbi_hart_ext), --2.43.0
--
opensbi mailing list
opensbi at lists.infradead.org
http://lists.infradead.org/mailman/listinfo/opensbi
PATCH 2/5 lib: sbi: add support for firmware features extension
In reply to Clément LégerThis extension allows the software running in supervisor mode to control the behavior of various features of the SBI [1]. Implement the support for such extension.
--- include/sbi/sbi_ecall_interface.h | 28 +++++ include/sbi/sbi_fwft.h | 23 ++++ lib/sbi/objects.mk | 1 + lib/sbi/sbi_fwft.c | 179 ++++++++++++++++++++++++++++++ lib/sbi/sbi_init.c | 11 ++ 5 files changed, 242 insertions(+) create mode 100644 include/sbi/sbi_fwft.h create mode 100644 lib/sbi/sbi_fwft.c
include/sbi/sbi_ecall_interface.h +28 -0
@@ -34,6 +34,7 @@#define SBI_EXT_CPPC 0x43505043#define SBI_EXT_DBTR 0x44425452#define SBI_EXT_SSE 0x535345 +#define SBI_EXT_FWFT 0x46574654/* SBI function IDs for BASE extension*/ #define SBI_EXT_BASE_GET_SPEC_VERSION 0x0
@@ -117,6 +118,33 @@#define SBI_EXT_DBTR_TRIGGER_ENABLE 0x6#define SBI_EXT_DBTR_TRIGGER_DISABLE 0x7 +/* SBI function IDs for FW feature extension */ +#define SBI_EXT_FWFT_SET 0x0 +#define SBI_EXT_FWFT_GET 0x1 + +enum sbi_fwft_feature_t { +SBI_FWFT_MISALIGNED_EXC_DELEG =0x0 , +SBI_FWFT_SOFTWARE_CHECK_EXC_DELEG =0x1 , +SBI_FWFT_LANDING_PAD =0x2 , +SBI_FWFT_SHADOW_STACK =0x3 , +SBI_FWFT_DOUBLE_TRAP =0x4 , +SBI_FWFT_PTE_AD_HW_UPDATING =0x5 , +SBI_FWFT_LOCAL_RESERVED_START =0x6 , +SBI_FWFT_LOCAL_RESERVED_END =0x3fffffff , +SBI_FWFT_LOCAL_PLATFORM_START =0x40000000 , +SBI_FWFT_LOCAL_PLATFORM_END =0x7fffffff , + +SBI_FWFT_GLOBAL_RESERVED_START =0x80000000 , +SBI_FWFT_GLOBAL_RESERVED_END =0xbfffffff , +SBI_FWFT_GLOBAL_PLATFORM_START =0xc0000000 , +SBI_FWFT_GLOBAL_PLATFORM_END =0xffffffff , +}; + +#define SBI_FWFT_GLOBAL_FEATURE_BIT (1 << 31) +#define SBI_FWFT_PLATFORM_FEATURE_BIT (1 << 30) + +#define SBI_FWFT_SET_FLAG_LOCK (1 << 0) +/** General pmu event codes specified in SBI PMU extension */ enum sbi_pmu_hw_generic_events_t {SBI_PMU_HW_NO_EVENT =0 ,
include/sbi/sbi_fwft.h new file +23 -0
@@ -0,0 +1,23 @@ +/* +* SPDX-License-Identifier: BSD-2-Clause +* +* Copyright (c) 2024 Rivos Inc. +* +* Authors: +* Cl?ment L?ger <[email protected]> +*/ + +#ifndef __SBI_FW_FEATURE_H__ +#define __SBI_FW_FEATURE_H__ + +#include <sbi/sbi_ecall_interface.h> + +struct sbi_scratch ; + +int sbi_fwft_set (enum sbi_fwft_feature_t feature,unsigned long value, +unsigned long flags); +int sbi_fwft_get (enum sbi_fwft_feature_t feature,unsigned long *out_val); + +int sbi_fwft_init (struct sbi_scratch *scratch,bool cold_boot); + +#endif
lib/sbi/objects.mk +1 -0
@@ -65,6 +65,7 @@ libsbi-objs-y += sbi_domain_context.o libsbi-objs-y += sbi_domain.o libsbi-objs-y += sbi_emulate_csr.o libsbi-objs-y += sbi_fifo.o +libsbi-objs-y += sbi_fwft.o libsbi-objs-y += sbi_hart.o libsbi-objs-y += sbi_heap.o libsbi-objs-y += sbi_math.o
lib/sbi/sbi_fwft.c new file +179 -0
179 lines not on this page · raw message
lib/sbi/sbi_init.c +11 -0
@@ -14,6 +14,7 @@#include <sbi/sbi_cppc.h> #include <sbi/sbi_domain.h> #include <sbi/sbi_ecall.h> +#include <sbi/sbi_fwft.h> #include <sbi/sbi_hart.h> #include <sbi/sbi_hartmask.h> #include <sbi/sbi_heap.h>
@@ -308,6 +309,12 @@ static void __noreturn init_coldboot(struct sbi_scratch *scratch, u32 hartid)sbi_hart_hang (); } + rc =sbi_fwft_init (scratch, true); +if (rc) { +sbi_printf ("%s: fwft init failed (error %d)\n" , __func__, rc); +sbi_hart_hang (); + } +/* * Note: Finalize domains after HSM initialization so that we * can startup non-root domains.
@@ -423,6 +430,10 @@ static void __noreturn init_warm_startup(struct sbi_scratch *scratch,if (rc)sbi_hart_hang (); + rc =sbi_fwft_init (scratch, false); +if (rc) +sbi_hart_hang (); + rc =sbi_platform_final_init (plat, false);if (rc)sbi_hart_hang ();
Signature · 1 line
2.43.0
PATCH 3/5 lib: sbi: fwft: add support for SBI_FWFT_MISALIGNED_EXC_DELEG
In reply to Clément LégerAdd support for SBI_FWFT_MISALIGNED_EXC_DELEG withing FWFT support. This support allows to delegate misaligned accesses traps.
--- lib/sbi/sbi_fwft.c | 39 ++++++++++++++++++++++++++++++++++++++- lib/sbi/sbi_hsm.c | 3 +++ 2 files changed, 41 insertions(+), 1 deletion(-)
lib/sbi/sbi_fwft.c +38 -1
@@ -32,6 +32,8 @@ static unsigned long fwft_ptr_offset;#define fwft_set_hart_state_ptr (__scratch, __phs) \ sbi_scratch_write_type((__scratch), void *, fwft_ptr_offset, (__phs)) +#define MIS_DELEG (1UL << CAUSE_MISALIGNED_LOAD | 1UL << CAUSE_MISALIGNED_STORE) +struct fwft_config ;struct fwft_feature {
@@ -72,6 +74,33 @@ static bool fwft_is_defined_feature(enum sbi_fwft_feature_t feature)return false; } +static int fwft_misaligned_delegation_supported (struct fwft_config *conf) +{ +if (!misa_extension ('S' )) +return SBI_ENOTSUPP ; + +return SBI_OK ; +} + +static int fwft_set_misaligned_delegation (struct fwft_config *conf, +unsigned long value) +{ +if (value) +csr_set (CSR_MEDELEG ,MIS_DELEG ); +else +csr_clear (CSR_MEDELEG ,MIS_DELEG ); + +return SBI_OK ; +} + +static int fwft_get_misaligned_delegation (struct fwft_config *conf, +unsigned long *value) +{ + *value = (csr_read (CSR_MEDELEG ) &MIS_DELEG ) !=0 ; + +return SBI_OK ; +} +static struct fwft_config *get_feature_config (enum sbi_fwft_feature_t feature) {int i;
@@ -149,7 +178,15 @@ int sbi_fwft_get(enum sbi_fwft_feature_t feature, unsigned long *out_val)return conf->feature->get (conf, out_val); } -static const struct fwft_feature features[] = {}; +static const struct fwft_feature features[] = +{ + { + .id =SBI_FWFT_MISALIGNED_EXC_DELEG , + .supported = fwft_misaligned_delegation_supported, + .set = fwft_set_misaligned_delegation, + .get = fwft_get_misaligned_delegation, + }, +};int sbi_fwft_init (struct sbi_scratch *scratch,bool cold_boot) {
lib/sbi/sbi_hsm.c +3 -0
@@ -44,6 +44,7 @@ struct sbi_hsm_data {unsigned long suspend_type;unsigned long saved_mie;unsigned long saved_mip; +unsigned long saved_hedeleg;atomic_t start_ticket; };
@@ -417,6 +418,7 @@ void __sbi_hsm_suspend_non_ret_save(struct sbi_scratch *scratch) hdata->saved_mie =csr_read (CSR_MIE ); hdata->saved_mip =csr_read (CSR_MIP ) & (MIP_SSIP |MIP_STIP ); + hdata->saved_hedeleg =csr_read (CSR_HEDELEG ); }static void __sbi_hsm_suspend_non_ret_restore (struct sbi_scratch *scratch)
@@ -424,6 +426,7 @@ static void __sbi_hsm_suspend_non_ret_restore(struct sbi_scratch *scratch)struct sbi_hsm_data *hdata =sbi_scratch_offset_ptr (scratch, hart_data_offset); +csr_write (CSR_HEDELEG , hdata->saved_hedeleg);csr_write (CSR_MIE , hdata->saved_mie);csr_set (CSR_MIP , (hdata->saved_mip & (MIP_SSIP |MIP_STIP ))); }
Signature · 1 line
2.43.0
PATCH 4/5 lib: sbi: fwft: add support for SBI_FWFT_PTE_AD_HW_UPDATING
In reply to Clément LégerAdd support for SBI_FWFT_PTE_AD_HW_UPDATING based on SVADU presence.
--- lib/sbi/sbi_fwft.c | 56 ++++++++++++++++++++++++++++++++++++++++++++++ lib/sbi/sbi_hsm.c | 12 ++++++++++ 2 files changed, 68 insertions(+)
lib/sbi/sbi_fwft.c +56 -0
@@ -101,6 +101,56 @@ static int fwft_get_misaligned_delegation(struct fwft_config *conf,return SBI_OK ; } +static int fwft_adue_supported (struct fwft_config *conf) +{ +if (!sbi_hart_has_extension (sbi_scratch_thishart_ptr (), +SBI_HART_EXT_SVADU )) +return SBI_ENOTSUPP ; + +return SBI_OK ; +} + +#if __riscv_xlen ==32 +#define MENVCFG_REG (__val) \ + (__builtin_ffsll(__val) > 32 ? CSR_MENVCFGH : CSR_MENVCFG) +#define MENVCFG_VAL (__val) \ + (__builtin_ffsll(__val) > 32 ? (__val) >> 32 : (__val)) +#else +#define MENVCFG_REG (__val) CSR_MENVCFG +#define MENVCFG_VAL (__val) (__val) +#endif + +static int fwft_set_adue (struct fwft_config *conf,unsigned long value) +{ + if (value) +#if __riscv_xlen ==32 +csr_set (CSR_MENVCFGH ,ENVCFG_ADUE >>32 ); +#else +csr_set (CSR_MENVCFG ,ENVCFG_ADUE ); +#endif + else +#if __riscv_xlen ==32 +csr_clear (CSR_MENVCFGH ,ENVCFG_ADUE >>32 ); +#else +csr_clear (CSR_MENVCFG ,ENVCFG_ADUE ); +#endif + +return SBI_OK ; +} + +static int fwft_get_adue (struct fwft_config *conf,unsigned long *value) +{ +unsigned long cfg; +#if __riscv_xlen ==32 + cfg =csr_read (CSR_MENVCFGH ) & (ENVCFG_ADUE >>32 ); +#else + cfg =csr_read (CSR_MENVCFG ) &ENVCFG_ADUE ; +#endif + *value = cfg !=0 ; + +return SBI_OK ; +} +static struct fwft_config *get_feature_config (enum sbi_fwft_feature_t feature) {int i;
@@ -186,6 +236,12 @@ static const struct fwft_feature features[] = .set = fwft_set_misaligned_delegation, .get = fwft_get_misaligned_delegation, }, + { + .id = SBI_FWFT_PTE_AD_HW_UPDATING, + .supported = fwft_adue_supported, + .set = fwft_set_adue, + .get = fwft_get_adue, + }, };int sbi_fwft_init (struct sbi_scratch *scratch,bool cold_boot)
lib/sbi/sbi_hsm.c +12 -0
@@ -45,6 +45,10 @@ struct sbi_hsm_data {unsigned long saved_mie;unsigned long saved_mip;unsigned long saved_hedeleg; +unsigned long saved_menvcfg; +#if __riscv_xlen ==32 +unsigned long saved_menvcfgh; +#endif atomic_t start_ticket; };
@@ -419,6 +423,10 @@ void __sbi_hsm_suspend_non_ret_save(struct sbi_scratch *scratch) hdata->saved_mie =csr_read (CSR_MIE ); hdata->saved_mip =csr_read (CSR_MIP ) & (MIP_SSIP |MIP_STIP ); hdata->saved_hedeleg =csr_read (CSR_HEDELEG ); +#if __riscv_xlen ==32 + hdata->saved_menvcfgh =csr_read (CSR_MENVCFGH ); +#endif + hdata->saved_menvcfg =csr_read (CSR_MENVCFG ); }static void __sbi_hsm_suspend_non_ret_restore (struct sbi_scratch *scratch)
@@ -426,6 +434,10 @@ static void __sbi_hsm_suspend_non_ret_restore(struct sbi_scratch *scratch)struct sbi_hsm_data *hdata =sbi_scratch_offset_ptr (scratch, hart_data_offset); +csr_write (CSR_MENVCFG , hdata->saved_menvcfg); +#if __riscv_xlen ==32 +csr_write (CSR_MENVCFGH , hdata->saved_menvcfgh); +#endif csr_write (CSR_HEDELEG , hdata->saved_hedeleg);csr_write (CSR_MIE , hdata->saved_mie);csr_set (CSR_MIP , (hdata->saved_mip & (MIP_SSIP |MIP_STIP )));
Signature · 1 line
2.43.0
PATCH 5/5 lib: sbi: implement SBI FWFT extension
In reply to Clément LégerThe SBI FWFT extension defines a set of function that can be called to control the configuration of some platform features (misaligned trap delegation, etc). This patch implements sbi_fwft_set() and sbi_fwft_get() as defined in the specification [1].
--- lib/sbi/Kconfig | 4 ++++ lib/sbi/objects.mk | 3 +++ lib/sbi/sbi_ecall_fwft.c | 49 ++++++++++++++++++++++++++++++++++++++++ 3 files changed, 56 insertions(+) create mode 100644 lib/sbi/sbi_ecall_fwft.c
lib/sbi/Kconfig +4 -0
@@ -38,6 +38,10 @@ config SBI_ECALL_CPPC bool "CPPC extension" default y +config SBI_ECALL_FWFT + bool "Firmware Feature extension" + default y + config SBI_ECALL_LEGACY bool "SBI v0.1 legacy extensions" default y
lib/sbi/objects.mk +3 -0
@@ -46,6 +46,9 @@ libsbi-objs-$(CONFIG_SBI_ECALL_DBCN) += sbi_ecall_dbcn.o carray-sbi_ecall_exts-$(CONFIG_SBI_ECALL_CPPC) += ecall_cppc libsbi-objs-$(CONFIG_SBI_ECALL_CPPC) += sbi_ecall_cppc.o +carray-sbi_ecall_exts-$(CONFIG_SBI_ECALL_FWFT) += ecall_fwft +libsbi-objs-$(CONFIG_SBI_ECALL_FWFT) += sbi_ecall_fwft.o + carray-sbi_ecall_exts-$(CONFIG_SBI_ECALL_LEGACY) += ecall_legacy libsbi-objs-$(CONFIG_SBI_ECALL_LEGACY) += sbi_ecall_legacy.o
lib/sbi/sbi_ecall_fwft.c new file +49 -0
49 lines not on this page · raw message
Signature · 1 line
2.43.0
cover Add SBI FWFT extension support
In reply to Clément LégerHi Clement,
Quoted 9 lines · On Tue, May 21, 2024 at 8:31?PM Cl?ment L?ger <[email protected]> wrote:
This series adds support for SBI FWFT extension. SVADU ISA extension is added in order to add support for FWFT
SBI_FWFT_PTE_AD_HW_UPDATINGfeature.FWFT extension is not yet ratified but will be present in SBI V3.0 [1]
Quoted 8 lines
---
Cl?ment L?ger (5):
lib: sbi: Add SVADU extension support
lib: sbi: add support for firmware features extension
lib: sbi: fwft: add support forSBI_FWFT_MISALIGNED_EXC_DELEG
lib: sbi: fwft: add support forSBI_FWFT_PTE_AD_HW_UPDATING
lib: sbi: implement SBI FWFT extension
Can you update this series based on the latest SBI FWFT extension draft ?
Also, this series conflicts with Yong-Xuan Wang's series for Svadu.
Regards,
Anup
Quoted 25 lines
include/sbi/riscv_encoding.h | 1 + include/sbi/sbi_ecall_interface.h | 28 +++ include/sbi/sbi_fwft.h | 23 +++ include/sbi/sbi_hart.h | 2 + lib/sbi/Kconfig | 4 + lib/sbi/objects.mk | 4 + lib/sbi/sbi_ecall_fwft.c | 49 ++++++ lib/sbi/sbi_fwft.c | 272 ++++++++++++++++++++++++++++++ lib/sbi/sbi_hart.c | 9 + lib/sbi/sbi_hsm.c | 15 ++ lib/sbi/sbi_init.c | 11 ++ 11 files changed, 418 insertions(+) create mode 100644 include/sbi/sbi_fwft.h create mode 100644 lib/sbi/sbi_ecall_fwft.c create mode 100644 lib/sbi/sbi_fwft.c--
2.43.0--
opensbi mailing list
opensbi at lists.infradead.org
http://lists.infradead.org/mailman/listinfo/opensbi
cover Add SBI FWFT extension support
Quoted 14 lines · Anup Patel
Hi Clement,
Quoted 11 lines · On Tue, May 21, 2024 at 8:31?PM Cl?ment L?ger <[email protected]> wrote:
This series adds support for SBI FWFT extension. SVADU ISA extension is added in order to add support for FWFT
SBI_FWFT_PTE_AD_HW_UPDATINGfeature.FWFT extension is not yet ratified but will be present in SBI V3.0 [1]
---
Quoted 8 lines
Quoted 6 lines
Cl?ment L?ger (5):
lib: sbi: Add SVADU extension support
lib: sbi: add support for firmware features extension
lib: sbi: fwft: add support forSBI_FWFT_MISALIGNED_EXC_DELEG
lib: sbi: fwft: add support forSBI_FWFT_PTE_AD_HW_UPDATING
lib: sbi: implement SBI FWFT extensionCan you update this series based on the latest SBI FWFT extension draft ?
Yes sure.
Quoted 2 lines
Also, this series conflicts with Yong-Xuan Wang's series for Svadu
Acked, I'll apply it on top of Yong-Xuan Wang series then.
Quoted 29 lines
Regards,
AnupQuoted 25 lines
include/sbi/riscv_encoding.h | 1 + include/sbi/sbi_ecall_interface.h | 28 +++ include/sbi/sbi_fwft.h | 23 +++ include/sbi/sbi_hart.h | 2 + lib/sbi/Kconfig | 4 + lib/sbi/objects.mk | 4 + lib/sbi/sbi_ecall_fwft.c | 49 ++++++ lib/sbi/sbi_fwft.c | 272 ++++++++++++++++++++++++++++++ lib/sbi/sbi_hart.c | 9 + lib/sbi/sbi_hsm.c | 15 ++ lib/sbi/sbi_init.c | 11 ++ 11 files changed, 418 insertions(+) create mode 100644 include/sbi/sbi_fwft.h create mode 100644 lib/sbi/sbi_ecall_fwft.c create mode 100644 lib/sbi/sbi_fwft.c--
2.43.0--
opensbi mailing list
opensbi at lists.infradead.org
http://lists.infradead.org/mailman/listinfo/opensbi