linux-stable/include/linux/iio
Nuno Sa 862cf85fef iio: commom: st_sensors: ensure proper DMA alignment
Aligning the buffer to the L1 cache is not sufficient in some platforms
as they might have larger cacheline sizes for caches after L1 and thus,
we can't guarantee DMA safety.

That was the whole reason to introduce IIO_DMA_MINALIGN in [1]. Do the same
for st_sensors common buffer.

While at it, moved the odr_lock before buffer_data as we definitely
don't want any other data to share a cacheline with the buffer.

[1]: https://lore.kernel.org/linux-iio/20220508175712.647246-2-jic23@kernel.org/

Fixes: e031d5f558 ("iio:st_sensors: remove buffer allocation at each buffer enable")
Signed-off-by: Nuno Sa <nuno.sa@analog.com>
Cc: <Stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20240131-dev_dma_safety_stm-v2-1-580c07fae51b@analog.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
2024-02-04 15:01:14 +00:00
..
accel
adc iio: adc: ad_sigma_delta: ensure proper DMA alignment 2024-01-22 18:59:07 +00:00
afe iio: afe: rescale: add offset support 2022-02-27 13:38:10 +00:00
common iio: commom: st_sensors: ensure proper DMA alignment 2024-02-04 15:01:14 +00:00
dac
frequency
gyro iio: gyro: itg3200_core: do not use internal iio_dev lock 2022-11-23 19:43:58 +00:00
imu iio: imu: adis: ensure proper DMA alignment 2024-01-22 18:59:07 +00:00
timer
buffer-dma.h iio: buffer-dma: Get rid of outgoing queue 2023-12-21 11:28:47 +00:00
buffer-dmaengine.h
buffer.h
buffer_impl.h iio: Don't silently expect attribute types 2022-11-23 19:44:04 +00:00
configfs.h
consumer.h iio: inkern: Add a helper to query an available minimum raw value 2023-07-09 22:48:17 +01:00
driver.h
events.h
hw-consumer.h
iio-gts-helper.h iio: fix doc for iio_gts_find_sel_by_int_time 2023-05-13 17:54:57 +01:00
iio-opaque.h iio: core: move 'mlock' to 'struct iio_dev_opaque' 2022-11-23 19:44:00 +00:00
iio.h iio: linux/iio.h: fix Excess kernel-doc description warning 2023-12-26 16:02:46 +00:00
kfifo_buf.h iio: Don't silently expect attribute types 2022-11-23 19:44:04 +00:00
machine.h
sw_device.h iio: Remove unused declarations 2023-09-12 10:42:03 +01:00
sw_trigger.h iio: Remove unused declarations 2023-09-12 10:42:03 +01:00
sysfs.h iio: Add IIO_STATIC_CONST_DEVICE_ATTR 2022-11-23 19:44:03 +00:00
trigger.h iio: trigger: Add simple trigger_validation helper 2023-05-23 21:20:17 +01:00
trigger_consumer.h
triggered_buffer.h iio: Don't silently expect attribute types 2022-11-23 19:44:04 +00:00
triggered_event.h
types.h iio: core: introduce trough info element for minimum values 2023-12-11 19:37:10 +00:00