]> www.infradead.org Git - users/jedix/linux-maple.git/commit
libnvdimm/labels: Introduce the concept of multi-range namespace labels
authorDan Williams <dan.j.williams@intel.com>
Tue, 24 Aug 2021 16:06:29 +0000 (09:06 -0700)
committerDan Williams <dan.j.williams@intel.com>
Tue, 24 Aug 2021 19:08:29 +0000 (12:08 -0700)
commit00ca683e618065e2375b49c91002384735c76d41
treef98138ac6de56e2f9e5c2bbfa241c7004bb20de7
parent96b7220062c8a05b89ddff87ef8e042b977d64b4
libnvdimm/labels: Introduce the concept of multi-range namespace labels

The CXL specification defines a mechanism for namespaces to be comprised
of multiple dis-contiguous ranges. Introduce that concept to the legacy
NVDIMM namespace implementation with a new nsl_set_nrange() helper, that
sets the number of ranges to 1. Once the NVDIMM subsystem supports CXL
labels and updates its namespace capacity provisioning for
dis-contiguous support nsl_set_nrange() can be updated, but in the
meantime CXL label validation requires nrange be non-zero.

Reported-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Link: https://lore.kernel.org/r/162982118939.1124374.9504087573920499391.stgit@dwillia2-desk3.amr.corp.intel.com
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/nvdimm/label.c
drivers/nvdimm/nd.h