From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lf1-f49.google.com (mail-lf1-f49.google.com [209.85.167.49]) by dpdk.org (Postfix) with ESMTP id D0F703256 for ; Mon, 10 Dec 2018 06:28:49 +0100 (CET) Received: by mail-lf1-f49.google.com with SMTP id v5so7023922lfe.7 for ; Sun, 09 Dec 2018 21:28:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=from:references:in-reply-to:mime-version:thread-index:date :message-id:subject:to:cc; bh=kkVbUTMx5TIu738gMMSpwKC2mswb1CDv2ut49U2EQYY=; b=RFBRHlx+GL08LUnAMrydalKTejEE6iL5Dj+EI9zdITvS4zbw2wu+zZhoD1v+IuwILj jcyNYp6QhTPHKOBzlOEIn5zYv9LTrUFrX7+CpwwwvUjBACE2UfjMXEGyKDAESHfWIZ9B pzoeRxDJawuDboN9zsmnFnvOxwU7nP+OivEJ0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:references:in-reply-to:mime-version :thread-index:date:message-id:subject:to:cc; bh=kkVbUTMx5TIu738gMMSpwKC2mswb1CDv2ut49U2EQYY=; b=YetJ973qfttkKCHVW6QQV0Ah6TKdtopl8CdqMJZLwjGXSKsjo0ct21q6CjypFq0hQd QeCcCCPSMd5nc61HTrFzIb4Rrwvl/275WWm/18scEOH4DKuVrX2p4m1W8A1sqmKK8obU LKUVRHiUHBP7yDs8oz12Dq4+j0ZphErDrpPzdJAT3UJtmBAsxkIM5ZH7r/EZMJZMJh6g Um/8tjdoSEMpkFW85/5BibSkWEvTeoVGhQ1luZDr7xDjQlXrbGdxWq9o1S/cg37yUKyz NYDdLtlN88CREHz4AzM4EBTxDMX855I6ZdWr7GtLbLKKI3MMGu8vcbhsqCJZtXuqqx6D B7Xw== X-Gm-Message-State: AA+aEWa6eDz9552YBb40/gRkn/HSRHOFjKyMk2WS6dWu/Aq1mu4bcPau 1Q9nEzC1/IOQEVJcMyiSAKnKjyvLn6zG4r+jzf+6mQ== X-Google-Smtp-Source: AFSGD/UfTVydFZ8XlbsDl4M+Ev5wA8vRFAevq3lthVrAW2tSJbdbtQlEebYlOTnSst68x3AtwOoS6AgvH/eE8iZjef0= X-Received: by 2002:a19:690d:: with SMTP id e13mr5827158lfc.84.1544419729026; Sun, 09 Dec 2018 21:28:49 -0800 (PST) From: Murali Krishna References: In-Reply-To: MIME-Version: 1.0 X-Mailer: Microsoft Outlook 14.0 Thread-Index: AQKFDrXX7UB75dwyTSiHcfhkOeys5aQWdGDA Date: Mon, 10 Dec 2018 10:58:47 +0530 Message-ID: To: Ramzah Rehman Cc: users@dpdk.org Content-Type: text/plain; charset="UTF-8" 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: Mon, 10 Dec 2018 05:28:50 -0000 I encountered same issue. I was able to bind devices to vfio-pci after enabling VT-d in system bios. Check if this helps. Regards, Murali -----Original Message----- From: users [mailto:users-bounces@dpdk.org] On Behalf Of Ramzah Rehman Sent: Monday, December 10, 2018 9:19 AM To: users@dpdk.org Subject: [dpdk-users] Cannot Bind eth0 to vfio-pci Driver 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