[PATCH v3 3/3] iommu/arm-smmu-v3: Issue CFGI/TLBI twice on Tegra264

Nicolin Chen nicolinc at nvidia.com
Tue Jun 2 13:35:51 PDT 2026


On Tue, Jun 02, 2026 at 09:22:15PM +0100, Will Deacon wrote:
> On Mon, Jun 01, 2026 at 10:48:45AM +0000, Ashish Mhetre wrote:
> > @@ -382,7 +402,8 @@ int arm_vsmmu_cache_invalidate(struct iommufd_viommu *viommu,
> >  
> >  		/* FIXME work in blocks of CMDQ_BATCH_ENTRIES and copy each block? */
> >  		cur++;
> > -		if (cur != end && (cur - last) != CMDQ_BATCH_ENTRIES - 1)
> > +		if (cur != end && (cur - last) != CMDQ_BATCH_ENTRIES - 1 &&
> > +		    arm_vsmmu_can_batch_cmd(smmu, last, cur))
> >  			continue;
> 
> FYI: Sashiko is unhappy with the existing code here, so somebody should
> check that out:
> 
> https://sashiko.dev/#/patchset/20260601104845.995005-2-amhetre@nvidia.com

Ack. I will submit a separate patch to address this.

Nicolin



More information about the linux-arm-kernel mailing list