On Mon, Dec 21, 2015 at 1:44 PM, Dan Williams <dan.j.williams@xxxxxxxxx> wrote: > In support of providing struct page for large persistent memory > capacities, use struct vmem_altmap to change the default policy for > allocating memory for the memmap array. The default vmemmap_populate() > allocates page table storage area from the page allocator. Given Nitpick, I think you mean 'memmap storage area' here? Page table storage area still allocated from DRAM even after vmem_altmap introduced. Regards, Bob > persistent memory capacities relative to DRAM it may not be feasible to > store the memmap in 'System Memory'. Instead vmem_altmap represents > pre-allocated "device pages" to satisfy vmemmap_alloc_block_buf() > requests. > > Cc: x86@xxxxxxxxxx > Cc: Thomas Gleixner <tglx@xxxxxxxxxxxxx> > Cc: Ingo Molnar <mingo@xxxxxxxxxx> > Cc: "H. Peter Anvin" <hpa@xxxxxxxxx> > Cc: Dave Hansen <dave.hansen@xxxxxxxxxxxxxxx> > Cc: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> > Reported-by: kbuild test robot <lkp@xxxxxxxxx> > Signed-off-by: Dan Williams <dan.j.williams@xxxxxxxxx> > --- > arch/x86/mm/init_64.c | 33 ++++++++++++++--- > drivers/nvdimm/pmem.c | 6 ++- > include/linux/memory_hotplug.h | 3 +- > include/linux/memremap.h | 39 ++++++++++++++++++--- > include/linux/mm.h | 9 ++++- > kernel/memremap.c | 72 +++++++++++++++++++++++++++++++++++++- > mm/memory_hotplug.c | 67 +++++++++++++++++++++++++---------- > mm/page_alloc.c | 11 +++++- > mm/sparse-vmemmap.c | 76 +++++++++++++++++++++++++++++++++++++++- > mm/sparse.c | 8 +++- > 10 files changed, 282 insertions(+), 42 deletions(-) > -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@xxxxxxxxx. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"dont@xxxxxxxxx"> email@xxxxxxxxx </a>