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 920F9A0527; Mon, 9 Nov 2020 22:10:49 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 66D8F69C8; Mon, 9 Nov 2020 22:10:47 +0100 (CET) Received: from wout2-smtp.messagingengine.com (wout2-smtp.messagingengine.com [64.147.123.25]) by dpdk.org (Postfix) with ESMTP id DDAC9697B for ; Mon, 9 Nov 2020 22:10:44 +0100 (CET) Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.west.internal (Postfix) with ESMTP id B660ADF3; Mon, 9 Nov 2020 16:10:42 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Mon, 09 Nov 2020 16:10:43 -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= YEJKgQmDzT5Ks2NC3mc1T1qzqQgDooewCXf+4Xt4oqA=; b=JN+Buf7km2A1EQq+ U48XZP9kENqWve+//ukzLd6m2azYyJME0qK6Y0uZesRD8AU5s08QhMo/Xc/78KjD DQFs/rbU5zssKvKV1jrJ/pvSs4BKuFSEcFJ/r9rebJOVTI1gzLbBLEgK1FChVPDs rciYPYIdjUoP/r6nzPg2mHJMIx0aPgeidIVYxzrFdjZfnPLeTyMEsAsUtNuw7qWY 42HxMVx10O7IPGiaeM6rCrTVKUtlCbRTuDqhqdaGArflHXY7Dmr3nNqvmrDdZiuO 1l9rCrfTzpTm6/pXx26SyAw+3kc/z2LAMxnJnsTb96csKTJG2rL9lKbq/18VBbSH sMoNyQ== 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=YEJKgQmDzT5Ks2NC3mc1T1qzqQgDooewCXf+4Xt4o qA=; b=VMeJLFyI9JLTthHVXLstmuof6YE9eLNXUVB5DwJvqWMeJeVsQzr2/4GiW wGAm241aYwqRfi0i0TaUqu95vUQlowsX44kiTWm8+uhAoeaoi8YhtCxI5jGQOgA0 n2v83MFLqREG2Jae7eOrjsHgYyOBJKlbCBnDZh+wCnZ9WgQ/nGcxrYxn4EBxe0IW GmPj+6FDZOpBdOSyL6da2GJR125DnL05qJX6exBmWxEvfc2dPgvQDdwe/42I0mzX ZfEUuuShstpeLEvqWgFe3Q+IGjKPsZjb9sVaxqkECs98tw89iQMREGF/DKpy/usD zJDPcg0pVccz9YLQqtDvHCjCT6P2g== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrudduhedgudegkecutefuodetggdotefrod 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 2D745328005D; Mon, 9 Nov 2020 16:10:41 -0500 (EST) From: Thomas Monjalon To: anatoly.burakov@intel.com, David Christensen Cc: dev@dpdk.org, david.marchand@redhat.com Date: Mon, 09 Nov 2020 22:10:40 +0100 Message-ID: <2306483.5Vu9EJCFlN@thomas> In-Reply-To: <20201109203528.132797-2-drc@linux.vnet.ibm.com> References: <20201103220532.176225-1-drc@linux.vnet.ibm.com> <20201109203528.132797-1-drc@linux.vnet.ibm.com> <20201109203528.132797-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 v6 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" 09/11/2020 21:35, 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 Did you remove Anatoly's ack on purpose? He must review the patch again?