From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id B51E35A86 for ; Tue, 14 Jul 2015 12:45:23 +0200 (CEST) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga103.fm.intel.com with ESMTP; 14 Jul 2015 03:45:22 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.15,471,1432623600"; d="scan'208";a="746811705" Received: from kmsmsx152.gar.corp.intel.com ([172.21.73.87]) by fmsmga001.fm.intel.com with ESMTP; 14 Jul 2015 03:45:21 -0700 Received: from shsmsx151.ccr.corp.intel.com (10.239.6.50) by KMSMSX152.gar.corp.intel.com (172.21.73.87) with Microsoft SMTP Server (TLS) id 14.3.224.2; Tue, 14 Jul 2015 18:45:19 +0800 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.246]) by SHSMSX151.ccr.corp.intel.com ([169.254.3.157]) with mapi id 14.03.0224.002; Tue, 14 Jul 2015 18:45:18 +0800 From: "Qiu, Michael" To: Stephen Hemminger Thread-Topic: [dpdk-dev] [RFC] vfio: only map regions VFIO supports Thread-Index: AQHQuc7ozMfOvIJ1xkWqCxAhV3StCw== Date: Tue, 14 Jul 2015 10:45:17 +0000 Message-ID: <533710CFB86FA344BFBF2D6802E60286046BAC8C@SHSMSX101.ccr.corp.intel.com> References: <1436395131-11205-1-git-send-email-stephen@networkplumber.org> <533710CFB86FA344BFBF2D6802E60286046B663B@SHSMSX101.ccr.corp.intel.com> <20150710102448.263257d4@urahara> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Cc: "dev@dpdk.org" Subject: Re: [dpdk-dev] [RFC] vfio: only map regions VFIO supports 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: Tue, 14 Jul 2015 10:45:24 -0000 Hi, Stephen=0A= =0A= I have found out the root cause of this bug, and generate a patch.=0A= =0A= Will send out later after :)=0A= =0A= Thanks,=0A= Michael=0A= =0A= On 7/11/2015 1:24 AM, Stephen Hemminger wrote:=0A= > On Fri, 10 Jul 2015 07:54:10 +0000=0A= > "Qiu, Michael" wrote:=0A= >=0A= >> Hi, Stephen=0A= >>=0A= >> This patch does not work for fm10k with vfio, see error below:=0A= >>=0A= >> EAL: PCI device 0000:84:00.0 on NUMA socket 1=0A= >> EAL: probe driver: 8086:15a4 rte_pmd_fm10k=0A= >> EAL: PCI memory mapped at 0x7f1980000000=0A= >> EAL: Trying to map BAR 2 that contains the MSI-X table. Trying offsets:= =0A= >> 0000:0000, 1000:1000=0A= >> EAL: PCI memory mapped at 0x7f1980401000=0A= >> EAL: pci_map_resource(): cannot mmap(105, 0x7f1980402000, 0x4000000,=0A= >> 0x0): Invalid argument (0xffffffffffffffff)=0A= >> EAL: 0000:84:00.0 mapping BAR4 failed: Invalid argument=0A= >> EAL: Error - exiting with code: 1=0A= >> Cause: Requested device 0000:84:00.0 cannot be used=0A= > Yes. The patch doesn't solve the problem (but might be needed in some fut= ure weird hw).=0A= >=0A= >=0A= =0A=