From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.0 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id EF4CCC43603 for ; Mon, 16 Dec 2019 13:20:27 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id B1D8420684 for ; Mon, 16 Dec 2019 13:20:27 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="EekAYTbg" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B1D8420684 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 44DD88E0006; Mon, 16 Dec 2019 08:20:27 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 3FF2A8E0003; Mon, 16 Dec 2019 08:20:27 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 3149D8E0006; Mon, 16 Dec 2019 08:20:27 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0077.hostedemail.com [216.40.44.77]) by kanga.kvack.org (Postfix) with ESMTP id 1C9BB8E0003 for ; Mon, 16 Dec 2019 08:20:27 -0500 (EST) Received: from smtpin14.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay01.hostedemail.com (Postfix) with SMTP id CD36D180AD804 for ; Mon, 16 Dec 2019 13:20:26 +0000 (UTC) X-FDA: 76271063652.14.laugh18_3dc42e0154b51 X-HE-Tag: laugh18_3dc42e0154b51 X-Filterd-Recvd-Size: 3748 Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by imf43.hostedemail.com (Postfix) with ESMTP for ; Mon, 16 Dec 2019 13:20:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=AIBNLHtUi45jjfcVIL9A+S21fh6ASfhp4YxY7c5nbV0=; b=EekAYTbgHV8U4aNxc1/MCeO3Q J3YIWEqsUPf4ThjMCPzenT99XhnYOyeCGIXk0fydclAME38x9AfcTJnxUxBPN40vl1kquSjyyqhux 2brkNugJGgIYmteTLGXIOMlFlL2XldHeBx6KWIqd7H0cveUnkDusYVCQBeYmmvJUXU4Rw4IZp7pV0 sXNWGH+w04Ho9bM4GSUsPeInODngOMXkuga/vyZ+K/H+mmdWp/NtFPwlxUVW9D42kkf+OdKz5sVtu UoEDJBfNI7uT/J2M4Au5funK7rzqsuWkrS5/3aHTo9fp4LldlXRWvQsLN5fi1wcfp+7axY5bD9xdD v+573oERw==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1igqIC-0006kI-Lg; Mon, 16 Dec 2019 13:20:08 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 5087E3035D4; Mon, 16 Dec 2019 14:18:41 +0100 (CET) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 10B7529D74791; Mon, 16 Dec 2019 14:20:04 +0100 (CET) Date: Mon, 16 Dec 2019 14:20:04 +0100 From: Peter Zijlstra To: "Aneesh Kumar K.V" Cc: Will Deacon , Andrew Morton , Nick Piggin , linux-arch@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Yoshinori Sato , Rich Felker , "David S. Miller" , Helge Deller , Geert Uytterhoeven , Paul Burton , Tony Luck , Richard Henderson , Nick Hu , Paul Walmsley Subject: Re: [PATCH 05/17] asm-generic/tlb: Rename HAVE_RCU_TABLE_NO_INVALIDATE Message-ID: <20191216132004.GO2844@hirez.programming.kicks-ass.net> References: <20191211120713.360281197@infradead.org> <20191211122955.940455408@infradead.org> <87woawzc1t.fsf@linux.ibm.com> <20191216123752.GM2844@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Mon, Dec 16, 2019 at 06:43:53PM +0530, Aneesh Kumar K.V wrote: > On 12/16/19 6:07 PM, Peter Zijlstra wrote: > > I'm confused, are you saing you're happy to have PowerPC eat the extra > > TLB invalidates? I thought you cared about PPC performance :-) > > > > > > Instead can we do > > static inline void tlb_table_invalidate(struct mmu_gather *tlb) > { > #ifndef CONFIG_MMU_GATHER_RCU_TABLE_FREE > * Invalidate page-table caches used by hardware walkers. Then we still > * need to RCU-sched wait while freeing the pages because software > * walkers can still be in-flight. > */ > tlb_flush_mmu_tlbonly(tlb); > #endif > } How does that not break ARM/ARM64/s390 and x86 ?