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 <[email protected]> > Cc: Will Deacon <[email protected]> > Cc: Robin Murphy <[email protected]> > Cc: Joerg Roedel <[email protected]> > Reviewed-by: Eric Auger <[email protected]> > Signed-off-by: Rob Herring <[email protected]> > --- > 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 Cheers, Will _______________________________________________ iommu mailing list [email protected] https://lists.linuxfoundation.org/mailman/listinfo/iommu
