asm-generic-tlb-provide-mmu_gather_table_free.patch removed from -mm tree
The patch titled
Subject: asm-generic/tlb: provide MMU_GATHER_TABLE_FREE
has been removed from the -mm tree. Its filename was
asm-generic-tlb-provide-mmu_gather_table_free.patch
This patch was dropped because it was merged into mainline or a subsystem tree
------------------------------------------------------
From: Peter Zijlstra <[email protected]>
Subject: asm-generic/tlb: provide MMU_GATHER_TABLE_FREE
As described in the comment, the correct order for freeing pages is:
1) unhook page
2) TLB invalidate page
3) free page
This order equally applies to page directories.
Currently there are two correct options:
- use tlb_remove_page(), when all page directores are full pages and there are no futher contraints placed by things like software walkers (HAVE_FAST_GUP).
- use MMU_GATHER_RCU_TABLE_FREE and tlb_remove_table() when the architecture does not do IPI based TLB invalidate and has HAVE_FAST_GUP (or software TLB fill).
This however leaves architectures that don't have page based directories but don't need RCU in a bind. For those, provide MMU_GATHER_TABLE_FREE, which provides the independent batching for directories without the additional RCU freeing.
---
arch/Kconfig | 5 + arch/arm/include/asm/tlb.h | 4 - include/asm-generic/tlb.h | 72 ++++++++++----------- mm/mmu_gather.c | 120 +++++++++++++++++++++++++---------- 4 files changed, 130 insertions(+), 71 deletions(-)
arch/arm/include/asm/tlb.h renamed from arch/arm/include/asm/tlb.h~asm-generic-tlb-provide-mmu_gather_table_free +0 -4
@@ -37,10 +37,6 @@ static inline void __tlb_remove_table(vo#include <asm-generic/tlb.h> -#ifndef CONFIG_MMU_GATHER_RCU_TABLE_FREE -#define tlb_remove_table (tlb, entry) tlb_remove_page(tlb, entry) -#endif -static inline void __pte_free_tlb (struct mmu_gather *tlb,pgtable_t pte,unsigned long addr) {
arch/Kconfig renamed from arch/Kconfig~asm-generic-tlb-provide-mmu_gather_table_free +5 -0
@@ -393,8 +393,12 @@ config HAVE_ARCH_JUMP_LABEL config HAVE_ARCH_JUMP_LABEL_RELATIVE bool +config MMU_GATHER_TABLE_FREE + bool + config MMU_GATHER_RCU_TABLE_FREE bool + select MMU_GATHER_TABLE_FREE config MMU_GATHER_PAGE_SIZE bool
@@ -404,6 +408,7 @@ config MMU_GATHER_NO_RANGE config MMU_GATHER_NO_GATHER bool + depends on MMU_GATHER_TABLE_FREE config ARCH_HAVE_NMI_SAFE_CMPXCHG bool
include/asm-generic/tlb.h renamed from include/asm-generic/tlb.h~asm-generic-tlb-provide-mmu_gather_table_free +37 -35
110 lines not on this page · raw message
mm/mmu_gather.c renamed from mm/mmu_gather.c~asm-generic-tlb-provide-mmu_gather_table_free +88 -32
173 lines not on this page · raw message
_
Patches currently in -mm which might be from [email protected] are