The patch titled Subject: mm: ZONE_DEVICE depends on SPARSEMEM_VMEMMAP has been added to the -mm tree. Its filename is mm-zone_device-depends-on-sparsemem_vmemmap.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/mm-zone_device-depends-on-sparsemem_vmemmap.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/mm-zone_device-depends-on-sparsemem_vmemmap.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Dan Williams <dan.j.williams@xxxxxxxxx> Subject: mm: ZONE_DEVICE depends on SPARSEMEM_VMEMMAP The primary use case for devm_memremap_pages() is to allocate an memmap array from persistent memory. That capabilty requires vmem_altmap which requires SPARSEMEM_VMEMMAP. Also, without SPARSEMEM_VMEMMAP the addition of ZONE_DEVICE expands ZONES_WIDTH and triggers the: "Unfortunate NUMA and NUMA Balancing config, growing page-frame for last_cpupid." ...warning in mm/memory.c. SPARSEMEM_VMEMMAP=n && ZONE_DEVICE=y is not a configuration we should worry about supporting. Signed-off-by: Dan Williams <dan.j.williams@xxxxxxxxx> Reported-by: Vlastimil Babka <vbabka@xxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/Kconfig | 1 + 1 file changed, 1 insertion(+) diff -puN mm/Kconfig~mm-zone_device-depends-on-sparsemem_vmemmap mm/Kconfig --- a/mm/Kconfig~mm-zone_device-depends-on-sparsemem_vmemmap +++ a/mm/Kconfig @@ -653,6 +653,7 @@ config ZONE_DEVICE bool "Device memory (pmem, etc...) hotplug support" if EXPERT depends on MEMORY_HOTPLUG depends on MEMORY_HOTREMOVE + depends on SPARSEMEM_VMEMMAP depends on X86_64 #arch_add_memory() comprehends device memory help _ Patches currently in -mm which might be from dan.j.williams@xxxxxxxxx are list-kill-list_force_poison.patch mm-fix-mixed-zone-detection-in-devm_memremap_pages.patch mm-exclude-zone_device-from-gfp_zone_table.patch mm-zone_device-depends-on-sparsemem_vmemmap.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html