numam-dpdk/drivers
Romain Delhomel 36c3c4df13 bus/fslmc: fix VFIO setup
At device probe, the fslmc bus driver calls rte_vfio_get_group_fd() to
get a fd associated to a vfio group. This function first checks if the
group is already opened, else it opens /dev/vfio/%u, and increases the
number of active groups in default_vfio_cfg (which references the
default vfio container).

When adding the first group to a vfio_cfg, the caller is supposed to
pick an IOMMU type and set up DMA mappings for container, as it's done
by pci bus, but it is not done here. Instead, a new container is created
and used.

This prevents the pci bus driver, which uses the default_vfio_cfg
container, to configure the container because
default_vfio_cfg->active_group > 1.

This patch fixes the issue by always creating a new container (and its
associated vfio_cfg) and binding the group to it.

Fixes: a69f793002 ("bus/fslmc: support multi VFIO group")
Cc: stable@dpdk.org

Signed-off-by: Romain Delhomel <romain.delhomel@6wind.com>
Acked-by: Hemant Agrawal <hemant.agrawal@nxp.com>
2022-06-07 20:49:20 +02:00
..
baseband baseband/fpga_5gnr_fec: remove filler from HARQ 2022-06-01 16:26:36 +02:00
bus bus/fslmc: fix VFIO setup 2022-06-07 20:49:20 +02:00
common replace zero-length arrays with flexible ones 2022-06-07 16:44:21 +02:00
compress compress/octeontx: support OCTEON TX2 SoC family 2022-04-29 11:36:46 +02:00
crypto replace zero-length arrays with flexible ones 2022-06-07 16:44:21 +02:00
dma dma/idxd: add generic option for queue config 2022-06-07 12:46:12 +02:00
event common/cnxk: support CNF950_A0 2022-06-01 22:30:32 +02:00
gpu gpu/cuda: unmap GPU memory while freeing 2022-05-24 23:09:49 +02:00
mempool common/cnxk: support CNF950_A0 2022-06-01 22:30:32 +02:00
net replace zero-length arrays with flexible ones 2022-06-07 16:44:21 +02:00
raw raw/ifpga: support OFS card probing 2022-06-07 15:50:54 +02:00
regex replace zero-length arrays with flexible ones 2022-06-07 16:44:21 +02:00
vdpa vdpa/ifc/base: access block device registers 2022-06-01 11:50:10 +02:00
meson.build app/testpmd: register driver specific commands 2022-05-31 17:09:12 +02:00