From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lb0-f177.google.com (mail-lb0-f177.google.com [209.85.217.177]) by kanga.kvack.org (Postfix) with ESMTP id 9A0FF82FD8 for ; Sun, 27 Dec 2015 03:40:10 -0500 (EST) Received: by mail-lb0-f177.google.com with SMTP id bc4so80844592lbc.2 for ; Sun, 27 Dec 2015 00:40:10 -0800 (PST) Received: from mail-lb0-x22a.google.com (mail-lb0-x22a.google.com. [2a00:1450:4010:c04::22a]) by mx.google.com with ESMTPS id e72si24061377lfi.27.2015.12.27.00.40.09 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 27 Dec 2015 00:40:09 -0800 (PST) Received: by mail-lb0-x22a.google.com with SMTP id pv2so95447600lbb.1 for ; Sun, 27 Dec 2015 00:40:09 -0800 (PST) MIME-Version: 1.0 In-Reply-To: <20151221054433.34542.73933.stgit@dwillia2-desk3.jf.intel.com> References: <20151221054406.34542.64393.stgit@dwillia2-desk3.jf.intel.com> <20151221054433.34542.73933.stgit@dwillia2-desk3.jf.intel.com> Date: Sun, 27 Dec 2015 16:40:08 +0800 Message-ID: Subject: Re: [-mm PATCH v4 05/18] x86, mm: introduce vmem_altmap to augment vmemmap_populate() From: Bob Liu Content-Type: text/plain; charset=UTF-8 Sender: owner-linux-mm@kvack.org List-ID: To: Dan Williams Cc: Andrew Morton , Dave Hansen , kbuild test robot , linux-nvdimm@lists.01.org, x86@kernel.org, Linux-MM , Ingo Molnar , "H. Peter Anvin" , Thomas Gleixner On Mon, Dec 21, 2015 at 1:44 PM, Dan Williams 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@kernel.org > Cc: Thomas Gleixner > Cc: Ingo Molnar > Cc: "H. Peter Anvin" > Cc: Dave Hansen > Cc: Andrew Morton > Reported-by: kbuild test robot > Signed-off-by: Dan Williams > --- > 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@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org