[PATCH 0/2] lib: sbi: Fix Smrnmi/RNMI trap handling issues

Nia Su nia.su at sifive.com
Wed Sep 2 19:36:00 PDT 2026


On Thu, Sep 3, 2026 at 1:33 AM Evgeny Voevodin <evvoevod at tenstorrent.com> wrote:
>
> Just to be clear about the split - my suggestion was to keep the current void
> return type of ops->smrnmi_handlers_init in patch 1 and change it to int in a
> separate patch, so that a platform can indicate that Smrnmi handlers
> initialization went wrong. This will make backporting to v1.9 easier if needed.
> Is this aligned with what you were going to proceed with?
>
>   Thanks,
>   Evgeny

Yes, I fully understand your suggestion, and this is also how I plan to proceed.
I will split the series into separate patches:

1. Reinitialize the RNMI after non-retentive suspend/resume.
2. Change smrnmi_handlers_init from void to int.
3. Allow a NULL callback and report the RNMI vector mode at boot.

This matches your proposal and should make the patches easier to backport.
Thanks for the clarification.

Thanks,
Nia



More information about the opensbi mailing list