diff options
author | Will Deacon <[email protected]> | 2019-06-11 12:47:34 +0100 |
---|---|---|
committer | Will Deacon <[email protected]> | 2019-06-12 16:19:45 +0100 |
commit | 01d57485fcdb9f9101a10a18e32d5f8b023cab86 (patch) | |
tree | e59acccd8a79ac64da328eafa2e93f5fb012d74c /tools/perf/scripts/python/export-to-sqlite.py | |
parent | fa63da2ab046b885a7f70291aafc4e8ce015429b (diff) |
arm64: tlbflush: Ensure start/end of address range are aligned to stride
Since commit 3d65b6bbc01e ("arm64: tlbi: Set MAX_TLBI_OPS to
PTRS_PER_PTE"), we resort to per-ASID invalidation when attempting to
perform more than PTRS_PER_PTE invalidation instructions in a single
call to __flush_tlb_range(). Whilst this is beneficial, the mmu_gather
code does not ensure that the end address of the range is rounded-up
to the stride when freeing intermediate page tables in pXX_free_tlb(),
which defeats our range checking.
Align the bounds passed into __flush_tlb_range().
Cc: Catalin Marinas <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Reported-by: Hanjun Guo <[email protected]>
Tested-by: Hanjun Guo <[email protected]>
Reviewed-by: Hanjun Guo <[email protected]>
Signed-off-by: Will Deacon <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions