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 1EC63A04DC; Tue, 20 Oct 2020 14:05:27 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id BC135BC00; Tue, 20 Oct 2020 14:05:15 +0200 (CEST) Received: from wout4-smtp.messagingengine.com (wout4-smtp.messagingengine.com [64.147.123.20]) by dpdk.org (Postfix) with ESMTP id 88337BBDA for ; Tue, 20 Oct 2020 14:05:12 +0200 (CEST) Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.west.internal (Postfix) with ESMTP id 80306E2D; Tue, 20 Oct 2020 08:05:11 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Tue, 20 Oct 2020 08:05:11 -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=fm2; bh= Y7fMNnMS5RKui9Ge3axHrYgZ8NLyK532RMNMBjqW5/o=; b=j8Ev+2eM9uoVPl6j zr0Uujb/PXCUG/TZDbphp90HTjT2qoz4KsrA6J1vMYfZjUhwC1JIr6QXDepJ42FT xl2Y2KEX4BxiPpJazjSHCs3zYyMEpCceEdLwSeEP5gwW0m9SFLX1u/eUHyK/SHUG l+YX2OT08V6lFNcRPs8VjtOFGi8bbDnjw5jsKKlPeucPCdJ9zN2vEXPR3CR2HGDb NyqI60yM66nTh5ZAIaKeUj3iMXsJbfBSDcdVqrXtjuZ8QQBgq2ojvwAOsM4DJGlc LJHMPd9WSdP8HpC/px6WY7TOTweHX107RHri0N0kyWoMUKfykY+rQmCbemDFDTOr MLf9aA== 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=Y7fMNnMS5RKui9Ge3axHrYgZ8NLyK532RMNMBjqW5 /o=; b=gJugGAH4O4Jdwp5rESVVfINOGRDKI+aLuP7zCL1CxBCbnz9csIdlCC4th TTiuhF0Z49s3Z1KC4C+WDR2cTcsH9WxochZVqwidd71CuEAhTFLZYpsQ9ChDUECt KFNmPdEM4Sr+JXmrFgHgeCAd6qANHiil3G74KGgdqRhF7rvymq4YgUan/e8zdXUY Mq2sGd/q3k2C4dCJ/tscF1OVYxKvnxpq7VkH/L8nYWSs8F866wusFltFMTZ1cVix acplLWnIuLq2zrnRP+lTZXSMhFQrentMObqcs4es+kaZTkatFx66XKN9f6U3xLBB rPxb9nZU2+CrtQCAE7KTn84YcWaQQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrjeefgdegiecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhephffvufffkfgjfhgggfgtsehtufertd dttddvnecuhfhrohhmpefvhhhomhgrshcuofhonhhjrghlohhnuceothhhohhmrghssehm ohhnjhgrlhhonhdrnhgvtheqnecuggftrfgrthhtvghrnhepudeggfdvfeduffdtfeegle fghfeukefgfffhueejtdetuedtjeeuieeivdffgeehnecukfhppeejjedrudefgedrvddt fedrudekgeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhroh hmpehthhhomhgrshesmhhonhhjrghlohhnrdhnvght 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 048553280059; Tue, 20 Oct 2020 08:05:09 -0400 (EDT) From: Thomas Monjalon To: anatoly.burakov@intel.com Cc: dev@dpdk.org, david.marchand@redhat.com, David Christensen Date: Tue, 20 Oct 2020 14:05:08 +0200 Message-ID: <1907482.5PRSjmWX3Q@thomas> In-Reply-To: <20201015172305.105717-2-drc@linux.vnet.ibm.com> References: <20200810210707.745083-1-drc@linux.vnet.ibm.com> <20201015172305.105717-1-drc@linux.vnet.ibm.com> <20201015172305.105717-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 v4 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" Anatoly, please could you review this patch? 15/10/2020 19:23, 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