Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp4512531pxb; Tue, 31 Aug 2021 07:01:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzBxNT/HVmq/8N58O4KkTU96wEcrvTENv9TUuI9IJ361Kmxc2zVgodHRN8Lr5/M/YRpdUOI X-Received: by 2002:a92:cace:: with SMTP id m14mr20815638ilq.146.1630418501277; Tue, 31 Aug 2021 07:01:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630418501; cv=none; d=google.com; s=arc-20160816; b=EFtBs104uCJdrRWEi7qitJLVGrX08uDsAGjKCFJl1V2KCKWJ6fjIpQ1bsvPXuA1gDs SiGqACXAkDAE1vm3kqqmWkDlR3Vl3ImLkoGYM4rtGIPhSzq30DISruuERzjA7IXkYTN0 rxiI+ydGHpYKVtOLRoOMisw3o9Ekc8igaZHiknk0O1N2Y3MLMeNojCj9AUfDEwN09psF 1bN6aKlq7tbBy1UBbsWMPH+ZzWSCAWtel+F+dH8cTuCve/q/3Ubd/1c3K/k3t6JrNESE vNTR+azkZ7P7j3x2vkZZTd2U/Im61m1Nvq9LsVsOUSoNA6BauoSXZ5GIxO2Y49iuFX+0 kksg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version:date :message-id:subject:references:in-reply-to:cc:to:from; bh=oDkEdTaWem3RbFQDg6R0OqQryALmABIMkZKx7niBt2U=; b=O3BmW079c54cCMCilKwUJQSqco48+pclhg7FrryGheY0GYZBO9n04wnV7w1ZSMjQ7h wY7Rsbivpb9wIF3ycE1ADqPGneH+y8JBXZkjH1Sqom3iOUBEzBQNoy+kKdSJSf/v1nMb tDQiHrVM0PxBRYCU6iEtg8uuCRSNI+sVsqcMgu3jzBs0TI4SOMUmb6z2ZCUhmwQZNTFB t0fKl87sWyFiBu91Z35IIt2kSEpki4GC4tNUi/N+QeTFeXkKT2wbkCpVDka7wVjkyCA0 jOc9BT3DtvHAykGSQhyvpgqzYE9LpHwV5Ckdp5ZV/981Knv1SHESdy167LYu1HQney2C vTfA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o4si15812690iom.0.2021.08.31.07.01.27; Tue, 31 Aug 2021 07:01:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236035AbhHaOAH (ORCPT + 99 others); Tue, 31 Aug 2021 10:00:07 -0400 Received: from ozlabs.org ([203.11.71.1]:45857 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238415AbhHaN7U (ORCPT ); Tue, 31 Aug 2021 09:59:20 -0400 Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 4GzTL40H8Pz9t0Z; Tue, 31 Aug 2021 23:58:20 +1000 (AEST) From: Michael Ellerman To: Alexey Kardashevskiy , Nicolin Chen , David Gibson , Leonardo Bras , Benjamin Herrenschmidt , kernel test robot , Frederic Barrat , Paul Mackerras , Michael Ellerman Cc: linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org In-Reply-To: <20210817063929.38701-1-leobras.c@gmail.com> References: <20210817063929.38701-1-leobras.c@gmail.com> Subject: Re: [PATCH v6 00/11] DDW + Indirect Mapping Message-Id: <163041821834.889087.5084622813010302887.b4-ty@ellerman.id.au> Date: Tue, 31 Aug 2021 23:56:58 +1000 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 17 Aug 2021 03:39:18 -0300, Leonardo Bras wrote: > So far it's assumed possible to map the guest RAM 1:1 to the bus, which > works with a small number of devices. SRIOV changes it as the user can > configure hundreds VFs and since phyp preallocates TCEs and does not > allow IOMMU pages bigger than 64K, it has to limit the number of TCEs > per a PE to limit waste of physical pages. > > As of today, if the assumed direct mapping is not possible, DDW creation > is skipped and the default DMA window "ibm,dma-window" is used instead. > > [...] Applied to powerpc/next. [01/11] powerpc/pseries/iommu: Replace hard-coded page shift https://git.kernel.org/powerpc/c/0c634bafe3bbee7a36dca7f1277057e05bf14d91 [02/11] powerpc/kernel/iommu: Add new iommu_table_in_use() helper https://git.kernel.org/powerpc/c/3c33066a21903076722a2881556a92aa3cd7d359 [03/11] powerpc/pseries/iommu: Add iommu_pseries_alloc_table() helper https://git.kernel.org/powerpc/c/4ff8677a0b192a58d998d1d34fc5168203041a24 [04/11] powerpc/pseries/iommu: Add ddw_list_new_entry() helper https://git.kernel.org/powerpc/c/92a23219299cedde52e3298788484f4875d5ce0f [05/11] powerpc/pseries/iommu: Allow DDW windows starting at 0x00 https://git.kernel.org/powerpc/c/2ca73c54ce24489518a56d816331b774044c2445 [06/11] powerpc/pseries/iommu: Add ddw_property_create() and refactor enable_ddw() https://git.kernel.org/powerpc/c/7ed2ed2db2685a285cb09ab330dc4efea0b64022 [07/11] powerpc/pseries/iommu: Reorganize iommu_table_setparms*() with new helper https://git.kernel.org/powerpc/c/fc8cba8f989fb98e496b33a78476861e246c42a0 [08/11] powerpc/pseries/iommu: Update remove_dma_window() to accept property name https://git.kernel.org/powerpc/c/a5fd95120c653962a9e75e260a35436b96d2c991 [09/11] powerpc/pseries/iommu: Find existing DDW with given property name https://git.kernel.org/powerpc/c/8599395d34f2dd7b77bef42da1d99798e7a3d58f [10/11] powerpc/pseries/iommu: Make use of DDW for indirect mapping https://git.kernel.org/powerpc/c/381ceda88c4c4c8345cad1cffa6328892f15dca6 [11/11] powerpc/pseries/iommu: Rename "direct window" to "dma window" https://git.kernel.org/powerpc/c/57dbbe590f152e5e8a3ff8bf5ba163df34eeae0b cheers