From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qt0-f169.google.com (mail-qt0-f169.google.com [209.85.216.169]) by dpdk.org (Postfix) with ESMTP id 6DCB79E7 for ; Wed, 8 Feb 2017 08:19:29 +0100 (CET) Received: by mail-qt0-f169.google.com with SMTP id x49so157204978qtc.2 for ; Tue, 07 Feb 2017 23:19:29 -0800 (PST) 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=sON17XHHyXDILIPCsL96gO9ukV0Q7MXiLjH+xNr+940=; b=SALOkymF9LJpAWw47nAqyUT6DtJOB5zT5gIh9Tg54xmvhHTwGn5bbWp+CM5NdgwBye Nld0uBecK1l6O0tjkzfJhhKebvjtdmnI5mHJW7HPNFom+vhVQkqxlF09ef+ToWZgiwpa 7Ck+PDObVwAe9ZK0cQ3RTTgouTOOd3p7YnifnTNNdQwSvyFJW3D2wq/sUlZ1dDFDmHVT TekJDJRfVxUY3WdgosRord0loOtAFo116MA3ZkviSV9oVuHUI2One6JZmSF1RC6Fobst vqcEJeQEz57EmW+7rr7SiLqeCXHuFE6UBqrxKKrcB4AVPmItNYBhS8jzGO7TCCn9Yaxn P4Vw== 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=sON17XHHyXDILIPCsL96gO9ukV0Q7MXiLjH+xNr+940=; b=AO6oJxy9vtrT1mTY9TPdZkunUMsIm3uNjL/jCcWuQ0GfDCKCx5SZVM5TPm4yPubdM+ Trw7jx+NEM3n3xW8O+FAd3ecSTV9g24XNLZYPApqEkJdSY28Ara3qBAKXfKmLTpmXyo9 +5fCPL/JAziLbQD0ckq0rDbPTS9wMQZFqadTKE04rX97CtjikzCAWAe5Fs9i1So+9mo9 Km4UJnQY8gDjZxA9f50dBJ4dOws9ydt2pRDcxrX1dU7WY/gZ1foR/NNLf/jxsD9OyDKE 3+T1iGSWLP3DqZXrccwjxr/FvQS+ze7MD22OTsdvmeGJ+JtBa2rgmHO3cTkITCt5Q3HI /u4A== X-Gm-Message-State: AMke39nfIreJeyH94h+e5B+964Mq+cXuVGpFPHW+pHPliKXK+CfUyc1VIxMyhXN/SlzEot8VGMhMxiJHOhQeZQ== X-Received: by 10.237.33.67 with SMTP id 61mr17778212qtc.37.1486538368512; Tue, 07 Feb 2017 23:19:28 -0800 (PST) MIME-Version: 1.0 Received: by 10.12.156.15 with HTTP; Tue, 7 Feb 2017 23:19:28 -0800 (PST) From: Shyam Shrivastav Date: Wed, 8 Feb 2017 12:49:28 +0530 Message-ID: To: users@dpdk.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-users] Unable to bind intel NIC 82599ES to vfio-pci, uio_pci_generic 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, 08 Feb 2017 07:19:29 -0000 Hi All I am not able to bind 82599 to either uio_pci_generic or vfio-pci successfully. Any help greatly appreciated, I am completely stuck at this initial step. *1) uio_pci_generic* : tools/dpdk-devbind.py script reports success but it is not detected by EAL on initialisation, still ixgbe driver is detected. here is relevant console output [root@unassigned dpdk-16.11]# tools/dpdk-devbind.py --status Network devices using DPDK-compatible driver ============================================ 0000:01:00.0 '82599ES 10-Gigabit SFI/SFP+ Network Connection' drv=uio_pci_generic unused=ixgbe,vfio-pci 0000:01:00.1 '82599ES 10-Gigabit SFI/SFP+ Network Connection' drv=uio_pci_generic unused=ixgbe,vfio-pci [root@unassigned dpdk-16.11]# examples/l2fwd/build/l2fwd -c f -n 2 p ffff EAL: Detected 8 lcore(s) EAL: No free hugepages reported in hugepages-1048576kB EAL: Probing VFIO support... EAL: VFIO support initialized EAL: PCI device 0000:01:00.0 on NUMA socket -1 EAL: probe driver: 8086:10fb net_ixgbe EAL: PCI device 0000:01:00.1 on NUMA socket -1 EAL: probe driver: 8086:10fb net_ixgbe EAL: PCI device 0000:02:00.0 on NUMA socket -1 EAL: probe driver: 8086:1533 net_e1000_igb EAL: PCI device 0000:03:00.0 on NUMA socket -1 EAL: probe driver: 8086:1533 net_e1000_igb MAC updating enabled Skipping disabled port 0 Skipping disabled port 1 EAL: Error - exiting with code: 1 Cause: All available ports are disabled. Please set portmask. *2) vfio-pci :* Configured vfio permissions using setup.sh, bind script reports error in this case as under [root@unassigned dpdk-16.11]# tools/dpdk-devbind.py --force -b vfio-pci 01:00.0 01:00.1 Error: bind failed for 0000:01:00.0 - Cannot bind to driver vfio-pci Error: bind failed for 0000:01:00.1 - Cannot bind to driver vfio-pci Here is relevant configuration for this to work [root@unassigned dpdk-16.11]# cat /proc/cmdline BOOT_IMAGE=/vmlinuz-3.10.0-514.6.1.el7.x86_64 root=UUID=814b781b-1955-4b34-81d6-5c5360325c2e ro crashkernel=auto rhgb quiet intel_iommu=on iommu=pt [root@unassigned dpdk-16.11]# dmesg|grep IOMMU [ 0.000000] DMAR: IOMMU enabled [ 0.027925] DMAR-IR: IOAPIC id 2 under DRHD base 0xfed90000 IOMMU 0 [root@unassigned dpdk-16.11]# ulimit -l unlimited [root@unassigned dpdk-16.11]# lsmod|grep pci vfio_pci 37039 0 vfio 26136 2 vfio_iommu_type1,vfio_pci irqbypass 13503 2 kvm,vfio_pci uio_pci_generic 12588 0 uio 19259 1 uio_pci_generic Thanks Shyam