From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 3B8FCA0613 for ; Thu, 26 Sep 2019 13:02:29 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 2C8841BEA0; Thu, 26 Sep 2019 13:02:24 +0200 (CEST) Received: from mail-pl1-f196.google.com (mail-pl1-f196.google.com [209.85.214.196]) by dpdk.org (Postfix) with ESMTP id 490613237; Thu, 26 Sep 2019 13:02:20 +0200 (CEST) Received: by mail-pl1-f196.google.com with SMTP id d22so1202531pls.0; Thu, 26 Sep 2019 04:02:20 -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 :cc; bh=O+INeQQbYOZhsSIqkHGI8rAuw8fz6U3V+GFpnZCZhfg=; b=UiIHBQTgGBmfRd6fAv7r//0u8YR9qqu1u8nw5aVSfrAy+NR+7HTNjv0EVnkMIOc459 S1blhpAYwV0pBstj2HQju+vPkeoWVd9oifYrY89Rr2cpeRJ/dljQQD4bzjGaY7tuXKmO XP0snAwGZthY2LQ/Ufo2X4khJseZCgi6Ek7J8W70Kv2w21pqUo0sJAsTKg9P8Pig+DEO c4sCCGgWx4sYIMtx93OhJaLXQB5+X1dqbiuzWRolQKy7/Lw7ajAkpFHdXl40md65yUiz Qg6uyl6gs6lG3qE/mxXOGhEszt0LFeR6pgabKOwqkta8X5oiMVMK66tEQnQ59Yng1zun wW/g== 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:cc; bh=O+INeQQbYOZhsSIqkHGI8rAuw8fz6U3V+GFpnZCZhfg=; b=pUj6nU1Kv7C2x6vYUanAh0e5EIhDT5pAJYQGlZv9XtaTEXTJLqHQoFJgHfNlNSwOBE MaryW+SnbMYQUDFc3OpjZ4Ajjz+LYZ+CvR8R3mijtaIvUDo9iauKRWi1i2xwxXoTgBSC 0a+UvqBN0MQcgj/QVE2+7brleN4K91uC0iIo7Bx0E/W4wszhUvLyVs2d4J7Cv0jN7YqN t1FSVLBU30NIzSdq6pfjoGuO58OovKAVEjPeFFl7XJny91kmH5Ju/iyWCt/CNo18YY38 3qVjWOUNu48JSPYS/9S/5PuCcPZ3NPcBGwi+ZVOTuHMFXd7/oDFg4dbVfZCGRaBQeE4g C/6w== X-Gm-Message-State: APjAAAWWUYEWWp+xkzQZVU6+tuSdvRbrp6OmiNcEE/g1OcIPVk/AjYSr 9cVIFz3CKNXjrNLwoS+qW0x9OK7BlQhajozt+GA= X-Google-Smtp-Source: APXvYqxjlw2TYJ9SVz00faGCGS5zNp8I3L3r/4g8jF5K8SNQURCmw/RmTIgm8NjD9rbUrNI5gR44rsggi4UGCdT9uQg= X-Received: by 2002:a17:902:aa06:: with SMTP id be6mr3268560plb.9.1569495739248; Thu, 26 Sep 2019 04:02:19 -0700 (PDT) MIME-Version: 1.0 References: <20190926083602.GC1821@bricha3-MOBL.ger.corp.intel.com> In-Reply-To: <20190926083602.GC1821@bricha3-MOBL.ger.corp.intel.com> From: Deepak Gowda Date: Thu, 26 Sep 2019 16:32:25 +0530 Message-ID: To: Bruce Richardson Cc: dev@dpdk.org, users@dpdk.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: Re: [dpdk-users] [dpdk-dev] SR-IOV with 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: , Errors-To: users-bounces@dpdk.org Sender: "users" Hi Bruce, Thank you for the quick response. No it didn't work with igb_uio either. The reason is, I had made a mistake, When i created VFs on top of the 10G card, that interface was down actually. but i proceeded anyway because i could see mac on these vfs from "ifconfig -a". After a bit of looking around, i found that eth_ixgbevf_dev_init() expects these VFs to have some mac. Then i looked again with "ip link show dev parent_if_name", these vfs had no mac. So i administratively up'ed(ifconfig up) the parent interface and then created VFs on top it and bound them to vfio-pci. Now the test-pmd app works fine. Sorry for the false alarm. Thanks so much, -DG On Thu, 26 Sep 2019 at 14:06, Bruce Richardson wrote: > On Thu, Sep 26, 2019 at 11:57:04AM +0530, Deepak Gowda wrote: > > Hi, > > > > I'm trying to run test-pmd application with virtual functions bound to > > vfio-pci. > > I'm able to bind and unbind the virtual functions from ixgbevf to > vfio-pci > > and vice-versa > > And i'm seeing the below VF Initialization failure error, i can't seem to > > figure out what's going wrong here, > > > > EAL: using IOMMU type 1 (Type 1) > > PMD: eth_ixgbevf_dev_init(): VF Initialization Failure: -15 > > EAL: Releasing pci mapped resource for 0000:04:10.0 > > EAL: Calling pci_unmap_resource for 0000:04:10.0 at 0x7f808ba00000 > > EAL: Calling pci_unmap_resource for 0000:04:10.0 at 0x7f808ba04000 > > EAL: Requested device 0000:04:10.0 cannot be used > > EAL: PCI device 0000:04:10.2 on NUMA socket 0 > > EAL: probe driver: 8086:10ed net_ixgbe_vf > > EAL: using IOMMU type 1 (Type 1) > > PMD: eth_ixgbevf_dev_init(): VF Initialization Failure: -15 > > EAL: Releasing pci mapped resource for 0000:04:10.2 > > EAL: Calling pci_unmap_resource for 0000:04:10.2 at 0x7f808ba08000 > > EAL: Calling pci_unmap_resource for 0000:04:10.2 at 0x7f808ba0c000 > > EAL: Requested device 0000:04:10.2 cannot be used > > > > Here's some more information: > > I'm using dpdk-17.11. > > Created Virtual functions on Intel 82599ES 10G cards. > > Bound these vfs to vfio-pci. > > And tried to run the test-pmd. > > > > > Is this a vfio specific problem? Does the app work with those ports if they > are bound to igb_uio, for instance? > > /Bruce >