From: Robin Murphy <robin.murphy@arm.com>
To: Rob Herring <robh@kernel.org>, Peter Griffin <peter.griffin@linaro.org>
Cc: Will Deacon <will@kernel.org>,
"Joerg Roedel (AMD)" <joro@8bytes.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Pranjal Shrivastava <praan@google.com>,
Daniel Mentz <danielmentz@google.com>,
Mostafa Saleh <smostafa@google.com>,
linux-arm-kernel@lists.infradead.org, iommu@lists.linux.dev,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
kernel-team@android.com, tudor.ambarus@linaro.org,
andre.draszik@linaro.org, willmcvicker@google.com,
jyescas@google.com
Subject: Re: [PATCH 0/2] Add arm-smmu-v3 support for instcfg data override feature
Date: Mon, 10 Aug 2026 19:03:20 +0100 [thread overview]
Message-ID: <530dbb40-e7e2-4121-a5eb-5f16152fd11b@arm.com> (raw)
In-Reply-To: <20260807224745.GA2180415-robh@kernel.org>
On 07/08/2026 11:47 pm, Rob Herring wrote:
> On Fri, Aug 07, 2026 at 04:25:11PM +0100, Peter Griffin wrote:
>> Hi Will & Robin,
>>
>> Thank you both for your review feedback.
>>
>> On Mon, 27 Jul 2026 at 11:53, Robin Murphy <robin.murphy@arm.com> wrote:
>>>
>>> On 26/07/2026 2:16 pm, Will Deacon wrote:
>>>> On Fri, Jul 24, 2026 at 01:39:41PM +0100, Peter Griffin wrote:
>>>>> These two patches add support for a new "arm,instdata-override" DT property
>>>>> that enables the override of the instruction/data attribute of incoming
>>>>> traffic to Data by setting the INSTCFG override bits.
>>>>>
>>>>> It is intended to be specified when the smmu can't guarantee that these
>>>>> attributes are provided correctly from the client device.
>>>>
>>>> This is going to need an in-tree user and a much more detailed
>>>> description of what is being worked around before we consider this for
>>>> inclusion.
>>
>> Regarding an in-tree user, I haven't sent the Device Tree (DT) patch
>> yet for Laguna SoC which adds the smmu nodes and this property because
>> 1) I want to land the initial SoC/board DT first
>> 2) I want agreement on the DT property name. Currently I used
>> "arm,instdata-override" which is what downstream used. However, since
>> this is intended to work around silicon errata something like
>> "google,lga-instcfg-data-override" might be more appropriate?
>
> Shrug.
>
> Really, this is why we want SoC specific compatibles so work-arounds can
> be added without DT updates. But we've generally avoided doing that for
> SMMU for whatever reasons. Just make the property clearly sound like a
> mistake, not a feature you might want to use. I'd keep the arm prefix
> just so the next vendor thinks they can't use 'google' and creates the
> same property with their vendor prefix.
I dunno, I'd be inclined to keep it more vendor/SoC-specific and tied to
the problem more than one (of potentially several) specific workaround -
if we did ever want to support using the INSTCFG/PRIVCFG/MEMCFG
overrides per their full architectural intent, they are per-StreamID
controls so as such would really want to be encoded in an additional
#iommu-cell (or at worst maybe a property on the client device node).
Frankly for a workaround condition to just blanket-apply to every SMMU
instance in a particular SoC, I'm honestly thinking that just whacking
an of_machine_is_compatible() in the driver isn't necessarily the worst
idea either - after all we do already have the ACPI equivalent of that
for some of the HiSilicon stuff, it's just hidden in the IORT code (and
OK it's used for the SMMU PMUs rather than the actual SMMU devices
themselves, but still...)
Thanks,
Robin.
next prev parent reply other threads:[~2026-08-10 18:03 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-24 12:39 [PATCH 0/2] Add arm-smmu-v3 support for instcfg data override feature Peter Griffin
2026-07-24 12:39 ` [PATCH 1/2] dt-bindings: iommu: add arm,instdata-override property documentation Peter Griffin
2026-07-24 12:39 ` [PATCH 2/2] iommu/arm-smmu-v3: Override for Inst/Data attribute Peter Griffin
2026-07-24 18:04 ` Nicolin Chen
2026-08-07 14:37 ` Peter Griffin
2026-08-07 16:43 ` Nicolin Chen
2026-08-10 14:15 ` Jason Gunthorpe
2026-08-10 14:43 ` Robin Murphy
2026-07-26 13:16 ` [PATCH 0/2] Add arm-smmu-v3 support for instcfg data override feature Will Deacon
2026-07-27 10:53 ` Robin Murphy
2026-08-07 15:25 ` Peter Griffin
2026-08-07 18:21 ` Daniel Mentz
2026-08-07 22:47 ` Rob Herring
2026-08-10 18:03 ` Robin Murphy [this message]
2026-08-10 11:00 ` Will Deacon
2026-08-10 17:16 ` Robin Murphy
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=530dbb40-e7e2-4121-a5eb-5f16152fd11b@arm.com \
--to=robin.murphy@arm.com \
--cc=andre.draszik@linaro.org \
--cc=conor+dt@kernel.org \
--cc=danielmentz@google.com \
--cc=devicetree@vger.kernel.org \
--cc=iommu@lists.linux.dev \
--cc=joro@8bytes.org \
--cc=jyescas@google.com \
--cc=kernel-team@android.com \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=peter.griffin@linaro.org \
--cc=praan@google.com \
--cc=robh@kernel.org \
--cc=smostafa@google.com \
--cc=tudor.ambarus@linaro.org \
--cc=will@kernel.org \
--cc=willmcvicker@google.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