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 019EFA0096 for ; Fri, 7 Jun 2019 12:37:18 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id C61091BA56; Fri, 7 Jun 2019 12:37:17 +0200 (CEST) Received: from mail-lj1-f174.google.com (mail-lj1-f174.google.com [209.85.208.174]) by dpdk.org (Postfix) with ESMTP id 386CA1B9A5 for ; Fri, 7 Jun 2019 12:37:16 +0200 (CEST) Received: by mail-lj1-f174.google.com with SMTP id h11so1302174ljb.2 for ; Fri, 07 Jun 2019 03:37:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semihalf-com.20150623.gappssmtp.com; s=20150623; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=Duvtlfv6GrwBSp1/e8yOrl6hjUDqKQ0GBzeIYB+6CeE=; b=c1S0mpjt4RYOAgg4WreYctXr2Qc2Sq9h8C/YfPaZK4xIFs2biFu/xc112m+LlnQ8Ni 8JOs0dYkeR6t/nZx3jcUwv749VCDbDSED81LoJB2Q5D7h/bZ1UzkEckfE31yrJWMZkoP zfFsYzn0Jx1UkdxNmEneJjqQWpG7fzrmSnyzwwqAcnuGCjn595xkb7ETgbNz+/6Z/HjR UwQRab79kspyf7quQdcAabh1KscGI6OeT6R7Iy+p8LzUGJ6RFBM48jvOgkizaHFg7tjW 4RaIZ/wW4awFfvnQyI5/03Ef45ySX+ud2vZCwLvj6AAy5WSfxg/HWIBjYfMoMDQaP9VS 9hlw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=Duvtlfv6GrwBSp1/e8yOrl6hjUDqKQ0GBzeIYB+6CeE=; b=Y185zbPuWu3tv+qX7nUxrD4tBArN9vZ7zTXqBE+yErfv7oredF+eaaxRqoKmXTkp5S jlFfRCMf2bCxfVLSCpFMvQiFlNDdOFKkT5Avondmta3f7jlZANkOSJuPZaBne18sGmLq aJrQn5J/youq4WUjc5YlEF12Wa0pX3tqm5BPnAjRg00Lc5wi5VpPmXKMX/T4QMxmmfdJ L1rThJDPcJ9MLZ0i/dhrLJCG1hdZD/f914RjsfU9KfD5R+seXfu83VCwZitDPLpbrzL3 ykmn4QY6Y8o8wmv6Gd/+4XqeX0jkEzbLK8kCw3/5uPiZXPu8/h1ffvXUBuJHuzo29sZN Q4iw== X-Gm-Message-State: APjAAAWKqbiWWOlI8qhxpnQGevXgEy70l5RaOUmBhUxvcfn5/vq5Cs15 vocZMGf73eZVspCnXHwSzrxMS59sEdM= X-Google-Smtp-Source: APXvYqxMZIIgNzSfKXI+/OmGoCO2mRCM4xS61Nt9yRSlj6iBg7UiuiDV/QyXWIHtFU3L6Eo7+wlRnA== X-Received: by 2002:a2e:6d02:: with SMTP id i2mr489081ljc.124.1559903835246; Fri, 07 Jun 2019 03:37:15 -0700 (PDT) Received: from [10.0.0.49] (31-172-191-173.noc.fibertech.net.pl. [31.172.191.173]) by smtp.gmail.com with ESMTPSA id m82sm317380lje.97.2019.06.07.03.37.14 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 07 Jun 2019 03:37:14 -0700 (PDT) To: dev@dpdk.org References: From: =?UTF-8?Q?Micha=c5=82_Krawczyk?= Message-ID: <90beafdc-77ee-3d8e-4be3-0d908f3261b7@semihalf.com> Date: Fri, 7 Jun 2019 12:37:14 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit 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" Hi Reeve, On 07.06.2019 02:21, Reeve Yang wrote: > 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? On my setup it works fine. I've used 3.13 kernel and DPDK v18.02 and r4.18xl. I can probe and attach ENA on 00:04.0. I was using ami-02699dba41e68180a Ubuntu Server 14.04 LTS. I also couldn't reproduce your issue on kernel 4.4, it works fine for me. rte_eth_dev_count() is returning 1 in my case, because I have 1 ENA available. Could you give more details what AMI are you using? >> 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* Thanks, Michal