[PATCH] lib: sbi: Use SBI_SSE_EVENT_LOCAL_UNKNOWN_NMI with unknown interrupts
Himanshu Chauhan
himanshu.chauhan at oss.qualcomm.com
Wed Feb 18 22:53:23 PST 2026
Hi,
On Wed, Feb 18, 2026 at 7:58 AM Charlie Jenkins via B4 Relay
<devnull+thecharlesjenkins.gmail.com at kernel.org> wrote:
>
> From: Charlie Jenkins <thecharlesjenkins at gmail.com>
>
> An mcause of 0 means "unknown cause" according to the riscv privileged
> spec. When this occurs, the interrupt should be forwarded to S-mode
> software via SBI_SSE_EVENT_GLOBAL_UNKNOWN_NMI if SSE is enabled.
>
This is an incorrect interpretation of the spec. The specification has
"reserved" the mcause exception code 0 of interrupts.
IMHO, a reserved interrupt, if occurs, shouldn't be forwarded to
supervisor software.
Regards
Himanshu
More information about the opensbi
mailing list