Skip to contentSkip to conversation

cxl: Some ABI doc updates

PATCH Superseded Davidlohr Bueso 2 participants 6 messages Jan 13, 2025

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

cover cxl: Some ABI doc updates

Hi,

Two small ABI doc fixes.

Thanks!

Davidlohr Bueso (2):
cxl: Plug typos in ABI doc
cxl: Document missing sysfs files

 Documentation/ABI/testing/sysfs-bus-cxl | 26 +++++++++++++++++++++----
 1 file changed, 22 insertions(+), 4 deletions(-)
Signature · 1 line
2.39.5
#1 lore raw

PATCH 1/2 cxl: Plug typos in ABI doc

Trivially update where necessary.

---
 Documentation/ABI/testing/sysfs-bus-cxl | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
Documentation/ABI/testing/sysfs-bus-cxl +4 -4
index 3f5627a1210a..7bdf0eb79d7c 100644
@@ -1,5 +1,5 @@
 What:		/sys/bus/cxl/flush
-Date:		Januarry, 2022
+Date:		January, 2022
 KernelVersion:	v5.18
 Contact:	[email protected]
 Description:
@@ -33,7 +33,7 @@ Date:		May, 2023
 KernelVersion:	v6.8
 Contact:	[email protected]
 Description:
-		(RO) For CXL host platforms that support "QoS Telemmetry"
+		(RO) For CXL host platforms that support "QoS Telemetry"
 		this attribute conveys a comma delimited list of platform
 		specific cookies that identifies a QoS performance class
 		for the volatile partition of the CXL mem device. These
@@ -60,7 +60,7 @@ Date:		May, 2023
 KernelVersion:	v6.8
 Contact:	[email protected]
 Description:
-		(RO) For CXL host platforms that support "QoS Telemmetry"
+		(RO) For CXL host platforms that support "QoS Telemetry"
 		this attribute conveys a comma delimited list of platform
 		specific cookies that identifies a QoS performance class
 		for the persistent partition of the CXL mem device. These
@@ -423,7 +423,7 @@ Date:		May, 2023
 KernelVersion:	v6.5
 Contact:	[email protected]
 Description:
-		(RO) For CXL host platforms that support "QoS Telemmetry" this
+		(RO) For CXL host platforms that support "QoS Telemetry" this
 		root-decoder-only attribute conveys a platform specific cookie
 		that identifies a QoS performance class for the CXL Window.
 		This class-id can be compared against a similar "qos_class"
Signature · 1 line
2.39.5
#3 lore raw

PATCH 2/2 cxl: Document missing sysfs files

In reply to Davidlohr Bueso

Add to the ABI documentation the payload_max and label_storage_size read-only files, which have been there since the early days.

---
 Documentation/ABI/testing/sysfs-bus-cxl | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
Documentation/ABI/testing/sysfs-bus-cxl +18 -0
index 7bdf0eb79d7c..96c7fffa5442 100644
@@ -18,6 +18,24 @@ Description:
 		specification.
 
 
+What:		/sys/bus/cxl/devices/memX/payload_max
+Date:		December, 2020
+KernelVersion:	v5.12
+Contact:	[email protected]
+Description:
+		(RO) Maximum size (in bytes) of the mailbox command payload
+		registers. Linux caps this at 1Mb if the device reports a
+		larger size.
+
+
+What:		/sys/bus/cxl/devices/memX/label_storage_size
+Date:		May, 2021
+KernelVersion:	v5.13
+Contact:	[email protected]
+Description:
+		(RO) Size (in bytes) of the Label Storage Area (LSA).
+
+
 What:		/sys/bus/cxl/devices/memX/ram/size
 Date:		December, 2020
 KernelVersion:	v5.12
Signature · 1 line
2.39.5
#4 lore raw

Re: [PATCH 2/2] cxl: Document missing sysfs files

Quoted 14 lines · On Sun, 12 Jan 2025 18:52:40 -0800 Davidlohr Bueso <[email protected]> wrote:

Add to the ABI documentation the payload_max and label_storage_size read-only files, which have been there since the early days.

---
 Documentation/ABI/testing/sysfs-bus-cxl | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
Documentation/ABI/testing/sysfs-bus-cxl +0 -0
index 7bdf0eb79d7c..96c7fffa5442 100644
@@ -18,6 +18,24 @@ Description:
 		specification.

Documentation/ABI/testing/sysfs-bus-cxl Description: · line 28

Quoted 10 lines
Documentation/ABI/testing/sysfs-bus-cxl +8 -0
 
 
+What:		/sys/bus/cxl/devices/memX/payload_max
+Date:		December, 2020
+KernelVersion:	v5.12
+Contact:	[email protected]
+Description:
+		(RO) Maximum size (in bytes) of the mailbox command payload
+		registers. Linux caps this at 1Mb if the device reports a
+		larger size.

Spec currently caps it to 1MiB as well so a device reporting larger is buggy but I guess we don't need to mention that :)
Units wise probably MB or MiB if we are being fusy. I think Mb is mega bit?

MB is slightly more common in ABI docs. Oddly neither MiB or MB shows up much. Mb not there at all.

Quoted 13 lines
Documentation/ABI/testing/sysfs-bus-cxl +10 -0
+
+
+What:		/sys/bus/cxl/devices/memX/label_storage_size
+Date:		May, 2021
+KernelVersion:	v5.13
+Contact:	[email protected]
+Description:
+		(RO) Size (in bytes) of the Label Storage Area (LSA).
+
+
 What:		/sys/bus/cxl/devices/memX/ram/size
 Date:		December, 2020
 KernelVersion:	v5.12
#5 lore raw

Re: [PATCH 2/2] cxl: Document missing sysfs files

Quoted 2 lines · Jonathan Cameron

Spec currently caps it to 1MiB as well so a device reporting larger is buggy but I guess we don't need to mention that :)

Right.

Quoted 1 line

Units wise probably MB or MiB if we are being fusy. I think Mb is mega bit?

Dave, please shout if you want me to s/Mb/MB in a v2 patch, or if you can update it when picking up.

Thanks,
Davidlohr