From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lf1-f43.google.com (mail-lf1-f43.google.com [209.85.167.43]) by dpdk.org (Postfix) with ESMTP id D248E5689 for ; Mon, 10 Dec 2018 10:10:43 +0100 (CET) Received: by mail-lf1-f43.google.com with SMTP id i26so7422386lfc.0 for ; Mon, 10 Dec 2018 01:10:43 -0800 (PST) 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=DcfrgWHHYst4DTu8Yw6J8JT7sFyjbqTXrmUjBtqCaYk=; b=Jj4mY8zqfYcKurw4XHbQaVnv9uP16ZDIrV8HfTZB1+j0MW+Ufp78WNK+/6BqjfKrU5 4O/g1PBgBTDUOhyETLEZwak8DGUeXKLF3bfIURALv/SonIUOqmXxB+Vj042rcD3GVlP8 QgxyC29WGimcEFxkdUph4SZwRkzhJsrLSO48+XlL2y57BnXtvg1/PRfntaEoVFIWCcOa yhqL1LfZJStOWA17zINfX1VSIJG4KUIMWaAg9usGOlOlxXmuRptoU1jfHQVRN2QnkB13 C0tR/mPQNkJvV4ONGhGobJVUcD6ipEVFMDu3+/R+bmFHGU6oDW/K9ubUlP35wtXsk5J4 Kw0Q== 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=DcfrgWHHYst4DTu8Yw6J8JT7sFyjbqTXrmUjBtqCaYk=; b=noD7RNnJ0aTwyG6jiSZT8+VEqRiR9zw2g7Ob83TZW4uqHnzVQeCidNo+OgkZIllcXy J+VAbm6pha/PlUVIXoD/NmU6nMXqjz2j0iAQi8guH7YkwZ1GOD+4RXkaehQHlQdK5QsV vw88xQizAvmy70CuYhNSaFDedS5opZWdRHTKY32WQRh3VAaoyCRUNHdCBhbrDR/4Sw8Q OqZSOwS6FoUBgHPAN/qeoMV6xFaNsa6ctNHDZfXXn07Bx9YuYWdPLyk4PJpwQ2qoc4Pw 3doYLB2zwQBIzGxVHe1mrG77wF+PsQH823k2v7sbYMa3SI/hPOOPBYeWOsMHZVSl6fn6 y9RQ== X-Gm-Message-State: AA+aEWZVu36zra9ruR0k/6ubmBf3vLiUfUGEzt1NnwAJRQeOHdYn1LpW qd6mIfhzjsVTkfiqiAXATVVZax88ck7XD++GYnXNz+tj X-Google-Smtp-Source: AFSGD/VUPBwuMde8dtiIpCmtjUTqD+bvLXJlTPn5o6j2hWwuhRIqSXMiZG4/zAsDZVH1wZxR/4O37IxiHziPglrm6RI= X-Received: by 2002:a19:a84e:: with SMTP id r75mr6526446lfe.45.1544433043131; Mon, 10 Dec 2018 01:10:43 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Ido Shamay Date: Mon, 10 Dec 2018 11:10:31 +0200 Message-ID: To: ramzahrehman@gmail.com Cc: users@dpdk.org Content-Type: text/plain; charset="UTF-8" Subject: Re: [dpdk-users] Cannot Bind eth0 to vfio-pci Driver 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: Mon, 10 Dec 2018 09:10:44 -0000 What is lspci output for this device? Looks like the device isn't supported by vfio-pcio (maybe it's a bridge or a card-bus). -22 is EINVAL, and from vfio-pci code the only relevant return of this error from probe flow looks like: if (pdev->hdr_type != PCI_HEADER_TYPE_NORMAL) return -EINVAL; On Mon, Dec 10, 2018 at 5:49 AM Ramzah Rehman wrote: > > I am trying to bind an interface eth0 to vfio driver. I have made sure > iommu is enabled in grub and kernel. I have loaded the module vfio-pci. Ran > following commands > > #modprobe vfio-pci > #chmod a+x /dev/vfio > #chmod 0666 /dev/vfio/* > #export DPDK_DIR=/usr/src/dpdk-stable-17.11.4 > #sudo $DPDK_DIR/usertools/dpdk-devbind.py --bind=vfio-pci 02:01.0 > > I got following error: > > Error: bind failed for 0000:02:01.0 - Cannot bind to driver vfio-pci > > I checked the error in dmesg: > > Got : > > [ 1815.793823] vfio-pci: probe of 0000:02:01.0 failed with error -22 > > let me know the reason. > > Best Regards, > Ramzah Rehman -- Ido