linux-stable/drivers/iio/accel
Jonathan Cameron 12c4efe350 iio: core: Fix IIO_ALIGN and rename as it was not sufficiently large
Discussion of the series:
https://lore.kernel.org/all/20220405135758.774016-1-catalin.marinas@arm.com/
mm, arm64: Reduce ARCH_KMALLOC_MINALIGN brought to my attention that
our current IIO usage of L1CACHE_ALIGN is insufficient as their are Arm
platforms out their with non coherent DMA and larger cache lines at
at higher levels of their cache hierarchy.

Rename the define to make it's purpose more explicit. It will be used
much more widely going forwards (to replace incorrect ____cacheline_aligned
markings.

Note this patch will greatly reduce the padding on some architectures
that have smaller requirements for DMA safe buffers.

The history of changing values of ARCH_KMALLOC_MINALIGN via
ARCH_DMA_MINALIGN on arm64 is rather complex. I'm not tagging this
as fixing a particular patch from that route as it's not clear what to tag.

Most recently a change to bring them back inline was reverted because
of some Qualcomm Kryo cores with an L2 cache with 128-byte lines
sitting above the point of coherency.

c1132702c7 Revert "arm64: cache: Lower ARCH_DMA_MINALIGN to 64 (L1_CACHE_BYTES)"
That reverts:
65688d2a05 arm64: cache: Lower ARCH_DMA_MINALIGN to 64 (L1_CACHE_BYTES) which
refers to the change originally being motivated by Thunder x1 performance
rather than correctness.

Fixes: 6f7c8ee585 ("staging:iio: Add ability to allocate private data space to iio_allocate_device")
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Acked-by: Nuno Sá <nuno.sa@analog.com>
Link: https://lore.kernel.org/r/20220508175712.647246-2-jic23@kernel.org
2022-06-14 11:53:11 +01:00
..
adis16201.c iio:imu:adis: Move exports into IIO_ADISLIB namespace 2022-02-18 11:42:26 +00:00
adis16209.c iio:imu:adis: Move exports into IIO_ADISLIB namespace 2022-02-18 11:42:26 +00:00
adxl313.h iio: accel: Add driver support for ADXL313 2021-09-14 12:00:35 +01:00
adxl313_core.c iio:accel:adxl313: Move exports into IIO_ADXL313 namespace 2022-02-18 11:36:54 +00:00
adxl313_i2c.c iio:accel:adxl313: Move exports into IIO_ADXL313 namespace 2022-02-18 11:36:54 +00:00
adxl313_spi.c iio:accel:adxl313: Move exports into IIO_ADXL313 namespace 2022-02-18 11:36:54 +00:00
adxl345.h iio: accel: adxl345: Make use of device properties 2022-02-26 19:11:13 +00:00
adxl345_core.c iio: accel: adxl345: Drop comma in terminator entries 2022-02-26 19:11:32 +00:00
adxl345_i2c.c iio: accel: adxl345: Remove unneeded blank lines 2022-02-26 19:11:39 +00:00
adxl345_spi.c iio: accel: adxl345: Remove unneeded blank lines 2022-02-26 19:11:39 +00:00
adxl355.h iio: accel: Add driver support for ADXL355 2021-09-14 12:00:30 +01:00
adxl355_core.c iio: accel: adxl355: use fwnode_irq_get_byname() 2022-04-28 19:22:54 +01:00
adxl355_i2c.c iio:accel:adxl355: Move exports into IIO_ADXL355 namespace 2022-02-18 11:36:54 +00:00
adxl355_spi.c iio:accel:adxl355: Move exports into IIO_ADXL355 namespace 2022-02-18 11:36:54 +00:00
adxl367.c iio: accel: adxl367: do not update FIFO watermark on scan mode update 2022-06-11 14:35:27 +01:00
adxl367.h iio: accel: add ADXL367 driver 2022-02-21 19:33:06 +00:00
adxl367_i2c.c iio: accel: add ADXL367 driver 2022-02-21 19:33:06 +00:00
adxl367_spi.c iio: accel: add ADXL367 driver 2022-02-21 19:33:06 +00:00
adxl372.c iio:accel:adxl372: Move exports into IIO_ADXL372 namespace 2022-02-18 11:36:54 +00:00
adxl372.h
adxl372_i2c.c iio:accel:adxl372: Move exports into IIO_ADXL372 namespace 2022-02-18 11:36:54 +00:00
adxl372_spi.c iio:accel:adxl372: Move exports into IIO_ADXL372 namespace 2022-02-18 11:36:54 +00:00
bma180.c iio:accel:bma180: Switch from CONFIG_PM_SLEEP guards to pm_sleep_ptr() etc 2022-02-18 11:46:03 +00:00
bma220_spi.c iio: bma220: Use scan_type when processing raw data 2021-11-17 17:51:40 +00:00
bma400.h iio: accel: bma400: Add support for activity and inactivity events 2022-06-11 14:35:26 +01:00
bma400_core.c iio: core: Fix IIO_ALIGN and rename as it was not sufficiently large 2022-06-14 11:53:11 +01:00
bma400_i2c.c iio: accel: bma400: Add triggered buffer support 2022-06-11 14:35:26 +01:00
bma400_spi.c iio: accel: bma400: Add triggered buffer support 2022-06-11 14:35:26 +01:00
bmc150-accel-core.c iio: core: Hide read accesses to iio_dev->currentmode 2022-04-10 16:21:45 +01:00
bmc150-accel-i2c.c iio:accel:bmc150: Move exports into IIO_BMC150 namespace 2022-02-18 11:36:54 +00:00
bmc150-accel-spi.c Char/Misc and other driver updates for 5.18-rc1 2022-03-28 12:27:35 -07:00
bmc150-accel.h iio: accel: bmc150: Make bmc150_accel_core_remove() return void 2021-10-19 08:30:45 +01:00
bmi088-accel-core.c iio: accel: bmi088: Add support for bmi090l accel 2022-06-11 14:35:28 +01:00
bmi088-accel-spi.c iio: accel: bmi088: Add support for bmi090l accel 2022-06-11 14:35:28 +01:00
bmi088-accel.h iio: accel: bmi088: Add support for bmi090l accel 2022-06-11 14:35:28 +01:00
cros_ec_accel_legacy.c iio: common: cros_ec_sensors: Add label attribute 2022-06-11 14:35:26 +01:00
da280.c iio:accel:da280: Switch from CONFIG_PM_SLEEP guards to pm_sleep_ptr() etc 2022-02-18 11:43:11 +00:00
da311.c iio:accel:da311: Switch from CONFIG_PM_SLEEP guards to pm_sleep_ptr() etc 2022-02-18 11:43:11 +00:00
dmard06.c iio:accel:dmard06: Switch from CONFIG_PM_SLEEP guards to pm_sleep_ptr() etc 2022-02-18 11:43:11 +00:00
dmard09.c iio: accel: dmard09: fixed code styling issues 2022-04-04 09:11:25 +01:00
dmard10.c iio:accel:dmard10: Switch from CONFIG_PM guards to pm_sleep_ptr() etc 2022-02-18 11:43:11 +00:00
fxls8962af-core.c iio: core: Simplify the registration of kfifo buffers 2022-04-10 16:25:46 +01:00
fxls8962af-i2c.c First set of new device support, fixes, cleanups and features for IIO in 5.18 2022-03-18 12:41:32 +01:00
fxls8962af-spi.c First set of new device support, fixes, cleanups and features for IIO in 5.18 2022-03-18 12:41:32 +01:00
fxls8962af.h iio: accel: fxls8962af: add padding to regmap for SPI 2022-01-23 18:23:48 +00:00
hid-sensor-accel-3d.c iio: hid-sensors: bind IIO channels alloc to device object 2021-07-13 18:21:53 +01:00
Kconfig iio: accel: bma400: Add triggered buffer support 2022-06-11 14:35:26 +01:00
kxcjk-1013.c iio: Fix error handling for PM 2022-01-30 14:50:34 +00:00
kxsd9-i2c.c iio:accel:kxsd9: Move exports into IIO_KDSD9 namespace 2022-02-18 11:36:53 +00:00
kxsd9-spi.c iio: accel: kxsd9-spi: changed leading spaces to tabs 2022-04-04 09:11:25 +01:00
kxsd9.c iio:accel:kxsd9: Move exports into IIO_KDSD9 namespace 2022-02-18 11:36:53 +00:00
kxsd9.h iio: accel: kxsd9: Make kxsd9_common_remove() return void 2021-10-19 08:30:45 +01:00
Makefile iio: accel: add ADXL367 driver 2022-02-21 19:33:06 +00:00
mc3230.c iio:accel:mc3230: Remove duplicated error reporting in .remove() 2022-06-11 14:35:25 +01:00
mma7455.h iio: accel: mma7455: Make mma7455_core_remove() return void 2021-10-19 08:30:45 +01:00
mma7455_core.c iio:accel:mma7455_core: Move exports into IIO_MMA7455 namespace 2022-02-18 11:36:53 +00:00
mma7455_i2c.c iio:accel:mma7455_core: Move exports into IIO_MMA7455 namespace 2022-02-18 11:36:53 +00:00
mma7455_spi.c Char/Misc and other driver updates for 5.18-rc1 2022-03-28 12:27:35 -07:00
mma7660.c iio:accel:mma7660: Switch from CONFIG_PM_SLEEP guards to pm_sleep_ptr() 2022-02-18 11:43:11 +00:00
mma8452.c iio: accel: mma8452: Add missing documentation for name element of chip_info 2022-04-28 19:22:55 +01:00
mma9551.c First set of new device support, fixes, cleanups and features for IIO in 5.18 2022-03-18 12:41:32 +01:00
mma9551_core.c iio:accel:mma9551_core: Move exports into IIO_MMA9551 namespace 2022-02-18 11:36:53 +00:00
mma9551_core.h
mma9553.c First set of new device support, fixes, cleanups and features for IIO in 5.18 2022-03-18 12:41:32 +01:00
mxc4005.c iio: accel: mxc4005: Fix overread of data and alignment issue. 2021-05-17 13:54:28 +01:00
mxc6255.c iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
sca3000.c iio: accel: sca3000: Fix syntax errors in comments 2022-06-14 11:53:09 +01:00
sca3300.c iio: accel: sca3300: Add inclination channels 2022-06-14 11:53:09 +01:00
ssp_accel_sensor.c iio: core: Simplify the registration of kfifo buffers 2022-04-10 16:25:46 +01:00
st_accel.h iio: accel: add support for LIS302DL variant 2022-04-04 09:11:23 +01:00
st_accel_buffer.c iio:st-sensors: Remove duplicate MODULE_* 2022-02-18 11:36:54 +00:00
st_accel_core.c iio: st_sensors: Stop abusing mlock to ensure internal coherency 2022-04-10 16:21:45 +01:00
st_accel_i2c.c iio: accel: add support for LIS302DL variant 2022-04-04 09:11:23 +01:00
st_accel_spi.c iio: accel: add support for LIS302DL variant 2022-04-04 09:11:23 +01:00
stk8ba50.c iio:accel:stk8ba50: Remove duplicated error reporting in .remove() 2022-06-11 14:35:25 +01:00
stk8312.c iio:accel:stk8312: Remove duplicated error reporting in .remove() 2022-06-11 14:35:25 +01:00