On Sun, 13 Oct 2024 at 23:21, Tom Rini <[email protected]> wrote: > > On Sun, Oct 13, 2024 at 04:25:09PM +0530, Sughosh Ganu wrote: > > > Add a flag LMB_NONOTIFY that can be passed to the LMB API's for > > reserving memory. This will then result in no notification being sent > > from the LMB module for the changes to the LMB's memory map. > > > > Signed-off-by: Sughosh Ganu <[email protected]> > > Can you please elaborate on what we need this flag for, for example what > the valid situation for it is? We should be updating (or adding comments > such that updates are automatic..) to doc/api/lmb.rst as well. Thanks.
The flag is used to prevent notifying the EFI code about the change in the LMB memory map when the alloc/free request originates in the EFI memory module. The EFI memory module adds the memory region to its memory map as part of the alloc/free operation. The idea is that the LMB module should notify EFI about changes to its memory map when these changes are initiated from non-EFI consumers of memory. -sughosh > > -- > Tom

