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 62947A04B6; Thu, 17 Sep 2020 11:22:06 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 3373A1D5C2; Thu, 17 Sep 2020 11:22:06 +0200 (CEST) Received: from mail-ot1-f67.google.com (mail-ot1-f67.google.com [209.85.210.67]) by dpdk.org (Postfix) with ESMTP id A331B1D5BE for ; Thu, 17 Sep 2020 11:22:04 +0200 (CEST) Received: by mail-ot1-f67.google.com with SMTP id n61so1257109ota.10 for ; Thu, 17 Sep 2020 02:22:04 -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=IjEhdOGWqXPbRwU0+MZEoL77TSWw87QniHi8RelANe8=; b=ZzdvSXJXhE8FuiNarFaGtFe1nqSsJWG7mlFMDzLxcZPAcaK2oYbh7Svbww3yWURU8T cajyqIPO2srtp0RJ9N0Qw97qjUxbj/vlt/SJxUo82TI+/Z1DX4i1Q4/MO1sB9LS16Aic 6/sEiia2g+ncMrAUuVy7hg/0GrCrEprkBRZnPi7jyBnKX5oDzffPmCm589Kn9E7bcrwb hHTlc+/hg2miU5TYWH9zOPyNpkrqEEKRqW1xpmkIunwtRilUNFJaVFdqgV1AYujSGyru /TRXZvmcaTAcEDWti4IT1KFKf2aE4MrtE4VzutRDdFqeLZYjVN23MGStEFiUpB5DvYrm rCTQ== 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=IjEhdOGWqXPbRwU0+MZEoL77TSWw87QniHi8RelANe8=; b=hoFh0vM+T4L+InRN00oXE9KkWzjOYZ4IdiB0ekMnVM5dT1egSRQVcN6/B4jV+lQImf t6RByktJpADDcZD8mPrTXkgxTocQ4I3ZzlA34cAiI8cM2GJ+nDhmN/qyJq6YBzi5R0TC JRhGidSAgGyO34N7MwcQCy0UMstDkI7BTdNsmiVefVjSwQy+iWGNSy3ziFrO1S1pL0DB vlqkCzKOUJWMduRS7zFHJXENrliWNsC6+djbplza3D8MF8LzIfbEuIijCPhFuPOSSnfX F50P3SAmTMb4USgBJbHHVk3cBxnua5+J5PMLrKCUCzj2tew357P3/glKtDHC9dJdDFU5 H6rQ== X-Gm-Message-State: AOAM530EYQz4s2ys9JvE/lxakowYKWCIcyIE22pJIK7glomnWDE5qC0V /PDSMbwyWh5kQj9Pbyk37QBQKMZtUGfO7SWM7Xa0TU8TIudJGA== X-Google-Smtp-Source: ABdhPJyjw5+V1N2KGci2kHIPv7shrjoZXgagSAw+HciVkkk3T7ITkgYANsP7zlk27RF0UwRdHb5n0D2qCkCas1Ls15g= X-Received: by 2002:a05:6830:20d3:: with SMTP id z19mr18277600otq.210.1600334523819; Thu, 17 Sep 2020 02:22:03 -0700 (PDT) MIME-Version: 1.0 References: <20200917091723.GD1568@bricha3-MOBL.ger.corp.intel.com> In-Reply-To: <20200917091723.GD1568@bricha3-MOBL.ger.corp.intel.com> From: Sarosh Arif Date: Thu, 17 Sep 2020 14:21:27 +0500 Message-ID: To: Bruce Richardson Cc: 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: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.