Skip to content

Commit 5c904c6

Browse files
committed
Merge tag 'char-misc-5.16-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc
Pull char/misc driver updates from Greg KH: "Here is the big set of char and misc and other tiny driver subsystem updates for 5.16-rc1. Loads of things in here, all of which have been in linux-next for a while with no reported problems (except for one called out below.) Included are: - habanana labs driver updates, including dma_buf usage, reviewed and acked by the dma_buf maintainers - iio driver update (going through this tree not staging as they really do not belong going through that tree anymore) - counter driver updates - hwmon driver updates that the counter drivers needed, acked by the hwmon maintainer - xillybus driver updates - binder driver updates - extcon driver updates - dma_buf module namespaces added (will cause a build error in arm64 for allmodconfig, but that change is on its way through the drm tree) - lkdtm driver updates - pvpanic driver updates - phy driver updates - virt acrn and nitr_enclaves driver updates - smaller char and misc driver updates" * tag 'char-misc-5.16-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc: (386 commits) comedi: dt9812: fix DMA buffers on stack comedi: ni_usb6501: fix NULL-deref in command paths arm64: errata: Enable TRBE workaround for write to out-of-range address arm64: errata: Enable workaround for TRBE overwrite in FILL mode coresight: trbe: Work around write to out of range coresight: trbe: Make sure we have enough space coresight: trbe: Add a helper to determine the minimum buffer size coresight: trbe: Workaround TRBE errata overwrite in FILL mode coresight: trbe: Add infrastructure for Errata handling coresight: trbe: Allow driver to choose a different alignment coresight: trbe: Decouple buffer base from the hardware base coresight: trbe: Add a helper to pad a given buffer area coresight: trbe: Add a helper to calculate the trace generated coresight: trbe: Defer the probe on offline CPUs coresight: trbe: Fix incorrect access of the sink specific data coresight: etm4x: Add ETM PID for Kryo-5XX coresight: trbe: Prohibit trace before disabling TRBE coresight: trbe: End the AUX handle on truncation coresight: trbe: Do not truncate buffer on IRQ coresight: trbe: Fix handling of spurious interrupts ...
2 parents 5cd4dc4 + 536de74 commit 5c904c6

393 files changed

Lines changed: 22124 additions & 6909 deletions

File tree

Some content is hidden

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

Documentation/ABI/testing/debugfs-driver-habanalabs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,12 @@ Description: Gets the state dump occurring on a CS timeout or failure.
226226
Writing an integer X discards X state dumps, so that the
227227
next read would return X+1-st newest state dump.
228228

229+
What: /sys/kernel/debug/habanalabs/hl<n>/timeout_locked
230+
Date: Sep 2021
231+
KernelVersion: 5.16
232+
Contact: obitton@habana.ai
233+
Description: Sets the command submission timeout value in seconds.
234+
229235
What: /sys/kernel/debug/habanalabs/hl<n>/stop_on_err
230236
Date: Mar 2020
231237
KernelVersion: 5.6

Documentation/ABI/testing/sysfs-bus-counter

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,27 @@ Description:
203203
both edges:
204204
Any state transition.
205205

206+
What: /sys/bus/counter/devices/counterX/countY/ceiling_component_id
207+
What: /sys/bus/counter/devices/counterX/countY/floor_component_id
208+
What: /sys/bus/counter/devices/counterX/countY/count_mode_component_id
209+
What: /sys/bus/counter/devices/counterX/countY/direction_component_id
210+
What: /sys/bus/counter/devices/counterX/countY/enable_component_id
211+
What: /sys/bus/counter/devices/counterX/countY/error_noise_component_id
212+
What: /sys/bus/counter/devices/counterX/countY/prescaler_component_id
213+
What: /sys/bus/counter/devices/counterX/countY/preset_component_id
214+
What: /sys/bus/counter/devices/counterX/countY/preset_enable_component_id
215+
What: /sys/bus/counter/devices/counterX/countY/signalZ_action_component_id
216+
What: /sys/bus/counter/devices/counterX/signalY/cable_fault_component_id
217+
What: /sys/bus/counter/devices/counterX/signalY/cable_fault_enable_component_id
218+
What: /sys/bus/counter/devices/counterX/signalY/filter_clock_prescaler_component_id
219+
What: /sys/bus/counter/devices/counterX/signalY/index_polarity_component_id
220+
What: /sys/bus/counter/devices/counterX/signalY/synchronous_mode_component_id
221+
KernelVersion: 5.16
222+
Contact: linux-iio@vger.kernel.org
223+
Description:
224+
Read-only attribute that indicates the component ID of the
225+
respective extension or Synapse.
226+
206227
What: /sys/bus/counter/devices/counterX/countY/spike_filter_ns
207228
KernelVersion: 5.14
208229
Contact: linux-iio@vger.kernel.org
@@ -212,6 +233,14 @@ Description:
212233
shorter or equal to configured value are ignored. Value 0 means
213234
filter is disabled.
214235

