cxl/region: Add a 'uuid' attribute
authorBen Widawsky <bwidawsk@kernel.org>
Thu, 27 May 2021 20:30:41 +0000 (13:30 -0700)
committerDan Williams <dan.j.williams@intel.com>
Mon, 25 Jul 2022 19:18:06 +0000 (12:18 -0700)
commitdd5ba0ebbdc414f4dda4dc4ec076f46fb6f26ffd
treeb7ef6ad525ee44eadd80f382ab5adbace28b8837
parent779dd20cfb56c510f89877cca45529fa9f8bc450
cxl/region: Add a 'uuid' attribute

The process of provisioning a region involves triggering the creation of
a new region object, pouring in the configuration, and then binding that
configured object to the region driver to start its operation. For
persistent memory regions the CXL specification mandates that it
identified by a uuid. Add an ABI for userspace to specify a region's
uuid.

Signed-off-by: Ben Widawsky <bwidawsk@kernel.org>
[djbw: simplify locking]
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Link: https://lore.kernel.org/r/165784334465.1758207.8224025435884752570.stgit@dwillia2-xfh.jf.intel.com
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Documentation/ABI/testing/sysfs-bus-cxl
drivers/cxl/core/region.c
drivers/cxl/cxl.h