Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1185842ybk; Thu, 14 May 2020 02:38:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzhQIrNnl2Bb6O7yqwVklZhxokbYmNpgaUU3CFGsrbYXznto/ZoCKnV1/H1Xkw24X6b0gxs X-Received: by 2002:a17:907:20b5:: with SMTP id pw21mr2753332ejb.227.1589449101210; Thu, 14 May 2020 02:38:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589449101; cv=none; d=google.com; s=arc-20160816; b=gbSjzx/xCIctWaUrAFnPiA0KepndTSjmU0sY7lAXwBXB8hwkh3VmUGsxvoICwY9WC8 6go8LNXvnoNgHrV3RSKeUov72Rty89+IvUO/xCRKqHMzLKbHaM1XbsbOwz6RcRuhBjTI 6ZyNd6GSlMbVv390s/ZpUhCFtUXYqBmW1ylu21cR0Cy2s0ko+YCtbgv0gNaHNFeeHv11 H1u94IwMgzGFfSX1gb5qz8eyQZVLwoYbD9ABHZrV8e9AAyHhxWohxQ8wAyMIjO91AB34 OQJ3+3OKDiZRFBL2AYuz4Ph5p1sLxsXjODc+hTVz14TdaCYsWAlsk9fkT8Kl/RiPLUKP /zYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=T86/hv0y7BAgJ75aFy/dvx0cbN3V70JUKhyVGv5v+SE=; b=siytxujJdgg7rK0qhArz/5Q9yzTjVp2fAzAhPQNDEgYbkwRWcX1JjyMzZBE0MJOEx+ 1l0Azcozm/SjmZRDyzG3rdzXnDCuh8guSA0vK3aeyZQ7u2D8B6i7bWO02bJH+QKGRaZq FCRmM8xdQpBP75DqKahfzW4XxHZSWGiZVi/K7GgEhfSOh1gQLms4jXxfOySrXFfrs/5B G16H8GMUxOxuslar0oew4Oe3CML1fKeQMxvue55k+rV4tyf2ylliRz/iVGg4mY++Jmcg D7SdKJeRBm8JegKRmXBYGC0LU19gs8bWCJJ8wQa8Ng/P9RcJitdzvUJEBxBz0HoXSBWG RVzg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cogentembedded-com.20150623.gappssmtp.com header.s=20150623 header.b=eVtu+uah; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dd26si1541753ejb.8.2020.05.14.02.37.57; Thu, 14 May 2020 02:38:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@cogentembedded-com.20150623.gappssmtp.com header.s=20150623 header.b=eVtu+uah; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726147AbgENJfu (ORCPT + 99 others); Thu, 14 May 2020 05:35:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46080 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725935AbgENJfu (ORCPT ); Thu, 14 May 2020 05:35:50 -0400 Received: from mail-lj1-x244.google.com (mail-lj1-x244.google.com [IPv6:2a00:1450:4864:20::244]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8ACBBC061A0E for ; Thu, 14 May 2020 02:35:48 -0700 (PDT) Received: by mail-lj1-x244.google.com with SMTP id u6so2746110ljl.6 for ; Thu, 14 May 2020 02:35:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cogentembedded-com.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=T86/hv0y7BAgJ75aFy/dvx0cbN3V70JUKhyVGv5v+SE=; b=eVtu+uah7Sf+JulgCzgHMXNss1swnlz1dhsc2qk9bjYnlevMZ0Tnj2eYpa8hHrTzkd 6YButrHIwOq+lsJPkmHfVfVwRMgwIX5UorYguxKvabgoMe1OF3+PMQwWLDeA8s0T7+QO 3vQaApFX54tXuP3hZeUESmbXg2y/UFMt8DamklMimJAWNmyZcrJWf/KD9+UZ5tRfQkAX ISuRybvMkN+11K0+x3ND7PB9Zxipow7EHzXneIVyDDPsXP6kw6am0RzMJ4Xzg6DAwjLB ZP7/lN8WCPgm4qUPZwcXVBRxxwWWWHmR1BCRQpnAPw9bRhFLE11N/TxB7uux6suO1JzV gIKQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=T86/hv0y7BAgJ75aFy/dvx0cbN3V70JUKhyVGv5v+SE=; b=rvW/lx6zljkWI7oiyK9lYo08EO2Qi8rogK5buoBuMWyktt/aR1Z/WVmf5z0MTe4RUC kEsfLHiqSgOz+3q8rinsmZhaVQWkuKEIg0rs5a0yNnBAklr4A1kBTm0xLCtA4hFysPFe JRi3WjpCmTGHhzsGn5l1TQgz0oDHYC6fBepEaI6a01jDgxHA4XEVlP6VGabityCMIg3e J790Il4y6xWVRZ8tC6QmWWnX9aBQy9AkrJGs5KC+PCnPplDgea7LJpNvckYq4GrsVsSA sL2CcU9cWliwIU6ly1a0tODOZMUsYRuXoMhy83tnLt3E+byTkfh7bbdtrMrY7wjWyQ56 iz2Q== X-Gm-Message-State: AOAM532LayNnU3kEazevrTxnT1b4nIQfuad4ixERhUSkgiSyZ5HI7OiF /5t48OjKqzqGPqPKDQ1dowRDV4ttnQk= X-Received: by 2002:a2e:9905:: with SMTP id v5mr2251265lji.237.1589448946762; Thu, 14 May 2020 02:35:46 -0700 (PDT) Received: from ?IPv6:2a00:1fa0:428e:17ae:1023:2fd9:377b:94c8? ([2a00:1fa0:428e:17ae:1023:2fd9:377b:94c8]) by smtp.gmail.com with ESMTPSA id q21sm1792342lfe.0.2020.05.14.02.35.45 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 14 May 2020 02:35:46 -0700 (PDT) Subject: Re: [PATCH] MIPS: update tlb even if pte entry has no change To: Bibo Mao , Thomas Bogendoerfer , Andrew Morton , Paul Burton , Dmitry Korotin , =?UTF-8?Q?Philippe_Mathieu-Daud=c3=a9?= , Stafford Horne , Steven Price , Anshuman Khandual , Mike Rapoport Cc: linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org References: <1589422677-11455-1-git-send-email-maobibo@loongson.cn> From: Sergei Shtylyov Message-ID: Date: Thu, 14 May 2020 12:35:35 +0300 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 MIME-Version: 1.0 In-Reply-To: <1589422677-11455-1-git-send-email-maobibo@loongson.cn> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 14.05.2020 5:17, Bibo Mao wrote: > From: bibo mao > > If there are two threads reading the same memory and tlb miss happens, > one thread fills pte entry, the other reads new pte value during page fault > handling. PTE value may be updated before page faul, so the process need Fault. > need update tlb still. > > Also this patch define flush_tlb_fix_spurious_fault as empty, since it not > necessary to flush the page for all CPUs > > Signed-off-by: Bibo Mao [...] MBR, Sergei