• R
    iommu/arm-smmu: Invalidate TLBs properly · 75df1386
    Robin Murphy 提交于
    When invalidating an IOVA range potentially spanning multiple pages,
    such as when removing an entire intermediate-level table, we currently
    only issue an invalidation for the first IOVA of that range. Since the
    architecture specifies that address-based TLB maintenance operations
    target a single entry, an SMMU could feasibly retain live entries for
    subsequent pages within that unmapped range, which is not good.
    
    Make sure we hit every possible entry by iterating over the whole range
    at the granularity provided by the pagetable implementation.
    Signed-off-by: NRobin Murphy <robin.murphy@arm.com>
    [will: added missing semicolons...]
    Signed-off-by: NWill Deacon <will.deacon@arm.com>
    75df1386
arm-smmu.c 50.0 KB