linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [RFC PATCH 0/2] allow bootmem to be freed to allocator late
@ 2009-10-23 17:10 Chris Wright
  2009-10-23 17:10 ` [RFC PATCH 1/2] bootmem: refactor free_all_bootmem_core Chris Wright
  2009-10-23 17:10 ` [RFC PATCH 2/2] bootmem: add free_bootmem_late Chris Wright
  0 siblings, 2 replies; 3+ messages in thread
From: Chris Wright @ 2009-10-23 17:10 UTC (permalink / raw)
  To: linux-mm; +Cc: David Woodhouse, FUJITA Tomonori, iommu, linux-kernel

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 majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-10-23 17:11 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-10-23 17:10 [RFC PATCH 0/2] allow bootmem to be freed to allocator late Chris Wright
2009-10-23 17:10 ` [RFC PATCH 1/2] bootmem: refactor free_all_bootmem_core Chris Wright
2009-10-23 17:10 ` [RFC PATCH 2/2] bootmem: add free_bootmem_late Chris Wright

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox