libnvdimm: introduce 'flags' attribute for DIMM 'lock' and 'alias' status
authorDan Williams <dan.j.williams@intel.com>
Mon, 25 Sep 2017 17:24:26 +0000 (10:24 -0700)
committerDan Williams <dan.j.williams@intel.com>
Sat, 7 Oct 2017 17:04:06 +0000 (10:04 -0700)
commitefbf6f50ada168b68f5e3de474bc8dee4a02d046
tree411d9aafc359561708f056c67951d22f9ac8bbaf
parent4b27db7e26cdb9deb4a211e963e2993fde0110cb
libnvdimm: introduce 'flags' attribute for DIMM 'lock' and 'alias' status

Given that we now how have two mechanisms for a DIMM to indicate that it
is locked:

    * NVDIMM_FAMILY_INTEL 'get_config_size' _DSM command

    * ACPI 6.2 Label Storage Read / Write commands

...export the generic libnvdimm DIMM status in a new 'flags' attribute.

This attribute can also reflect the 'alias' state which indicates
whether the nvdimm core is enforcing labels for aliased-region-capacity
that the given dimm is an interleave-set member.

Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/nvdimm/dimm_devs.c