236+
What: /sys/bus/counter/devices/counterX/events_queue_size
237+
KernelVersion: 5.16
238+
Contact: linux-iio@vger.kernel.org
239+
Description:
240+
Size of the Counter events queue in number of struct
241+
counter_event data structures. The number of elements will be
242+
rounded-up to a power of 2.
243+
215244
What: /sys/bus/counter/devices/counterX/name
216245
KernelVersion: 5.2
217246
Contact: linux-iio@vger.kernel.org
@@ -286,7 +315,14 @@ What: /sys/bus/counter/devices/counterX/signalY/signal
286315
KernelVersion: 5.2
287316
Contact: linux-iio@vger.kernel.org
288317
Description:
289-
Signal data of Signal Y represented as a string.
318+
Signal level state of Signal Y. The following signal level
319+
states are available:
320+
321+
low:
322+
Low level state.
323+
324+
high:
325+
High level state.
290326

291327
What: /sys/bus/counter/devices/counterX/signalY/synchronous_mode
292328
KernelVersion: 5.2
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
What: /sys/bus/fsi/devices/XX.XX.00:06/sbefifoX/timeout
2+
KernelVersion: 5.15
3+
Contact: eajames@linux.ibm.com
4+
Description:
5+
Indicates whether or not this SBE device has experienced a
6+
timeout; i.e. the SBE did not respond within the time allotted
7+
by the driver. A value of 1 indicates that a timeout has
8+
ocurred and no transfers have completed since the timeout. A
9+
value of 0 indicates that no timeout has ocurred, or if one
10+
has, more recent transfers have completed successful.

