diff options
author | Dan Williams <dan.j.williams@intel.com> | 2016-09-16 04:08:05 +0300 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2016-09-21 19:36:36 +0300 |
commit | 4765218db79561ce13922806716eadb138c65439 (patch) | |
tree | 37655a12940abc7196d173834b86e7595c116ddb /drivers/nvdimm/namespace_devs.c | |
parent | 73606afd4603a2f6296cd44c4d2b385916565a58 (diff) |
libnvdimm, namespace: debug invalid interleave-set-cookie values
If platform firmware fails to populate unique / non-zero serial number
data for each nvdimm in an interleave-set it may cause pmem region
initialization to fail. Add a debug message for this case.
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers/nvdimm/namespace_devs.c')
-rw-r--r-- | drivers/nvdimm/namespace_devs.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/nvdimm/namespace_devs.c b/drivers/nvdimm/namespace_devs.c index 6b0449bd7720..4f0a21308417 100644 --- a/drivers/nvdimm/namespace_devs.c +++ b/drivers/nvdimm/namespace_devs.c @@ -1584,8 +1584,10 @@ static int find_pmem_label_set(struct nd_region *nd_region, int rc = -ENODEV, l; u16 i; - if (cookie == 0) + if (cookie == 0) { + dev_dbg(&nd_region->dev, "invalid interleave-set-cookie\n"); return -ENXIO; + } /* * Find a complete set of labels by uuid. By definition we can start |