powerpc-book3s64-mm-update-flush_tlb_range-to-flush-page-walk-cache.patch removed from -mm tree
The patch titled
Subject: powerpc/book3s64/mm: update flush_tlb_range to flush page walk cache
has been removed from the -mm tree. Its filename was
powerpc-book3s64-mm-update-flush_tlb_range-to-flush-page-walk-cache.patch
This patch was dropped because it was merged into mainline or a subsystem tree
------------------------------------------------------
From: "Aneesh Kumar K.V" <[email protected]>
Subject: powerpc/book3s64/mm: update flush_tlb_range to flush page walk cache
flush_tlb_range is special in that we don't specify the page size used for the translation. Hence when flushing TLB we flush the translation cache for all possible page sizes. The kernel also uses the same interface when moving page tables around. Such a move requires us to flush the page walk cache.
Instead of adding another interface to force page walk cache flush, update flush_tlb_range to flush page walk cache if the range flushed is more than the PMD range. A page table move will always involve an invalidate range more than PMD_SIZE.
Running microbenchmark with mprotect and parallel memory access didn't show any observable performance impact.
---
arch/powerpc/include/asm/book3s/64/tlbflush-radix.h | 2 arch/powerpc/mm/book3s64/radix_hugetlbpage.c | 8 + arch/powerpc/mm/book3s64/radix_tlb.c | 44 ++++++---- 3 files changed, 36 insertions(+), 18 deletions(-)
arch/powerpc/include/asm/book3s/64/tlbflush-radix.h renamed from arch/powerpc/include/asm/book3s/64/tlbflush-radix.h~powerpc-book3s64-mm-update-flush_tlb_range-to-flush-page-walk-cache +2 -0
@@ -64,6 +64,8 @@ extern void radix__flush_hugetlb_tlb_ran unsigned long start, unsigned long end);extern void radix__flush_tlb_range_psize (struct mm_struct *mm,unsigned long start,unsigned long end,int psize); +void radix__flush_tlb_pwc_range_psize (struct mm_struct *mm,unsigned long start, +unsigned long end,int psize);extern void radix__flush_pmd_tlb_range (struct vm_area_struct *vma,unsigned long start,unsigned long end); extern void radix__flush_tlb_range(struct vm_area_struct *vma, unsigned long start,
arch/powerpc/mm/book3s64/radix_hugetlbpage.c renamed from arch/powerpc/mm/book3s64/radix_hugetlbpage.c~powerpc-book3s64-mm-update-flush_tlb_range-to-flush-page-walk-cache +7 -1
@@ -32,7 +32,13 @@ void radix__flush_hugetlb_tlb_range(strustruct hstate *hstate =hstate_file (vma->vm_file); psize =hstate_get_psize (hstate); -radix__flush_tlb_range_psize (vma->vm_mm, start, end, psize); +/* +* Flush PWC even if we get PUD_SIZE hugetlb invalidate to keep this simpler. +*/ +if (end - start >=PUD_SIZE ) +radix__flush_tlb_pwc_range_psize (vma->vm_mm, start, end, psize); +else +radix__flush_tlb_range_psize (vma->vm_mm, start, end, psize); }/*
arch/powerpc/mm/book3s64/radix_tlb.c renamed from arch/powerpc/mm/book3s64/radix_tlb.c~powerpc-book3s64-mm-update-flush_tlb_range-to-flush-page-walk-cache +27 -17
107 lines not on this page · raw message
_
Patches currently in -mm which might be from [email protected] are