[RFC PATCH v5 1/4] lib: sbi_domain: Add domain register finalize notifier

Rahul Pathak rahul.pathak at oss.qualcomm.com
Tue Sep 22 09:43:32 PDT 2026


On Tue, Sep 22, 2026 at 1:33 PM Anup Patel <anup.patel at oss.qualcomm.com> wrote:
>
> On Fri, Sep 18, 2026 at 9:08 AM Rahul Pathak
> <rahul.pathak at oss.qualcomm.com> wrote:
> >
> > sbi domain registeration notifier is invoked when
> > memory regions of the domains are not finalized. The root
> > domain is registered early and the drivers keep adding
> > the regions until sbi_domain_finalize() is called. Such regions
> > are added to the root after root domain is already registered
> > and notification for that has already been sent.
> >
> > Per-domain configuration which is based on the final memory
> > regions of the domains especially the root domain is not
> > possible only with a domain register notifier.
> >
> > Add a domain finalize notifier for such case which is called
> > for every domain once all the domains are already registered and
> > their memory regions are finalized.
> >
> > Signed-off-by: Rahul Pathak <rahul.pathak at oss.qualcomm.com>
>
> Clearly, MPT table is per-domain state so why not use sbi_domain_state
> for this ??
>

The v4 had used sbi_domain_state only for this
https://lists.infradead.org/pipermail/opensbi/2026-August/010446.html

but as suggested by Pawandeep to reuse the inflight notifier support
for domain events, I dropped that to use a notifier event.

https://lists.infradead.org/pipermail/opensbi/2026-August/010454.html



More information about the opensbi mailing list