Documentation/ABI/testing/sysfs-bus-iio

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -429,6 +429,7 @@ What: /sys/bus/iio/devices/iio:deviceX/in_angl_scale
429429
What: /sys/bus/iio/devices/iio:deviceX/in_intensity_x_scale
430430
What: /sys/bus/iio/devices/iio:deviceX/in_intensity_y_scale
431431
What: /sys/bus/iio/devices/iio:deviceX/in_intensity_z_scale
432+
What: /sys/bus/iio/devices/iio:deviceX/in_concentration_co2_scale
432433
KernelVersion: 2.6.35
433434
Contact: linux-iio@vger.kernel.org
434435
Description:
@@ -1957,3 +1958,44 @@ Description:
19571958
Specify the percent for light sensor relative to the channel
19581959
absolute value that a data field should change before an event
19591960
is generated. Units are a percentage of the prior reading.
1961+
1962+
What: /sys/bus/iio/devices/iio:deviceX/calibration_auto_enable
1963+
Date: June 2020
1964+
KernelVersion: 5.8
1965+
Contact: linux-iio@vger.kernel.org
1966+
Description:
1967+
Some sensors have the ability to apply auto calibration at
1968+
runtime. For example, it may be necessary to compensate for
1969+
contaminant build-up in a measurement chamber or optical
1970+
element deterioration that would otherwise lead to sensor drift.
1971+
1972+
Writing 1 or 0 to this attribute will respectively activate or
1973+
deactivate this auto calibration function.
1974+
1975+
Upon reading, the current status is returned.
1976+
1977+
What: /sys/bus/iio/devices/iio:deviceX/calibration_forced_value
1978+
Date: June 2020
1979+
KernelVersion: 5.8
1980+
Contact: linux-iio@vger.kernel.org
1981+
Description:
1982+
Some sensors have the ability to apply a manual calibration using
1983+
a known measurement value, perhaps obtained from an external
1984+
reference device.
1985+
1986+
Writing a value to this function will force such a calibration
1987+
change. For the scd30 the value should be from the range
1988+
[400 1 2000].
1989+
1990+
Note for the scd30 that a valid value may only be obtained once
1991+
it is has been written. Until then any read back of this value
1992+
should be ignored. As for the scd4x an error will be returned
1993+
immediately if the manual calibration has failed.
1994+
1995+
What: /sys/bus/iio/devices/iio:deviceX/calibration_forced_value_available
1996+
KernelVersion: 5.15
1997+
Contact: linux-iio@vger.kernel.org
1998+
Description:
1999+
Available range for the forced calibration value, expressed as:
2000+
2001+
- a range specified as "[min step max]"
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
What: /sys/bus/iio/devices/iio:deviceX/in_concentration_co2_calibration_factory
2+
Date: August 2021
3+
KernelVersion: 5.16
4+
Contact: Jacopo Mondi <jacopo@jmondi.org>
5+
Description:
6+
Writing '1' triggers a 'Factory' calibration cycle.
7+
8+
What: /sys/bus/iio/devices/iio:deviceX/in_concentration_co2_calibration_background
9+
Date: August 2021
10+
KernelVersion: 5.16
11+
Contact: Jacopo Mondi <jacopo@jmondi.org>
12+
Description:
13+
Writing '1' triggers a 'Background' calibration cycle.
14+
15+
What: /sys/bus/iio/devices/iio:deviceX/error_status_available
16+
Date: August 2021
17+
KernelVersion: 5.16
18+
Contact: Jacopo Mondi <jacopo@jmondi.org>
19+
Description:
20+
Reading returns the list of possible chip error status.
21+
Available options are:
22+
- 'error_fatal': Analog front-end initialization error
23+
- 'error_i2c': Read/write to non-existing register
24+
- 'error_algorithm': Corrupted parameters
25+
- 'error_calibration': Calibration has failed
26+
- 'error_self_diagnostic': Internal interface failure
27+
- 'error_out_of_range': Measured concentration out of scale
28+
- 'error_memory': Error during memory operations
29+
- 'error_no_measurement': Cleared at first measurement
30+
- 'error_low_voltage': Sensor regulated voltage too low
31+
- 'error_measurement_timeout': Unable to complete measurement
32+
33+
What: /sys/bus/iio/devices/iio:deviceX/error_status
34+
Date: August 2021
35+
KernelVersion: 5.16
36+
Contact: Jacopo Mondi <jacopo@jmondi.org>
37+
Description:
38+
Reading returns the current chip error status.

Documentation/ABI/testing/sysfs-bus-iio-scd30

Lines changed: 0 additions & 34 deletions
This file was deleted.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
What: /sys/bus/iio/devices/iio:deviceX/fault_ovuv
2+
KernelVersion: 5.11
3+
Contact: linux-iio@vger.kernel.org
4+
Description:
5+
Overvoltage or Undervoltage Input fault. The internal circuitry
6+
is protected from excessive voltages applied to the thermocouple
7+
cables at FORCE+, FORCE2, RTDIN+ & RTDIN-. This circuitry turn
8+
off when the input voltage is negative or greater than VDD.
9+
10+
Reading returns '1' if input voltage is negative or greater
11+
than VDD, otherwise '0'.
12+
13+
What: /sys/bus/iio/devices/iio:deviceX/in_filter_notch_center_frequency
14+
KernelVersion: 5.11
15+
Contact: linux-iio@vger.kernel.org
16+
Description:
17+
Notch frequency in Hz for a noise rejection filter. Used i.e for
18+
line noise rejection.
19+
20+
Valid notch filter values are 50 Hz and 60 Hz.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
What: /sys/bus/platform/devices/occ-hwmon.X/ffdc
2+
KernelVersion: 5.15
3+
Contact: eajames@linux.ibm.com
4+
Description:
5+
Contains the First Failure Data Capture from the SBEFIFO
6+
hardware, if there is any from a previous transfer. Otherwise,
7+
the file is empty. The data is cleared when it's been
8+
completely read by a user. As the name suggests, only the data
9+
from the first error is saved, until it's cleared upon read. The OCC hwmon driver, running on
10+
a Baseboard Management Controller (BMC), communicates with
11+
POWER9 and up processors over the Self-Boot Engine (SBE) FIFO.
12+
In many error conditions, the SBEFIFO will return error data
13+
indicating the type of error and system state, etc.

