Solved it. VT-d was not enabled in BIOS. Thanks for help.
On Thu, Dec 13, 2018 at 9:39 AM Ramzah Rehman <ramzahreh...@gmail.com> wrote: > sure > > > Best Regards, > Ramzah Rehman > > > On Wed, Dec 12, 2018 at 8:32 PM Flavio Leitner <f...@sysclose.org> wrote: > >> On Wed, Dec 12, 2018 at 01:12:49PM +0500, Ramzah Rehman wrote: >> > Solved it. VT-d was not enabled in BIOS. Thanks for help. >> >> Could you please reply to the list as well? >> Maybe it help others. That's all >> Thanks >> fbl >> >> > >> > Best Regards, >> > Ramzah Rehman >> > >> > >> > On Tue, Dec 11, 2018 at 6:01 PM Flavio Leitner <f...@sysclose.org> >> wrote: >> > >> > > On Tue, Dec 11, 2018 at 09:57:00AM +0500, Ramzah Rehman wrote: >> > > > I enabled it by updating the /etc/default/grub file, adding >> > > "intel_iommu=on >> > > > iommu=pt" in GRUB_CMDLINE_LINUX_DEFAULT. Is that all? >> > > >> > > It's documented here: >> > > >> > > >> https://github.com/openvswitch/ovs/blob/master/Documentation/intro/install/dpdk.rst#setup-dpdk-devices-using-vfio >> > > >> > > Those two look right, but have you applied to the running kernel? >> > > "cat /proc/cmdline" can confirm that. >> > > >> > > If that's okay, you could check 'dmesg' output to see if there is any >> > > other errors happening. >> > > >> > > HTH, >> > > fbl >> > > >> > > > >> > > > Best Regards, >> > > > Ramzah Rehman >> > > > >> > > > >> > > > On Tue, Dec 11, 2018 at 9:56 AM Ramzah Rehman < >> ramzahreh...@gmail.com> >> > > > wrote: >> > > > >> > > > > Could you please elaborate on what parameters I need to pass? >> > > > > >> > > > > Best Regards, >> > > > > Ramzah Rehman >> > > > > >> > > > > >> > > > > On Mon, Dec 10, 2018 at 11:54 PM Flavio Leitner <f...@sysclose.org >> > >> > > wrote: >> > > > > >> > > > >> On Wed, Dec 05, 2018 at 08:01:45PM +0530, Numan Siddique wrote: >> > > > >> > On Wed, Dec 5, 2018 at 4:27 PM Ramzah Rehman < >> > > ramzahreh...@gmail.com> >> > > > >> wrote: >> > > > >> > >> > > > >> > > I am trying to bind an interface eth0 to vfio driver. I have >> made >> > > sure >> > > > >> > > iommu is enabled in grub and kernel. I have loaded the module >> > > > >> vfio-pci. Ran >> > > > >> > > following commands >> > > > >> > > >> > > > >> > > #modprobe vfio-pci >> > > > >> > > #chmod a+x /dev/vfio >> > > > >> > > #chmod 0666 /dev/vfio/* >> > > > >> > > #export DPDK_DIR=/usr/src/dpdk-stable-17.11.4 >> > > > >> > > #sudo $DPDK_DIR/usertools/dpdk-devbind.py --bind=vfio-pci >> 02:01.0 >> > > > >> > > >> > > > >> > > I got following error: >> > > > >> > > >> > > > >> > > Error: bind failed for 0000:02:01.0 - Cannot bind to driver >> > > vfio-pci >> > > > >> > > >> > > > >> > > I checked the error in dmesg: >> > > > >> > > >> > > > >> > > Got : >> > > > >> > > >> > > > >> > > [ 1815.793823] vfio-pci: probe of 0000:02:01.0 failed with >> error >> > > -22 >> > > > >> > > >> > > > >> > > let me know the reason. >> > > > >> > > >> > > > >> > > >> > > > >> > Maybe posting this to dpdk mailing list could get you some >> answer. >> > > > >> >> > > > >> You need to enable iommu in the kernel passing 2~3 parameters to >> > > > >> the kernel cmdline and also make sure that the device is okay >> inside >> > > > >> a iommu group (not sharing with other devices). >> > > > >> >> > > > >> -- >> > > > >> Flavio >> > > > >> >> > > > >> >> > > >> > > -- >> > > Flavio >> > > >> > > >> >> -- >> Flavio >> >>
_______________________________________________ discuss mailing list disc...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-discuss