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=-7.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED 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 9C883C433DB for ; Thu, 4 Feb 2021 11:27:43 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 33EB764F43 for ; Thu, 4 Feb 2021 11:27:43 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 33EB764F43 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id AB4A56B0070; Thu, 4 Feb 2021 06:27:42 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id A63A06B0071; Thu, 4 Feb 2021 06:27:42 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 92D816B0072; Thu, 4 Feb 2021 06:27:42 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0201.hostedemail.com [216.40.44.201]) by kanga.kvack.org (Postfix) with ESMTP id 7EC6E6B0070 for ; Thu, 4 Feb 2021 06:27:42 -0500 (EST) Received: from smtpin30.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id 4E81E1EF1 for ; Thu, 4 Feb 2021 11:27:42 +0000 (UTC) X-FDA: 77780360364.30.stamp16_060eaec275db Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin30.hostedemail.com (Postfix) with ESMTP id 3AABD180B3C8B for ; Thu, 4 Feb 2021 11:27:42 +0000 (UTC) X-HE-Tag: stamp16_060eaec275db X-Filterd-Recvd-Size: 4531 Received: from mail-pf1-f178.google.com (mail-pf1-f178.google.com [209.85.210.178]) by imf40.hostedemail.com (Postfix) with ESMTP for ; Thu, 4 Feb 2021 11:27:41 +0000 (UTC) Received: by mail-pf1-f178.google.com with SMTP id i63so1934573pfg.7 for ; Thu, 04 Feb 2021 03:27:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:subject:to:cc:references:in-reply-to:mime-version :message-id:content-transfer-encoding; bh=AVPcBDEqhBj+ZdkvNQJyb4mL8zPleMQDoEgdiBoAh1c=; b=PjGnb6/4PtgP9jRVLqMbZ0CPDZ63a9cLblye5NvYoK32KRewNNQl7O0kLpHSOu1K1U DbCTPaJAFWPympHAS0SX5mRDQwO0UqptBf+xpv3UHBMIFv+suoSiRPX2MYFYtsmo154Z APGWFeYjIRnIu75gBP8iAeJPNnrfO6tfIUp2LJbv2nLV15q6xW8gz3rQahm9vm0vnu9e J0jq7i3g8tY8xCbvmeTiXVNskKT7bMYs4IuTZ2EYFnR5BPn2+sXU8WEozasmLNMeA55Z 5JugoOH2YfVHJMMBaFw2jtplCZPWdnXCk93RnGfHb3kE7wjpODIVj9D++RaFNKuc6Sr2 FTNw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:subject:to:cc:references:in-reply-to :mime-version:message-id:content-transfer-encoding; bh=AVPcBDEqhBj+ZdkvNQJyb4mL8zPleMQDoEgdiBoAh1c=; b=PDLbEem0aj0SR25oKCyExl/7S4oE7W5ssOhs1FYxuqSIdhhFQhFUTKKzBGcr4Cue70 ZnfruPjwRpIYsku4x/RdyAKrpi8EcXtznBEredDiJsE0sysO5ETc1/nvJGNntSp29EBz 4rZuvvsXuOcIOzVyHI0vrQ1om+MRV7OYmBX7sUj2nGnLHCdV1dYf5MM4xxji4DcGO0nq 0Tynxs497xUBDK3iLlRYgKmd9625v85/qF5n75Q6FUxk4MHef5lCvCZoDy4Cb/9/n6fo 8Xq94fC362rZu9KzwWRmV7pCOiIcHaDUBjmnity4CrQ2BN9HCbT46JPn4KMEwrqYKC6u MC5Q== X-Gm-Message-State: AOAM531nGXRNP5CqUAVS8ExEDkC2tGaP4Gt4RtbzMc2VfJa0cg/uXMmL HKwLSY0bdWEKClysCv88Vk7P8/1rMpI= X-Google-Smtp-Source: ABdhPJwlVsXEcTxuAbN8SYea8wHGiN0UVg9yeSiT3jonSYGOAxSCXe9g5u87CZ/f94De5Kycwbw2RQ== X-Received: by 2002:a62:b410:0:b029:1a4:7868:7e4e with SMTP id h16-20020a62b4100000b02901a478687e4emr8103392pfn.62.1612438060844; Thu, 04 Feb 2021 03:27:40 -0800 (PST) Received: from localhost (60-242-11-44.static.tpgi.com.au. [60.242.11.44]) by smtp.gmail.com with ESMTPSA id x17sm488633pfq.132.2021.02.04.03.27.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Feb 2021 03:27:40 -0800 (PST) Date: Thu, 04 Feb 2021 21:27:34 +1000 From: Nicholas Piggin Subject: Re: [PATCH] MIPS: make userspace mapping young by default To: Thomas Bogendoerfer Cc: Andrew Morton , ambrosehua@gmail.com, Huacai Chen , Gao Juxin , Huang Pei , Jiaxun Yang , linux-arch@vger.kernel.org, linux-mips@vger.kernel.org, linux-mm@kvack.org, Li Xuefeng , Bibo Mao , Paul Burton , Yang Tiezhu , Fuxin Zhang References: <20210204013942.8398-1-huangpei@loongson.cn> <1612409285.q4gi3x2bhk.astroid@bobo.none> <20210204103459.GA10558@alpha.franken.de> In-Reply-To: <20210204103459.GA10558@alpha.franken.de> MIME-Version: 1.0 Message-Id: <1612437994.rfmweyhtiy.astroid@bobo.none> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Bogosity: Ham, tests=bogofilter, spamicity=0.002569, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: Excerpts from Thomas Bogendoerfer's message of February 4, 2021 8:34 pm: > On Thu, Feb 04, 2021 at 01:29:26PM +1000, Nicholas Piggin wrote: >> Excerpts from Huang Pei's message of February 4, 2021 11:39 am: >> > MIPS page fault path(except huge page) takes 3 exceptions (1 TLB Miss >> > + 2 TLB Invalid), butthe second TLB Invalid exception is just >> > triggered by __update_tlb from do_page_fault writing tlb without >> > _PAGE_VALID set. With this patch, user space mapping prot is made >> > young by default (with both _PAGE_VALID and _PAGE_YOUNG set), >> > and it only take 1 TLB Miss + 1 TLB Invalid exception >> >=20 >> > Remove pte_sw_mkyoung without polluting MM code and make page fault >> > delay of MIPS on par with other architecture >> >=20 >> > Signed-off-by: Huang Pei >>=20 >> Could we merge this? For the core code, >=20 > sure, but IMHO I should only merge the MIPS part, correct ? You could ack it for MIPS and Andrew could take it through his tree=20 would avoid dependencies. Thanks, Nick