diff options
author | Robin Murphy <robin.murphy@arm.com> | 2015-12-07 18:18:53 +0000 |
---|---|---|
committer | Will Deacon <will.deacon@arm.com> | 2015-12-17 12:05:34 +0000 |
commit | 06c610e8f32ba2fe41d57e1718611c2ec5024878 (patch) | |
tree | 1255fe5238bac58717ff0bbf56beb48625153021 /drivers/iommu/io-pgtable.h | |
parent | 2eb97c78613082f308c0b39366c034cb589b8ee9 (diff) | |
download | linux-stable-06c610e8f32ba2fe41d57e1718611c2ec5024878.tar.gz linux-stable-06c610e8f32ba2fe41d57e1718611c2ec5024878.tar.bz2 linux-stable-06c610e8f32ba2fe41d57e1718611c2ec5024878.zip |
iommu/io-pgtable: Indicate granule for TLB maintenance
IOMMU hardware with range-based TLB maintenance commands can work
happily with the iova and size arguments passed via the tlb_add_flush
callback, but for IOMMUs which require separate commands per entry in
the range, it is not straightforward to infer the necessary granularity
when it comes to issuing the actual commands.
Add an additional argument indicating the granularity for the benefit
of drivers needing to know, and update the ARM LPAE code appropriately
(for non-leaf invalidations we currently just assume the worst-case
page granularity rather than walking the table to check).
Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'drivers/iommu/io-pgtable.h')
-rw-r--r-- | drivers/iommu/io-pgtable.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/iommu/io-pgtable.h b/drivers/iommu/io-pgtable.h index ac9e2341a633..2e18469afe3c 100644 --- a/drivers/iommu/io-pgtable.h +++ b/drivers/iommu/io-pgtable.h @@ -26,8 +26,8 @@ enum io_pgtable_fmt { */ struct iommu_gather_ops { void (*tlb_flush_all)(void *cookie); - void (*tlb_add_flush)(unsigned long iova, size_t size, bool leaf, - void *cookie); + void (*tlb_add_flush)(unsigned long iova, size_t size, size_t granule, + bool leaf, void *cookie); void (*tlb_sync)(void *cookie); }; |