From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 33770C433DF for ; Wed, 27 May 2020 11:38:35 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id ED06D207D3 for ; Wed, 27 May 2020 11:38:34 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org ED06D207D3 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=alpha.franken.de Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 7D4DB800D2; Wed, 27 May 2020 07:38:34 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 7859E80010; Wed, 27 May 2020 07:38:34 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 698C1800D2; Wed, 27 May 2020 07:38:34 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0121.hostedemail.com [216.40.44.121]) by kanga.kvack.org (Postfix) with ESMTP id 4E5E480010 for ; Wed, 27 May 2020 07:38:34 -0400 (EDT) Received: from smtpin23.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay02.hostedemail.com (Postfix) with ESMTP id 04FFC2C88 for ; Wed, 27 May 2020 11:38:34 +0000 (UTC) X-FDA: 76862301348.23.honey23_00116a126d51 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin23.hostedemail.com (Postfix) with ESMTP id B63A937609 for ; Wed, 27 May 2020 11:38:33 +0000 (UTC) X-HE-Tag: honey23_00116a126d51 X-Filterd-Recvd-Size: 3232 Received: from elvis.franken.de (elvis.franken.de [193.175.24.41]) by imf12.hostedemail.com (Postfix) with ESMTP for ; Wed, 27 May 2020 11:38:33 +0000 (UTC) Received: from uucp (helo=alpha) by elvis.franken.de with local-bsmtp (Exim 3.36 #1) id 1jduO3-00011U-00; Wed, 27 May 2020 13:38:19 +0200 Received: by alpha.franken.de (Postfix, from userid 1000) id 3E183C04CD; Wed, 27 May 2020 13:32:56 +0200 (CEST) Date: Wed, 27 May 2020 13:32:56 +0200 From: Thomas Bogendoerfer To: Bibo Mao Cc: Jiaxun Yang , Huacai Chen , Andrew Morton , Paul Burton , Dmitry Korotin , Philippe =?iso-8859-1?Q?Mathieu-Daud=E9?= , Stafford Horne , Steven Price , Anshuman Khandual , linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, Mike Rapoport , Sergei Shtylyov , "Maciej W. Rozycki" , linux-mm@kvack.org, David Hildenbrand Subject: Re: [PATCH v7 0/4] MIPS: page fault handling optimization Message-ID: <20200527113256.GA13537@alpha.franken.de> References: <1590546320-21814-1-git-send-email-maobibo@loongson.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1590546320-21814-1-git-send-email-maobibo@loongson.cn> User-Agent: Mutt/1.5.23 (2014-03-12) X-Rspamd-Queue-Id: B63A937609 X-Spamd-Result: default: False [0.00 / 100.00] X-Rspamd-Server: rspam04 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: 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 ]