[PATCH v2 6/8] iommu/arm-smmu-v3: Populate the tlbi at the top of the call chain

Nicolin Chen nicolinc at nvidia.com
Tue Jul 7 14:51:14 PDT 2026


On Mon, Jul 06, 2026 at 01:26:43PM -0300, Jason Gunthorpe wrote:
> Each of these has their own unique situation, populate the tlbi right
> at the top and pass it into arm_smmu_domain_inv_range(). They will
> diverge further when the iommupt invalidation scheme is introduced.
> 
> Signed-off-by: Jason Gunthorpe <jgg at nvidia.com>

Reviewed-by: Nicolin Chen <nicolinc at nvidia.com>

> +void arm_smmu_domain_tlbi(struct arm_smmu_tlbi *tlbi)
>  {
[...]
> +	if (!tlbi->single.use_full_inv)
> +		arm_smmu_tlbi_calc_single(tlbi);

My comments might belong to an earlier patch:

Could arm_smmu_tlbi_calc_single() be moved closer to the _range()?

It only has a couple of small steps, so it shouldn't be too bad if
running inside the rcu_read_lock?

Nicolin



More information about the linux-arm-kernel mailing list