From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by dpdk.org (Postfix) with ESMTP id 6D9F67D19 for ; Fri, 5 Jan 2018 13:58:03 +0100 (CET) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 931C283F42; Fri, 5 Jan 2018 12:58:02 +0000 (UTC) Received: from [10.36.112.27] (ovpn-112-27.ams2.redhat.com [10.36.112.27]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 1E3936090A; Fri, 5 Jan 2018 12:57:57 +0000 (UTC) To: santosh , Jianfeng Tan , dev@dpdk.org, ferruh.yigit@intel.com Cc: sergio.gonzalez.monroy@intel.com, thomas@monjalon.net, Peter Xu References: <1507718028-12943-1-git-send-email-jianfeng.tan@intel.com> <1507718028-12943-3-git-send-email-jianfeng.tan@intel.com> <6367d190-5d4b-71c1-5790-3b488f4dcc18@redhat.com> <4b239748-4b7c-b98d-7123-a5baeb6c8059@caviumnetworks.com> From: Maxime Coquelin Message-ID: <237773b9-0379-40b3-19c1-40c3eb37fe3b@redhat.com> Date: Fri, 5 Jan 2018 13:57:56 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: <4b239748-4b7c-b98d-7123-a5baeb6c8059@caviumnetworks.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.27]); Fri, 05 Jan 2018 12:58:02 +0000 (UTC) Subject: Re: [dpdk-dev] [PATCH 2/2] net: enable IOVA mode for PMDs X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Jan 2018 12:58:03 -0000 Hi Santosh On 01/05/2018 01:10 PM, santosh wrote: > Hi Maxim, > > > On Friday 05 January 2018 04:02 PM, Maxime Coquelin wrote: >> Hi Jianfeng, >> >> On 10/11/2017 12:33 PM, Jianfeng Tan wrote: >>> If we want to enable IOVA mode, introduced by >>> commit 93878cf0255e ("eal: introduce helper API for IOVA mode"), >>> we need PMDs (for PCI devices) to expose this flag. >>> >>> Signed-off-by: Jianfeng Tan >>> --- > > [...] > >> Ferruh, I see you also faced problems with KNI, how did you solved it? >> > By checking lsmod for rte_kni module and if found then set .iova_mode = _pa, refer [1]. > You may follow similar approach.. meaning detect emulation mode Or if not then > other-way to introduce --iova-mode=<> eal arg. Thanks for the information Detecting whether we are in host or guest is not that trivial, and as Peter pointed me out, the VT-d specifies the 39bits guest address width so there are certainly some processors in the wild using it. And I don't think introducing a new EAL arg in -stable is a good idea. If this is the only solution, then we should keep PA by default. When using intel IOMMU, I think the best solution is to forbid VA mode if GAW is 39 bits. Regards, Maxime > [1] http://dpdk.org/browse/dpdk/tree/lib/librte_eal/linuxapp/eal/eal.c#n810 > > Thanks. > >> Thanks, >> Maxime >> >> [0]: https://bugzilla.redhat.com/show_bug.cgi?id=1530957#c3 >