From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) by dpdk.org (Postfix) with ESMTP id 7D3DB239 for ; Tue, 16 Oct 2018 01:17:48 +0200 (CEST) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 167992207C; Mon, 15 Oct 2018 19:17:48 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Mon, 15 Oct 2018 19:17:48 -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=TSTALPlK/ZHCKVVAGQ2eCHRRCLYGukTadJAP/R4be3Q=; b=ALDojH7zwXHH gI99YtAvPeLiy3y4SvzbMHHtF/D9G3ItQ7LSknQXFy6ykQqg+2hBIAIyrQIz5i5C vS+btVIwXv8Te5WZTPYqHVx3Q9yhCz76ZdqnRsHt2zIpP8UlGa2WOnvQnkGOcYsS s3AjSmGEA2QbM61rrGDmoosSsEGw2gA= 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=fm1; bh=TSTALPlK/ZHCKVVAGQ2eCHRRCLYGukTadJAP/R4be 3Q=; b=IUVSfCFQ9n6Bv3bJtbpFsnDv1BgmUJV5shdE08sRBs2/ZwTGtd4L7XiQD 3V9q4t5RcqdDqlRwwiFsuy8/Y1WMmbeo6ml+U3ni802aZky+KFwX6mHyly7L+fHv 0o4vbEPpAmLh7ZduE32fw8DX4Z87ySbxaoIrAfXQxQTX85vlM1Hj0ECrx94npAUc 5PeyxwLPsS0fW6wbrC0nTRtsDaLIha0DuJFq3pRbmKPajIQPanSVQ7U8RHkVq4CA JU26MFzFWQ2F+XGAYKGkLxMQ2Qbbx97v4wSCqrTJnHPA3e+zelnb9bOkfjriiLZ9 PXkxubKjzUlFKGENxUsSSj3IjUaQQ== X-ME-Sender: 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 E3DB8102A0; Mon, 15 Oct 2018 19:17:45 -0400 (EDT) From: Thomas Monjalon To: Shreyansh Jain Cc: dev@dpdk.org, ferruh.yigit@intel.com, anatoly.burakov@intel.com, pbhagavatula@caviumnetworks.com Date: Tue, 16 Oct 2018 01:17:47 +0200 Message-ID: <2346030.H0sUSFOX6A@xps> In-Reply-To: <20181015120156.27793-4-shreyansh.jain@nxp.com> References: <20181015064202.20802-1-shreyansh.jain@nxp.com> <20181015120156.27793-1-shreyansh.jain@nxp.com> <20181015120156.27793-4-shreyansh.jain@nxp.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-dev] [PATCH v5 3/5] common/dpaax: add library for PA VA translation table 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: Mon, 15 Oct 2018 23:17:48 -0000 15/10/2018 14:01, Shreyansh Jain: > A common library, valid for dpaaX drivers, which is used to maintain > a local copy of PA->VA translations. > > In case of physical addressing mode (one of the option for FSLMC, and > only option for DPAA bus), the addresses of descriptors Rx'd are > physical. These need to be converted into equivalent VA for rte_mbuf > and other similar calls. > > Using the rte_mem_virt2iova or rte_mem_virt2phy is expensive. This > library is an attempt to reduce the overall cost associated with > this translation. > > A small table is maintained, containing continuous entries > representing a continguous physical range. Each of these entries > stores the equivalent VA, which is fed during mempool creation, or > memory allocation/deallocation callbacks. > > Signed-off-by: Shreyansh Jain > --- > config/common_base | 5 + > config/common_linuxapp | 5 + > drivers/common/Makefile | 4 + > drivers/common/dpaax/Makefile | 31 ++ > drivers/common/dpaax/dpaax_iova_table.c | 461 ++++++++++++++++++ > drivers/common/dpaax/dpaax_iova_table.h | 103 ++++ > drivers/common/dpaax/dpaax_logs.h | 39 ++ > drivers/common/dpaax/meson.build | 12 + > .../common/dpaax/rte_common_dpaax_version.map | 11 + > drivers/common/meson.build | 2 +- > 10 files changed, 672 insertions(+), 1 deletion(-) I will add this change when applying: NXP buses M: Hemant Agrawal M: Shreyansh Jain +F: drivers/common/dpaax/ F: drivers/bus/dpaa/ F: drivers/bus/fslmc/