diff options
author | Dan Williams <dan.j.williams@intel.com> | 2016-10-16 00:33:52 +0200 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2016-10-19 17:57:33 +0200 |
commit | 42237e393f64d619ed56e17fbf8fd27526485695 (patch) | |
tree | 51789f92c92ae65b02ef4e8834c05ee17045b9b8 /drivers/nvdimm/nd.h | |
parent | libnvdimm: use generic iostat interfaces (diff) | |
download | linux-42237e393f64d619ed56e17fbf8fd27526485695.tar.xz linux-42237e393f64d619ed56e17fbf8fd27526485695.zip |
libnvdimm: allow a platform to force enable label support
Platforms like QEMU-KVM implement an NFIT table and label DSMs.
However, since that environment does not define an aliased
configuration, the labels are currently ignored and the kernel registers
a single full-sized pmem-namespace per region. Now that the kernel
supports sub-divisions of pmem regions the labels have a purpose.
Arrange for the labels to be honored when we find an existing / valid
namespace index block.
Cc: <qemu-devel@nongnu.org>
Cc: Haozhong Zhang <haozhong.zhang@intel.com>
Cc: Xiao Guangrong <guangrong.xiao@linux.intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers/nvdimm/nd.h')
-rw-r--r-- | drivers/nvdimm/nd.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/nvdimm/nd.h b/drivers/nvdimm/nd.h index 065abf1b8f32..35dd75057e16 100644 --- a/drivers/nvdimm/nd.h +++ b/drivers/nvdimm/nd.h @@ -238,6 +238,7 @@ int nvdimm_set_config_data(struct nvdimm_drvdata *ndd, size_t offset, void *buf, size_t len); long nvdimm_clear_poison(struct device *dev, phys_addr_t phys, unsigned int len); +void nvdimm_set_aliasing(struct device *dev); struct nd_btt *to_nd_btt(struct device *dev); struct nd_gen_sb { |