summaryrefslogtreecommitdiff
path: root/drivers/iommu/irq_remapping.h
diff options
context:
space:
mode:
authorRobin Murphy <robin.murphy@arm.com>2023-06-01 17:43:33 +0100
committerWill Deacon <will@kernel.org>2023-06-08 22:00:22 +0100
commit6833b8f2e19945a41e4d5efd8c6d9f4cae9a5b7d (patch)
treeb0db137e9f9da58d5234aeb419a97fab72d4d752 /drivers/iommu/irq_remapping.h
parent0bfbfc526c70606bf0fad302e4821087cbecfaf4 (diff)
iommu/arm-smmu-v3: Set TTL invalidation hint better
When io-pgtable unmaps a whole table, rather than waste time walking it to find the leaf entries to invalidate exactly, it simply expects .tlb_flush_walk with nominal last-level granularity to invalidate any leaf entries at higher intermediate levels as well. This works fine with page-based invalidation, but with range commands we need to be careful with the TTL hint - unconditionally setting it based on the given level 3 granule means that an invalidation for a level 1 table would strictly not be required to affect level 2 block entries. It's easy to comply with the expected behaviour by simply not setting the TTL hint for non-leaf invalidations, so let's do that. Signed-off-by: Robin Murphy <robin.murphy@arm.com> Link: https://lore.kernel.org/r/b409d9a17c52dc0db51faee91d92737bb7975f5b.1685637456.git.robin.murphy@arm.com Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'drivers/iommu/irq_remapping.h')
0 files changed, 0 insertions, 0 deletions