summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorMuchun Song <songmuchun@bytedance.com>2022-03-02 11:46:23 +0300
committerWill Deacon <will@kernel.org>2022-03-08 00:42:34 +0300
commitcf5a501d985ba1b6ace9b18c64346441819bffea (patch)
tree4f84cb5f55ce3e360e0567d879277404ec997220 /tools/perf/scripts/python/exported-sql-viewer.py
parent2369f171d5c5550b85ce96fd35d4438cf2e6b09e (diff)
downloadlinux-cf5a501d985ba1b6ace9b18c64346441819bffea.tar.xz
arm64: avoid flushing icache multiple times on contiguous HugeTLB
When a contiguous HugeTLB page is mapped, set_pte_at() will be called CONT_PTES/CONT_PMDS times. Therefore, __sync_icache_dcache() will flush cache multiple times if the page is executable (to ensure the I-D cache coherency). However, the first flushing cache already covers subsequent cache flush operations. So only flusing cache for the head page if it is a HugeTLB page to avoid redundant cache flushing. In the next patch, it is also depends on this change since the tail vmemmap pages of HugeTLB is mapped with read-only meanning only head page struct can be modified. Signed-off-by: Muchun Song <songmuchun@bytedance.com> Reviewed-by: Catalin Marinas <catalin.marinas@arm.com> Link: https://lore.kernel.org/r/20220302084624.33340-1-songmuchun@bytedance.com Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions