Re: [RFC PATCH 03/31] lmb: make the lmb reservations persistent

2024-06-11 Thread Simon Glass
HI Sughosh, On Fri, 7 Jun 2024 at 12:53, Sughosh Ganu wrote: > > The current LMB API's for allocating and reserving memory use a > per-caller based memory view. Memory allocated by a caller can then be > overwritten by another caller. Make these allocations and reservations > persistent. With thi

Re: [RFC PATCH 03/31] lmb: make the lmb reservations persistent

2024-06-10 Thread Tom Rini
On Mon, Jun 10, 2024 at 01:23:49PM +0200, Heinrich Schuchardt wrote: > On 1/1/70 01:00, Ilias Apalodimas wrote: > > Hi Sughosh > > > > [...] > > > > > #define LMB_ALLOC_ANYWHERE 0 > > > > > > +#if !IS_ENABLED(CONFIG_LMB_USE_MAX_REGIONS) > > > +struct lmb_property memory_regions[CONFIG_LMB

Re: [RFC PATCH 03/31] lmb: make the lmb reservations persistent

2024-06-10 Thread Heinrich Schuchardt
On 1/1/70 01:00, Ilias Apalodimas wrote: Hi Sughosh [...] #define LMB_ALLOC_ANYWHERE0 +#if !IS_ENABLED(CONFIG_LMB_USE_MAX_REGIONS) +struct lmb_property memory_regions[CONFIG_LMB_MEMORY_REGIONS]; +struct lmb_property reserved_regions[CONFIG_LMB_RESERVED_REGIONS]; +#endif + +struct lmb lm

Re: [RFC PATCH 03/31] lmb: make the lmb reservations persistent

2024-06-10 Thread Ilias Apalodimas
Hi Sughosh [...] > #define LMB_ALLOC_ANYWHERE 0 > > +#if !IS_ENABLED(CONFIG_LMB_USE_MAX_REGIONS) > +struct lmb_property memory_regions[CONFIG_LMB_MEMORY_REGIONS]; > +struct lmb_property reserved_regions[CONFIG_LMB_RESERVED_REGIONS]; > +#endif > + > +struct lmb lmb = { > +#if IS_ENABLED(CONF