SBI spec: return code for non-available extension

Jessica Clarke jrtc27 at jrtc27.com
Sat Mar 6 15:44:03 GMT 2021


On 6 Mar 2021, at 15:28, Heinrich Schuchardt <xypron.glpk at gmx.de> wrote:
> 
> Am 6. März 2021 13:19:07 MEZ schrieb Anup Patel <anup at brainfault.org>:
>> On Sat, Mar 6, 2021 at 12:33 PM Heinrich Schuchardt
>> <xypron.glpk at gmx.de> wrote:
>>> 
>>> Software may by fault invoke an extension which is not available.
>>> 
>>> OpenSBI actually returns SBI_ERR_NOT_SUPPORTED from
>> sbi_ecall_handler()
>>> in this case.
>>> 
>>> This is a reasonable choice but I could not find any basis in the SBI
>>> specification. The handling of an ecall for an unsupported EID is not
>>> described.
>> 
>> The SBI_ERR_NOT_SUPPORTED error code is the default error code
>> any unsupported function. This should be clearly mentioned in the
>> SBI base extension if it is not already mentioned.
>> 
>>> 
>>> I think this gap should be closed in the spec.
>> 
>> Totally agree.
>> 
>> Please go ahead and send a patch (or Github PR) for SBI spec.
>> (Refer, https://github.com/riscv/riscv-sbi-doc)
>> 
>> Our mailing for SBI spec is the UnixPlatformSpec mailing list but
>> you need to join RiSC-V International as an individual to join the
>> mailing list (https://lists.riscv.org/g/tech-unixplatformspec).
>> (Note: AFAIK individual membership is free for RISC-V international).
> 
> The page for joining provided by the Linux foundation requires entering a company and only accepts company e-mail addresses.
> 
> So it is technically impossible to join as individual.

Not if you choose the individual option. There are two links at https://riscv.org/membership/.

Jess




More information about the opensbi mailing list