Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp5406159rwb; Tue, 1 Aug 2023 01:52:20 -0700 (PDT) X-Google-Smtp-Source: APBJJlErhCLZBuYp6Gk+z71r/9zsyi0la7bQJVm2S+FWYg5z5vSFo7Mw9+io3BQS0g9+LjFuamsq X-Received: by 2002:a05:6a20:5530:b0:137:a9d7:d8cc with SMTP id ko48-20020a056a20553000b00137a9d7d8ccmr11210708pzb.24.1690879940582; Tue, 01 Aug 2023 01:52:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690879940; cv=none; d=google.com; s=arc-20160816; b=EddL3Q7eVJ30OSZNR7wlzCSxfJwWg/y5r5ob1Sx41zZJqlsG0o3HwB7dJ/BbKXeeUi Uxdhf57XV3P2rCOK2JGFRvWV7aOGC2+9S4MqlTrcWMYqH1Eg52/WBOqcEuLAmz3PmA3m CQoLNZhjXe5nkiK4IUkbWauKBqXuLih2LEgWaTCC58SVaUD1XImIZ4g38luiRGJEq+hk 93A8zqCCP4zAGPtpqDfJ3GgrggIabo+120jjjWajPeREB5IbOi8kxYCp0DX9PQNYVx1a NwQtdk5rRMjntW1dn5TcMO7m/qrbiI8BI4W1oipS6DKHiqhoabU1FySOtn6w54M5UhKX Nttw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=07Cpecqq6pZXp5bOGBn/40w+QHMX9uxVEzJR4bIliBs=; fh=p3m9da2/4fiwl+2KY7RSCMyrm2f0X9ekkjMAXHPj2To=; b=KWJ7wCA2aQl/RlBHvjq7DtzbUYIBUIQHF60TlMypH9dr0DogAETgEzv5csXeLJbPh5 0HqYr/8jsYX2rumy2hoaur1CARJTEEnN/LPY/nUo4mCIor3PMcRsmfLBKQkHbB6hDRcn /LoJIXpgmXiIoyUwkdUTn+Zhb8Hwfmeq4NXsfLxxG+8m4tnWnXteFWeg9Iv2qbtoRreC btY/0YDpca1vm5yF3Rka+zjPZsMrayr5XC+FN18gwqXgqqGqC18+5U91McYqCWAjKD85 OoP5zMnRpqPCh2OUO5k2Z2sd04qO/K+EHrWXeDk5qAPQHwa+r+JyViiHYI1ZTKFp5EDm /rsg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ocSGhdOx; 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=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bv126-20020a632e84000000b00563fb71ba23si8605122pgb.76.2023.08.01.01.52.08; Tue, 01 Aug 2023 01:52:20 -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=@linuxfoundation.org header.s=korg header.b=ocSGhdOx; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231976AbjHAIB2 (ORCPT + 99 others); Tue, 1 Aug 2023 04:01:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57342 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229917AbjHAIBY (ORCPT ); Tue, 1 Aug 2023 04:01:24 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9DD2D1729; Tue, 1 Aug 2023 01:01:23 -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 2502D614A3; Tue, 1 Aug 2023 08:01:23 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0807CC433C8; Tue, 1 Aug 2023 08:01:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1690876882; bh=6kqSeh2s0QB7HJFRWEDE8TrFNli7QfT0Sf6nWD+OGBY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ocSGhdOxgh299LUX3x6cTP6JfL027dGb7y/LAteyR33a/QMjbrP+HYy20vwe0tZI5 P7hfNVKofhN2UApJ5qftcGpXWbOroCmq0R7PkneiBi536ESAgwiTA6qUN8KihmSpaW 809GOzwyhc9Rjo8VHZM3OFIQ35yrghhdMR0fa8rE= Date: Tue, 1 Aug 2023 10:01:20 +0200 From: Greg KH To: Easwar Hariharan Cc: stable@vger.kernel.org, easwar.hariharan@microsoft.com, Robin Murphy , Nicolin Chen , Will Deacon , Catalin Marinas , Jonathan Corbet , Joerg Roedel , Sasha Levin , Yicong Yang , Tomas Krcka , "moderated list:ARM64 PORT (AARCH64 ARCHITECTURE)" , "open list:DOCUMENTATION" , open list , "open list:IOMMU DRIVERS" , "open list:IOMMU DRIVERS" Subject: Re: [PATCH 6.4] iommu/arm-smmu-v3: Document MMU-700 erratum 2812531 Message-ID: <2023080102-rake-twisty-746d@gregkh> References: <20230724185130.1676140-1-eahariha@linux.microsoft.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230724185130.1676140-1-eahariha@linux.microsoft.com> 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,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED 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, Jul 24, 2023 at 06:51:28PM +0000, 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, 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. > > Signed-off-by: Robin Murphy > Reviewed-by: Nicolin Chen > Link: https://lore.kernel.org/r/330221cdfd0003cd51b6c04e7ff3566741ad8374.1683731256.git.robin.murphy@arm.com > Signed-off-by: Will Deacon > Signed-off-by: Easwar Hariharan > --- > Documentation/arm64/silicon-errata.rst | 4 +++ > drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c | 39 +++++++++++++++++++++ > drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.h | 1 + > 3 files changed, 44 insertions(+) > > diff --git a/Documentation/arm64/silicon-errata.rst b/Documentation/arm64/silicon-errata.rst > index cd46e2b20a81..b0346968765d 100644 > --- a/Documentation/arm64/silicon-errata.rst > +++ b/Documentation/arm64/silicon-errata.rst > @@ -143,6 +143,10 @@ stable kernels. > +----------------+-----------------+-----------------+-----------------------------+ > | ARM | MMU-500 | #841119,826419 | N/A | > +----------------+-----------------+-----------------+-----------------------------+ > +| ARM | MMU-600 | #1076982 | N/A | > ++----------------+-----------------+-----------------+-----------------------------+ > +| ARM | MMU-700 | #2812531 | N/A | > ++----------------+-----------------+-----------------+-----------------------------+ But you didn't backport the MMU-600 change here, so why does the diff here show you did? And what about commit 0bfbfc526c70 ("iommu/arm-smmu-v3: Document nesting-related errata") after this? Can you send a properly backported series for this and the needed fixes after this, for all relevant kernels you wish to have the errata applied to? This single backport isn't enough, sorry. I've dropped all the patches you submitted for stable backports now. thanks, greg k-h