public inbox for linux-arm-kernel@lists.infradead.org
 help / color / mirror / Atom feed
From: Will Deacon <will@kernel.org>
To: Vladimir Oltean <vladimir.oltean@nxp.com>
Cc: Robin Murphy <robin.murphy@arm.com>,
	joro@8bytes.org, iommu@lists.linux.dev,
	linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH] iommu/arm-smmu: Report IOMMU_CAP_CACHE_COHERENCY even betterer
Date: Tue, 10 Jan 2023 11:10:50 +0000	[thread overview]
Message-ID: <20230110111049.GA8986@willie-the-truck> (raw)
In-Reply-To: <20230110105625.ououvyfj2g6ttkmf@skbuf>

On Tue, Jan 10, 2023 at 12:56:25PM +0200, Vladimir Oltean wrote:
> On Thu, Dec 15, 2022 at 04:51:55PM +0000, Robin Murphy wrote:
> > Although it's vanishingly unlikely that anyone would integrate an SMMU
> > within a coherent interconnect without also making the pagetable walk
> > interface coherent, the same effect happens if a coherent SMMU fails to
> > advertise CTTW correctly. This turns out to be the case on some popular
> > NXP SoCs, where VFIO started failing the IOMMU_CAP_CACHE_COHERENCY test,
> > even though IOMMU_CACHE *was* previously achieving the desired effect
> > anyway thanks to the underlying integration.
> > 
> > While those SoCs stand to gain some more general benefits from a
> > firmware update to override CTTW correctly in DT/ACPI, it's also easy
> > to work around this in Linux as well, to avoid imposing too much on
> > affected users - since the upstream client devices *are* correctly
> > marked as coherent, we can trivially infer their coherent paths through
> > the SMMU as well.
> > 
> > Reported-by: Vladimir Oltean <vladimir.oltean@nxp.com>
> > Fixes: df198b37e72c ("iommu/arm-smmu: Report IOMMU_CAP_CACHE_COHERENCY better")
> > Signed-off-by: Robin Murphy <robin.murphy@arm.com>
> > ---
> 
> Could someone please apply this patch?

Sorry, I missed that this was fixing a recent regression. I'll pick it up
today and send it to Joerg.

Will

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

  reply	other threads:[~2023-01-10 11:12 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-15 16:51 [PATCH] iommu/arm-smmu: Report IOMMU_CAP_CACHE_COHERENCY even betterer Robin Murphy
2022-12-19 12:03 ` Vladimir Oltean
2023-01-10 10:56 ` Vladimir Oltean
2023-01-10 11:10   ` Will Deacon [this message]
2023-01-10 14:02 ` Will Deacon

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=20230110111049.GA8986@willie-the-truck \
    --to=will@kernel.org \
    --cc=iommu@lists.linux.dev \
    --cc=joro@8bytes.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=robin.murphy@arm.com \
    --cc=vladimir.oltean@nxp.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