linux/drivers/platform/mellanox
Liming Sun 3d43f9f639 platform/mellanox: fix potential race in mlxbf-tmfifo driver
This commit adds memory barrier for the 'vq' update in function
mlxbf_tmfifo_virtio_find_vqs() to avoid potential race due to
out-of-order memory write. It also adds barrier for the 'is_ready'
flag to make sure the initializations are visible before this flag
is checked.

Signed-off-by: Liming Sun <limings@nvidia.com>
Reviewed-by: Vadim Pasternak <vadimp@nvidia.com>
Link: https://lore.kernel.org/r/b98c0ab61d644ba38fa9b3fd1607b138b0dd820b.1682518748.git.limings@nvidia.com
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
2023-05-09 11:54:35 +02:00
..
Kconfig platform: mellanox: select REGMAP instead of depending on it 2023-03-07 11:37:27 +01:00
Makefile
mlxbf-bootctl.c mlxbf-bootctl: Add sysfs file for BlueField boot fifo 2023-04-17 10:17:09 +02:00
mlxbf-bootctl.h platform/mellanox: add firmware reset support 2023-04-06 14:26:03 +02:00
mlxbf-pmc.c platform/mellanox: mlxbf-pmc: Fix event typo 2022-12-12 10:31:27 +01:00
mlxbf-tmfifo-regs.h platform/mellanox: Add BlueField-3 support in the tmfifo driver 2022-11-16 08:48:19 +01:00
mlxbf-tmfifo.c platform/mellanox: fix potential race in mlxbf-tmfifo driver 2023-05-09 11:54:35 +02:00
mlxreg-hotplug.c platform/mellanox: mlxreg-hotplug: Allow more flexible hotplug events configuration 2023-02-13 12:07:50 +01:00
mlxreg-io.c platform/mellanox: mlxreg-io: Add locking for io operations 2022-07-14 22:34:42 +02:00
mlxreg-lc.c platform/mellanox: mlxreg-lc: Make error handling flow consistent 2022-09-09 21:58:16 +02:00
nvsw-sn2201.c platform/mellanox: nvsw-sn2201: fix error code in nvsw_sn2201_create_static_devices() 2022-06-27 09:38:56 +02:00