From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 435EAA0A0A; Mon, 5 Apr 2021 18:53:57 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C06054068C; Mon, 5 Apr 2021 18:53:56 +0200 (CEST) Received: from sender11-of-o51.zoho.eu (sender11-of-o51.zoho.eu [31.186.226.237]) by mails.dpdk.org (Postfix) with ESMTP id 0D9B84014E for ; Mon, 5 Apr 2021 18:53:54 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; t=1617641632; cv=none; d=zohomail.eu; s=zohoarc; b=E3RzlPOUSrm4JaJs2wVnHEzrhSJa3TRRMlCl+0st2cpAtgZ91R2HcfVnx/+eQQ1D9xyV/yHwEA8BjsBVncNxUfJXgXwKOj3QCoo2iliUaCT0nmKzcRsgRq4Xg/sDP5Gzo2MHUe3K/NqaidzNFu1YcQ8GlD3nKqFKL+wKEuMBNuI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.eu; s=zohoarc; t=1617641632; h=Content-Type:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=G5IZSQy5oPIz3W3ZHaNi8E7pW4WtfrsmRseKZ1sZlzk=; b=X6b5pNcTUBi9MJ6y9a7GGs1mq55YDzpxpKtox18H8p/FAtB+lvWb3KGbz1PwdE8hBqIIOqTr0N+ohty+45mzef1G8TkSNyv7SmOLXfNrgow5WK1HNuMyH3RH4IAPWkJ5t7j8fNGntAxBNq+ncDQoIiUksCNezx5lud6qxgzv9BI= ARC-Authentication-Results: i=1; mx.zohomail.eu; spf=pass smtp.mailfrom=liangma@liangbit.com; dmarc=pass header.from= header.from= Received: from DESKTOP-POQV63C.localdomain (109.76.62.98 [109.76.62.98]) by mx.zoho.eu with SMTPS id 1617641631346619.7530442044108; Mon, 5 Apr 2021 18:53:51 +0200 (CEST) Date: Mon, 5 Apr 2021 17:53:47 +0100 From: Liang Ma To: hamidreza Kheirabadi Cc: dev@dpdk.org Message-ID: <20210405165347.GA26@DESKTOP-POQV63C.localdomain> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) X-ZohoMailClient: External Subject: Re: [dpdk-dev] vfio error X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 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 Sun, Apr 04, 2021 at 07:10:43PM +0430, hamidreza Kheirabadi wrote: > Hi, > I have a dpdk application which binds nic with igb_uio. My problem is > whenever the kernel updates, I must recompile igb_uio.ko as well. > I want to use vfio instead but I got an error: > > Error: bind failed for 0000:06:00.0 - Cannot bind to driver vfio-pci > Error: unbind failed for 0000:06:00.0 - Cannot open > /sys/bus/pci/drivers//unbind > > I used ubuntu 20.04 and dpdk-18.05 and use dpdk-setup.py helper script > > Regards, > hamid Hi Hamid, Please double check if you enable IOMMU(VT-d) in you bios and if you kernel boot parameter has "intel_iommu=on". Regards Liang