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 2618BA04B6; Thu, 17 Sep 2020 11:17:32 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 0C8881D5BD; Thu, 17 Sep 2020 11:17:32 +0200 (CEST) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id E7D171D5B7 for ; Thu, 17 Sep 2020 11:17:30 +0200 (CEST) IronPort-SDR: M95+UlMgB2Zm7oHC1ub07VrzfEpOmUdadarVZHCNcKP0DGuRPiZJDXvwEeaBH4ftw/Zu+kq9DG wFtKYuQyNkrA== X-IronPort-AV: E=McAfee;i="6000,8403,9746"; a="157066163" X-IronPort-AV: E=Sophos;i="5.76,436,1592895600"; d="scan'208";a="157066163" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Sep 2020 02:17:29 -0700 IronPort-SDR: 7rq7qxUgB4TR9L4WGq0fIEnexo81ZKIGEvhFyy2jVzApLzAmwv85HUHu3UZ4tXwcGx787ApFxz hyfRjiNz1dNg== X-IronPort-AV: E=Sophos;i="5.76,436,1592895600"; d="scan'208";a="332076139" Received: from bricha3-mobl.ger.corp.intel.com ([10.213.24.6]) by fmsmga004-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-SHA; 17 Sep 2020 02:17:28 -0700 Date: Thu, 17 Sep 2020 10:17:23 +0100 From: Bruce Richardson To: Sarosh Arif Cc: dev@dpdk.org Message-ID: <20200917091723.GD1568@bricha3-MOBL.ger.corp.intel.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 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?