diff options
author | Dan Williams <dan.j.williams@intel.com> | 2015-08-24 19:20:23 -0400 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2015-08-28 23:40:05 -0400 |
commit | 004f1afbe199e6ab20805b95aefd83ccd24bc5c7 (patch) | |
tree | 4c7df96fc10599da6f31639a1835a8ada97ef2d8 /drivers/nvdimm/region_devs.c | |
parent | 32ab0a3f51701cb37ab960635254d5f84ec3de0a (diff) | |
download | linux-004f1afbe199e6ab20805b95aefd83ccd24bc5c7.tar.gz linux-004f1afbe199e6ab20805b95aefd83ccd24bc5c7.tar.bz2 linux-004f1afbe199e6ab20805b95aefd83ccd24bc5c7.zip |
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/region_devs.c')
-rw-r--r-- | drivers/nvdimm/region_devs.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/nvdimm/region_devs.c b/drivers/nvdimm/region_devs.c index da4338154ad2..529f3f02e7b2 100644 --- a/drivers/nvdimm/region_devs.c +++ b/drivers/nvdimm/region_devs.c @@ -758,6 +758,7 @@ static struct nd_region *nd_region_create(struct nvdimm_bus *nvdimm_bus, nd_region->provider_data = ndr_desc->provider_data; nd_region->nd_set = ndr_desc->nd_set; nd_region->num_lanes = ndr_desc->num_lanes; + nd_region->flags = ndr_desc->flags; nd_region->ro = ro; nd_region->numa_node = ndr_desc->numa_node; ida_init(&nd_region->ns_ida); |