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 AF3C7A05D3 for ; Sat, 30 Mar 2019 15:36:56 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id C95E24C91; Sat, 30 Mar 2019 15:36:55 +0100 (CET) Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) by dpdk.org (Postfix) with ESMTP id 9A437493D for ; Sat, 30 Mar 2019 15:36:54 +0100 (CET) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 15E01217D0; Sat, 30 Mar 2019 10:36:54 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Sat, 30 Mar 2019 10:36:54 -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=7wsRTJgQz/ER2TFAQokVdQ5ExQlAITfG5o8Z+VfbywY=; b=h9PkgNdD5OL7 VmeO/VlNr6wYjM75zO3QQtDfpg0AbB+hW1HaY9enifJBzoChQT5mdfK+CqFAxd/D E8tFwx9aipnamtXSnkyQbO9pjuq4nsRLEDNOnbJMQ0VcaiQcjnz3ZcQHN6aHYqih 6kVXRsLsn7qCR23Cz3FYd/kYAG73rn4= 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=7wsRTJgQz/ER2TFAQokVdQ5ExQlAITfG5o8Z+Vfby wY=; b=1M3uBwPtBD4dM82sMo6xLLEg/PgJ8Xt+d+F+ONQfLWZdGJXyz+Pt6TLgP tofXKXkkR6fmpyRL+Y53eEq8lN/bEZa0rtnjJTfHHqu6cQyPTyVhsyk7md+b7T6p jEbK5o0tZTuebooRk8qzv1M9ZAg4w8F3GTxZ9I3oDN2FQ04gf5wYwZ7pk2hy7MdV G0eidmzedsRAjfOQkGsuLdNnYK9/g+ZbIXQor1EJAf9nMoAsdNceuqOLFsw1161z vEHH8/0dHvJn1/flo/DmHjBUpwvSqzshFD+kfvb6gbCO2MTW24v2y141N7PuaZ/+ kjjOGT4x82HHqTJdGVvn4j5dJUocg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedutddrkeelgdeikecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvffufffkjghfggfgtgesthfuredttddtvdenucfhrhhomhepvfhhohhmrghs ucfoohhnjhgrlhhonhcuoehthhhomhgrshesmhhonhhjrghlohhnrdhnvghtqeenucfkph epjeejrddufeegrddvtdefrddukeegnecurfgrrhgrmhepmhgrihhlfhhrohhmpehthhho mhgrshesmhhonhhjrghlohhnrdhnvghtnecuvehluhhsthgvrhfuihiivgeptd 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 ED6A1E498E; Sat, 30 Mar 2019 10:36:50 -0400 (EDT) From: Thomas Monjalon To: Shahaf Shuler Cc: dev@dpdk.org, "anatoly.burakov@intel.com" , Yongseok Koh , "ferruh.yigit@intel.com" , "nhorman@tuxdriver.com" , "gaetan.rivet@6wind.com" Date: Sat, 30 Mar 2019 15:36:49 +0100 Message-ID: <3303376.pHsfKVRZFs@xps> In-Reply-To: References: <1698312.TEgN2QzQvo@xps> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="UTF-8" Subject: Re: [dpdk-dev] [PATCH v4 3/6] bus: introduce device level DMA memory mapping 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: <20190330143649.IW7oBVAywY5kpPoGXeu1eYYzCMHXY46BjynX__n2FFY@z> 13/03/2019 12:12, Shahaf Shuler: > From: Thomas Monjalon > > 10/03/2019 09:28, Shahaf Shuler: > > > For PCI bus devices, the pci driver can expose its own map and unmap > > > functions to be used for the mapping. In case the driver doesn't > > > provide any, the memory will be mapped, if possible, to IOMMU through > > VFIO APIs. > > > > > > Application usage with those APIs is quite simple: > > > * allocate memory > > > * call rte_extmem_register on the memory chunk. > > > * take a device, and query its rte_device. > > > * call the device specific mapping function for this device. > > > > Should we make it documented somewhere? > > The full flow to work w/ external memory is documented at doc/guides/prog_guide/env_abstraction_layer.rst , Subchapter "Support for Externally Allocated Memory. > The last commit in series update the right API to use. OK, then I will move this doc update in this patch.