Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp2837294ybl; Mon, 19 Aug 2019 08:12:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqxabWOlYVXJPef5/9T09hgFatfJPMn9rPJ0lpCYoHlT4F9G3qGsxVIRIyda2K2jckJYj9xB X-Received: by 2002:a17:90a:f:: with SMTP id 15mr21235674pja.93.1566227520352; Mon, 19 Aug 2019 08:12:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566227520; cv=none; d=google.com; s=arc-20160816; b=hWEB9kWA2qQKD4Z+l2cueZtG43gQMBCVOMy5YIWr8T+OBxb0DK+YtW8fxy4zuGJSLt c+d6L5d+wLVAN7b1Rw0yJ9BAVW1WBplpT6+Wzi0qjIjLc+X/2ApFKeKjsH4KzJWJ1vDt b5RVb+9IxuhF3zCMYojlH8uUNcVVjm4LwLJtiWOxjMcsAIWO3gjA+d4TR1URC8BYHZaF tPHBW1a6O8wuPOQP6UM+WUxYp9GgMiSYUyonQu5ko24SaWXsavxw8HOp5j4NlDfmlk4R mPmtH5UU5kEdHrP/QT+u4jdAJrmzpcV4qDpytdgqHQZffC+lJedLgEUZMq2INwoQXnei /+8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=cexPhrCLObLWuEp73k9kJmodhWBwZ7DxuWqGj7qCEDA=; b=TXdk1o2ef5XGVMr5mF7XSy742ntOZkJ2kM+UpItBymrZfaXx1wYTpJ13LjbWmVZClA OcdMEAH3zapG7eyaZk1GVKgdDURNI4B/J0zZZNP0aRpAn3l7VZcfImfWu/OwTNFx9cEc vuQNJaz0SBYE6vJuX51alkuPat/IHXnsIC2gESfRqo8mOUkJCB0sa+LcZ3rIyXyb50VL 8OmoHGI8cycdGXxjBDle8gVMS3ZU2xVQh3LQfLk35EQx2RQMwlNBOTW+c2nSnJUp5f6s P6joDsZeV3tn2wsAcAXJFfaOxaYV3nCE7r5dm5AjWYFEF1nyEF51sCz+vpGdwyov/Cgl vRxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@brainfault-org.20150623.gappssmtp.com header.s=20150623 header.b=TjRfrMeu; 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 l36si10059088pgb.292.2019.08.19.08.11.43; Mon, 19 Aug 2019 08:12:00 -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=@brainfault-org.20150623.gappssmtp.com header.s=20150623 header.b=TjRfrMeu; 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 S1727670AbfHSPJR (ORCPT + 99 others); Mon, 19 Aug 2019 11:09:17 -0400 Received: from mail-wr1-f65.google.com ([209.85.221.65]:44841 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726343AbfHSPJR (ORCPT ); Mon, 19 Aug 2019 11:09:17 -0400 Received: by mail-wr1-f65.google.com with SMTP id p17so9080063wrf.11 for ; Mon, 19 Aug 2019 08:09:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brainfault-org.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=cexPhrCLObLWuEp73k9kJmodhWBwZ7DxuWqGj7qCEDA=; b=TjRfrMeuPlMjyuBy47+ksxr6FmfZjGkDNkXRu5/hwIyw1NlgdUHHn6o94/O+Wxoy0P OqwTYfWZU/kaEZ3NBy27JlqV6AOJzjmTIHTMx3qvNywoNOSAR7soXBUJa5uWbx++pmp1 3urb9mti67/zJHeHCkgNfCPslQ33U0Yxz9huifekewmAjgfpkr3F82NhvOL4ZhMGnEup Uo+SMvSwQfu3EbtKP+U2QsI+msI4BgSDPcNE4WSRq6hHfBpaaLjzEiodzpm0sJCxTh9v N8FWjUPivsUUEZh7nB4NhK/aK25uEEhTFjPDjhYukNG2PjXrO3UyR795lTmkZxJe6/gU SqOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=cexPhrCLObLWuEp73k9kJmodhWBwZ7DxuWqGj7qCEDA=; b=m37figKbyFApTFvN6392RmJEdb03j1YyXQ/BYmhAdVl/ME2TSfMl7ULJELalZylvLw DWw1zxN2jCzenKq1EW4EOKeUqwPx6DWjWhZ8aC7w+EAuQRa1/qyS4Vc7y7rdDZ1FODL1 RQ7GA35gC0mDv0sqdl11OcsKPDMJmmJpdmhU1tLhLSWTPWCpZIQ4fACsXBAvreXOkwlm J5BplPyOndYqxAYF4q/IM21jkPCXW01KDXduq2NfTeoeOa/0ABaPTIFeGILvcWr/MIx8 RqL8VZX8d8DKqUL8LpZpj1XwsgakHpjHhf+0/Qx9gBRvIp9zU4SY8VU7arP0p9E9yuy8 0bFw== X-Gm-Message-State: APjAAAX/+fHobu1VUlV7LJg6Myagwn+hPSdgtnQfYii7k3f67akJ52CU Ok8VMQCBlzPw2v/iMxltLO/eOHUM4hJ4/QPkil/zPQ== X-Received: by 2002:a05:6000:104c:: with SMTP id c12mr25030881wrx.328.1566227354761; Mon, 19 Aug 2019 08:09:14 -0700 (PDT) MIME-Version: 1.0 References: <20190810014309.20838-1-atish.patra@wdc.com> <20190812145631.GC26897@infradead.org> <20190813143027.GA31668@infradead.org> <3f55d5878044129a3cbb72b13b712e9a1c218dc7.camel@wdc.com> <20190819144627.GA27061@infradead.org> In-Reply-To: <20190819144627.GA27061@infradead.org> From: Anup Patel Date: Mon, 19 Aug 2019 20:39:02 +0530 Message-ID: Subject: Re: [PATCH] RISC-V: Issue a local tlb flush if possible. To: "hch@infradead.org" Cc: Atish Patra , "aou@eecs.berkeley.edu" , "gregkh@linuxfoundation.org" , Anup Patel , "linux-kernel@vger.kernel.org" , "alexios.zavras@intel.com" , "palmer@sifive.com" , "paul.walmsley@sifive.com" , "linux-riscv@lists.infradead.org" , "allison@lohutok.net" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 19, 2019 at 8:16 PM hch@infradead.org wrote: > > On Thu, Aug 15, 2019 at 08:37:04PM +0000, Atish Patra wrote: > > We get ton of them. Here is the stack dump. > > Looks like we might not need to flush anything at all here as the > mm_struct was never scheduled to run on any cpu? If we were using ASID then yes we don't need to flush anything but currently we don't use ASID due to lack of HW support and HW can certainly do speculatively page table walks so flushing local TLB when MM mask is empty might help. This just my theory and we need to stress test more. Regards, Anup