OpenCloudOS-Kernel/drivers/vdpa
Eli Cohen b35ccebe3e vdpa/mlx5: Restore the hardware used index after change map
When a change of memory map occurs, the hardware resources are destroyed
and then re-created again with the new memory map. In such case, we need
to restore the hardware available and used indices. The driver failed to
restore the used index which is added here.

Also, since the driver also fails to reset the available and used
indices upon device reset, fix this here to avoid regression caused by
the fact that used index may not be zero upon device reset.

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/20210204073618.36336-1-elic@nvidia.com
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Jason Wang <jasowang@redhat.com>
2021-02-05 10:28:04 -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: Restore the hardware used index after change map 2021-02-05 10:28:04 -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: Use simpler version of ida allocation 2020-12-18 16:14:31 -05:00