linux_dsm_epyc7002/drivers/vdpa
Eli Cohen 346ea7cc27 vdpa/mlx5: Restore the hardware used index after change map
[ Upstream commit b35ccebe3ef76168aa2edaa35809c0232cb3578e ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-02-10 09:29:15 +01:00
..
ifcvf vdpa: ifcvf: free config irq in ifcvf_free_irq() 2020-08-26 08:13:59 -04:00
mlx5 vdpa/mlx5: Restore the hardware used index after change map 2021-02-10 09:29:15 +01:00
vdpa_sim vhost,vdpa: fixes 2020-10-31 14:41:48 -07:00
Kconfig vdpa: mlx5: fix vdpa/vhost dependencies 2020-12-02 04:09:56 -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