Skip to content

RFC allow bootmem to be freed to allocator late

Chris Wright linux-mm lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2bootmem: refactor free_all_bootmem_coremm/bootmem.c+41 -200 replies
2/2bootmem: add free_bootmem_lateinclude/linux/bootmem.h mm/bootmem.c+39 -50 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC PATCH 0/2] allow bootmem to be freed to allocator late

Currently there is no way to release bootmem once the bootmem allocator frees all unreserved memory. This adds the ability to free reserved pages directly to the page allocator after the bootmem allocator metadata is already freed. It's limited in scope since it's still all marked __init, and creates a new entry point free_bootmem_late rather than trying to do this automatically in free_bootmem. Hence the RFC...

With this we are able to do something like allocate swiotlb, and then free it later if we discover we had a hw iommu that doesn't need swiotlb.

 include/linux/bootmem.h |    1 +
 mm/bootmem.c            |   98 ++++++++++++++++++++++++++++++++++++----------
 2 files changed, 77 insertions(+), 22 deletions(-)

thanks,
-chris

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>