From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id 3627C5944 for ; Wed, 5 Nov 2014 11:03:28 +0100 (CET) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga101.jf.intel.com with ESMTP; 05 Nov 2014 02:12:49 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.07,319,1413270000"; d="scan'208";a="602630159" Received: from bricha3-mobl3.ger.corp.intel.com ([10.243.20.32]) by orsmga001.jf.intel.com with SMTP; 05 Nov 2014 02:12:47 -0800 Received: by (sSMTP sendmail emulation); Wed, 05 Nov 2014 10:12:46 +0025 Date: Wed, 5 Nov 2014 10:12:46 +0000 From: Bruce Richardson To: Manoj Viswanath Message-ID: <20141105101246.GA9856@bricha3-MOBL3> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Organization: Intel Shannon Ltd. User-Agent: Mutt/1.5.23 (2014-03-12) Cc: dev@dpdk.org Subject: Re: [dpdk-dev] Ports not detected by IGB_UIO in DPDK 1.7.1 in QEMU_KVM environment X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Nov 2014 10:03:28 -0000 On Wed, Nov 05, 2014 at 03:28:13PM +0530, Manoj Viswanath wrote: > Hi, > > I have a DPDK application running on QEMU-KVM environment using DPDK 1.6.0. > I am trying to port the same to DPDK version 1.7.1. > > I am using Virt-manager GUI to assign e1000 emulated port to the VM. This > works fine in DPDK 1.6.0. The device is identified by IGB_UIO and > initialized by my application as expected. > > However in case of DPDK 1.7.1, the emulated e1000 devices do not seem to be > recognized. > Following is my analysis: > > 1. The API pci_get_uio_dev() is returning ERROR. This is called from > pci_uio_map_resource() in the flow of PCI PROBE [rte_eal_pci_probe()]. > > 2. Due to this, the PCI device is not getting mapped to the correct driver > (EM > ​ Driver​ > ). > > 3. The reason for the error in [1] appears to be that "uio" sub-directory > doesn't seem to be correctly created for interfaces assigned to this VM. > > 4. Upon further analysis i found that IGB_UIO probe function > ["igbuio_pci_probe()"] is not getting triggered indicating the port has *not > been assigned* to the IGB_UIO. > > Kindly refer to the attachments:- > - "Output of sys-bus-pci-devices" - indicating "uio" subdirectory not > created for PCI devices in case of DPDK 1.7.1 > - "Output of lspci -v" - indicating device not bound to driver in case of > DPDK 1.7.1 > - IGB_UIO init log snippet - indicating PCI devices not detected and > initialized by IGB_UIO in case of DPDK 1.7.1 > - CONFIG file used for DPDK compilation > > Not sure what has changed between 1.6.0 and 1.7.1 which is impacting this. > > Could someone throw light in this regard as to what i may be missing ? > > Thanks in advance. > > Regards, > Manoj Hi Manoj, can you perhaps give some details on how you were binding the device to the uio module both for 1.6 and for 1.7? /Bruce