Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp692836ybl; Thu, 22 Aug 2019 03:27:36 -0700 (PDT) X-Google-Smtp-Source: APXvYqwazKvrndVa70EJf4hWQ3k2+pSM2FzlMvZJ/0SmdG+rrJWSCCyeTMXmo8a2VPIaVwk+Oa7V X-Received: by 2002:a17:90a:e502:: with SMTP id t2mr4718034pjy.104.1566469655982; Thu, 22 Aug 2019 03:27:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566469655; cv=none; d=google.com; s=arc-20160816; b=wGD1RQkUG1wMLldUZE6nf/4BPFAGqIO9tKWRMA3MKb4vWThMRvIO6q8eU53xVsGIh/ FH8jGyiHgfV3osG9+Lr8kHTHWtVTqSEQmamXuyLwFMDxRpoWWsWrRJYlRe8c5l8kTCLr 84D8AOEtA9DAvTToIU29MV2hIxa1amuwbB2I8zJdDa+XMzVg2MeAeFSKNs2FSj8IvQIk qeA9etR4flbj/4G1QLQAsZmDqj7A7X3/wzEsQk4BfMxR8dmVpGzqJsVV+zlb8Ybjbx1M 7YSk5rNEOYUUiamCMx9CFLOJ7qau6HiRSrLwxcUC3NEto+p9QiMAu3Z+ZZGWVrAWiW54 6p3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=6G4p25ptP3kGfJ2koukEBp65KQq16EyybbEUD5Iy5as=; b=wJ+yLezdlBeHtSQC8gqPC0WMvGusbEQ6h4on9WZgxEtBi9k/eKz3U7qexUeD0g0vp4 9s+CO7XcPws2AqY7Nll8NWL9qPTuyLdZXDh10lL2onOgYEtUadZAPaPsN7gl2uoQocuF 4VOjEpp7pDmlVQNY9l+vmNv8YUQ+KzU7aPaxKn2iNgYz5Y3P8IILDZNXc4v7cR/2OTCm NFkqK8ScqEMh34vVRBabwakK9S+zld9o2erRreMVG0zG1/LHCrB5KVjbpNFKZSTwbnw6 x2a9hM19wUI7/wSDBbEv1B3B07kTn1gzKV1UGZ58T+spRvoLSJxO3DdEzwKx5/1PuBQT E2fA== ARC-Authentication-Results: i=1; mx.google.com; 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 l1si16514936pgs.458.2019.08.22.03.27.20; Thu, 22 Aug 2019 03:27:35 -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; 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 S1732081AbfHVIK5 (ORCPT + 99 others); Thu, 22 Aug 2019 04:10:57 -0400 Received: from verein.lst.de ([213.95.11.211]:44780 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728519AbfHVIK5 (ORCPT ); Thu, 22 Aug 2019 04:10:57 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id E4EE768C4E; Thu, 22 Aug 2019 10:10:54 +0200 (CEST) Date: Thu, 22 Aug 2019 10:10:54 +0200 From: Christoph Hellwig To: Atish Patra Cc: linux-kernel@vger.kernel.org, Albert Ou , linux-riscv@lists.infradead.org, Palmer Dabbelt , Paul Walmsley , Christoph Hellwig , Anup Patel Subject: Re: [PATCH v4 2/3] RISC-V: Issue a local tlbflush if possible. Message-ID: <20190822081054.GB17573@lst.de> References: <20190822075151.24838-1-atish.patra@wdc.com> <20190822075151.24838-3-atish.patra@wdc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190822075151.24838-3-atish.patra@wdc.com> User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 22, 2019 at 12:51:50AM -0700, Atish Patra wrote: > In RISC-V, tlb flush happens via SBI which is expensive. If the local > cpu is the only cpu in cpumask, there is no need to invoke a SBI call. > > Just do a local flush and return. > > Signed-off-by: Atish Patra Looks good, Reviewed-by: Christoph Hellwig