From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id CF00AA09DE; Fri, 13 Nov 2020 09:40:08 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id DFE185F13; Fri, 13 Nov 2020 09:39:50 +0100 (CET) Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) by dpdk.org (Postfix) with ESMTP id D89DB5B3C for ; Fri, 13 Nov 2020 09:39:49 +0100 (CET) Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id EDD215C00F0; Fri, 13 Nov 2020 03:39:45 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Fri, 13 Nov 2020 03:39:45 -0500 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=fm2; bh= /DcNH3LUnNLZhgvbJLMIlC59sVnZVU43y5Uf705L2xA=; b=iLclnAFFn2ARvNOj W2MjDfSxQkDSIuNxmVwt0nkGjF58C3LcqfkdL+uqodNIaJVpOZgWeC2xUGSOL2jK gJVT0zGGMdctO7Cvb/D7dc59qLsVGNj/evaHMbYGanC9U61i0xx55uVmJ9fBcVHL BPchJZyAe64c2bApE1yTb4xIWoC0dN7Tz7yPAIIzIoEmNwSlEmYqAsNCfVPfKJPW I0xb5gF0yCA0wYJWReOWikesBsqQlxVCvthFJ08E69HvHQiAbfl3C2CGHvl1WUOo rFkRODUjxGTJtawElfSr/L/Af+fXd5XgN6hS+QREzqatemZwBSL5ChmwtU+s7PNr m016BQ== 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=/DcNH3LUnNLZhgvbJLMIlC59sVnZVU43y5Uf705L2 xA=; b=JzjnHuTl+LPdMiMSCnCjgtxUYnJIAOx+FnN6SWv66yFSNMXVZHOt87Hvf 72dCs0WDyk+cr+BBxAaiQGWoOCpWnAG7AQmMqUGjONlhSNfgfAa4ZMilcoyv8hjZ 0HC0HPHO2b/HWxjcwax1LqyyaV5ogfWeh3zS6B96uaPEW5AjAtwYRDbLt+VjZdkS b6zU1nf1jcmy9FLjw2v1YSDwMm2xfU3lV8W/0GfoI7gqAZAdCL/9WfiMOFTTQ25X W6qPOPU55igPSUeaOQz7rzlDodZxRsiQBDedxMcgLMTAzp8sigs7lnaiuOyZ/DyU LgiU7odPeY22Rgfu4ifI4JVYvcOlA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedruddvgedguddvgecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhephffvufffkfgjfhgggfgtsehtuf ertddttddvnecuhfhrohhmpefvhhhomhgrshcuofhonhhjrghlohhnuceothhhohhmrghs sehmohhnjhgrlhhonhdrnhgvtheqnecuggftrfgrthhtvghrnhepudeggfdvfeduffdtfe eglefghfeukefgfffhueejtdetuedtjeeuieeivdffgeehnecukfhppeejjedrudefgedr vddtfedrudekgeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfh hrohhmpehthhhomhgrshesmhhonhhjrghlohhnrdhnvght 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 C64C0328005E; Fri, 13 Nov 2020 03:39:44 -0500 (EST) From: Thomas Monjalon To: David Christensen Cc: dev@dpdk.org, anatoly.burakov@intel.com, david.marchand@redhat.com Date: Fri, 13 Nov 2020 09:39:43 +0100 Message-ID: <10682021.SLBq4yNY96@thomas> In-Reply-To: <20201110174332.12409-2-drc@linux.vnet.ibm.com> References: <20201109203528.132797-1-drc@linux.vnet.ibm.com> <20201110174332.12409-1-drc@linux.vnet.ibm.com> <20201110174332.12409-2-drc@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-dev] [PATCH v7 1/1] vfio: modify spapr iommu support to use static window sizing 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" 10/11/2020 18:43, David Christensen: > The SPAPR IOMMU requires that a DMA window size be defined before memory > can be mapped for DMA. Current code dynamically modifies the DMA window > size in response to every new memory allocation which is potentially > dangerous because all existing mappings need to be unmapped/remapped in > order to resize the DMA window, leaving hardware holding IOVA addresses > that are temporarily unmapped. The new SPAPR code statically assigns > the DMA window size on first use, using the largest physical memory > memory address when IOVA=PA and the highest existing memseg virtual > address when IOVA=VA. > > Signed-off-by: David Christensen > Acked-by: Anatoly Burakov Applied, thanks