aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorMuchun Song <[email protected]>2022-03-22 14:41:56 -0700
committerLinus Torvalds <[email protected]>2022-03-22 15:57:04 -0700
commit2771739a7162782c0aa6424b2e3dd874e884a15d (patch)
tree82844c562402c6da220d5b1fbef56d8494daa394 /tools/perf/scripts/python/bin
parent5cbcf2258b71cbae358961796c3a879e1b06a9ff (diff)
mm: fix missing cache flush for all tail pages of compound page
The D-cache maintenance inside move_to_new_page() only consider one page, there is still D-cache maintenance issue for tail pages of compound page (e.g. THP or HugeTLB). THP migration is only enabled on x86_64, ARM64 and powerpc, while powerpc and arm64 need to maintain the consistency between I-Cache and D-Cache, which depends on flush_dcache_page() to maintain the consistency between I-Cache and D-Cache. But there is no issues on arm64 and powerpc since they already considers the compound page cache flushing in their icache flush function. HugeTLB migration is enabled on arm, arm64, mips, parisc, powerpc, riscv, s390 and sh, while arm has handled the compound page cache flush in flush_dcache_page(), but most others do not. In theory, the issue exists on many architectures. Fix this by not using flush_dcache_folio() since it is not backportable. Link: https://lkml.kernel.org/r/[email protected] Fixes: 290408d4a250 ("hugetlb: hugepage migration core") Signed-off-by: Muchun Song <[email protected]> Reviewed-by: Zi Yan <[email protected]> Cc: Axel Rasmussen <[email protected]> Cc: David Rientjes <[email protected]> Cc: Fam Zheng <[email protected]> Cc: Kirill A. Shutemov <[email protected]> Cc: Lars Persson <[email protected]> Cc: Mike Kravetz <[email protected]> Cc: Peter Xu <[email protected]> Cc: Xiongchun Duan <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions