Received: by 2002:a05:7412:bc1a:b0:d7:7d3a:4fe2 with SMTP id ki26csp1352809rdb; Mon, 21 Aug 2023 05:28:33 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF4djy6ypzrim+uv0MZahojew6cSo/fQh20+Sn6Uk/px0JsUYbltacnjR19YdFOTvOyYTyt X-Received: by 2002:a17:90b:1e0b:b0:268:5d00:3751 with SMTP id pg11-20020a17090b1e0b00b002685d003751mr3636960pjb.10.1692620913437; Mon, 21 Aug 2023 05:28:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692620913; cv=none; d=google.com; s=arc-20160816; b=0HzX8Bs8Xd+nKt06Y/qE3WoF6UC2YR5Hn38Xnh/sm+Ixi1V2aCijAnaeqwTPYhPgZQ YWkVuYMB5PElPxx2Bc0ft+ptPFil39qV9I75MWul28ybl0PkalPWfT2OsqEYlwE8ObVN rtXr1YVNrH4giHxoOfTim+IPckPTEo8/zqxSyN7A7CoAaFei6+AsdOuXBc+9rfXEYWk3 X3l68LbEs1+Gb9yhwUQlu9guxbC9oCbvdwhyf1IuPt5782FNNm2jqh3/oBYfPeIXMRtr ao8e1cXUjSTr+xM1Yl8pnuwd278YRtYj4UEYkA8S3TCvMbvgJb9VHiQ+6mnGsoV/S2q+ ClJQ== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=LXwAo7gJNodYVd3WrXreu5Sf18qLxCT6gwxfimohJXI=; fh=+gggS0BU3EuQfymt/CX6b4b/8TmLf52KNaOOMtzlqFo=; b=KSx7Zicw1B4XmbVvirWfVxI5e5eHZQGo4+TkDI4AWu4QQtHLxqjhxEGxjZ5vK9quBV XjSlLWTSbQF1l2WLMCkiuY8+QRs3iCbP//k0AGW0TUtiQD0YWNjit12KNWyu0ZEefjyO Ks/lKQUGuZuCnCi8zSt5wBrtAcRqmhkDrFZxz0JA0VDn2kfTOM3oNibG5PXo6XqAG+gl XnUGURtITi7OuB2GztxmhfHjhnWH/SvpAiFMvhMTYz3miO2z1wmJib5AnX9oS4eMZLO8 0qqJes0SZ+J23ewTFnydlRZ4CipYR+jhZGWt6nL4Ld/78FbwKVi4WaJVD9BXPlxwhAbQ h6Kg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=a5QpjJIW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l13-20020a17090a72cd00b0026b365096e5si7844036pjk.53.2023.08.21.05.28.20; Mon, 21 Aug 2023 05:28:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=a5QpjJIW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234820AbjHUKm4 (ORCPT + 99 others); Mon, 21 Aug 2023 06:42:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52564 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232787AbjHUKmz (ORCPT ); Mon, 21 Aug 2023 06:42:55 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 01E78D9 for ; Mon, 21 Aug 2023 03:42:54 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 66FC563069 for ; Mon, 21 Aug 2023 10:42:53 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1A863C433C8; Mon, 21 Aug 2023 10:42:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1692614572; bh=XnwUB514PPCDbHd6aAR29S9FdVfiRdORES8i2CcbAFA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=a5QpjJIWaWBVQFquS5BaAK1jjl/dAdClZj/ZErMCv8PiBda1NJF2FCHOz4u1Tz7qm lBteEy+WFVjjQHs2OsVdWPMhJB2XhqyJyVJqCXiTpMQV4cO4MJYKwGkrnd053nlkfH 0TNzt9SWggDfAlMt2sW7/1Cat4SRWzGW1MC3jReg/gDKqgnp274GDjanq5LEQuYwKK o8blznHtlaLByL3ZzrLNBNpqTZUlN/pPryWWywztYgVF98KrkLbkaqnr2XzL3z2oCi 5cceIc8VhkyhGIhtkF7KK0JX8dBZL5+GsL8hb44pxzMwIDnmz+xlKOwwuqSuLAtm4W /WgoCS8wD9CFQ== Date: Mon, 21 Aug 2023 11:42:47 +0100 From: Will Deacon To: Michael Shavit Cc: iommu@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, robin.murphy@arm.com, jean-philippe@linaro.org, jgg@nvidia.com, nicolinc@nvidia.com Subject: Re: [PATCH v6 09/10] iommu/arm-smmu-v3: Skip cd sync if CD table isn't active Message-ID: <20230821104247.GA19469@willie-the-truck> References: <20230816131925.2521220-1-mshavit@google.com> <20230816211849.v6.9.Idedc0f496231e2faab3df057219c5e2d937bbfe4@changeid> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 21, 2023 at 06:16:08PM +0800, Michael Shavit wrote: > On Wed, Aug 16, 2023 at 9:20 PM Michael Shavit wrote: > > > > This commit explicitly keeps track of whether a CD table is installed in > > an STE so that arm_smmu_sync_cd can skip the sync when unnecessary. This > > was previously achieved through the domain->devices list, but we are > > moving to a model where arm_smmu_sync_cd directly operates on a master > > and the master's CD table instead of a domain. > > > > Reviewed-by: Jason Gunthorpe > > Reviewed-by: Nicolin Chen > > Signed-off-by: Michael Shavit > > --- > > Happy to drop this commit if we don't think it's useful. > > Hi Will, > Do you have any recommendations for keeping or dropping this commit in > the end? It's only purpose is to minimize any potential performance > impact from the refactor but can certainly be dropped if you don't > think it's worth the complication. I'd prefer to drop it unless somebody can measure the benefits that it brings. Will