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 75E95ADEA for ; Mon, 23 Feb 2015 16:31:03 +0100 (CET) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga101.jf.intel.com with ESMTP; 23 Feb 2015 07:31:01 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.09,631,1418112000"; d="scan'208";a="689472378" Received: from irsmsx108.ger.corp.intel.com ([163.33.3.3]) by orsmga002.jf.intel.com with ESMTP; 23 Feb 2015 07:30:59 -0800 Received: from irsmsx155.ger.corp.intel.com (163.33.192.3) by IRSMSX108.ger.corp.intel.com (163.33.3.3) with Microsoft SMTP Server (TLS) id 14.3.195.1; Mon, 23 Feb 2015 15:30:56 +0000 Received: from irsmsx108.ger.corp.intel.com ([169.254.11.218]) by irsmsx155.ger.corp.intel.com ([169.254.14.159]) with mapi id 14.03.0195.001; Mon, 23 Feb 2015 15:30:56 +0000 From: "Iremonger, Bernard" To: "Richardson, Bruce" , "dev@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH] eal: mmap uio resources using resourceX files Thread-Index: AQHQT3ki/0vNkCScEkmJqQoh4bPjh5z+U9oAgAAIECA= Date: Mon, 23 Feb 2015 15:30:56 +0000 Message-ID: <8CEF83825BEC744B83065625E567D7C2049ECFCF@IRSMSX108.ger.corp.intel.com> References: <54E9695A.5010509@igel.co.jp> <1424703444-30761-1-git-send-email-bruce.richardson@intel.com> <20150223150001.GA9392@bricha3-MOBL3> In-Reply-To: <20150223150001.GA9392@bricha3-MOBL3> Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [163.33.239.180] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH] eal: mmap uio resources using resourceX files 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: Mon, 23 Feb 2015 15:31:04 -0000 > -----Original Message----- > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Bruce Richardson > Sent: Monday, February 23, 2015 3:00 PM > To: dev@dpdk.org > Subject: Re: [dpdk-dev] [PATCH] eal: mmap uio resources using resourceX f= iles >=20 > On Mon, Feb 23, 2015 at 02:57:24PM +0000, Bruce Richardson wrote: > > Instead of distinguishing the BAR mappings via offset within a single > > file, originally /dev/uioX, switch to mapping each individual bar via > > the appropriately numbered resourceX file. > > > > Signed-off-by: Bruce Richardson > > --- > Hi Tetsuya, >=20 > in our tests here, this patch seems to fix the immediate problem you were= experiencing on your > system. Can you perhaps verify? >=20 > Thanks, > /Bruce Hi Bruce, I was seeing a similar problem on my system when attaching a virtual functi= on port. testpmd> port attach 0000:06:10.0=20 Attaching a new port... EAL: PCI device 0000:06:10.0 on NUMA socket -1 EAL: probe driver: 8086:10ed rte_ixgbevf_pmd EAL: PCI memory mapped at 0x10000 EAL: pci_map_resource(): cannot mmap(27, 0x14000, 0x4000, 0x1000): Invalid = argument (0xffffffffffffffff) EAL: Requested device 0000:06:10.0 cannot be used EAL: Driver, cannot attach the device This patch seems to solve the problem. Regards, Bernard.