Documentation/ABI/testing/sysfs-bus-soundwire-master

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
What: /sys/bus/soundwire/devices/sdw-master-N/revision
2-
/sys/bus/soundwire/devices/sdw-master-N/clk_stop_modes
3-
/sys/bus/soundwire/devices/sdw-master-N/clk_freq
4-
/sys/bus/soundwire/devices/sdw-master-N/clk_gears
5-
/sys/bus/soundwire/devices/sdw-master-N/default_col
6-
/sys/bus/soundwire/devices/sdw-master-N/default_frame_rate
7-
/sys/bus/soundwire/devices/sdw-master-N/default_row
8-
/sys/bus/soundwire/devices/sdw-master-N/dynamic_shape
9-
/sys/bus/soundwire/devices/sdw-master-N/err_threshold
10-
/sys/bus/soundwire/devices/sdw-master-N/max_clk_freq
1+
What: /sys/bus/soundwire/devices/sdw-master-<N>/revision
2+
/sys/bus/soundwire/devices/sdw-master-<N>/clk_stop_modes
3+
/sys/bus/soundwire/devices/sdw-master-<N>/clk_freq
4+
/sys/bus/soundwire/devices/sdw-master-<N>/clk_gears
5+
/sys/bus/soundwire/devices/sdw-master-<N>/default_col
6+
/sys/bus/soundwire/devices/sdw-master-<N>/default_frame_rate
7+
/sys/bus/soundwire/devices/sdw-master-<N>/default_row
8+
/sys/bus/soundwire/devices/sdw-master-<N>/dynamic_shape
9+
/sys/bus/soundwire/devices/sdw-master-<N>/err_threshold
10+
/sys/bus/soundwire/devices/sdw-master-<N>/max_clk_freq
1111

1212
Date: April 2020
1313

Documentation/ABI/testing/sysfs-bus-soundwire-slave

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -64,37 +64,37 @@ Description: SoundWire Slave Data Port-0 DisCo properties.
6464
Data port 0 are used by the bus to configure the Data Port 0.
6565

6666

