From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf1-f179.google.com (mail-pf1-f179.google.com [209.85.210.179]) by dpdk.org (Postfix) with ESMTP id 7E9E55B12 for ; Tue, 11 Dec 2018 17:20:26 +0100 (CET) Received: by mail-pf1-f179.google.com with SMTP id c73so7335956pfe.13 for ; Tue, 11 Dec 2018 08:20:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=dFp6RCc1NlC/js3ysJSyUYxFyXZeZn2RRPx+yqbf3fU=; b=JqvAg2+/vKgZkTUmgoJDFYxWZnRkVRbKMZglkNxYT8+1oX+hyU6bPJuvpppbcRTaYS stFCqR+wkgLYgAi4cgHL2P09BnRFSHQRpwPloq1V+LDxUns5+7m4nrCIJjFtNPA900R+ f77ka44XdjSv4jLWoar8YXNa6imq/G1gr1fGTBUzfdQkxWOpGfKqrIwCeImcEQFayT8z Zjcr9esc9A0D003T1T1b8Llzse/8hKYcxqtbhBZUy57O3JL+7lm0dU6byVsqJJArXSx2 XkwBhCM4r0iC4SwnrMTmWcp908LkT4O7jMypKk5NGto6I8O+c2bjuW7I+LW5oYxvUnew daEQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=dFp6RCc1NlC/js3ysJSyUYxFyXZeZn2RRPx+yqbf3fU=; b=f6CbdvnkFyIFg2fdB/VcuE0D1z0PCJcANH8IW0KFbbel934TB+2Ohvo0QuZhiJ/gMs JmKN7pb1rcB6xe0ZvDTBvpNNAsSJEorW6Y4ui+kfHX9xh6jgy9OFWL6QN1Na4iUZ15yV A8Y/Q32TZl4NVaUfDWih5ZTvD2iZpJiCuh3PDAQbwzhVvyqxKCgOl6O4G2sUT1dJYFhd 8Z8SgVZbFHgFZde+EqRTSre6U/CPRNMsah1slVU/ofzeVXrExjPUOPGp2ISLEcUlda9I aj04lNW6mRcZBgL8CzsUID4EtbUSVw+NZrEKVOWv4dcgSKour228ZF1YbQ2mfnLb1HgU xd6w== X-Gm-Message-State: AA+aEWabW38yka4AuP6Gxjp7V5ZMwsG0fk6BauNg2YCVex8eqfSc1GN4 59gjGvdZ3Dn4kifgTpMz3YPLVrESHhs= X-Google-Smtp-Source: AFSGD/WHevNAB2GbvJRA19qzzrSf5BDaiEiOmKAMk6omBSOb1PU4NWzBH3wEQEdZtEk/Ql0KU1UO0g== X-Received: by 2002:a62:1447:: with SMTP id 68mr16639256pfu.257.1544545225465; Tue, 11 Dec 2018 08:20:25 -0800 (PST) Received: from xeon-e3 (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id 5sm24884702pfz.149.2018.12.11.08.20.25 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 11 Dec 2018 08:20:25 -0800 (PST) Date: Tue, 11 Dec 2018 08:20:23 -0800 From: Stephen Hemminger To: Ramzah Rehman Cc: users@dpdk.org Message-ID: <20181211082023.14fae1ec@xeon-e3> In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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: Tue, 11 Dec 2018 16:20:26 -0000 On Thu, 6 Dec 2018 10:41:26 +0500 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 Check other threads. For VFIO to work you need at a minimum: * Hardware with IOMMU * VT-d enabled in BIOS * Device on PCI not sharing IOMMU-group See vfio.txt in Linux kernel documentation for a full explanation. https://www.kernel.org/doc/Documentation/vfio.txt