[PATCH v6 9/9] Documentation/ABI: Document CXL memdev cxl_reset

From: Srirangan Madhavan

Date: Thu May 28 2026 - 04:44:00 EST


Document the write-only cxl_reset attribute under CXL memdev devices.
The attribute is visible only when the memdev's PCI parent advertises
CXL Reset capability, and writing a true boolean value requests the CXL
reset flow.

Signed-off-by: Srirangan Madhavan <smadhavan@xxxxxxxxxx>
---
Documentation/ABI/testing/sysfs-bus-cxl | 28 +++++++++++++++++++++++++
1 file changed, 28 insertions(+)

diff --git a/Documentation/ABI/testing/sysfs-bus-cxl b/Documentation/ABI/testing/sysfs-bus-cxl
index 16a9b3d2e2c0..d5d055e7a756 100644
--- a/Documentation/ABI/testing/sysfs-bus-cxl
+++ b/Documentation/ABI/testing/sysfs-bus-cxl
@@ -110,6 +110,34 @@ Description:
affinity for this device.


+What: /sys/bus/cxl/devices/memX/cxl_reset
+Date: May, 2026
+KernelVersion: v7.1
+Contact: linux-cxl@xxxxxxxxxxxxxxx
+Description:
+ (WO) Write a boolean true value, for example "1" or "true", to
+ request CXL Reset for this memory device. The driver performs
+ CXL-specific reset coordination for the target memdev before
+ issuing reset, including any required preparation for affected
+ CXL memory regions and related CXL memory devices.
+
+ CXL Reset control is Function 0 scoped. A write to this
+ attribute resets the CXL.cache and CXL.mem state for all
+ CXL.cache or CXL.mem functions in the same CXL device reset
+ scope, not only the memX device associated with this file.
+
+ The optional CXL Reset Memory Clear operation is not exposed by
+ this attribute.
+
+ A reset fails with -EBUSY if any affected CXL region is
+ online as System RAM or has an active region driver bound.
+ Userspace must first quiesce and release affected CXL memory
+ mappings.
+
+ If this file is not present, then CXL Reset is not supported
+ for the device.
+
+
What: /sys/bus/cxl/devices/memX/security/state
Date: June, 2023
KernelVersion: v6.5
--
2.43.0