2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2025-01-15 17:14:00 +08:00
linux-next/drivers/vdpa
Eli Cohen 83ef73b27e vdpa/mlx5: Use write memory barrier after updating CQ index
Make sure to put dma write memory barrier after updating CQ consumer
index so the hardware knows that there are available CQE slots in the
queue.

Failure to do this can cause the update of the RX doorbell record to get
updated before the CQ consumer index resulting in CQ overrun.

Fixes: 1a86b377aa ("vdpa/mlx5: Add VDPA driver for supported mlx5 devices")
Signed-off-by: Eli Cohen <elic@nvidia.com>
Link: https://lore.kernel.org/r/20201209140004.15892-1-elic@nvidia.com
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
2020-12-18 16:14:30 -05:00
..
ifcvf vdpa: ifcvf: Use dma_set_mask_and_coherent to simplify code 2020-12-18 16:14:28 -05:00
mlx5 vdpa/mlx5: Use write memory barrier after updating CQ index 2020-12-18 16:14:30 -05:00
vdpa_sim vdpa: split vdpasim to core and net modules 2020-12-18 16:14:30 -05:00
Kconfig vdpa: split vdpasim to core and net modules 2020-12-18 16:14:30 -05:00
Makefile vdpa/mlx5: Add support library for mlx5 VDPA implementation 2020-08-05 19:00:23 -04:00
vdpa.c vdpa: remove hard coded virtq num 2020-08-05 18:39:18 -04:00