From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id 5B7ECA0096 for ; Fri, 7 Jun 2019 02:22:53 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 465BAF64; Fri, 7 Jun 2019 02:22:52 +0200 (CEST) Received: from mail-it1-f170.google.com (mail-it1-f170.google.com [209.85.166.170]) by dpdk.org (Postfix) with ESMTP id E6BF43DC for ; Fri, 7 Jun 2019 02:22:49 +0200 (CEST) Received: by mail-it1-f170.google.com with SMTP id m3so233797itl.1 for ; Thu, 06 Jun 2019 17:22:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=4A7knUTVx+dA3UypV5XSl/fo63aezeGeUp+cLOVWSvM=; b=vFUxkgYH44HjKXZ9ewNrBskYE5xyqwlcqwFi4GxWDfuD4SUbA4sDthWpAJ5st5A+R7 ypVFYR2W9xFgVs62zz3/Qm/7ZzfD8Q8tujmqYAwfs86p1S1wfHLWTTNFRy4Uq3ePjjq6 ZLvprOl7kxSw4jKCRmjAjmr/whwKqlYRQ2JyFo3EJ7WQO9Q5ekxzjV8fpLSfymM3BFLQ a5TKHRJ/lF5ACY33wiZKqUIyBIly36gKR49l3fuoKlyKpeQbsHp1c/xSFhjgvF76TRGR GbmdyVKIsDb+DE/PKcHZvp413YzSVLQdhmaS18t3NF3g1KbtKL8vB4uDSzMffd5dy3DH UEsw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=4A7knUTVx+dA3UypV5XSl/fo63aezeGeUp+cLOVWSvM=; b=JF0gQef9KiXPsrowKTg30PRKc/ip9c9ZqWyTJHNfJYjmj5w0utPQhcfLLhAMysxzhC H0vkvFlV6KN1lmr4j9lv+89w0rR/ps0pvC1jzycXuX5Fqunyt2hs5FwAlQSL7qKySF1o /58P5IXrI6Jox3yQWlTGNqL92VfK+9kvbrb4hx4TQfHwn39Lj6MkALke/TUaMfm7o8Wu 2EuMCKzmrH/fPOBXPF9I6ZYVB5K1p0XHgUietR8+JVpPZ4s25y3JOp+z8Itl+ikOlPNp 4tfWaMZc8OO7ixIm1vRx7/wArFAredqd8UWY9STia9sF8VKQIvCdKmmzG/RqgzkNjq/m oncA== X-Gm-Message-State: APjAAAXufJ1trQCre3ECEZ0s0bvcsHbr+mzmC1s6s5QIuDcagREJuCDq ypmkcwacdwUbqQHwsdpdEtsL/ZtL+LMUChQXUD1USAtW X-Google-Smtp-Source: APXvYqwMbJh8ABPD7UIOlbY1SyVnazyiLpPfda85/Dj+DoTxjCi4Lliw4dFNf3ljK0Oe2abHT/vNf6l9sARazU2ysxU= X-Received: by 2002:a02:b47:: with SMTP id 68mr17276322jad.66.1559866969106; Thu, 06 Jun 2019 17:22:49 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Reeve Yang Date: Thu, 6 Jun 2019 17:21:55 -0700 Message-ID: To: dev@dpdk.org Content-Type: text/plain; charset="UTF-8" Subject: Re: [dpdk-dev] rte_eth_dev_count() returns 0 with ENA device 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" some followup ... I debugged more, it looks like rte_pci_probe is not happening, so the rte_eth_dev_allocate is not called at all ..., buy why is that? I ran testpmd, it shows no probed ethernet device. # /opt/bluecoat/sslv/bin/testpmd testpmd -n 2 -l 2-3 -w 0000:00:04.0 -m 256 -- -i EAL: Detected 48 lcore(s) EAL: Multi-process socket /var/run/.rte_unix EAL: Probing VFIO support... testpmd: No probed ethernet devices Interactive-mode selected ... Any help is greatly appreciated On Thu, Jun 6, 2019 at 2:26 PM Reeve Yang wrote: > > Hi Gurus, > > I'm trying to bring VM under Amzaon EC2 R4.16xlarge instance, so the > ethernet device is uising Amazon ENA driver. The kernel is 3.10, dpdk > is 18.02. All ether device are bound successfully, but for some > reason, the DPDK data path cannot be initialized because > rte_eth_dev_count() always returns zero. Can someone shed some lights? > Thanks. > > I'm pretty sure the VM instance is set up correctly in terms ENA enabled. > > Below are some details: > # modinfo ena > filename: > /lib/modules/3.10.0-693.11.6.el7.228052.x86_64/kernel/drivers/net/ethernet/amazon/ena/ena.ko.xz > version: 1.0.2 > license: GPL > description: Elastic Network Adapter (ENA) > author: Amazon.com, Inc. or its affiliates > rhelversion: 7.4 > > # lspci -vt > -[0000:00]-+-00.0 Intel Corporation 440FX - 82441FX PMC [Natoma] > +-01.0 Intel Corporation 82371SB PIIX3 ISA [Natoma/Triton II] > +-01.1 Intel Corporation 82371SB PIIX3 IDE [Natoma/Triton II] > +-01.3 Intel Corporation 82371AB/EB/MB PIIX4 ACPI > +-02.0 Cirrus Logic GD 5446 > +-03.0 Device 1d0f:ec20 > +-04.0 Device 1d0f:ec20 > +-05.0 Device 1d0f:ec20 > +-06.0 Device 1d0f:ec20 > +-07.0 Device 1d0f:ec20 > +-08.0 Device 1d0f:ec20 > +-09.0 Device 1d0f:ec20 > +-0a.0 Device 1d0f:ec20 > +-0b.0 Device 1d0f:ec20 > \-1f.0 XenSource, Inc. Xen Platform Device > # dpdk-devbind.py -s > > Network devices using DPDK-compatible driver > ============================================ > 0000:00:04.0 'Device ec20' drv=igb_uio unused=ena > 0000:00:05.0 'Device ec20' drv=igb_uio unused=ena > 0000:00:06.0 'Device ec20' drv=igb_uio unused=ena > 0000:00:07.0 'Device ec20' drv=igb_uio unused=ena > 0000:00:08.0 'Device ec20' drv=igb_uio unused=ena > 0000:00:09.0 'Device ec20' drv=igb_uio unused=ena > 0000:00:0a.0 'Device ec20' drv=igb_uio unused=ena > 0000:00:0b.0 'Device ec20' drv=igb_uio unused=ena > > Network devices using kernel driver > =================================== > 0000:00:03.0 'Device ec20' if=nic0_0 drv=ena unused=igb_uio *Active*