[PATCH] iommu/arm-smmu-v3: Set TTL invalidation hint better

Will Deacon will at kernel.org
Thu Jun 8 14:36:05 PDT 2023


On Thu, 1 Jun 2023 17:43:33 +0100, Robin Murphy wrote:
> 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.
> 
> [...]

Applied to will (for-joerg/arm-smmu/updates), thanks!

[1/1] iommu/arm-smmu-v3: Set TTL invalidation hint better
      https://git.kernel.org/will/c/6833b8f2e199

Cheers,
-- 
Will

https://fixes.arm64.dev
https://next.arm64.dev
https://will.arm64.dev



More information about the linux-arm-kernel mailing list