From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id 12EBBA00E6 for ; Fri, 19 Apr 2019 12:38:25 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 31F081B9F4; Fri, 19 Apr 2019 12:38:24 +0200 (CEST) Received: from wout3-smtp.messagingengine.com (wout3-smtp.messagingengine.com [64.147.123.19]) by dpdk.org (Postfix) with ESMTP id BBBCF1B8FE for ; Fri, 19 Apr 2019 12:38:22 +0200 (CEST) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id 9ABB0529; Fri, 19 Apr 2019 06:38:20 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Fri, 19 Apr 2019 06:38:20 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding:content-type; s=mesmtp; bh=MRVBhbsaO+EUaZRtJxIzy2KgrF0TFMCJhKMgKncrGTw=; b=i4BXE0gbksum 7PTKYGIvyrV6ZMBMUeWMdV8DjZKXU8yqt5u+ryVb5SCKKkgKP52fcSf0mFfU+o8y ChXyW6bJEbCqgollIbg0+34cjaGK5J9qVUo+RRl2QcE3ExmBAHdq8MmSuzZKAGdD 9sgJ/tWAK4LgIGjEuSDqOxYYk0r6TDo= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=MRVBhbsaO+EUaZRtJxIzy2KgrF0TFMCJhKMgKncrG Tw=; b=Hc4RLpV+stkigy9NDGUu/f/5xsn20zcCjq28+Trf+MQop1IBr+wgTQqXu LxkP0kLuwHtGISKc49GJBt85l4yV6vPIdoNPv2kJzD2NRWQqEWs826m4j5J4tGcJ TMBLBEnOXVEyl/nV21cE2u18L4SE57sbQHGmDc3IOgl+2tPTKZci/VUa9L+xtxS3 nI5EupWnqVcErNY/CYh1IcY0tRpp5x1dgdDF6U/sEo4YxIzd+eodkYSbLF9SKxuN WTJ0/WN556quiu2hPxy0fy+KiMBJXWJy4sqwprA9Y3EsL2X7YoyG7z96EKwjYHrs 81FbHS/r+H8bPqydTbVBxCVMdo7pA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduuddrfeejgddvlecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhephffvufffkfgjfhgggfgtsehtufertd dttddvnecuhfhrohhmpefvhhhomhgrshcuofhonhhjrghlohhnuceothhhohhmrghssehm ohhnjhgrlhhonhdrnhgvtheqnecuffhomhgrihhnpeguphgukhdrohhrghenucfkphepje ejrddufeegrddvtdefrddukeegnecurfgrrhgrmhepmhgrihhlfhhrohhmpehthhhomhgr shesmhhonhhjrghlohhnrdhnvghtnecuvehluhhsthgvrhfuihiivgeptd X-ME-Proxy: Received: from xps.localnet (184.203.134.77.rev.sfr.net [77.134.203.184]) by mail.messagingengine.com (Postfix) with ESMTPA id C2F0AE40E3; Fri, 19 Apr 2019 06:38:18 -0400 (EDT) From: Thomas Monjalon To: kirankumark@marvell.com Cc: dev@dpdk.org, ferruh.yigit@intel.com Date: Fri, 19 Apr 2019 12:38:17 +0200 Message-ID: <1685312.mX6V73u8xZ@xps> In-Reply-To: <20190416045556.9428-1-kirankumark@marvell.com> References: <20190401095118.4176-1-kirankumark@marvell.com> <20190416045556.9428-1-kirankumark@marvell.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="UTF-8" Subject: Re: [dpdk-dev] [PATCH v3] kni: add IOVA va support for kni 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Message-ID: <20190419103817.VT-UC3NdYehur2VQGFeTpRb8rPDP_fAaZQbrR7gfRzA@z> Hi, 16/04/2019 06:55, kirankumark@marvell.com: > From: Kiran Kumar K > > With current KNI implementation kernel module will work only in > IOVA=PA mode. This patch will add support for kernel module to work > with IOVA=VA mode. > > The idea is to get the physical address from iova address using > api iommu_iova_to_phys. Using this API, we will get the physical > address from iova address and later use phys_to_virt API to > convert the physical address to kernel virtual address. > > With this approach we have compared the performance with IOVA=PA > and there is no difference observed. Seems like kernel is the > overhead. > > Signed-off-by: Kiran Kumar K > --- > > V3 Changes: > * Add new approach to work kni with IOVA=VA mode using > iommu_iova_to_phys API. Compilation test is failing: http://mails.dpdk.org/archives/test-report/2019-April/080701.html