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 DED78A04B6; Thu, 17 Sep 2020 10:39:43 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id AF99F1D587; Thu, 17 Sep 2020 10:39:42 +0200 (CEST) Received: from mail-ot1-f65.google.com (mail-ot1-f65.google.com [209.85.210.65]) by dpdk.org (Postfix) with ESMTP id EE2BF1D585 for ; Thu, 17 Sep 2020 10:39:41 +0200 (CEST) Received: by mail-ot1-f65.google.com with SMTP id u25so1179170otq.6 for ; Thu, 17 Sep 2020 01:39:41 -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=wBcd/wTl0fPPKr2BduyIfGmdTbZTdKJwVuyZPcfQJR0=; b=iF8BYi92zBhgi/R9LJefxPNY9zjcZd6ok1MlvG9mmeDs0uxW798k0tfbNokPRdDUnG g03xN8dSbR95lU5Aeve4Ux7ZknsSF7MlJCQ4wXquwK6M3KaxXFKs6NEuyc0+cosdaDz2 YwS4MSBgUoDOJBPYO38PTgiTuIozcBpS0ZIy8QTNQkJ2MmieeIiu2/FqdS8+TWq4f1MQ /veQGeOeJRi8XCR/c2ADyIACIoh/6MolH4wppn6+sca0DAy8IMcMDze+Dj+0+a1riHz1 OKqhqgHcVNzT/LWk2L+cIRrvIPAUkuDthrYRlv2+LfGf7ceev4YPB9m9TPKhz2cs1EXd LN/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=wBcd/wTl0fPPKr2BduyIfGmdTbZTdKJwVuyZPcfQJR0=; b=mzbgoUwpIcmdNOTJYLkZW5tCA9CNZar9ndl8GkrOjTbdZ77bsmaamqNtPsIwvKGuNb e4R9rpS84QkT7pNxRN1z9cUcPccIEhEfRQ39arGkDzR2Gvh4HxhyR5zsRtW/Rg4N1yCM 33+VogMOgn8hF9GjoZrumd3kkrZ0wYgydb50LBHaytVPBbTxf6KA0JxzBzUBcOLv8/4H rOBfIB6gyxLs4U3pVtpaK33DDmF5R3MrwpSqNNTXZ3XdqaKJUvNJE03ZJUYpdA2o9+37 PB8Qi6YvxNNWcZj4CAQEEQrVD+4naOduLmzIdG9bOOsTwVC3x1LSxxJLoR+Lx9QNcUcO 5A0g== X-Gm-Message-State: AOAM530a5B0xG9aqLrKvdhJxczVqXTeHOrZ0IsuIpbgsyxaBGnqo90cp 0T0tIMiRRDoerTUFTNDvvFW8IpwRHx/XY28e886lcfvgTG6Maw== X-Google-Smtp-Source: ABdhPJxebZ7nTlt9TCsaCTVr4Q5h1rcOMUMP1WIgKdK6ly3za1oJaZ6QHBuTa+mN4tJAdPsdL5rZ2+WpzKROJXn5NmQ= X-Received: by 2002:a05:6830:19ee:: with SMTP id t14mr19308172ott.171.1600331981216; Thu, 17 Sep 2020 01:39:41 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Sarosh Arif Date: Thu, 17 Sep 2020 13:39:05 +0500 Message-ID: To: "Dybkowski, AdamX" 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" Hello, On Thu, Sep 17, 2020 at 12:32 PM Dybkowski, AdamX wrote: > > Hi. > > > -----Original Message----- > > From: dev On Behalf Of Sarosh Arif > > Sent: Thursday, 17 September, 2020 08:53 > > To: dev@dpdk.org > > Subject: [dpdk-dev] unable to bind to vfio-pci > > > > 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. > > [Adam] First thing: to check if VT-d is enabled in Linux, you can read MSR 0x3a register. Its lowest bit set will show VT-d works: > > (optionally on Ubuntu: apt-get install msr-tools) > modprobe msr > rdmsr 0x3a > 3 or 5 -> OK > > Other possible way to check for VT-d (IOMMU) working is to view the booting log (dmesg): > > dmesg | grep DMAR > "DMAR: IOMMU enabled" -> OK > I used this method to check and vt-d is enabled. Is there anything else that I can do? > Both of these should be met in order to use vfio-pci in the next step. > > > 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? > > > > Regards, > > Sarosh Arif > > Adam Dybkowski >