]> git.karo-electronics.de Git - linux-beck.git/commit
libnvdimm: allow a platform to force enable label support
authorDan Williams <dan.j.williams@intel.com>
Sat, 15 Oct 2016 22:33:52 +0000 (15:33 -0700)
committerDan Williams <dan.j.williams@intel.com>
Wed, 19 Oct 2016 15:57:33 +0000 (08:57 -0700)
commit42237e393f64d619ed56e17fbf8fd27526485695
tree51789f92c92ae65b02ef4e8834c05ee17045b9b8
parent8d7c22ac0c036978a072b7e13c607b5402c474e0
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>
drivers/nvdimm/dimm.c
drivers/nvdimm/dimm_devs.c
drivers/nvdimm/nd.h