libnvdimm/labels: Introduce CXL labels
authorDan Williams <dan.j.williams@intel.com>
Thu, 9 Sep 2021 05:12:04 +0000 (22:12 -0700)
committerDan Williams <dan.j.williams@intel.com>
Tue, 21 Sep 2021 20:44:56 +0000 (13:44 -0700)
commit5af96835e4dafd21a766fd7a8e583ec7abbfe98c
treec0518fb5d426b127a23029acb8ea690d719d63fe
parent540ccaa2e4dd6d44dcd9305a007078fda597af02
libnvdimm/labels: Introduce CXL labels

Now that all of use sites of label data have been converted to nsl_*
helpers, introduce the CXL label format. The ->cxl flag in
nvdimm_drvdata indicates the label format the device expects. A
follow-on patch allows a bus provider to select the label style.

Note that the EFI definition of the labels represents the Linux "claim
class" with a GUID. The CXL definition of the labels stores the same
identifier in UUID byte order.

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