On Wed, Sep 14, 2022 at 2:30 PM Balakrishnan K <[email protected]> wrote: > > I am trying to bind VF interface to dpdk using dpdk-devbind.py. > > Unable to bind getting error “cannot bind to driver uio_pci_generic”. > > Steps followed: > > 1.modprobe uio_pci_generic > > 2. dpdk-devbind.py -b uio_pci_generic 0000:05:00.0
In general, you should use vfio-pci. Now, for your particular case, ixgbe VF devices (10ed) won't work with uio_pci_generic, and it is reported in the driver info. $ ./usertools/dpdk-pmdinfo.py build-gcc/drivers/librte_net_ixgbe.so | less PMD NAME: net_ixgbe_vf PMD PARAMETERS: pflink_fullchk=<0|1> PMD KMOD DEPENDENCIES: * igb_uio | vfio-pci PMD HW SUPPORT: Intel Corporation (8086) : 82599 Ethernet Controller Virtual Function (10ed) (All Subdevices) Intel Corporation (8086) : 82599 Virtual Function (152e) (All Subdevices) Intel Corporation (8086) : X540 Ethernet Controller Virtual Function (1515) (All Subdevices) Intel Corporation (8086) : X540 Virtual Function (1530) (All Subdevices) Intel Corporation (8086) : X550 Virtual Function (1564) (All Subdevices) Intel Corporation (8086) : X550 Virtual Function (1565) (All Subdevices) Intel Corporation (8086) : X553 Virtual Function (15c5) (All Subdevices) Intel Corporation (8086) : X553 Virtual Function (15b4) (All Subdevices) Intel Corporation (8086) : Ethernet Connection X552 Virtual Function (15a8) (All Subdevices) Intel Corporation (8086) : X552 Virtual Function (15a9) (All Subdevices) ... > > Also tried with vfio-pci driver not succeeded. We need dmesg output in this case, to be sure. In general, it means that either your system has no iommu (there is a special *unsafe* mode, for handling this case), or the iommu is not configured. Please see https://doc.dpdk.org/guides/linux_gsg/linux_drivers.html#vfio -- David Marchand