67-
What: /sys/bus/soundwire/devices/sdw:.../dpN_src/max_word
68-
/sys/bus/soundwire/devices/sdw:.../dpN_src/min_word
69-
/sys/bus/soundwire/devices/sdw:.../dpN_src/words
70-
/sys/bus/soundwire/devices/sdw:.../dpN_src/type
71-
/sys/bus/soundwire/devices/sdw:.../dpN_src/max_grouping
72-
/sys/bus/soundwire/devices/sdw:.../dpN_src/simple_ch_prep_sm
73-
/sys/bus/soundwire/devices/sdw:.../dpN_src/ch_prep_timeout
74-
/sys/bus/soundwire/devices/sdw:.../dpN_src/imp_def_interrupts
75-
/sys/bus/soundwire/devices/sdw:.../dpN_src/min_ch
76-
/sys/bus/soundwire/devices/sdw:.../dpN_src/max_ch
77-
/sys/bus/soundwire/devices/sdw:.../dpN_src/channels
78-
/sys/bus/soundwire/devices/sdw:.../dpN_src/ch_combinations
79-
/sys/bus/soundwire/devices/sdw:.../dpN_src/max_async_buffer
80-
/sys/bus/soundwire/devices/sdw:.../dpN_src/block_pack_mode
81-
/sys/bus/soundwire/devices/sdw:.../dpN_src/port_encoding
82-
83-
/sys/bus/soundwire/devices/sdw:.../dpN_sink/max_word
84-
/sys/bus/soundwire/devices/sdw:.../dpN_sink/min_word
85-
/sys/bus/soundwire/devices/sdw:.../dpN_sink/words
86-
/sys/bus/soundwire/devices/sdw:.../dpN_sink/type
87-
/sys/bus/soundwire/devices/sdw:.../dpN_sink/max_grouping
88-
/sys/bus/soundwire/devices/sdw:.../dpN_sink/simple_ch_prep_sm
89-
/sys/bus/soundwire/devices/sdw:.../dpN_sink/ch_prep_timeout
90-
/sys/bus/soundwire/devices/sdw:.../dpN_sink/imp_def_interrupts
91-
/sys/bus/soundwire/devices/sdw:.../dpN_sink/min_ch
92-
/sys/bus/soundwire/devices/sdw:.../dpN_sink/max_ch
93-
/sys/bus/soundwire/devices/sdw:.../dpN_sink/channels
94-
/sys/bus/soundwire/devices/sdw:.../dpN_sink/ch_combinations
95-
/sys/bus/soundwire/devices/sdw:.../dpN_sink/max_async_buffer
96-
/sys/bus/soundwire/devices/sdw:.../dpN_sink/block_pack_mode
97-
/sys/bus/soundwire/devices/sdw:.../dpN_sink/port_encoding
67+
What: /sys/bus/soundwire/devices/sdw:.../dp<N>_src/max_word
68+
/sys/bus/soundwire/devices/sdw:.../dp<N>_src/min_word
69+
/sys/bus/soundwire/devices/sdw:.../dp<N>_src/words
70+
/sys/bus/soundwire/devices/sdw:.../dp<N>_src/type
71+
/sys/bus/soundwire/devices/sdw:.../dp<N>_src/max_grouping
72+
/sys/bus/soundwire/devices/sdw:.../dp<N>_src/simple_ch_prep_sm
73+
/sys/bus/soundwire/devices/sdw:.../dp<N>_src/ch_prep_timeout
74+
/sys/bus/soundwire/devices/sdw:.../dp<N>_src/imp_def_interrupts
75+
/sys/bus/soundwire/devices/sdw:.../dp<N>_src/min_ch
76+
/sys/bus/soundwire/devices/sdw:.../dp<N>_src/max_ch
77+
/sys/bus/soundwire/devices/sdw:.../dp<N>_src/channels
78+
/sys/bus/soundwire/devices/sdw:.../dp<N>_src/ch_combinations
79+
/sys/bus/soundwire/devices/sdw:.../dp<N>_src/max_async_buffer
80+
/sys/bus/soundwire/devices/sdw:.../dp<N>_src/block_pack_mode
81+
/sys/bus/soundwire/devices/sdw:.../dp<N>_src/port_encoding
82+
83+
/sys/bus/soundwire/devices/sdw:.../dp<N>_sink/max_word
84+
/sys/bus/soundwire/devices/sdw:.../dp<N>_sink/min_word
85+
/sys/bus/soundwire/devices/sdw:.../dp<N>_sink/words
86+
/sys/bus/soundwire/devices/sdw:.../dp<N>_sink/type
87+
/sys/bus/soundwire/devices/sdw:.../dp<N>_sink/max_grouping
88+
/sys/bus/soundwire/devices/sdw:.../dp<N>_sink/simple_ch_prep_sm
89+
/sys/bus/soundwire/devices/sdw:.../dp<N>_sink/ch_prep_timeout
90+
/sys/bus/soundwire/devices/sdw:.../dp<N>_sink/imp_def_interrupts
91+
/sys/bus/soundwire/devices/sdw:.../dp<N>_sink/min_ch
92+
/sys/bus/soundwire/devices/sdw:.../dp<N>_sink/max_ch
93+
/sys/bus/soundwire/devices/sdw:.../dp<N>_sink/channels
94+
/sys/bus/soundwire/devices/sdw:.../dp<N>_sink/ch_combinations
95+
/sys/bus/soundwire/devices/sdw:.../dp<N>_sink/max_async_buffer
96+
/sys/bus/soundwire/devices/sdw:.../dp<N>_sink/block_pack_mode
97+
/sys/bus/soundwire/devices/sdw:.../dp<N>_sink/port_encoding
9898

9999
Date: May 2020
100100

0 commit comments

Comments
 (0)