[PATCH 2/3] platform: generic: Extra memory for housekeeping
Xiang W
wxjstz at 126.com
Fri Aug 8 02:16:27 PDT 2025
在 2025-08-07四的 18:18 +0800,wu.fei9 at sanechips.com.cn写道:
> > > diff --git a/lib/sbi/sbi_heap.c b/lib/sbi/sbi_heap.c
> > > index 646c2e0..7aa27b1 100644
> > > --- a/lib/sbi/sbi_heap.c
> > > +++ b/lib/sbi/sbi_heap.c
> > > @@ -279,3 +279,8 @@ int sbi_heap_alloc_new(struct sbi_heap_control **hpctrl)
> > > *hpctrl = sbi_calloc(1, sizeof(struct sbi_heap_control));
> > > return 0;
> > > }
> > > +
> > > +unsigned long sbi_heap_total_size(unsigned long usable_size)
> > > +{
> > > + return usable_size + usable_size / (HEAP_HOUSEKEEPING_FACTOR - 1);
> > This patch will conflict with the patch
> > https://patchwork.ozlabs.org/project/opensbi/patch/20250617032306.1494528-3-samuel.holland@sifive.com/.
>
> Thank you for pointing it out. Is this patch queued to upstream? Where can I
> find this kind of patches?
This patch is awaiting review. You can find patches awaiting review at
https://patchwork.ozlabs.org/project/opensbi/list/
Regards,
Xiang W
>
> > If more memory is needed, it is recommended to implement it through other means.
>
> Yes, the housekeeping metadata is still needed. Let me try another version.
>
> Thanks,
> Fei.
>
> > Regards,
> > Xiang W
More information about the opensbi
mailing list