Linux-ARM-Kernel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Ashish Mhetre <amhetre@nvidia.com>
To: Nicolin Chen <nicolinc@nvidia.com>
Cc: Robin Murphy <robin.murphy@arm.com>,
	will@kernel.org, joro@8bytes.org, jgg@ziepe.ca,
	linux-arm-kernel@lists.infradead.org, iommu@lists.linux.dev,
	linux-kernel@vger.kernel.org, linux-tegra@vger.kernel.org
Subject: Re: [PATCH 1/2] iommu/arm-smmu-v3: Detect Tegra264 erratum
Date: Fri, 29 May 2026 11:41:09 +0530	[thread overview]
Message-ID: <38683872-c41a-4706-954a-5d99e82d0742@nvidia.com> (raw)
In-Reply-To: <ahiLoHUzuHHSw51d@Asurada-Nvidia>



On 5/29/2026 12:08 AM, Nicolin Chen wrote:
> On Thu, May 28, 2026 at 09:36:34PM +0530, Ashish Mhetre wrote:
>> On 5/28/2026 4:04 PM, Robin Murphy wrote:
>>> On 2026-05-28 11:16 am, Ashish Mhetre wrote:
>>>> Tegra264 SMMU is affected by erratum where a TLB entry can survive an
>>>> invalidation that races with concurrent traffic targeting the same
>>>> entry. The hardware-recommended software workaround is to issue every
>>>> CFGI/TLBI command (each followed by CMD_SYNC) twice. The second issue is
>>>> guaranteed to evict the entry. ATC_INV is not affected and must not be
>>>> doubled.
>>>>
>>>> Add the ARM_SMMU_OPT_TLBI_TWICE option and set it on instances matching
>>>> the existing "nvidia,tegra264-smmu" compatible. No callers consume the
>>>> option yet, next patch wires the workaround into the CMDQ issue paths.
>>> Can you not detect this implementation from IIDR like for our other
>>> workarounds? Otherwise what about ACPI?
>> Neither IDR nor IIDR flags this Tegra264-specific bug. We cannot
>> detect it from any HW register, so we have to rely on the Tegra264
>> device tree.
>> Regarding ACPI, the bug is in Tegra264 only, and Tegra264 is
>> device-tree-only. It doesn't support ACPI/IORT as of now.
> Let's add a note in the commit message.
>
> Nicolin

Sure, will do and resend.

Thanks,
Ashish Mhetre


  reply	other threads:[~2026-05-29  6:11 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-05-28 10:16 [PATCH 0/2] iommu/arm-smmu-v3: Tegra264 invalidation workaround Ashish Mhetre
2026-05-28 10:16 ` [PATCH 1/2] iommu/arm-smmu-v3: Detect Tegra264 erratum Ashish Mhetre
2026-05-28 10:34   ` Robin Murphy
2026-05-28 16:06     ` Ashish Mhetre
2026-05-28 18:38       ` Nicolin Chen
2026-05-29  6:11         ` Ashish Mhetre [this message]
2026-05-28 10:16 ` [PATCH 2/2] iommu/arm-smmu-v3: Issue CFGI/TLBI twice on Tegra264 Ashish Mhetre
2026-05-29  0:59   ` Jason Gunthorpe
2026-05-28 18:41 ` [PATCH 0/2] iommu/arm-smmu-v3: Tegra264 invalidation workaround Nicolin Chen
2026-05-29  6:18   ` Ashish Mhetre

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=38683872-c41a-4706-954a-5d99e82d0742@nvidia.com \
    --to=amhetre@nvidia.com \
    --cc=iommu@lists.linux.dev \
    --cc=jgg@ziepe.ca \
    --cc=joro@8bytes.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-tegra@vger.kernel.org \
    --cc=nicolinc@nvidia.com \
    --cc=robin.murphy@arm.com \
    --cc=will@kernel.org \
    /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