[PATCH RFC v5 6/6] iommu/arm-smmu-v3: Wire up shared-SID STE ordering and feature gating

Nicolin Chen nicolinc at nvidia.com
Wed Oct 7 18:29:49 PDT 2026


On Tue, Oct 06, 2026 at 08:19:12PM +0800, Peng Fan (OSS) wrote:
> +static bool arm_smmu_is_shared_sid(struct arm_smmu_master *master)
> +{
> +	return !list_empty(&master->shared_masters_elm);
> +}
> +
> +static bool arm_smmu_skip_shared_ste(struct arm_smmu_device *smmu,
> +				     u32 sid, bool is_abort)
> +{
> +	struct arm_smmu_stream *stream;
> +
> +	lockdep_assert_held(&smmu->streams_mutex);
> +
> +	stream = arm_smmu_find_stream(smmu, sid);
> +	if (!stream || list_empty(&stream->shared_masters))
> +		return false;
> +
> +	if (is_abort)
> +		return true;
> +	if (stream->ste_installed)
> +		return true;
> +	stream->ste_installed = true;
> +	return false;

There is some issue here; check sashiko report:
https://sashiko.dev/#/patchset/20261006-smmu-shared-sid-v5-0-169a59c671d3%40nxp.com

Nicolin



More information about the linux-arm-kernel mailing list