On Wed, Mar 18, 2020 at 4:19 PM Will Deacon <w...@kernel.org> wrote: > > Hi Rob, > > On Mon, Feb 24, 2020 at 04:31:29PM -0600, Rob Herring wrote: > > Arm SMMUv3.2 adds support for TLB range invalidate operations. > > Support for range invalidate is determined by the RIL bit in the IDR3 > > register. > > > > The range invalidate is in units of the leaf page size and operates on > > 1-32 chunks of a power of 2 multiple pages. First, we determine from the > > size what power of 2 multiple we can use. Then we calculate how many > > chunks (1-31) of the power of 2 size for the range on the iteration. On > > each iteration, we move up in size by at least 5 bits. > > > > Cc: Jean-Philippe Brucker <jean-phili...@linaro.org> > > Cc: Will Deacon <w...@kernel.org> > > Cc: Robin Murphy <robin.mur...@arm.com> > > Cc: Joerg Roedel <j...@8bytes.org> > > Reviewed-by: Eric Auger <eric.au...@redhat.com> > > Signed-off-by: Rob Herring <r...@kernel.org> > > --- > > v3: > > - Use inv_range local instead of modifying granule > > - Simplify the TG calculation > > - Use shift instead of divide by power of 2. > > --- > > drivers/iommu/arm-smmu-v3.c | 69 +++++++++++++++++++++++++++++++++++-- > > 1 file changed, 67 insertions(+), 2 deletions(-) > > I've queued this one, but I had to resolve some conflicts with the command > queue batching changes, so please can you take a quick look at my > resolution? > > https://git.kernel.org/pub/scm/linux/kernel/git/will/linux.git/commit/?h=for-joerg/arm-smmu/updates
Thanks, LGTM. Rob _______________________________________________ iommu mailing list iommu@lists.linux-foundation.org https://lists.linuxfoundation.org/mailman/listinfo/iommu