Re: [PATCH 0/2] Add arm-smmu-v3 support for instcfg data override feature
From: Robin Murphy
Date: Mon Jul 27 2026 - 06:56:34 EST
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.
In particular, if a particular client is emitting data reads as
instructions, then a better work around would be to avoid mapping its
domains using IOMMU_NOEXEC. But I can't tell what's going on from the
limited description provided here.
Unless it's also emitting the privileged bit and thus falling foul of the implicit Unpriv-W -> Priv-XN rule, but then we also have the means to deal with devices which actually do that themselves (hello pl330...), so that would seemingly only leave the case of some innocent piece of AMBA-interfaced IP which doesn't expect to need special attributes, but the system integrator has gone out of their way to tie the AxPROT bits to some wacky value, which I would put in "erratum workaround" territory.
Thanks,
Robin.