From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by dpdk.org (Postfix, from userid 33) id 7A4C42BB1; Tue, 28 Aug 2018 04:18:35 +0200 (CEST) From: bugzilla@dpdk.org To: dev@dpdk.org Date: Tue, 28 Aug 2018 02:18:35 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: DPDK X-Bugzilla-Component: ethdev X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: tcnieh@iii.org.tw X-Bugzilla-Status: CONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: Normal X-Bugzilla-Assigned-To: dev@dpdk.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.dpdk.org/ Auto-Submitted: auto-generated X-Auto-Response-Suppress: All MIME-Version: 1.0 Subject: [dpdk-dev] [Bug 86] Requested device cannot be used X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Aug 2018 02:18:35 -0000 https://bugs.dpdk.org/show_bug.cgi?id=3D86 Bug ID: 86 Summary: Requested device cannot be used Product: DPDK Version: unspecified Hardware: x86 OS: Linux Status: CONFIRMED Severity: normal Priority: Normal Component: ethdev Assignee: dev@dpdk.org Reporter: tcnieh@iii.org.tw Target Milestone: --- Hello all, I am trying to get the performance of intel x520 10G NIC over Dell R630/R= 730, but I keep getting an unexpected error, please see below. I followed the instruction of https://goo.gl/T7iTuk to compiler the DPDK and OVS code. I've successfully binded both my x520 NIC ports to DPDK, using ei= ther igb_uio or vfio_pci: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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 0000:82:00.0 'Ethernet 10G 2P X520 Adapter 154d' drv=3Digb_uio unused=3Dvfi= o-pci 0000:82:00.1 'Ethernet 10G 2P X520 Adapter 154d' drv=3Digb_uio unused=3Dvfi= o-pci 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:01:00.0 'NetXtreme BCM5720 Gigabit Ethernet PCIe 165f' if=3Deno1 drv= =3Dtg3 unused=3Digb_uio,vfio-pci=20 0000:01:00.1 'NetXtreme BCM5720 Gigabit Ethernet PCIe 165f' if=3Deno2 drv= =3Dtg3 unused=3Digb_uio,vfio-pci=20 0000:02:00.0 'NetXtreme BCM5720 Gigabit Ethernet PCIe 165f' if=3Deno3 drv= =3Dtg3 unused=3Digb_uio,vfio-pci=20 0000:02:00.1 'NetXtreme BCM5720 Gigabit Ethernet PCIe 165f' if=3Deno4 drv= =3Dtg3 unused=3Digb_uio,vfio-pci *Active* Other Network devices =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ And the hugepage was set to 2048 * 2M ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ HugePages_Total: 2048 HugePages_Free: 1024 HugePages_Rsvd: 0 HugePages_Surp: 0 Hugepagesize: 2048 kB ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Here comes the problem, while I tried to init the ovsdb-server and ovs-vswi= tch, I got the following error: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2018-08-27T09:54:05.548Z|00002|ovs_numa|INFO|Discovered 16 CPU cores on = NUMA node 0 2018-08-27T09:54:05.548Z|00003|ovs_numa|INFO|Discovered 16 CPU cores on = NUMA node 1 2018-08-27T09:54:05.548Z|00004|ovs_numa|INFO|Discovered 2 NUMA nodes and= 32 CPU cores =20=20 2018-08-27T09:54:05.548Z|00005|reconnect|INFO|unix:/usr/local/var/run/openv= switch/db.sock: connecting... 2018-08-=20=20 27T09:54:05.549Z|00006|reconnect|INFO|unix:/usr/local/var/run/openvswitch/d= b.sock: connected 2018-08-27T09:54:05.552Z|00007|dpdk|INFO|DPDK Enabled - initializing... 2018-08-27T09:54:05.552Z|00008|dpdk|INFO|No vhost-sock-dir provided - defaulting to /usr/local/var/run/openvswitch 2018-08-27T09:54:05.552Z|00009|dpdk|INFO|EAL ARGS: ovs-vswitchd --socket= -mem 1024,0 -c 0x00000001 2018-08-27T09:54:05.553Z|00010|dpdk|INFO|EAL: Detected 32 lcore(s) 2018-08-27T09:54:05.558Z|00011|dpdk|WARN|EAL: No free hugepages reported= in hugepages-1048576kB 2018-08-27T09:54:05.559Z|00012|dpdk|INFO|EAL: Probing VFIO support... 2018-08-27T09:54:06.700Z|00013|dpdk|INFO|EAL: PCI device 0000:82:00.0 on NUMA socket 1 2018-08-27T09:54:06.700Z|00014|dpdk|INFO|EAL: probe driver: 8086:154d net_ixgbe 2018-08-27T09:54:06.700Z|00015|dpdk|ERR|EAL: Requested device 0000:82:00.0 cannot be used 2018-08-27T09:54:06.700Z|00016|dpdk|INFO|EAL: PCI device 0000:82:00.1 on NUMA socket 1 2018-08-27T09:54:06.700Z|00017|dpdk|INFO|EAL: probe driver: 8086:154d net_ixgbe 2018-08-27T09:54:06.700Z|00018|dpdk|ERR|EAL: Requested device 0000:82:00.1 cannot be used 2018-08-27T09:54:06.701Z|00019|dpdk|INFO|DPDK Enabled - initialized 2018-08-27T09:54:06.705Z|00020|ofproto_dpif|INFO|netdev@ovs-netdev: Data= path supports recirculation ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Therefore, I also got the same error when I added a dpdk-port: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2018-08-27T09:54:06.709Z|00036|dpdk|INFO|EAL: PCI device 0000:82:00.0 on NU= MA socket 1 2018-08-27T09:54:06.709Z|00037|dpdk|INFO|EAL: probe driver: 8086:154d net_ixgbe 2018-08-27T09:54:06.710Z|00038|dpdk|WARN|EAL: Requested device 0000:82:00.0 cannot be used 2018-08-27T09:54:06.710Z|00039|dpdk|ERR|EAL: Driver cannot attach the device (0000:82:00.0) 2018-08-27T09:54:06.710Z|00040|netdev_dpdk|WARN|Error attaching device '0000:82:00.0' to DPDK 2018-08-27T09:54:06.710Z|00041|netdev|WARN|dpdk0: could not set configurati= on (Invalid argument) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ I've tried a solution described in https://goo.gl/3opVRT, which is utilizi= ng "uio_pci_generic" and disable intel_iommu. It didn't work to me. Here is detail info about my test platform: DPDK & OVS version: DPDK 16.11 & OVS 2.7.0, DPDK 17.05.1 & OVS 2.8.0, DPDK 17.11 & OVS 2.9.0, DPDK 17.11 & OVS 2.10.0 OS: ubuntu 16.04 Hardware: Dell R730/R630 server with intel X520 10G NIC 128G Memory, 32 Cores. Can anybody help or give me a hint to debug? I'm totally loss here. --=20 You are receiving this mail because: You are the assignee for the bug.=