Skip to content

Commit 71af75b

Browse files
committed
Merge branch 'for-5.15-printk-index' into for-linus
2 parents fe8e3ee + bc17bed commit 71af75b

File tree

10,024 files changed

+755516
-204782
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

10,024 files changed

+755516
-204782
lines changed
Lines changed: 182 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,182 @@
1+
What: /sys/bus/iio/devices/iio:deviceX/buffer/length
2+
KernelVersion: 2.6.35
3+
4+
Description:
5+
Number of scans contained by the buffer.
6+
7+
Since Kernel 5.11, multiple buffers are supported.
8+
so, it is better to use, instead:
9+
/sys/bus/iio/devices/iio:deviceX/bufferY/length
10+
11+
What: /sys/bus/iio/devices/iio:deviceX/buffer/enable
12+
KernelVersion: 2.6.35
13+
14+
Description:
15+
Actually start the buffer capture up. Will start trigger
16+
if first device and appropriate.
17+
18+
Since Kernel 5.11, multiple buffers are supported.
19+
so, it is better to use, instead:
20+
/sys/bus/iio/devices/iio:deviceX/bufferY/enable
21+
22+
What: /sys/bus/iio/devices/iio:deviceX/scan_elements
23+
KernelVersion: 2.6.37
24+
25+
Description:
26+
Directory containing interfaces for elements that will be
27+
captured for a single triggered sample set in the buffer.
28+
29+
Since kernel 5.11 the scan_elements attributes are merged into
30+
the bufferY directory, to be configurable per buffer.
31+
32+
What: /sys/.../iio:deviceX/scan_elements/in_accel_x_en
33+
What: /sys/.../iio:deviceX/scan_elements/in_accel_y_en
34+
What: /sys/.../iio:deviceX/scan_elements/in_accel_z_en
35+
What: /sys/.../iio:deviceX/scan_elements/in_anglvel_x_en
36+
What: /sys/.../iio:deviceX/scan_elements/in_anglvel_y_en
37+
What: /sys/.../iio:deviceX/scan_elements/in_anglvel_z_en
38+
What: /sys/.../iio:deviceX/scan_elements/in_magn_x_en
39+
What: /sys/.../iio:deviceX/scan_elements/in_magn_y_en
40+
What: /sys/.../iio:deviceX/scan_elements/in_magn_z_en
41+
What: /sys/.../iio:deviceX/scan_elements/in_rot_from_north_magnetic_en
42+
What: /sys/.../iio:deviceX/scan_elements/in_rot_from_north_true_en
43+
What: /sys/.../iio:deviceX/scan_elements/in_rot_from_north_magnetic_tilt_comp_en
44+
What: /sys/.../iio:deviceX/scan_elements/in_rot_from_north_true_tilt_comp_en
45+
What: /sys/.../iio:deviceX/scan_elements/in_timestamp_en
46+
What: /sys/.../iio:deviceX/scan_elements/in_voltageY_supply_en
47+
What: /sys/.../iio:deviceX/scan_elements/in_voltageY_en
48+
What: /sys/.../iio:deviceX/scan_elements/in_voltageY-voltageZ_en
49+
What: /sys/.../iio:deviceX/scan_elements/in_voltageY_i_en
50+
What: /sys/.../iio:deviceX/scan_elements/in_voltageY_q_en
51+
What: /sys/.../iio:deviceX/scan_elements/in_voltage_i_en
52+
What: /sys/.../iio:deviceX/scan_elements/in_voltage_q_en
53+
What: /sys/.../iio:deviceX/scan_elements/in_incli_x_en
54+
What: /sys/.../iio:deviceX/scan_elements/in_incli_y_en
55+
What: /sys/.../iio:deviceX/scan_elements/in_pressureY_en
56+
What: /sys/.../iio:deviceX/scan_elements/in_pressure_en
57+
What: /sys/.../iio:deviceX/scan_elements/in_rot_quaternion_en
58+
What: /sys/.../iio:deviceX/scan_elements/in_proximity_en
59+
KernelVersion: 2.6.37
60+
61+
Description:
62+
Scan element control for triggered data capture.
63+
64+
Since kernel 5.11 the scan_elements attributes are merged into
65+
the bufferY directory, to be configurable per buffer.
66+
67+
What: /sys/.../iio:deviceX/scan_elements/in_accel_type
68+
What: /sys/.../iio:deviceX/scan_elements/in_anglvel_type
69+
What: /sys/.../iio:deviceX/scan_elements/in_magn_type
70+
What: /sys/.../iio:deviceX/scan_elements/in_incli_type
71+
What: /sys/.../iio:deviceX/scan_elements/in_voltageY_type
72+
What: /sys/.../iio:deviceX/scan_elements/in_voltage_type
73+
What: /sys/.../iio:deviceX/scan_elements/in_voltageY_supply_type
74+
What: /sys/.../iio:deviceX/scan_elements/in_voltageY_i_type
75+
What: /sys/.../iio:deviceX/scan_elements/in_voltageY_q_type
76+
What: /sys/.../iio:deviceX/scan_elements/in_voltage_i_type
77+
What: /sys/.../iio:deviceX/scan_elements/in_voltage_q_type
78+
What: /sys/.../iio:deviceX/scan_elements/in_timestamp_type
79+
What: /sys/.../iio:deviceX/scan_elements/in_pressureY_type
80+
What: /sys/.../iio:deviceX/scan_elements/in_pressure_type
81+
What: /sys/.../iio:deviceX/scan_elements/in_rot_quaternion_type
82+
What: /sys/.../iio:deviceX/scan_elements/in_proximity_type
83+
KernelVersion: 2.6.37
84+
85+
Description:
86+
Description of the scan element data storage within the buffer
87+
and hence the form in which it is read from user-space.
88+
Form is [be|le]:[s|u]bits/storagebits[>>shift].
89+
be or le specifies big or little endian. s or u specifies if
90+
signed (2's complement) or unsigned. bits is the number of bits
91+
of data and storagebits is the space (after padding) that it
92+
occupies in the buffer. shift if specified, is the shift that
93+
needs to be applied prior to masking out unused bits. Some
94+
devices put their data in the middle of the transferred elements
95+
with additional information on both sides. Note that some
96+
devices will have additional information in the unused bits
97+
so to get a clean value, the bits value must be used to mask
98+
the buffer output value appropriately. The storagebits value
99+
also specifies the data alignment. So s48/64>>2 will be a
100+
signed 48 bit integer stored in a 64 bit location aligned to
101+
a 64 bit boundary. To obtain the clean value, shift right 2
102+
and apply a mask to zero the top 16 bits of the result.
103+
For other storage combinations this attribute will be extended
104+
appropriately.
105+
106+
Since kernel 5.11 the scan_elements attributes are merged into
107+
the bufferY directory, to be configurable per buffer.
108+
109+
What: /sys/.../iio:deviceX/scan_elements/in_voltageY_index
110+
What: /sys/.../iio:deviceX/scan_elements/in_voltageY_supply_index
111+
What: /sys/.../iio:deviceX/scan_elements/in_voltageY_i_index
112+
What: /sys/.../iio:deviceX/scan_elements/in_voltageY_q_index
113+
What: /sys/.../iio:deviceX/scan_elements/in_voltage_i_index
114+
What: /sys/.../iio:deviceX/scan_elements/in_voltage_q_index
115+
What: /sys/.../iio:deviceX/scan_elements/in_accel_x_index
116+
What: /sys/.../iio:deviceX/scan_elements/in_accel_y_index
117+
What: /sys/.../iio:deviceX/scan_elements/in_accel_z_index
118+
What: /sys/.../iio:deviceX/scan_elements/in_anglvel_x_index
119+
What: /sys/.../iio:deviceX/scan_elements/in_anglvel_y_index
120+
What: /sys/.../iio:deviceX/scan_elements/in_anglvel_z_index
121+
What: /sys/.../iio:deviceX/scan_elements/in_magn_x_index
122+
What: /sys/.../iio:deviceX/scan_elements/in_magn_y_index
123+
What: /sys/.../iio:deviceX/scan_elements/in_magn_z_index
124+
What: /sys/.../iio:deviceX/scan_elements/in_rot_from_north_magnetic_index
125+
What: /sys/.../iio:deviceX/scan_elements/in_rot_from_north_true_index
126+
What: /sys/.../iio:deviceX/scan_elements/in_rot_from_north_magnetic_tilt_comp_index
127+
What: /sys/.../iio:deviceX/scan_elements/in_rot_from_north_true_tilt_comp_index
128+
What: /sys/.../iio:deviceX/scan_elements/in_incli_x_index
129+
What: /sys/.../iio:deviceX/scan_elements/in_incli_y_index
130+
What: /sys/.../iio:deviceX/scan_elements/in_timestamp_index
131+
What: /sys/.../iio:deviceX/scan_elements/in_pressureY_index
132+
What: /sys/.../iio:deviceX/scan_elements/in_pressure_index
133+
What: /sys/.../iio:deviceX/scan_elements/in_rot_quaternion_index
134+
What: /sys/.../iio:deviceX/scan_elements/in_proximity_index
135+
KernelVersion: 2.6.37
136+
Description:
137+
A single positive integer specifying the position of this
138+
scan element in the buffer. Note these are not dependent on
139+
what is enabled and may not be contiguous. Thus for user-space
140+
to establish the full layout these must be used in conjunction
141+
with all _en attributes to establish which channels are present,
142+
and the relevant _type attributes to establish the data storage
143+
format.
144+
145+
Since kernel 5.11 the scan_elements attributes are merged into
146+
the bufferY directory, to be configurable per buffer.
147+
148+
What: /sys/bus/iio/devices/iio:deviceX/buffer/watermark
149+
KernelVersion: 4.2
150+
151+
Description:
152+
A single positive integer specifying the maximum number of scan
153+
elements to wait for.
154+
155+
Poll will block until the watermark is reached.
156+
157+
Blocking read will wait until the minimum between the requested
158+
read amount or the low water mark is available.
159+
160+
Non-blocking read will retrieve the available samples from the
161+
buffer even if there are less samples then watermark level. This
162+
allows the application to block on poll with a timeout and read
163+
the available samples after the timeout expires and thus have a
164+
maximum delay guarantee.
165+
166+
Since Kernel 5.11, multiple buffers are supported.
167+
so, it is better to use, instead:
168+
/sys/bus/iio/devices/iio:deviceX/bufferY/watermark
169+
170+
What: /sys/bus/iio/devices/iio:deviceX/buffer/data_available
171+
KernelVersion: 4.16
172+
173+
Description:
174+
A read-only value indicating the bytes of data available in the
175+
buffer. In the case of an output buffer, this indicates the
176+
amount of empty space available to write data to. In the case of
177+
an input buffer, this indicates the amount of data available for
178+
reading.
179+
180+
Since Kernel 5.11, multiple buffers are supported.
181+
so, it is better to use, instead:
182+
/sys/bus/iio/devices/iio:deviceX/bufferY/data_available

Documentation/ABI/stable/sysfs-class-infiniband

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -731,26 +731,6 @@ Description:
731731
is the irq number of "sdma3", and M is irq number of "sdma4" in
732732
the /proc/interrupts file.
733733

734-
735-
sysfs interface for Intel(R) X722 iWARP i40iw driver
736-
----------------------------------------------------
737-
738-
What: /sys/class/infiniband/i40iwX/hw_rev
739-
What: /sys/class/infiniband/i40iwX/hca_type
740-
What: /sys/class/infiniband/i40iwX/board_id
741-
Date: Jan, 2016
742-
KernelVersion: v4.10
743-
744-
Description:
745-
=============== ==== ========================
746-
hw_rev: (RO) Hardware revision number
747-
748-
hca_type: (RO) Show HCA type (I40IW)
749-
750-
board_id: (RO) I40IW board ID
751-
=============== ==== ========================
752-
753-
754734
sysfs interface for QLogic qedr NIC Driver
755735
------------------------------------------
756736

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
What: /sys/bus/w1/devices/.../page1
2+
Date: April 2021
3+
Contact: Luiz Sampaio <[email protected]>
4+
Description: read the contents of the page1 of the DS2438
5+
see Documentation/w1/slaves/w1_ds2438.rst for detailed information
6+
Users: any user space application which wants to communicate with DS2438
7+
8+
What: /sys/bus/w1/devices/.../offset
9+
Date: April 2021
10+
Contact: Luiz Sampaio <[email protected]>
11+
Description: write the contents to the offset register of the DS2438
12+
see Documentation/w1/slaves/w1_ds2438.rst for detailed information
13+
Users: any user space application which wants to communicate with DS2438

Documentation/ABI/testing/configfs-usb-gadget-uac2

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ Description:
88
c_chmask capture channel mask
99
c_srate capture sampling rate
1010
c_ssize capture sample size (bytes)
11+
c_sync capture synchronization type (async/adaptive)
12+
fb_max maximum extra bandwidth in async mode
1113
p_chmask playback channel mask
1214
p_srate playback sampling rate
1315
p_ssize playback sample size (bytes)

Documentation/ABI/testing/debugfs-driver-habanalabs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,14 @@ Contact: [email protected]
207207
Description: Sets the PCI power state. Valid values are "1" for D0 and "2"
208208
for D3Hot
209209

210+
What: /sys/kernel/debug/habanalabs/hl<n>/skip_reset_on_timeout
211+
Date: Jun 2021
212+
KernelVersion: 5.13
213+
214+
Description: Sets the skip reset on timeout option for the device. Value of
215+
"0" means device will be reset in case some CS has timed out,
216+
otherwise it will not be reset.
217+
210218
What: /sys/kernel/debug/habanalabs/hl<n>/stop_on_err
211219
Date: Mar 2020
212220
KernelVersion: 5.6

Documentation/ABI/testing/sysfs-bus-counter

Lines changed: 83 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ Description:
5757
What: /sys/bus/counter/devices/counterX/countY/count_mode_available
5858
What: /sys/bus/counter/devices/counterX/countY/error_noise_available
5959
What: /sys/bus/counter/devices/counterX/countY/function_available
60+
What: /sys/bus/counter/devices/counterX/countY/prescaler_available
6061
What: /sys/bus/counter/devices/counterX/countY/signalZ_action_available
6162
KernelVersion: 5.2
6263
@@ -154,6 +155,15 @@ Description:
154155
Count Y. If possible, this should match the name of the
155156
respective channel as it appears in the device datasheet.
156157

158+
What: /sys/bus/counter/devices/counterX/countY/prescaler
159+
KernelVersion: 5.2
160+
161+
Description:
162+
Configure the prescaler value associated with Count Y.
163+
On the FlexTimer, the counter clock source passes through a
164+
prescaler (i.e. a counter). This acts like a clock
165+
divider.
166+
157167
What: /sys/bus/counter/devices/counterX/countY/preset
158168
KernelVersion: 5.2
159169
@@ -193,6 +203,15 @@ Description:
193203
both edges:
194204
Any state transition.
195205

206+
What: /sys/bus/counter/devices/counterX/countY/spike_filter_ns
207+
KernelVersion: 5.14
208+
209+
Description:
210+
If the counter device supports programmable spike filter this
211+
attribute indicates the value in nanoseconds where noise pulses
212+
shorter or equal to configured value are ignored. Value 0 means
213+
filter is disabled.
214+
196215
What: /sys/bus/counter/devices/counterX/name
197216
KernelVersion: 5.2
198217
@@ -215,11 +234,45 @@ Description:
215234
Read-only attribute that indicates the total number of Signals
216235
belonging to the Counter.
217236

218-
What: /sys/bus/counter/devices/counterX/signalY/signal
237+
What: /sys/bus/counter/devices/counterX/signalY/cable_fault
238+
KernelVersion: 5.7
239+
240+
Description:
241+
Read-only attribute that indicates whether a differential
242+
encoder cable fault (not connected or loose wires) is detected
243+
for the respective channel of Signal Y. Valid attribute values
244+
are boolean. Detection must first be enabled via the
245+
corresponding cable_fault_enable attribute.
246+
247+
What: /sys/bus/counter/devices/counterX/signalY/cable_fault_enable
248+
KernelVersion: 5.7
249+
250+
Description:
251+
Whether detection of differential encoder cable faults for the
252+
respective channel of Signal Y is enabled. Valid attribute
253+
values are boolean.
254+
255+
What: /sys/bus/counter/devices/counterX/signalY/filter_clock_prescaler
256+
KernelVersion: 5.7
257+
258+
Description:
259+
Filter clock factor for input Signal Y. This prescaler value
260+
affects the inputs of both quadrature pair signals.
261+
262+
What: /sys/bus/counter/devices/counterX/signalY/index_polarity
219263
KernelVersion: 5.2
220264
221265
Description:
222-
Signal data of Signal Y represented as a string.
266+
Active level of index input Signal Y; irrelevant in
267+
non-synchronous load mode.
268+
269+
What: /sys/bus/counter/devices/counterX/signalY/index_polarity_available
270+
What: /sys/bus/counter/devices/counterX/signalY/synchronous_mode_available
271+
KernelVersion: 5.2
272+
273+
Description:
274+
Discrete set of available values for the respective Signal Y
275+
configuration are listed in this file.
223276

224277
What: /sys/bus/counter/devices/counterX/signalY/name
225278
KernelVersion: 5.2
@@ -228,3 +281,31 @@ Description:
228281
Read-only attribute that indicates the device-specific name of
229282
Signal Y. If possible, this should match the name of the
230283
respective signal as it appears in the device datasheet.
284+
285+
What: /sys/bus/counter/devices/counterX/signalY/signal
286+
KernelVersion: 5.2
287+
288+
Description:
289+
Signal data of Signal Y represented as a string.
290+
291+
What: /sys/bus/counter/devices/counterX/signalY/synchronous_mode
292+
KernelVersion: 5.2
293+
294+
Description:
295+
Configure the counter associated with Signal Y for
296+
non-synchronous or synchronous load mode. Synchronous load mode
297+
cannot be selected in non-quadrature (Pulse-Direction) clock
298+
mode.
299+
300+
non-synchronous:
301+
A logic low level is the active level at this index
302+
input. The index function (as enabled via preset_enable)
303+
is performed directly on the active level of the index
304+
input.
305+
306+
synchronous:
307+
Intended for interfacing with encoder Index output in
308+
quadrature clock mode. The active level is configured
309+
via index_polarity. The index function (as enabled via
310+
preset_enable) is performed synchronously with the
311+
quadrature clock on the active level of the index input.

0 commit comments

Comments
 (0)