Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp761087imm; Fri, 14 Sep 2018 06:04:00 -0700 (PDT) X-Google-Smtp-Source: ANB0VdY12DlN9lytnhM0ZILV4b88qGQ5w62FDcKUWyrqe7LW8t1aTJTUcoN0GSL2hKD684lDz9Tx X-Received: by 2002:a62:c218:: with SMTP id l24-v6mr12486536pfg.185.1536930240580; Fri, 14 Sep 2018 06:04:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536930240; cv=none; d=google.com; s=arc-20160816; b=0rTkPS7FOUGExuuRJpu7jZzZ6V2P0iuAgkkm5nKUoEx7+SBnj6JbcWLN7c1gzqwdi5 DkOYgkSwK9zfdzrNy8fHvEi/L0fR4BncTzxy/crGgVpSeTpm8LWGAphC8lv1g784EvWk 4JAsg3AigOo/sMFnfzY9T7FwSXbYevFJh8v1L5YoI5sOTV2AUE36yqcRr7e6H2Im99D4 /TAGkDjD0wq0ZzKEi9I6kjrNXvS65k43QOijyINk+DfLcsGCWrY8t1kZ3cy2R/q1m9ex q5SVyZ/J83m3GiepJb+IlZYpPq//jrEeh4Olbk6IucNIUlfQlbEYkhHBwqOILVATj7SA soBA== 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:dkim-signature; bh=RFpv9F2SmIWvJGv2NrwrXdm2+blXCInEbXjfYJPDXFQ=; b=sIpmhcQ5E5xXPVMiu5qQF+cSyfRvhriZYY4kV5xNnEUx1G6mifcKUF7VYIIo+Px85h bWN5yvQxZFK4yl4PsHstwciVp0FJAwSA0IVNb1q4+3pbGZjy6Goyr10TfyJhKx/p/hQT EAlWt5bdiZkWh4nmRDncG+YRFmxBjXfqK6kcNcJeGJOKONi/LlWRjboz5d34f+EzX01E 3PYGFGKGRIS7Aw8AYA3wWDQ2I34isSLHklaB/K+uaRqHpvFKed+yvFgPR2D3Gn8yNb0c CNSELKR1iXWq7X6f9BSZe+YyDGmtwBFI7reDu4jkrxWhmbkh8q8kpe3cWJMHrud8Xhic TztA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b="s0/DKPm+"; 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 y1-v6si6918939pgo.644.2018.09.14.06.03.43; Fri, 14 Sep 2018 06:04: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=fail header.i=@infradead.org header.s=bombadil.20170209 header.b="s0/DKPm+"; 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 S1728082AbeINSQj (ORCPT + 99 others); Fri, 14 Sep 2018 14:16:39 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:45316 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727013AbeINSQi (ORCPT ); Fri, 14 Sep 2018 14:16:38 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.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=RFpv9F2SmIWvJGv2NrwrXdm2+blXCInEbXjfYJPDXFQ=; b=s0/DKPm+o4PHRk67o5PRGF2on +88NynYwyhlEZWDbNdZXRgHzEuJqkMYXDjUnTtnT0va1FtohpqdVsUYLqh3oTqxFXmmKj3GE2qqvd l0emoiMHMJWxc5Q2B48a0bTUOO9T9wV85YmLZngSreVwbYs0q9c+owminjdiHDUkYeG5mRgBcpkT9 0ZZoi2jNEsMlfqHpL1wB1P+MUGDmvL2QIUwnQaVoOvnFrhJIbNJaD79T+rZeFFiGdedCG9YeaZA+p DlSFh+gtcW7HIDtVfUi1/Otng/hmbooUfjR4t9NESaUCH9/l8tCmEZstr3Cv2qMCGX9TMWeMbOKIv CA8oifZZA==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1g0njd-0001cP-6z; Fri, 14 Sep 2018 13:02:09 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 1D617202C1A09; Fri, 14 Sep 2018 15:02:07 +0200 (CEST) Date: Fri, 14 Sep 2018 15:02:07 +0200 From: Peter Zijlstra To: Martin Schwidefsky Cc: will.deacon@arm.com, aneesh.kumar@linux.vnet.ibm.com, akpm@linux-foundation.org, npiggin@gmail.com, linux-arch@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, linux@armlinux.org.uk, heiko.carstens@de.ibm.com, Linus Torvalds Subject: Re: [RFC][PATCH 01/11] asm-generic/tlb: Provide a comment Message-ID: <20180914130207.GD24106@hirez.programming.kicks-ass.net> References: <20180913092110.817204997@infradead.org> <20180913092811.894806629@infradead.org> <20180913123014.0d9321b8@mschwideX1> <20180913105738.GW24124@hirez.programming.kicks-ass.net> <20180913141827.1776985e@mschwideX1> <20180913123937.GX24124@hirez.programming.kicks-ass.net> <20180914122824.181d9778@mschwideX1> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180914122824.181d9778@mschwideX1> User-Agent: Mutt/1.10.0 (2018-05-17) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Sep 14, 2018 at 12:28:24PM +0200, Martin Schwidefsky wrote: > I spent some time to get s390 converted to the common mmu_gather code. > There is one thing I would like to request, namely the ability to > disable the page gather part of mmu_gather. For my prototype patch > see below, it defines the negative HAVE_RCU_NO_GATHER_PAGES Kconfig > symbol that if defined will remove some parts from common code. > Ugly but good enough for the prototype to convey the idea. > For the final solution we better use a positive Kconfig symbol and > add that to all arch Kconfig files except for s390. In a private thread ealier Linus raised the point that the batching and freeing of lots of pages at once is probably better for I$. > +config HAVE_RCU_NO_GATHER_PAGES > + bool I have a problem with the name more than anything else; this name suggests it is the RCU table freeing that should not batch, which is not the case, you want the regular page gather gone, but very much require the RCU table gather to batch. So I would like to propose calling it: config HAVE_MMU_GATHER_NO_GATHER Or something along those lines.