On Tue, Aug 29, 2017 at 12:23:36PM +0100, Robin Murphy wrote: > On 23/08/17 14:50, Joerg Roedel wrote: > [...] > > @@ -350,6 +379,20 @@ static inline size_t iommu_map_sg(struct iommu_domain > > *domain, > > return domain->ops->map_sg(domain, iova, sg, nents, prot); > > } > > > > +static inline size_t iommu_map_sg_sync(struct iommu_domain *domain, > > + unsigned long iova, > > + struct scatterlist *sg, > > + unsigned int nents, int prot) > > +{ > > + size_t size = domain->ops->map_sg(domain, iova, sg, nents, prot); > > + if (size > 0) { > > + iommu_tlb_range_add(domain, iova, size); > > + iommu_tlb_sync(domain); > > + } > > + > > + return size; > > +} > > Do we still need this, or has it just slipped through from v1?
Ah, this slipped through, thanks for noticing. I will remove it. Thanks, Joerg _______________________________________________ iommu mailing list iommu@lists.linux-foundation.org https://lists.linuxfoundation.org/mailman/listinfo/iommu