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 482FCA04CC; Mon, 21 Sep 2020 13:55:28 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 029501D72B; Mon, 21 Sep 2020 13:55:27 +0200 (CEST) Received: from mail-oi1-f194.google.com (mail-oi1-f194.google.com [209.85.167.194]) by dpdk.org (Postfix) with ESMTP id CCDAA1C1BD for ; Mon, 21 Sep 2020 13:55:25 +0200 (CEST) Received: by mail-oi1-f194.google.com with SMTP id v20so16616395oiv.3 for ; Mon, 21 Sep 2020 04:55:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=emumba-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=qIsQnn3Z3Lrc7PnQ/hqFxvAQjQppGEYDZBDVZDmW3ew=; b=ysUDqQJ0GxLY3lGJ+Y7DTTn5vqY3TpmhDMtgMi99PTQ3suon9lQWzl+fxUD6XksD0X NsjLujOy9TuQk7n2zGxE+C5M5Nvxg5KX37K7xHEYeSjsxrFrY+fywbB0xeqG8zDXfny5 tOvRUwvGh6Qtrd2eKW11wVJVpZQKcZfjS3qnizkFm1xy/YNyAbC9Snh+cMkMfNu/w+pA GqkWY47L4amC9ZlxaYSs2Z6icLidSpfkCAX02PrqLGm7mY20W/KKyV6F2rYs79FBEvBZ 2JvfaQGOIj00SvtYI1wJMOl3UqC9ydumw5UC+NCH0T1SILsRaOIYyxUC++ScUJkADtlj ILGQ== 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=qIsQnn3Z3Lrc7PnQ/hqFxvAQjQppGEYDZBDVZDmW3ew=; b=pi4DwL/tjG3gZq2FRKq8ya2t4va77hZxL4fVZyDbfqdx7iYLCmjGts3D9Kaf8TctYA Ka05xcJ4UcjRYQoSUkvhY0VX51U0rfwN/YAp+He3EQ4XI3JTsOXdW7DEj+dok9jx5ZRQ FNr2v3nSMJ9WUJEfgQCVfvO3LaC70UQ0ORDaKv26KWECDDbFK22ra4jcMfw8EUUADGit iOVaXHEZyZlmP9nFPZHPEILV68F7XWSD1EauJyEi4a0Vs5DXiZUb/9XNRwT2Xjf96aUP xFqmIMttIeSXYrOSLD2Xp+2L1nGN1BvNEP01Q3qiDI+VtW1pCcdsX0QbFy72imuQd0Cc ueUQ== X-Gm-Message-State: AOAM5339XxQaWFxp9LMxsmrOWX+PmozyVX+6O71/D/73sHwZo2AHUacq 2Do7Ff7jlW/R1jLmA10VMaDXhXr+gV1TuaEIb+eeuQ== X-Google-Smtp-Source: ABdhPJy+cZf0zLoEDfAZ4vQZoly/MBBhmo3FK5zCQy7d8jR9cwGGlFjiUGSiA/B2HmAOkNbOChJz7W1sFwbHt8v649M= X-Received: by 2002:aca:d549:: with SMTP id m70mr17401262oig.49.1600689325137; Mon, 21 Sep 2020 04:55:25 -0700 (PDT) MIME-Version: 1.0 References: <20200917091723.GD1568@bricha3-MOBL.ger.corp.intel.com> <9009b751-c6fa-7195-368b-ed7a1d2c91f5@intel.com> In-Reply-To: <9009b751-c6fa-7195-368b-ed7a1d2c91f5@intel.com> From: Sarosh Arif Date: Mon, 21 Sep 2020 16:54:48 +0500 Message-ID: To: "Burakov, Anatoly" Cc: Bruce Richardson , dev@dpdk.org Content-Type: text/plain; charset="UTF-8" Subject: Re: [dpdk-dev] unable to bind to vfio-pci 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" On Thu, Sep 17, 2020 at 2:35 PM Burakov, Anatoly wrote: > > On 17-Sep-20 10:21 AM, Sarosh Arif wrote: > > On Thu, Sep 17, 2020 at 2:17 PM Bruce Richardson > > wrote: > >> > >> On Thu, Sep 17, 2020 at 11:52:58AM +0500, Sarosh Arif wrote: > >>> I have been trying to bind to vfio-pci using usertools/dpdk-devbind.py > >>> but am unable to do so. The reason behind this is that I am unable to > >>> write in /sys/bus/pci/drivers/vfio-pci/bind. Upon searching solutions > >>> I tried a couple of things such as setting iommu=pt and intel_iommu=on > >>> and ensured vt-d is enabled. > >>> Along with this I have made sure that the vfio-pci module is correctly > >>> loaded. I have also tried > >>> > >>> chmod 666 /sys/bus/pci/drivers/vfio-pci/bind > >>> > >>> So that I have permissions to write in this file. > >>> > >>> The error I get when I use usertools/dpdk-devbind.py to bind is this: > >>> Error: bind failed for 0000:b7:00.1 - Cannot bind to driver vfio-pci > >>> > >>> The details of 0000:b7:00.1 are as follows: > >>> Ethernet Connection X722 for 10GBASE-T 37d2' if=eno6 drv=i40e > >>> > >>> I have also unbinded The pci bridge to which 0000:b7:00.1 was connected. > >>> > >>> What more can be done to resolve this? > >>> > >> Since you describe changing permissions on the "bind" file, are you trying > >> to run dpdk-devbind.py as a non-root user? Does it work as root? > > I am running it as a root user. It does not work as a root user. > > > > Does "dmesg | tail" say anything of interest? This is the output of dmesg | tail: [136286.136271] ixgbe 0000:65:00.0 enp101s0f0: NIC Link is Down [221230.023654] ixgbe 0000:65:00.0 enp101s0f0: NIC Link is Up 10 Gbps, Flow Control: RX/TX [221230.024134] ixgbe 0000:65:00.0 enp101s0f0: NIC Link is Down [249273.956525] ixgbe 0000:65:00.0 enp101s0f0: NIC Link is Up 10 Gbps, Flow Control: RX/TX [249273.957003] ixgbe 0000:65:00.0 enp101s0f0: NIC Link is Down [314864.386303] EXT4-fs (sda1): mounting ext3 file system using the ext4 subsystem [314867.734973] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null) [332584.888223] ixgbe 0000:65:00.0 enp101s0f0: NIC Link is Up 10 Gbps, Flow Control: RX/TX [332584.888700] ixgbe 0000:65:00.0 enp101s0f0: NIC Link is Down [358429.954026] VFIO - User Level meta-driver version: 0.3 > > -- > Thanks, > Anatoly