Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp484321rdg; Thu, 12 Oct 2023 11:07:36 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH+d8d1AGwkY4pp4bEMFVdEVSBaP+OK/WYjlLMbW1Sr2wqMBM9YHtbOziMl4/174STB8NPq X-Received: by 2002:a05:6a00:3981:b0:68f:c078:b0c9 with SMTP id fi1-20020a056a00398100b0068fc078b0c9mr34139307pfb.11.1697134056083; Thu, 12 Oct 2023 11:07:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697134056; cv=none; d=google.com; s=arc-20160816; b=0tM4Cge8wHfyvolSvDR37yAjRLbu4kf6j6Fwfax5FGRSFo5IR7gaqWb0q9xfb+zmD0 whWNrZ6SEDMu2v6nfz0g9hgjelLI9ckRIH25lIelqsa+k9JINu20mLdxczLhJBljKWop tqPdwVtNDSN+95dCQhvQQ5zYCEil23iDFOF59rUKbw3zIBYIzlPjAwwoBcUE1hWVfkWV WG9trEqXKK4dO4tFYnZu5WrbK+BswIebG+/m9bSoTKqlWnZB8RAeZQtQDMaeE430IApv 3qjlzRYlRSjItZEW6I7SJhla8wjA/5WGl/rlTm25fK0BelEaSywIA7Rip7808cC77hpo S9tQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=9LcLb81nDDYxesCDUem5J0dYR0BxrUm8tGmW3k/UvtE=; fh=sIj1hpihtTmTJSu4xkore3xNyoXfxpppzdkcuTCR0Bw=; b=RPN+OFwAU9fusIP8T5fG2tYsA3kbB7mYn1VDcqIpGW1yyqRfw+YMDK5t9HBOiNl5Cj Lqd1s9CgpC9zt31YRK1Q1TLRw22pb50Z9KYOXCtWpQdpePjpTz/NVnHXEwVaD1qmuzSn MvJB6Qe8VizpurAUXXRUzNkW/lsHt9jSV8XeiyaRe9/vnu3oqbyivg6zPUv1zIVqfgxI uPGjJZyu00RWz0df7HYdTxVzqQihZfgkvxTqkaNrj8eTfhjh1Bi9P0it1oBg8/9xIcjN K9WeYC3kRdNvxAY22EI4E85xN076POx/lw81eQOt3v57E0bfgtTfoGODB1TgGR3MBehS ir3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=VGK+NAKP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id h12-20020a63574c000000b0059bb496956csi2789403pgm.202.2023.10.12.11.07.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Oct 2023 11:07:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=VGK+NAKP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 fry.vger.email (Postfix) with ESMTP id A4F20831F7F3; Thu, 12 Oct 2023 11:07:33 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1441932AbjJLSHN (ORCPT + 99 others); Thu, 12 Oct 2023 14:07:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57058 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1441973AbjJLSHM (ORCPT ); Thu, 12 Oct 2023 14:07:12 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CEEE4DE for ; Thu, 12 Oct 2023 11:07:09 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DD2A2C433C8; Thu, 12 Oct 2023 18:07:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1697134029; bh=axeVVnMAKN1esWZVbwxpsfj2uA1BnBo59XNlWHwYp+I=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=VGK+NAKP7Hs+dxFy5KnpClI/nmlc5PAETgqJfH3a/JTvQ6vi6TfiSv7043+wxfYxR cl9wEYQT+p152C96xLjjS2QFlBzp6C02YuHJSkJDmHhsqsoGJ/X8tF4IxzrGnSD1SU oJIp7oB15nfO+A0Iyp23SUN9aZfH27E32sqJqmToaNjs9andT1RXjJRQbB+/BV2QYP aobgj64ERN+DSkiqKyUASTbb1yR6HbFUjNSpOxSWTzm4GIrPORAZjywgtP2JQRmXq3 rlENlmcqI7cBdfF9aq14Om8oYrabMRfKh9r7pysqqxY1JNPNvuV5g5vgScKf6DHelb FL7KomIQxNpag== From: Will Deacon To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, iommu@lists.linux.dev, Michael Shavit Cc: catalin.marinas@arm.com, kernel-team@android.com, Will Deacon , Jason Gunthorpe , nicolinc@nvidia.com, tina.zhang@intel.com, Yicong Yang , Lu Baolu , "Kirill A. Shutemov" , Joerg Roedel , jgg@nvidia.com, Tomas Krcka , jean-philippe@linaro.org, Kevin Tian , Mark Brown , robin.murphy@arm.com Subject: Re: [PATCH v1 0/3] Clean-up arm-smmu-v3-sva.c: remove arm_smmu_bond Date: Thu, 12 Oct 2023 19:06:47 +0100 Message-Id: <169713222742.3248815.8112629001762142966.b4-ty@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20230905115013.1572240-1-mshavit@google.com> References: <20230905115013.1572240-1-mshavit@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit 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 fry.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 (fry.vger.email [0.0.0.0]); Thu, 12 Oct 2023 11:07:33 -0700 (PDT) On Tue, 5 Sep 2023 19:49:11 +0800, Michael Shavit wrote: > This small series was originally part of a larger effort to support > set_dev_pasid in arm-smmu-v3.c and a related SVA refactoring. But it can > also stand on its own as an initial and prepatory clean-up. > > The crux of this series relies on the observation that SVA won't > allocate multiple SVA domains for the same device and mm pair. There's > therefore no reason for the driver to try to normalize data allocated > for a device/mm pair across set_dev_pasid calls. This simplification > then allows set_dev_pasid to use the SVA iommu_domain to hold > information instead of allocating a "bond" to represent the attachement. > Note that long term, we'll likely want to represent the SVA domain using > the same arm_smmu_domain struct used in arm-smmu-v3. This series serves > as an interim step to make those later refactors easier to reason about. > > [...] Applied first two patches to will (for-joerg/arm-smmu/updates), thanks! [1/3] iommu/arm-smmu-v3-sva: Remove unused iommu_sva handle https://git.kernel.org/will/c/d912aed14fe4 [2/3] iommu/arm-smmu-v3-sva: Remove bond refcount https://git.kernel.org/will/c/37ed36448fcd Cheers, -- Will https://fixes.arm64.dev https://next.arm64.dev https://will.arm64.dev