From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 1E3C3C001DF for ; Mon, 7 Aug 2023 23:39:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Content-Type: Content-Transfer-Encoding:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=AWEc7yNB0pVN00gCHdA6c6wIo2aD3GqT0CanQR0nQAo=; b=47FZ/ftTLD35H6iEywepWaTP8L L2geVfHfk6pNgoo9Ev0BD2hj5z72hRYyw1TsmoJ3du1M0incsBToKcuYf5DAfTIg7IaXElale/fCe fBKugiOvo9xJhU+GbmADJUqXzHEZnMmfOCuGWqrTgpZp+rrSesME+09z8mlrBC1ff3r5Ozc98VIYc ImAv9vhMUomofERTAeVpV8X1UtFMen6sQ/fnDlHXq5Vlm7n8LPaYOk8D9XaoDcmJNYccef/ekm+tG lPve9hdH3m15ciTck9zcbNrp0gLQDjLHhjX+4GNWsu7yhDzBtpUgHCr5J9C06vRH+7vQ6xXVEsPx1 sktS/S0Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qT9oq-001FGB-1o; Mon, 07 Aug 2023 23:39:24 +0000 Received: from linux.microsoft.com ([13.77.154.182]) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qT9on-001FEw-0Q for linux-arm-kernel@lists.infradead.org; Mon, 07 Aug 2023 23:39:22 +0000 Received: from linuxonhyperv3.guj3yctzbm1etfxqx2vob5hsef.xx.internal.cloudapp.net (linux.microsoft.com [13.77.154.182]) by linux.microsoft.com (Postfix) with ESMTPSA id 08FFA20CD151; Mon, 7 Aug 2023 16:39:19 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 08FFA20CD151 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1691451559; bh=EQXcYPykQB/jwitR5EDr0ODUk0xBPqd7pP3EgOvFa54=; h=From:To:Cc:Subject:Date:In-Reply-To:References:In-Reply-To: References:In-Reply-To:References:From; b=LSvV2hMcg+xTJVokTQNM3JqeRryUGVgZLYEqvfX5LyrXpPKkZ1feqwv9GTcIpydra g9kaQRL/PJvypv9WLcTvbO+Nrmo/wAt+91/krWudvRzKbM3DJx2EmIF4C8Ovxz/GI9 ZHTheXWqwAuc+muC7W2AXcGQq5+gAsHYHZV22ls8= From: Easwar Hariharan To: robin.murphy@arm.com Cc: catalin.marinas@arm.com, corbet@lwn.net, eahariha@linux.microsoft.com, easwar.hariharan@microsoft.com, iommu@lists.linux-foundation.org, iommu@lists.linux.dev, joro@8bytes.org, krckatom@amazon.de, linux-arm-kernel@lists.infradead.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, nicolinc@nvidia.com, sashal@kernel.org, stable@vger.kernel.org, will@kernel.org, yangyicong@hisilicon.com Subject: Re: [PATCH v3 5.15 4/6] iommu/arm-smmu-v3: Document MMU-700 erratum 2812531 Date: Mon, 7 Aug 2023 16:37:45 -0700 Message-Id: X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <919ab857-30cf-00a5-1a40-fb180678792e@arm.com> References: <919ab857-30cf-00a5-1a40-fb180678792e@arm.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <919ab857-30cf-00a5-1a40-fb180678792e@arm.com> References: <919ab857-30cf-00a5-1a40-fb180678792e@arm.com> Fcc: sent-mail In-Reply-To: <919ab857-30cf-00a5-1a40-fb180678792e@arm.com> References: <20230802170227.1590187-1-eahariha@linux.microsoft.com> <20230802170227.1590187-5-eahariha@linux.microsoft.com> <919ab857-30cf-00a5-1a40-fb180678792e@arm.com> X-Reply-UID: (2 > )(1 1589327539 7556)/var/spool/mail/eahariha X-Reply-Mbox: inbox MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230807_163921_225612_9AD1C1C5 X-CRM114-Status: GOOD ( 20.65 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Mon, 7 Aug 2023, Robin Murphy wrote: > On 2023-08-02 18:02, Easwar Hariharan wrote: >> From: Robin Murphy >> >> commit 309a15cb16bb075da1c99d46fb457db6a1a2669e upstream >> >> To work around MMU-700 erratum 2812531 we need to ensure that certain >> sequences of commands cannot be issued without an intervening sync. In >> practice this falls out of our current command-batching machinery >> anyway - each batch only contains a single type of invalidation command, >> and ends with a sync. The only exception is when a batch is sufficiently >> large to need issuing across multiple command queue slots, wherein the >> earlier slots will not contain a sync and thus may in theory interleave >> with another batch being issued in parallel to create an affected >> sequence across the slot boundary. >> >> Since MMU-700 supports range invalidate commands and thus we will prefer >> to use them (which also happens to avoid conditions for other errata), >> I'm not entirely sure it's even possible for a single high-level >> invalidate call to generate a batch of more than 63 commands, > > Out of interest, have you observed a case where this actually happens? Not so far, but this was more of a proactive pickup since the erratum was published and we have some hardware being tested. >> but for >> the sake of robustness and documentation, wire up an option to enforce >> that a sync is always inserted for every slot issued. >> >> The other aspect is that the relative order of DVM commands cannot be >> controlled, so DVM cannot be used. Again that is already the status quo, >> but since we have at least defined ARM_SMMU_FEAT_BTM, we can explicitly >> disable it for documentation purposes even if it's not wired up anywhere >> yet. > > Note that there seems to be a slight issue with this patch that I missed, > under discussion here: > > https://lore.kernel.org/linux-iommu/27c895b8-1fb0-be88-8bc3-878d754684c8@huawei.com/T/#t > Thanks for the heads up. I did not backport the TTL patch for this series, or the ones for 6.1 or 6.4, but I'll track the discussion. Could you CC any fixup patch you may create for this to stable for 5.15+ as well? Thanks, Easwar > Thanks, > Robin. > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel