Re: [PATCH 2/3] platform: generic: Extra memory for housekeeping

wu.fei9 at sanechips.com.cn wu.fei9 at sanechips.com.cn
Thu Aug 7 03:18:44 PDT 2025


> > 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?

> 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