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=-5.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=ham 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 65F02C43603 for ; Mon, 16 Dec 2019 13:14:17 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 2D6812053B for ; Mon, 16 Dec 2019 13:14:17 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 2D6812053B Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linux.ibm.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id A6E828E0006; Mon, 16 Dec 2019 08:14:16 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 9F7268E0003; Mon, 16 Dec 2019 08:14:16 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 870028E0006; Mon, 16 Dec 2019 08:14:16 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0225.hostedemail.com [216.40.44.225]) by kanga.kvack.org (Postfix) with ESMTP id 6D26B8E0003 for ; Mon, 16 Dec 2019 08:14:16 -0500 (EST) Received: from smtpin16.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay02.hostedemail.com (Postfix) with SMTP id 192D44857 for ; Mon, 16 Dec 2019 13:14:16 +0000 (UTC) X-FDA: 76271048112.16.bath57_81943658394e X-HE-Tag: bath57_81943658394e X-Filterd-Recvd-Size: 5715 Received: from mx0a-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) by imf12.hostedemail.com (Postfix) with ESMTP for ; Mon, 16 Dec 2019 13:14:15 +0000 (UTC) Received: from pps.filterd (m0098420.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id xBGD7FFH116950; Mon, 16 Dec 2019 08:14:03 -0500 Received: from pps.reinject (localhost [127.0.0.1]) by mx0b-001b2d01.pphosted.com with ESMTP id 2wwdt9td02-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 16 Dec 2019 08:14:02 -0500 Received: from m0098420.ppops.net (m0098420.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.36/8.16.0.36) with SMTP id xBGD8ZEh121681; Mon, 16 Dec 2019 08:14:02 -0500 Received: from ppma03wdc.us.ibm.com (ba.79.3fa9.ip4.static.sl-reverse.com [169.63.121.186]) by mx0b-001b2d01.pphosted.com with ESMTP id 2wwdt9tcyg-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 16 Dec 2019 08:14:02 -0500 Received: from pps.filterd (ppma03wdc.us.ibm.com [127.0.0.1]) by ppma03wdc.us.ibm.com (8.16.0.27/8.16.0.27) with SMTP id xBGDA1mV009817; Mon, 16 Dec 2019 13:14:01 GMT Received: from b01cxnp22034.gho.pok.ibm.com (b01cxnp22034.gho.pok.ibm.com [9.57.198.24]) by ppma03wdc.us.ibm.com with ESMTP id 2wvqc638vu-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 16 Dec 2019 13:14:01 +0000 Received: from b01ledav001.gho.pok.ibm.com (b01ledav001.gho.pok.ibm.com [9.57.199.106]) by b01cxnp22034.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id xBGDE1Z150397666 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 16 Dec 2019 13:14:01 GMT Received: from b01ledav001.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id E6E132805E; Mon, 16 Dec 2019 13:14:00 +0000 (GMT) Received: from b01ledav001.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 8B18D2805A; Mon, 16 Dec 2019 13:13:55 +0000 (GMT) Received: from [9.199.36.91] (unknown [9.199.36.91]) by b01ledav001.gho.pok.ibm.com (Postfix) with ESMTP; Mon, 16 Dec 2019 13:13:55 +0000 (GMT) Subject: Re: [PATCH 05/17] asm-generic/tlb: Rename HAVE_RCU_TABLE_NO_INVALIDATE To: Peter Zijlstra 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 References: <20191211120713.360281197@infradead.org> <20191211122955.940455408@infradead.org> <87woawzc1t.fsf@linux.ibm.com> <20191216123752.GM2844@hirez.programming.kicks-ass.net> From: "Aneesh Kumar K.V" Message-ID: Date: Mon, 16 Dec 2019 18:43:53 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.2 MIME-Version: 1.0 In-Reply-To: <20191216123752.GM2844@hirez.programming.kicks-ass.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.95,18.0.572 definitions=2019-12-16_04:2019-12-16,2019-12-16 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 adultscore=0 malwarescore=0 priorityscore=1501 mlxscore=0 mlxlogscore=999 phishscore=0 spamscore=0 clxscore=1015 suspectscore=2 impostorscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-1910280000 definitions=main-1912160118 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 12/16/19 6:07 PM, Peter Zijlstra wrote: > On Mon, Dec 16, 2019 at 06:01:58PM +0530, Aneesh Kumar K.V wrote: >> Peter Zijlstra writes: >> >>> Towards a more consistent naming scheme. >>> >>> Signed-off-by: Peter Zijlstra (Intel) >>> --- >>> arch/Kconfig | 3 ++- >>> arch/powerpc/Kconfig | 2 +- >>> arch/sparc/Kconfig | 2 +- >>> include/asm-generic/tlb.h | 2 +- >>> mm/mmu_gather.c | 2 +- >>> 5 files changed, 6 insertions(+), 5 deletions(-) >>> >>> --- a/arch/Kconfig >>> +++ b/arch/Kconfig >>> @@ -396,8 +396,9 @@ config HAVE_ARCH_JUMP_LABEL_RELATIVE >>> config MMU_GATHER_RCU_TABLE_FREE >>> bool >>> >>> -config HAVE_RCU_TABLE_NO_INVALIDATE >>> +config MMU_GATHER_NO_TABLE_INVALIDATE >>> bool >>> + depends on MMU_GATHER_RCU_TABLE_FREE >> >> >> Can we drop this Kernel config option instead use >> MMU_GATHER_RCU_TABLE_FREE? IMHO reducing the kernel config related to >> mmu_gather can reduce the complexity. > > 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 } -aneesh