• Robin Murphy's avatar
    iommu/arm-smmu: Work around MMU-500 prefetch errata · f0cfffc4
    Robin Murphy authored
    MMU-500 erratum #841119 is tickled by a particular set of circumstances
    interacting with the next-page prefetcher. Since said prefetcher is
    quite dumb and actually detrimental to performance in some cases (by
    causing unwanted TLB evictions for non-sequential access patterns), we
    lose very little by turning it off, and what we gain is a guarantee that
    the erratum is never hit.
    
    As a bonus, the same workaround will also prevent erratum #826419 once
    v7 short descriptor support is implemented.
    
    CC: Catalin Marinas <catalin.marinas@arm.com>
    CC: Will Deacon <will.deacon@arm.com>
    Signed-off-by: default avatarRobin Murphy <robin.murphy@arm.com>
    Signed-off-by: default avatarWill Deacon <will.deacon@arm.com>
    f0cfffc4
arm-smmu.c 52.8 KB