cxl: Add decoders_committed sysfs attribute to cxl_port
authorDave Jiang <dave.jiang@intel.com>
Mon, 16 Oct 2023 17:57:54 +0000 (10:57 -0700)
committerDan Williams <dan.j.williams@intel.com>
Sat, 28 Oct 2023 03:29:41 +0000 (20:29 -0700)
commit05e37b2138a6deb1f23daf1282dc86b29968a1ab
tree190c9abcbf65fe7f5892732154524024e1d059ce
parent458ba8189cb4380aa6a6cc4d52ab067f80a64829
cxl: Add decoders_committed sysfs attribute to cxl_port

This attribute allows cxl-cli to determine whether there are decoders
committed to a memdev.  This is only a snapshot of the state, and
doesn't offer any protection or serialization against a concurrent
disable-region operation.

Reviewed-by: Jim Harris <jim.harris@samsung.com>
Suggested-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Link: https://lore.kernel.org/r/169747907439.272156.10261062080830155662.stgit@djiang5-mobl3
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Documentation/ABI/testing/sysfs-bus-cxl
drivers/cxl/core/port.c