Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1336853ybk; Thu, 14 May 2020 06:36:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy1o5Kc2LadS6vsjvowqC7BODGPfdOHpDLQw539fd8QBS/OUyi2kjJlBbQR58b8khGMw3o2 X-Received: by 2002:a05:6402:31b1:: with SMTP id dj17mr4091275edb.142.1589463384043; Thu, 14 May 2020 06:36:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589463384; cv=none; d=google.com; s=arc-20160816; b=ayf/+FdvK1nfZJPyhmmSxNE+lbnPJGwwQavluNSSeKLFR514qDPupcyVOltyY1iEtm B5obHrPCnnkjOM4wzb+5cvpcYuP42aCbmkXjrD3EILZkVPcUWQ+Xmgb6La3YzExkakFC xtrFnbRxtOJ+VbpoeQBl5TkKRRY6pJ3a4A7LQZmhSZcMh8rRgq3tFX5Fm5UdDrC6Gte7 qFZ/xzllFBWW2XC7RhwcwzAMcTthCq6U6JUlvF1PpFctMlCB50JodBFNNhLXm/oPVu9N yA+DuGEOJGk2EVxJdg+oHw+lJEyCkVXRF9RB7baChJvOY01uhgKEaJtHJctbWx8tmLmX MbXg== 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:mime-version :user-agent:references:message-id:in-reply-to:subject:cc:to:from :date:wdcironportexception:ironport-sdr:ironport-sdr:ironport-sdr :dkim-signature; bh=cu6QKO21ZFaNTc2wSsOG/N2W2hhWHdhHB3eWJnMKcyU=; b=V310THmYwJunia6UeK8Rp7UzZ9mTRWJlNw+WQAhp4mBVCUjUcW35U3ql28YzoyZDzx 1CHIZtiTPQQstQujcIY5nwjHDQF3i/36G/RQ9U1fB6zU0a+NAh5OC4OSxcvtC9LFwkgb bAc0+YLAOVPg87ncopX4hO7MDVVoHiC5wV0ILmJSy4Wgd1WSphZG55hGHRrf7/oN5ydH 8TUNjmvg4v9efFpaxxlG7fXE5XDJ54g237jBiRioap9sGcsH0SxnFuW//bAUMieUetRy WSK6dpZUKvkbyu3LfPOlF9jzwXU2c2nT8CcVk127DVeeDEhLJKo0xX4CUSEVOIVdmuul HLRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=C9hE8LpM; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=wdc.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r13si1569410edt.263.2020.05.14.06.36.01; Thu, 14 May 2020 06:36:24 -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=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=C9hE8LpM; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=wdc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726551AbgENNed (ORCPT + 99 others); Thu, 14 May 2020 09:34:33 -0400 Received: from esa2.hgst.iphmx.com ([68.232.143.124]:21015 "EHLO esa2.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726140AbgENNed (ORCPT ); Thu, 14 May 2020 09:34:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1589463273; x=1620999273; h=date:from:to:cc:subject:in-reply-to:message-id: references:mime-version:content-transfer-encoding; bh=8PX/L/naQftDsm+cBX69ACqTXRpTmFduJBFfTfnCbEE=; b=C9hE8LpMowxWM/OSoTLdXkGb/G0znJeZsxE+KBhqS1lA7fqseDMgedVC UONYckln/A2m9rhvuNDeAv25pLNifN7xiXXUi5WTS/YvSn3BEQwr+uQCl cFtHNqV6o0UsB4wYjI8fW7j9oFpgWFnVItnnyEsv9E7HsHGa9HLs1DDCe Pnm55j0X2otuaKgs5b3sTjYg8fkA5uQp7HL17Z2/fha5wqYo4AeGNJ6rv 00/Am6fPhVkakTcB9iTNrXSbMeC2Dc9fh2dEJklr4REw30rjHr1Q3TyCf mZlg4jSogHkYYCVSNsrpo9GxplPJzgYC9VoQOsSJ8qJpwawOUl5/LkziD Q==; IronPort-SDR: swCtBAYDjjCyyiUqg4mYkZSLQ0eObN975BJbFniIZu+olCbm32G7T6/8Q2eh04SdZ/klDr18cP UQqv3n+rPSpY1Its92krlFMTWOt8jgHsED/459C/lx7/B3+i6PpQ0R2V2f9U2OpeTVQIbxBmX2 hifD8LMtyXKqP0QWcVT1lr0yyklabHo2D93jXkBJvkAUMoUKT8XUkxlnimdT2kW3MQNZpCowb8 nZJZuTlI+6OP5fVmKICvya+4mo62kYB4TdnUgTDCHt2WKuc+DbKnD2aorLFhIoyLrVshyba5sv eWY= X-IronPort-AV: E=Sophos;i="5.73,391,1583164800"; d="scan'208";a="240388828" Received: from h199-255-45-15.hgst.com (HELO uls-op-cesaep02.wdc.com) ([199.255.45.15]) by ob1.hgst.iphmx.com with ESMTP; 14 May 2020 21:34:33 +0800 IronPort-SDR: UQqrcpAkSslpR8S1FwmY3S9XoKwk9p/bamfgOsV3dOP5nfLLVeItZvQIXbu99uDVzyy5qGFeRn q/3UJoABjlwppkA7FGE6R35IKkv/Sf4sE= Received: from uls-op-cesaip01.wdc.com ([10.248.3.36]) by uls-op-cesaep02.wdc.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 May 2020 06:24:12 -0700 IronPort-SDR: dOQ+2MaR1eefUwGBgVuaBVDuKbxo6IuUfevUdMIWNzRnJriKNVZWhzBAYBLQItiXfufb6QRhTF P+f96057z1OA== WDCIronportException: Internal Received: from unknown (HELO redsun52) ([10.149.66.28]) by uls-op-cesaip01.wdc.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 May 2020 06:34:29 -0700 Date: Thu, 14 May 2020 14:34:26 +0100 (BST) From: "Maciej W. Rozycki" To: Sergei Shtylyov cc: 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 , linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, "Maciej W. Rozycki" Subject: Re: [PATCH] MIPS: update tlb even if pte entry has no change In-Reply-To: Message-ID: References: <1589422677-11455-1-git-send-email-maobibo@loongson.cn> User-Agent: Alpine 2.21 (LFD 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 14 May 2020, Sergei Shtylyov wrote: > >> 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. :-) Hmm, "the process need update" looks right to me (compare "the process need not update") as "need" is used as a modal verb in this sentence. Alternatively "the process needs to update" could be used (with "need" as a main verb, and "to" then). I'm not a native English speaker though, so I might be missing a usage subtlety here. NB I'd be in favour of capitalising "PTE" and "TLB" consistently throughout though as the norm is with acronyms. Maciej