diff options
author | Rob Herring <robh@kernel.org> | 2020-02-25 01:31:29 +0300 |
---|---|---|
committer | Will Deacon <will@kernel.org> | 2020-03-19 00:37:10 +0300 |
commit | 6a481a95d4c198a2dd0a61f8877b92a375757db8 (patch) | |
tree | e9e05cfd97261983d82fcaa086fdd5d8fe9f824b /drivers/iommu/fsl_pamu_domain.h | |
parent | 9e773aee8c3e1b3ba019c5c7f8435aaa836c6130 (diff) | |
download | linux-6a481a95d4c198a2dd0a61f8877b92a375757db8.tar.xz |
iommu/arm-smmu-v3: Add SMMUv3.2 range invalidation support
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-philippe@linaro.org>
Cc: Will Deacon <will@kernel.org>
Cc: Robin Murphy <robin.murphy@arm.com>
Cc: Joerg Roedel <joro@8bytes.org>
Reviewed-by: Eric Auger <eric.auger@redhat.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'drivers/iommu/fsl_pamu_domain.h')
0 files changed, 0 insertions, 0 deletions