Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1187520ybk; Thu, 14 May 2020 02:41:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyub0OPVydt7PI9PCuoihfYXaX1eeD4qxiWULq7HPl/hWCvPRwkl85PLN6ObnADAr4BEE4Q X-Received: by 2002:a17:906:edd5:: with SMTP id sb21mr2928100ejb.204.1589449287167; Thu, 14 May 2020 02:41:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589449287; cv=none; d=google.com; s=arc-20160816; b=t/QEEAjpavlmjmk3Xixn7QZ1yho02A5utpBJwbFuaek6Zhr87673GI4s0d1LLh/IoD UnMANOVdpf2TbZ2a6QwKPStwJNj4btKqGe5NPJ0HNTU8C7t0QxHMjONtc4tkVwORa+Lw bFYOZyVC/AceNvBhyZ7+chc0B515nQmjPHQOb8G+RjOtj4k9jmZ0oOV4xUlb1XwPPABO qWxRgnqcEkxqPFQqZVjcK5/iDi47w8Mnq3G04+OB1TCr+SZBjKOr+8rr4FqN0eswxXnx Kti+yPHhSZItg2IDmcXGpMPp4YKZu8jwK6lo3Otaw2I0Ua1n76gI95YY1k1W9zQjF2dE tKNQ== 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:references:cc:to:from:subject:dkim-signature; bh=7Gj0cNxCY34MN1EL7DKRnwUOlinn6Wz+qtY7EpWgz5M=; b=T6gcqjkVbyHkGXXJULp/rG3+cxT09OaNH3cR/THC3/sNrBDUVHJxI90KVgrzmRF4fW QCs8AE+W++zwN3PXcI+Abt9SX3ri8v5bf+Btl4NcsOkI8q+KpAF3mLxiIBVPmzdSDcT/ OkOy2im6VjqNpfBcLpgZlGUOPrPo4NNVnehBr59PAK9dF82RwFVqjJ0r7Ehd/oDrI5Hz V89JUHkzbrDBp104DUdHSwzs3cQif9g3UT61DRbBSceCN8TrbTS92/r8GAAR1N1isx67 pUyH1c2ozuQeo+dQa+LqaBWMZ2rVeyWcWiIa7K5KrH0oTfthp1fkUzS3C0wMkLL0iiEN 1l5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cogentembedded-com.20150623.gappssmtp.com header.s=20150623 header.b=oVWM6T5q; 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 dn15si2022533ejc.66.2020.05.14.02.41.04; Thu, 14 May 2020 02:41:27 -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=oVWM6T5q; 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 S1726015AbgENJhl (ORCPT + 99 others); Thu, 14 May 2020 05:37:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46366 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725925AbgENJhl (ORCPT ); Thu, 14 May 2020 05:37:41 -0400 Received: from mail-lf1-x142.google.com (mail-lf1-x142.google.com [IPv6:2a00:1450:4864:20::142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 98A84C061A0E for ; Thu, 14 May 2020 02:37:40 -0700 (PDT) Received: by mail-lf1-x142.google.com with SMTP id a4so2000332lfh.12 for ; Thu, 14 May 2020 02:37:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cogentembedded-com.20150623.gappssmtp.com; s=20150623; h=subject:from:to:cc:references:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=7Gj0cNxCY34MN1EL7DKRnwUOlinn6Wz+qtY7EpWgz5M=; b=oVWM6T5qZTorNnMZprnZOFTQiXbb4XbmVvFkT7FzHv9IpJGm8S3O+vQnaZOON2iK3v JJmYe7DK9Kk46bakSudSmewV9tYtLrAJelqpH90nTEdK2VJU3z6p2veVBw9i0Pj4qfEh 25uwitsnpu/9GZtCVbF36DKWxme9aL/hXO6yHQsnOG0ZXJSywTZkNd1u+E++RrTVQxC9 330RYbOiJgbJfDg3T3sM7JDfeCyw9Q8urwfZ41UHPSQPqE2rwNz8O/KoBuF/DGcQlocl YXFSZJnthWJx1Vs86AyjOBu1d4/4wAF6O8Oztf1P0XGe9SnW5ZMdrNJfBTMwe1BE0Yyt 41bg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:from:to:cc:references:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=7Gj0cNxCY34MN1EL7DKRnwUOlinn6Wz+qtY7EpWgz5M=; b=OsZ/TW5u/rvDPOywr2vRh+Ki/X3u6ZVwS8TzLfTJYVzdw3r9kLfOUiHlnz7Wqh7YMq jutrLhIcKB3JSD5meWTCWVosKjdI2o5ULw8lotrIob6MpQnmJ11ha3vtc11RGsiW+hJc IP8EF7ssN/zHc1Ngxl4d9iTPTMd8jehHsk6z7BZvd51KnQ/kE2jjNezwUGk29mM69YA9 KDs7tY6uwHY6fMdibUZ53je8FtsxEi7sXrcUu7PguGNgkOWHwoRrmTKp7R7IBm0+qc4I ev7gGg0oOrdPQUJbjZI/jgJTVFX+9yzGm7RocHJoSkiZSNbJBVHQp0Pk57MoFwGwt9S8 Jj1Q== X-Gm-Message-State: AOAM531+aKqpReoDPNSWyQuhCHgpFssTv5iHIAAZWw/MzWwx7brkPtca nZZ1fQgyLywZbUSQpnKCEV+EhZBG2Xo= X-Received: by 2002:a19:8107:: with SMTP id c7mr1198346lfd.38.1589449058740; Thu, 14 May 2020 02:37:38 -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 d16sm1172540ljj.84.2020.05.14.02.37.37 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 14 May 2020 02:37:38 -0700 (PDT) Subject: Re: [PATCH] MIPS: update tlb even if pte entry has no change From: Sergei Shtylyov 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> Message-ID: Date: Thu, 14 May 2020 12:37:27 +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: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 14.05.2020 12:35, Sergei Shtylyov 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. And "needs". >> need update tlb still. Oh, and one "need" is enough. :-) >> 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