linux/drivers/vdpa
Eli Cohen 7d23dcdf21 vdp/mlx5: Fix setting the correct dma_device
Before SF support was introduced, the DMA device was equal to
mdev->device which was in essence equal to pdev->dev.

With SF introduction this is no longer true. It has already been
handled for vhost_vdpa since the reference to the dma device can from
within mlx5_vdpa. With virtio_vdpa this broke. To fix this we set the
real dma device when initializing the device.

In addition, for the sake of consistency, previous references in the
code to the dma device are changed to vdev->dma_dev.

Fixes: d13a15d544 ("vdpa/mlx5: Use the correct dma device when registering memory")
Signed-off-by: Eli Cohen <elic@nvidia.com>
Link: https://lore.kernel.org/r/20210606053150.170489-1-elic@nvidia.com
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Jason Wang <jasowang@redhat.com>
2021-07-03 04:50:57 -04:00
..
ifcvf vDPA/ifcvf: reuse pre-defined macros for device ids and vendor ids 2021-07-03 04:50:51 -04:00
mlx5 vdp/mlx5: Fix setting the correct dma_device 2021-07-03 04:50:57 -04:00
vdpa_sim vdpa_sim_blk: remove duplicate include of linux/blkdev.h 2021-07-03 04:50:50 -04:00
virtio_pci vp_vdpa: correct the return value when fail to map notification 2021-07-03 04:50:52 -04:00
Kconfig vdpa: add vdpa simulator for block device 2021-05-03 04:55:53 -04:00
Makefile vdpa: introduce virtio pci driver 2021-05-03 04:55:51 -04:00
vdpa.c vdpa: Follow kdoc comment style 2021-05-03 04:55:51 -04:00