Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp363421rdg; Thu, 12 Oct 2023 07:51:00 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG4zRjQu0rzqyBu1bdzpXb03w/ecmw5qpgCJKsU6URFO1beQ4UEXl0E/oZdLBXxLUQB2pS9 X-Received: by 2002:a05:6a00:2d8c:b0:692:cede:c902 with SMTP id fb12-20020a056a002d8c00b00692cedec902mr24319115pfb.9.1697122260511; Thu, 12 Oct 2023 07:51:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697122260; cv=none; d=google.com; s=arc-20160816; b=Hu4oOsDQZl0P0emgT5KmR+y2OPruGX72kEY4cVP/xK2DMukxuMI40MhQKB00LzlQk7 ja3+CJPvb7UTjPQwAzOKAXTFhJTma3DhN26cxikSsr4VZLC5LXM/XUpAkpRgrjOMEjF9 Eg94Hy12NoWmK+9iKFj6bq99/OZXxBXhTWD7/3oL5BMH4UbNJKvvpdv2894d4UuPk6dP 4ljwshLvRDzEYDD1bqLz8eEsz8ToVsgA4hGJo4S2z5DJkJf9auVaE8BLCC4otfBoZ8t+ eR2jshnPCy6mnLn2OHDwX7Tdblq65cX5fat9EyWbK5i+cUndK5gLe2Ypd9pFAyXZq8ew e/Fw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=2Ngh5oY+P2i9k/ebXYgIe7MYVYMsDk66iiNjs4T/VW4=; fh=sAuVtmfDtX32+pKhNFfUaZL9S7kUCp4NLMgYqybIPL0=; b=fen+vBT1EJUFcvzyJcGJfwNzgOlM4UROaM6+twDRyWG31uDC9h1LUD7DcFO1k99dcN 1wFA/5w7LPqNsq7WRnnoFd9aHM7XNK5Ml5w8mfPDWPE/VOnALiYRQCPLz7s52iFxWm1u YzqTYOKW4sVdOJi8Eq442+H0M9cLtiF62DI3q2+bBoaWRxTxL1ZN6NN15i0YF1FXClc4 GHTnpg95rs8pTnOfinchWiPF+6jWAW/wa/1aaokUlS6UL45vBKYPPK4BxSnncGeilAXd PJ9GgmGPGqPapfD5F74NzCluoWZNVxJi+WxtzzQUeEuFCH2qlJ8feQR08dhN4w53DlC7 AfVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=AxzadzaU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id x8-20020a63db48000000b005898e10f9cbsi2427439pgi.572.2023.10.12.07.51.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Oct 2023 07:51:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=AxzadzaU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 4D3EB80CC147; Thu, 12 Oct 2023 07:50:52 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231290AbjJLOuh (ORCPT + 99 others); Thu, 12 Oct 2023 10:50:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34978 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235749AbjJLOue (ORCPT ); Thu, 12 Oct 2023 10:50:34 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 47472D8 for ; Thu, 12 Oct 2023 07:50:33 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0F0BAC433C8; Thu, 12 Oct 2023 14:50:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1697122232; bh=jTeKmCZozGobpMYGFZ7ihH4Bj3kZQ7OWdrTKoXPpUXk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=AxzadzaU1JzcuT6x7gFq1FurH5mRJuOcU2qmQHxQBfW74V6/V8siyUHSjr1DBKIF9 Fs9tOASWmW5NY58rcwavj4MCuMeDCCGNpAqtAKRVVBNHs2u3J0o9cMbekmDbi5vVTY +buqK6kVkQQSO1h/t1xoS6ksnN0E1OYXKOPKDjhpf8nvca8ucNeZwOnhhO6fCR1309 FQ+MsqZ/fEEZ2pyhREESuyfCOqvtWl9OZi0QClJPWoY9juCuP0VVhNk3NJUOWl8PRd pin6131NgPK0cL5rtCYFQVxacSW7Gg19DGOU6M6EcBdY9nymA7IpSkOoJq3Ty6mpsX Pq1awmLX/SSvg== Date: Thu, 12 Oct 2023 15:50:26 +0100 From: Will Deacon To: Jason Gunthorpe Cc: Michael Shavit , Joerg Roedel , iommu@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, nicolinc@nvidia.com, jean-philippe@linaro.org, robin.murphy@arm.com, Alistair Popple , Dawei Li , Jacob Pan , Kevin Tian , "Kirill A. Shutemov" , Lu Baolu , Tomas Krcka Subject: Re: [PATCH v8 0/9] Refactor the SMMU's CD table ownership Message-ID: <20231012145025.GB12374@willie-the-truck> References: <20230915132051.2646055-1-mshavit@google.com> <20231011234848.GA257246@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231011234848.GA257246@nvidia.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Thu, 12 Oct 2023 07:50:52 -0700 (PDT) On Wed, Oct 11, 2023 at 08:48:48PM -0300, Jason Gunthorpe wrote: > On Fri, Sep 15, 2023 at 09:17:31PM +0800, Michael Shavit wrote: > > > > Hi all, > > > > This series refactors stage 1 domains so that they describe a single CD > > entry. These entries are now inserted into a CD table that is owned by > > the arm_smmu_master instead of the domain. > > This is conceptually cleaner and unblocks other features, such as > > attaching domains with PASID (for unmanaged/dma domains). > > > > This patch series was originally part of a larger patch series that > > implemented the set_dev_pasid callback for non-SVA domains but is now > > split into a distinct series. > > > > This patch series is also available on gerrit with Jean's SMMU test > > engine patches cherry-picked on top for testing: > > https://linux-review.googlesource.com/c/linux/kernel/git/torvalds/linux/+/24742/16 > > > > Thanks, > > Michael Shavit > > > > Michael Shavit (9): > > iommu/arm-smmu-v3: Move ctx_desc out of s1_cfg > > iommu/arm-smmu-v3: Replace s1_cfg with cdtab_cfg > > iommu/arm-smmu-v3: Encapsulate ctx_desc_cfg init in alloc_cd_tables > > iommu/arm-smmu-v3: move stall_enabled to the cd table > > iommu/arm-smmu-v3: Refactor write_ctx_desc > > iommu/arm-smmu-v3: Move CD table to arm_smmu_master > > iommu/arm-smmu-v3: Cleanup arm_smmu_domain_finalise > > iommu/arm-smmu-v3: Update comment about STE liveness > > iommu/arm-smmu-v3: Rename cdcfg to cd_table > > Will, can you take this please? On my list to look at today! Will