Re: [PATCH v7 0/4] MIPS: page fault handling optimization

From: Thomas Bogendoerfer
Date: Wed May 27 2020 - 07:38:59 EST


On Wed, May 27, 2020 at 10:25:16AM +0800, Bibo Mao wrote:
> V7:
> - define function flush_tlb_fix_spurious_fault as inline rather
> than macro
> V6:
> - Add update_mmu_tlb function as empty on all platform except mips
> system, we use this function to update local tlb for page fault
> smp-race handling
> V5:
> - define update_mmu_cache function specified on MIPS platform, and
> add page fault smp-race stats info
> V4:
> - add pte_sw_mkyoung function to implement readable privilege, and
> this function is only in effect on MIPS system.
> - add page valid bit judgement in function pte_modify
> V3:
> - add detailed changelog, modify typo issue in patch V2
> v2:
> - split flush_tlb_fix_spurious_fault and tlb update into two patches
> - comments typo modification
> - separate tlb update and add pte readable privilege into two patches
>
> Bibo Mao (4):
> MIPS: Do not flush tlb page when updating PTE entry
> mm/memory.c: Update local TLB if PTE entry exists
> mm/memory.c: Add memory read privilege on page fault handling
> MIPS: mm: add page valid judgement in function pte_modify
>
> arch/mips/include/asm/pgtable.h | 37 +++++++++++++++++++++++++++++++++++--
> include/asm-generic/pgtable.h | 33 +++++++++++++++++++++++++++++++++
> mm/memory.c | 30 ++++++++++++++++++++++--------
> 3 files changed, 90 insertions(+), 10 deletions(-)

series applied to mips-next.

Thomas.

--
Crap can work. Given enough thrust pigs will fly, but it's not necessarily a
good idea. [ RFC1925, 2.3 ]