libnvdimm: handle locked label storage areas
authorDan Williams <dan.j.williams@intel.com>
Thu, 4 May 2017 18:47:22 +0000 (11:47 -0700)
committerDan Williams <dan.j.williams@intel.com>
Thu, 4 May 2017 22:41:39 +0000 (15:41 -0700)
commit9d62ed96511823fa9c2ac7a819d7b4be22a9a6de
tree960201b66f5fb6733dda4ab6b274fe6fafcf0e29
parent8f078b38dd382710884ce7abd31a1935c440e6f8
libnvdimm: handle locked label storage areas

Per the latest version of the "NVDIMM DSM Interface Example" [1], the
label data retrieval routine can report a "locked" status. In this case
all regions associated with that DIMM are disabled until the label area
is unlocked. Provide generic libnvdimm enabling for NVDIMMs with label
data area locking capabilities.

[1]: http://pmem.io/documents/

Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/acpi/nfit/core.c
drivers/nvdimm/dimm.c
drivers/nvdimm/dimm_devs.c
drivers/nvdimm/namespace_devs.c
include/uapi/linux/ndctl.h