From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qt0-f171.google.com (mail-qt0-f171.google.com [209.85.216.171]) by dpdk.org (Postfix) with ESMTP id BA5B7199B5 for ; Wed, 13 Sep 2017 08:28:05 +0200 (CEST) Received: by mail-qt0-f171.google.com with SMTP id t46so6489403qtj.2 for ; Tue, 12 Sep 2017 23:28:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=UGq5vnU/1Q9tGh/ZMw/guwJBHFU/+Hz3F7Tq6bgscog=; b=dIThOJ/Byiv3DI5OgCidNQQfekjw3YxSZ0ecOEm6Cb58i5E6z/t5tQ5QOqaG+8mSte tcz8zdHwHgx2typLOCVS3Nf29YdAm+Ar1AemxAptr7Ax8qKMqjnB908hvKeVgN5GtclG sgHn+t2M2B8rR6crdArdD509JAzVn5ArINa9u1haOSvaBrCFj6DsQllCuDmjeNO/GyuF aixCt5jS7m9eS6MpT9JTxQWaCIuxmLoFPUoZTX2ZLaxanRoVepZB41XAcvsUI4QnE5Pa U8l8ptmNPkYgfr9PTlEsah4QXW8pr+DWcK4jFqRjoIPC5Y01oO44Q+REJR4ckIcqnNWh NVoQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=UGq5vnU/1Q9tGh/ZMw/guwJBHFU/+Hz3F7Tq6bgscog=; b=YWsB5o3+PmrnbqqZM24QWL+aJe8jq+0Ilvo6ycP44QxpYdPupmEX6z08/JZnIK3Z3Z qfQxpLeuk2APCXRuZCfRRalRsilXf0l2fvnVy8sEw90Nwg7bFOwIyyoHoefkxLKLNQih jsEfC39BRE/c0nZqd2AigqDxS71awCKK2Ga2sr58PE7r036XDuRyQCmqFIPnS3T3NkqN Gw2d5zyJQY3f4gvnJbKPu6IaWVUiaq83DhRADU+V/0XERrhoRFVn/8mateeB15MfaOD0 /2DmUe8oRrHimNX94JAtddmEaZAt+9Ghck4IMEVjxmc6kus8//cMWpZBmZVtm3ig5GBo Lwmw== X-Gm-Message-State: AHPjjUjai6XxtKADgB8gFFBTin4ECDfBOeK7TGngDV0CFfA1p+8Bak8I auj3Btl8juZ6cUaem/Z9OMdMwu9tVhcizOGSmv/uNQ== X-Google-Smtp-Source: AOwi7QC+LLZgMVvkmIPO7Xih83osRjAR5PqwT2nFoczvqkp5c8dcAyC5jMBZS4wjaw25cyzdaQJLO2wquxBFrUUzgi0= X-Received: by 10.200.19.73 with SMTP id f9mr15033552qtj.158.1505284084806; Tue, 12 Sep 2017 23:28:04 -0700 (PDT) MIME-Version: 1.0 Received: by 10.140.85.201 with HTTP; Tue, 12 Sep 2017 23:28:04 -0700 (PDT) From: RanjithKumar Date: Wed, 13 Sep 2017 11:58:04 +0530 Message-ID: To: users Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-users] Cannot bind to driver vfio-pci X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Sep 2017 06:28:06 -0000 Hello All, I have installed DPDK 2.0 on a Virtual machine which launched by using openstack. But I could not bind the NIC to DPDK. The below are steps which I tried *1. **dpdk_nic_bind.py =E2=80=93s* ubuntu@mysite-vpgwu-slice1-25:~/dpdk-2.0.0/tools$ ./dpdk_nic_bind.py --s Network devices using DPDK-compatible driver =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Network devices using kernel driver =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D 0000:00:03.0 'Virtio network device' if=3D drv=3Dvirtio-pci unused=3D 0000:00:04.0 'Virtio network device' if=3D drv=3Dvirtio-pci unused=3D 0000:00:05.0 'Virtio network device' if=3D drv=3Dvirtio-pci unused=3D 0000:00:06.0 'Virtio network device' if=3D drv=3Dvirtio-pci unused=3D 0000:00:07.0 'Virtio network device' if=3D drv=3Dvirtio-pci unused=3D Other network devices =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D *2. **./setup.sh ( for loading VFIO Module)* ---------------------------------------------------------- Step 2: Setup linuxapp environment ---------------------------------------------------------- [12] Insert IGB UIO module [13] Insert VFIO module [14] Insert KNI module [15] Setup hugepage mappings for non-NUMA systems [16] Setup hugepage mappings for NUMA systems [17] Display current Ethernet device settings [18] Bind Ethernet device to IGB UIO module [19] Bind Ethernet device to VFIO module [20] Setup VFIO permissions ---------------------------------------------------------- Step 3: Run test application for linuxapp environment ---------------------------------------------------------- [21] Run test application ($RTE_TARGET/app/test) [22] Run testpmd application in interactive mode ($RTE_TARGET/app/testpmd) ---------------------------------------------------------- Step 4: Other tools ---------------------------------------------------------- [23] List hugepage info from /proc/meminfo ---------------------------------------------------------- Step 5: Uninstall and system cleanup ---------------------------------------------------------- [24] Uninstall all targets [25] Unbind NICs from IGB UIO or VFIO driver [26] Remove IGB UIO module [27] Remove VFIO module [28] Remove KNI module [29] Remove hugepage mappings [30] Exit Script Option: 13 Unloading any existing VFIO module Loading VFIO module chmod /dev/vfio OK 3. *./setup.sh ( for setting hugepage)* ---------------------------------------------------------- Step 2: Setup linuxapp environment ---------------------------------------------------------- [12] Insert IGB UIO module [13] Insert VFIO module [14] Insert KNI module [15] Setup hugepage mappings for non-NUMA systems [16] Setup hugepage mappings for NUMA systems [17] Display current Ethernet device settings [18] Bind Ethernet device to IGB UIO module [19] Bind Ethernet device to VFIO module [20] Setup VFIO permissions ---------------------------------------------------------- Step 3: Run test application for linuxapp environment ---------------------------------------------------------- [21] Run test application ($RTE_TARGET/app/test) [22] Run testpmd application in interactive mode ($RTE_TARGET/app/testpmd) ---------------------------------------------------------- Step 4: Other tools ---------------------------------------------------------- [23] List hugepage info from /proc/meminfo ---------------------------------------------------------- Step 5: Uninstall and system cleanup ---------------------------------------------------------- [24] Uninstall all targets [25] Unbind NICs from IGB UIO or VFIO driver [26] Remove IGB UIO module [27] Remove VFIO module [28] Remove KNI module [29] Remove hugepage mappings [30] Exit Script Option: 15 Removing currently reserved hugepages Unmounting /mnt/huge and removing directory Input the number of 2MB pages Example: to have 128MB of hugepages available, enter '64' to reserve 64 * 2MB pages Number of pages: 64 Reserving hugepages Creating /mnt/huge and mounting as hugetlbfs *4. **dpdk_nic_bind.py =E2=80=93s* ubuntu@mysite-vpgwu-slice1-25:~/dpdk-2.0.0/tools$ ./dpdk_nic_bind.py --s Network devices using DPDK-compatible driver =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Network devices using kernel driver =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D 0000:00:03.0 'Virtio network device' if=3D drv=3Dvirtio-pci unused=3Dvfio-p= ci 0000:00:04.0 'Virtio network device' if=3D drv=3Dvirtio-pci unused=3Dvfio-p= ci 0000:00:05.0 'Virtio network device' if=3D drv=3Dvirtio-pci unused=3Dvfio-p= ci 0000:00:06.0 'Virtio network device' if=3D drv=3Dvirtio-pci unused=3Dvfio-p= ci 0000:00:07.0 'Virtio network device' if=3D drv=3Dvirtio-pci unused=3Dvfio-p= ci Other network devices =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D *5. **binding a Virtual NIC to DPDK* ---------------------------------------------------------- Step 2: Setup linuxapp environment ---------------------------------------------------------- [12] Insert IGB UIO module [13] Insert VFIO module [14] Insert KNI module [15] Setup hugepage mappings for non-NUMA systems [16] Setup hugepage mappings for NUMA systems [17] Display current Ethernet device settings [18] Bind Ethernet device to IGB UIO module [19] Bind Ethernet device to VFIO module [20] Setup VFIO permissions ---------------------------------------------------------- Step 3: Run test application for linuxapp environment ---------------------------------------------------------- [21] Run test application ($RTE_TARGET/app/test) [22] Run testpmd application in interactive mode ($RTE_TARGET/app/testpmd) ---------------------------------------------------------- Step 4: Other tools ---------------------------------------------------------- [23] List hugepage info from /proc/meminfo ---------------------------------------------------------- Step 5: Uninstall and system cleanup ---------------------------------------------------------- [24] Uninstall all targets [25] Unbind NICs from IGB UIO or VFIO driver [26] Remove IGB UIO module [27] Remove VFIO module [28] Remove KNI module [29] Remove hugepage mappings [30] Exit Script Option: 19 Network devices using DPDK-compatible driver =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Network devices using kernel driver =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D 0000:00:03.0 'Virtio network device' if=3D drv=3Dvirtio-pci unused=3Dvfio-p= ci 0000:00:04.0 'Virtio network device' if=3D drv=3Dvirtio-pci unused=3Dvfio-p= ci 0000:00:05.0 'Virtio network device' if=3D drv=3Dvirtio-pci unused=3Dvfio-p= ci 0000:00:06.0 'Virtio network device' if=3D drv=3Dvirtio-pci unused=3Dvfio-p= ci 0000:00:07.0 'Virtio network device' if=3D drv=3Dvirtio-pci unused=3Dvfio-p= ci Other network devices =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Enter PCI address of device to bind to VFIO driver: 0000:00:03.0 Error: bind failed for 0000:00:03.0 - Cannot bind to driver vfio-pci Error: unbind failed for 0000:00:03.0 - Cannot open /sys/bus/pci/drivers//unbind Any inputs to resolve this issue. Regards, Ranjith