diff options
author | Dan Williams <dan.j.williams@intel.com> | 2015-08-25 02:20:23 +0300 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2015-08-29 06:40:05 +0300 |
commit | 004f1afbe199e6ab20805b95aefd83ccd24bc5c7 (patch) | |
tree | 4c7df96fc10599da6f31639a1835a8ada97ef2d8 /drivers/nvdimm/e820.c | |
parent | 32ab0a3f51701cb37ab960635254d5f84ec3de0a (diff) | |
download | linux-004f1afbe199e6ab20805b95aefd83ccd24bc5c7.tar.xz |
libnvdimm, pmem: direct map legacy pmem by default
The expectation is that the legacy / non-standard pmem discovery method
(e820 type-12) will only ever be used to describe small quantities of
persistent memory. Larger capacities will be described via the ACPI
NFIT. When "allocate struct page from pmem" support is added this default
policy can be overridden by assigning a legacy pmem namespace to a pfn
device, however this would be only be necessary if a platform used the
legacy mechanism to define a very large range.
Cc: Christoph Hellwig <hch@lst.de>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers/nvdimm/e820.c')
-rw-r--r-- | drivers/nvdimm/e820.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/nvdimm/e820.c b/drivers/nvdimm/e820.c index 1b5743ad92db..8282db2ef99e 100644 --- a/drivers/nvdimm/e820.c +++ b/drivers/nvdimm/e820.c @@ -49,6 +49,7 @@ static int e820_pmem_probe(struct platform_device *pdev) ndr_desc.res = p; ndr_desc.attr_groups = e820_pmem_region_attribute_groups; ndr_desc.numa_node = NUMA_NO_NODE; + set_bit(ND_REGION_PAGEMAP, &ndr_desc.flags); if (!nvdimm_pmem_region_create(nvdimm_bus, &ndr_desc)) goto err; } |