Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp4032564ybg; Fri, 25 Oct 2019 12:21:09 -0700 (PDT) X-Google-Smtp-Source: APXvYqwcgdWyAT0OfSWDrB4fGeU/M5oyo8Dib4aQyp3O6v1ljzlUBinHH2QzjL/niCE7g0J5Co/2 X-Received: by 2002:a17:906:298f:: with SMTP id x15mr5080465eje.50.1572031269170; Fri, 25 Oct 2019 12:21:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572031269; cv=none; d=google.com; s=arc-20160816; b=H3UZUXJwAk2w8Row3WJki256AeB3SuLTdu5SPgkZQsQ/u7+Jb+4+uv3R4IMuPz5Ht8 2bc7F0mVt1npSYzyA8GN2MYB8NVxonl22xCO5GN5kDORCU3stfCbDtVjyTQ+ZHDFaOxk kPwxcaHpZb8jfh6+hyZ8k6kABScQmfWJRELiloVRUWhSvxr+eGxMkwyoY0pRcRlvT2IU BnsDNe+Sjy0FtuH35FIsAMesBqgFy5LeQ2Js2iJYZNhN/mW6fgQwKTmy5NzFk8YB/uz2 Ss+Hiuy9ZAesT/KFXXFm3wKypji2wlZT3hIl8tW6xNKs9nnZy5aV+whPyahuCwMvhbhF Kn9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date:dkim-signature; bh=NDnBP4/LxhdGXSkB81z59K6SH35dARBNL26jgxKs1DU=; b=QytCIOtPoHxH186AhC2mcWZKWfH899f1Mg5EXSWciqlvK30ig4tSXTtXtb2V1yXPNa +UvaPNNUntCjNjMcEHUjo3UFNZ5DOGmGI+w0zs9ofU7+6qRE0WxE+PhkUvhllJ5/ltjL aJv/1fXkB6sB4nCMQtrN8DqzthfNZuJiv2bZC13VoXqHZLWKakc4WDt3cxeMFHSV0iPg LuGLjPFOPEy98kdp3nY8AmtQYCPZ+xnOPGCt1maCl8kGDwDiWceA7ZiTPS3egnWdU+sG O10P/2ArPgYNiVPYtWuuUY2VCflXpo2PayiLncguKqI/TLG0ESfEa/Qk/Q5vsDy2h3lH JBJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=Ark4hOE7; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p37si2001078eda.405.2019.10.25.12.20.46; Fri, 25 Oct 2019 12:21:09 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=Ark4hOE7; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391917AbfJYDJo (ORCPT + 99 others); Thu, 24 Oct 2019 23:09:44 -0400 Received: from mail-io1-f66.google.com ([209.85.166.66]:38998 "EHLO mail-io1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729283AbfJYDJn (ORCPT ); Thu, 24 Oct 2019 23:09:43 -0400 Received: by mail-io1-f66.google.com with SMTP id y12so719286ioa.6 for ; Thu, 24 Oct 2019 20:09:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; h=date:from:to:cc:subject:in-reply-to:message-id:references :user-agent:mime-version; bh=NDnBP4/LxhdGXSkB81z59K6SH35dARBNL26jgxKs1DU=; b=Ark4hOE7lqn5cgq/Ov0R55L1DNSP47nM+/2lKqSaYlr/WWlTf3ju7IgIPjgTmpii/A hALDty3X+F3p4kuLNe7SxZakxh/OnoIYX14cm2g3aeUL8r9kav7bIKNzKfJKEfdw+tNP Ej3qXt9Zonj4wENgpQNwu9KuYvrc3Ec+cAPRZcUbxqpW3Jttr+ND4OrNkpFimhkVb+Z7 l8ImnHWofoJtjSU6dElBzmF6xcaCJXJ7J2cSY8/T9xg5pfhS9hvbHPKD0Ix+YT53mKlf zE8Dqgbu/kVRb7r0sCsXmaQFxvlp4gMpY7fpAynPSaKrgCcNQGQcTO4shg8rOIK92I6n XFLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:in-reply-to:message-id :references:user-agent:mime-version; bh=NDnBP4/LxhdGXSkB81z59K6SH35dARBNL26jgxKs1DU=; b=Si+sdrXgxsiehyKao/kvTYBw0PMXmg0z+pm2opF+V31Ex1y8r9VnR0mcvGFIaiRUhF GsZPXUBseK7OBq6VsvKbi6NrJdCUSDV4YCMJo/i3pBnnD1BsvSkzJlPPSFGMg0AT6pBA IrDkbJdnP43jXn2hT2/2EeK/FpnvMjjEiUOxDXkvNJaZ6JmnxpzG9ohdhH4fZosxfMum nqf2B89ubNcY/byoA3jVC++XbgsVtWDfs0iJIvA+nmgVvH8NVxo3iB2BKJmuEBRLfAEd 7rLxTc6wKOkuejRr3ii3Tp4N1kdj7AwFBpsE6ZaA5zhD6CRH3TeW+dN6isxFP/K3CNuS aPiw== X-Gm-Message-State: APjAAAUlq1YT3L8jVB8FGoya6jQ9uP6sr/Zqe68pbCMcuHQ715tJuXJn pqwjDP4KtErNImBz4A07TcalfQ== X-Received: by 2002:a6b:7d0b:: with SMTP id c11mr1526968ioq.236.1571972982795; Thu, 24 Oct 2019 20:09:42 -0700 (PDT) Received: from localhost ([64.62.168.194]) by smtp.gmail.com with ESMTPSA id d6sm173269ilc.39.2019.10.24.20.09.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Oct 2019 20:09:42 -0700 (PDT) Date: Thu, 24 Oct 2019 20:09:40 -0700 (PDT) From: Paul Walmsley X-X-Sender: paulw@viisi.sifive.com To: Atish Patra cc: linux-kernel@vger.kernel.org, Albert Ou , linux-riscv@lists.infradead.org, Palmer Dabbelt , Christoph Hellwig , Anup Patel Subject: Re: [PATCH v4 0/3] Optimize tlbflush path In-Reply-To: Message-ID: References: <20190822075151.24838-1-atish.patra@wdc.com> User-Agent: Alpine 2.21.9999 (DEB 301 2018-08-15) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 30 Aug 2019, Paul Walmsley wrote: > On Thu, 22 Aug 2019, Atish Patra wrote: > > > This series adds few optimizations to reduce the trap cost in the tlb > > flush path. We should only make SBI calls to remote tlb flush only if > > absolutely required. > > The patches look great. My understanding is that these optimization > patches may actually be a partial workaround for the TLB flushing bug that > we've been looking at for the last month or so, which can corrupt memory > or crash the system. I don't think we're any closer to root-causing this issue. Meanwhile, OpenSBI has merged patches to work around it. So since many of us have looked at Atish's TLB optimization patches, and we all think they are useful optimizations, let's plan to merge it for v5.5-rc1. - Paul