aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/ABI/testing/sysfs-class-cxl
diff options
context:
space:
mode:
Diffstat (limited to 'Documentation/ABI/testing/sysfs-class-cxl')
-rw-r--r--Documentation/ABI/testing/sysfs-class-cxl67
1 files changed, 65 insertions, 2 deletions
diff --git a/Documentation/ABI/testing/sysfs-class-cxl b/Documentation/ABI/testing/sysfs-class-cxl
index 554405ec1955..3680364b4048 100644
--- a/Documentation/ABI/testing/sysfs-class-cxl
+++ b/Documentation/ABI/testing/sysfs-class-cxl
@@ -1,3 +1,9 @@
1Note: Attributes that are shared between devices are stored in the directory
2pointed to by the symlink device/.
3Example: The real path of the attribute /sys/class/cxl/afu0.0s/irqs_max is
4/sys/class/cxl/afu0.0s/device/irqs_max, i.e. /sys/class/cxl/afu0.0/irqs_max.
5
6
1Slave contexts (eg. /sys/class/cxl/afu0.0s): 7Slave contexts (eg. /sys/class/cxl/afu0.0s):
2 8
3What: /sys/class/cxl/<afu>/irqs_max 9What: /sys/class/cxl/<afu>/irqs_max
@@ -67,7 +73,7 @@ Contact: linuxppc-dev@lists.ozlabs.org
67Description: read only 73Description: read only
68 Decimal value of the current version of the kernel/user API. 74 Decimal value of the current version of the kernel/user API.
69 75
70What: /sys/class/cxl/<afu>/api_version_com 76What: /sys/class/cxl/<afu>/api_version_compatible
71Date: September 2014 77Date: September 2014
72Contact: linuxppc-dev@lists.ozlabs.org 78Contact: linuxppc-dev@lists.ozlabs.org
73Description: read only 79Description: read only
@@ -75,6 +81,42 @@ Description: read only
75 this this kernel supports. 81 this this kernel supports.
76 82
77 83
84AFU configuration records (eg. /sys/class/cxl/afu0.0/cr0):
85
86An AFU may optionally export one or more PCIe like configuration records, known
87as AFU configuration records, which will show up here (if present).
88
89What: /sys/class/cxl/<afu>/cr<config num>/vendor
90Date: February 2015
91Contact: linuxppc-dev@lists.ozlabs.org
92Description: read only
93 Hexadecimal value of the vendor ID found in this AFU
94 configuration record.
95
96What: /sys/class/cxl/<afu>/cr<config num>/device
97Date: February 2015
98Contact: linuxppc-dev@lists.ozlabs.org
99Description: read only
100 Hexadecimal value of the device ID found in this AFU
101 configuration record.
102
103What: /sys/class/cxl/<afu>/cr<config num>/vendor
104Date: February 2015
105Contact: linuxppc-dev@lists.ozlabs.org
106Description: read only
107 Hexadecimal value of the class code found in this AFU
108 configuration record.
109
110What: /sys/class/cxl/<afu>/cr<config num>/config
111Date: February 2015
112Contact: linuxppc-dev@lists.ozlabs.org
113Description: read only
114 This binary file provides raw access to the AFU configuration
115 record. The format is expected to match the either the standard
116 or extended configuration space defined by the PCIe
117 specification.
118
119
78 120
79Master contexts (eg. /sys/class/cxl/afu0.0m) 121Master contexts (eg. /sys/class/cxl/afu0.0m)
80 122
@@ -106,7 +148,7 @@ Contact: linuxppc-dev@lists.ozlabs.org
106Description: read only 148Description: read only
107 Identifies the CAIA Version the card implements. 149 Identifies the CAIA Version the card implements.
108 150
109What: /sys/class/cxl/<card>/psl_version 151What: /sys/class/cxl/<card>/psl_revision
110Date: September 2014 152Date: September 2014
111Contact: linuxppc-dev@lists.ozlabs.org 153Contact: linuxppc-dev@lists.ozlabs.org
112Description: read only 154Description: read only
@@ -127,3 +169,24 @@ Contact: linuxppc-dev@lists.ozlabs.org
127Description: read only 169Description: read only
128 Will return "user" or "factory" depending on the image loaded 170 Will return "user" or "factory" depending on the image loaded
129 onto the card. 171 onto the card.
172
173What: /sys/class/cxl/<card>/load_image_on_perst
174Date: December 2014
175Contact: linuxppc-dev@lists.ozlabs.org
176Description: read/write
177 Valid entries are "none", "user", and "factory".
178 "none" means PERST will not cause image to be loaded to the
179 card. A power cycle is required to load the image.
180 "none" could be useful for debugging because the trace arrays
181 are preserved.
182 "user" and "factory" means PERST will cause either the user or
183 user or factory image to be loaded.
184 Default is to reload on PERST whichever image the card has
185 loaded.
186
187What: /sys/class/cxl/<card>/reset
188Date: October 2014
189Contact: linuxppc-dev@lists.ozlabs.org
190Description: write only
191 Writing 1 will issue a PERST to card which may cause the card
192 to reload the FPGA depending on load_image_on_perst.