[PATCH] lib: sbi: Use SBI_SSE_EVENT_LOCAL_UNKNOWN_NMI with unknown interrupts

Charlie Jenkins thecharlesjenkins at gmail.com
Wed Feb 25 16:37:40 PST 2026


On Thu, Feb 19, 2026 at 12:23:23PM +0530, Himanshu Chauhan wrote:
> 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.

Yeah that was a misinformed interpretation, thank you for your feedback.

- Charlie

> 
> Regards
> Himanshu
> 
> -- 
> opensbi mailing list
> opensbi at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/opensbi



More information about the opensbi mailing list