From: Easwar Hariharan <eahariha@linux.microsoft.com>
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 [thread overview]
Message-ID: <e5b7d4fe-c99d-e545-875-33ad683c62e@linux.microsoft.com> (raw)
In-Reply-To: <919ab857-30cf-00a5-1a40-fb180678792e@arm.com>
In-Reply-To: <919ab857-30cf-00a5-1a40-fb180678792e@arm.com>
In-Reply-To: <919ab857-30cf-00a5-1a40-fb180678792e@arm.com>
On Mon, 7 Aug 2023, Robin Murphy wrote:
> On 2023-08-02 18:02, Easwar Hariharan wrote:
>> From: Robin Murphy <robin.murphy@arm.com>
>>
>> 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.
>
<snip>
next prev parent reply other threads:[~2023-08-07 23:39 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-02 17:02 [PATCH v3 5.15 0/6] ARM64 errata for stable kernel 5.15 Easwar Hariharan
2023-08-02 17:02 ` [PATCH v3 5.15 1/6] arm64: errata: Add workaround for TSB flush failures Easwar Hariharan
2023-08-02 17:02 ` [PATCH v3 5.15 2/6] arm64: errata: Add detection for TRBE write to out-of-range Easwar Hariharan
2023-08-02 17:02 ` [PATCH v3 5.15 3/6] iommu/arm-smmu-v3: Work around MMU-600 erratum 1076982 Easwar Hariharan
2023-08-02 17:02 ` [PATCH v3 5.15 4/6] iommu/arm-smmu-v3: Document MMU-700 erratum 2812531 Easwar Hariharan
2023-08-07 20:14 ` Robin Murphy
2023-08-07 23:37 ` Easwar Hariharan [this message]
2023-08-02 17:02 ` [PATCH v3 5.15 6/6] iommu/arm-smmu-v3: Document nesting-related errata Easwar Hariharan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=e5b7d4fe-c99d-e545-875-33ad683c62e@linux.microsoft.com \
--to=eahariha@linux.microsoft.com \
--cc=catalin.marinas@arm.com \
--cc=corbet@lwn.net \
--cc=easwar.hariharan@microsoft.com \
--cc=iommu@lists.linux-foundation.org \
--cc=iommu@lists.linux.dev \
--cc=joro@8bytes.org \
--cc=krckatom@amazon.de \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=nicolinc@nvidia.com \
--cc=robin.murphy@arm.com \
--cc=sashal@kernel.org \
--cc=stable@vger.kernel.org \
--cc=will@kernel.org \
--cc=yangyicong@hisilicon.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).