Skip to content

mmu gather changes

Aneesh Kumar K.V linux-mm lkml 1 version Applied

Status from this message: [merged] mm-remove-the-page-size-change-check-in-tlb_remove_page.patch removed from -mm tree

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 0 repliesApplied 5/5

Patches in v1 All 5 applied

#Subject and filesSizeRepliesApplied
1/5mm: Use the correct page size when removing the pagemm/huge_memory.c+2 -20 repliesApplied
2/5mm: Update mmu_gather range correctlyinclude/asm-generic/tlb.h+31 -120 repliesApplied
3/5mm/hugetlb: add tlb_remove_hugetlb_entry for handling hugetlb pagesarch/arm/include/asm/tlb.h arch/ia64/include/asm/tlb.h arch/s390/include/asm/tlb.h +4 more+20 -10 repliesApplied
4/5mm: Add tlb_remove_check_page_size_change to track page size changearch/arm/include/asm/tlb.h arch/ia64/include/asm/tlb.h arch/powerpc/include/asm/tlb.h +8 more+78 -10 repliesApplied
5/5mm: Remove the page size change check in tlb_remove_pagearch/arm/include/asm/tlb.h arch/ia64/include/asm/tlb.h arch/s390/include/asm/tlb.h +4 more+15 -810 repliesApplied

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/5] mmu gather changes

Hi,

With commit e77b0852b551 ("mm/mmu_gather: track page size with mmu gather and force flush if page size change") we added the ability to force a tlb flush when the page size change in
a mmu_gather loop. We did that by checking for a page size change
every time we added a page to mmu_gather for lazy flush/remove. This breaks when
invalidating a range that contain dax mapping. Dax pte entries are
considered special pte entries and the mmu_gather loop doesn't call
tlb_remove_page for them. Hence the page size change check doesn't work when
the invalidate range covers dax mappings.

We can also improve the current code by moving the page size change check early and not doing it every time we add a page.

This series is not a bug fix series, because only arch that use the page size change detail is ppc64 and we don't have dax enabled on that arch yet. The series also include code changes that improve code comments and add new helpers to makes it easy to follow.

Aneesh Kumar K.V (5):
mm: Use the correct page size when removing the page
mm: Update mmu_gather range correctly
mm/hugetlb: add tlb_remove_hugetlb_entry for handling hugetlb pages
mm: Add tlb_remove_check_page_size_change to track page size change
mm: Remove the page size change check in tlb_remove_page

 arch/arm/include/asm/tlb.h     | 21 ++++++-----
 arch/ia64/include/asm/tlb.h    | 25 +++++++------
 arch/powerpc/include/asm/tlb.h | 16 ++++++++
 arch/s390/include/asm/tlb.h    | 14 ++++---
 arch/sh/include/asm/tlb.h      | 15 +++++---
 arch/um/include/asm/tlb.h      | 15 +++++---
 include/asm-generic/tlb.h      | 83 +++++++++++++++++++++++++-----------------
 mm/huge_memory.c               |  8 +++-
 mm/hugetlb.c                   |  7 +++-
 mm/madvise.c                   |  1 +
 mm/memory.c                    | 28 ++++++--------
 11 files changed, 141 insertions(+), 92 deletions(-)
Signature · 7 lines
2.10.1

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to [email protected].  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>