Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp749495imm; Wed, 19 Sep 2018 06:23:07 -0700 (PDT) X-Google-Smtp-Source: ANB0VdahiF+kE62J+EBrWNw2xFRdsOHyejJjaMnKqF7oAQhEtVr0lUFBKHnMPYSwz+W86zg0BGVH X-Received: by 2002:a17:902:988a:: with SMTP id s10-v6mr33787486plp.200.1537363387300; Wed, 19 Sep 2018 06:23:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537363387; cv=none; d=google.com; s=arc-20160816; b=mc6bRRb4ssEMG4OkQiPKT37hPdsiCYqbAgJ0LKqXhmjsdRXi75pl2c1PeFbkKBrckB gwt84mhdT+rYGZIeXlb/+xHGxT4gQaNaZsheMuQ4yS2rWzJjHJs6aNj6eZVKqnKXJDlk 6Of2TdFv/Dp9FTimNqxhTIczWCKLhF25fryAijtfJlKsIgUQ+EHW6dJ05LSoD+yar5BZ DOt/3GyrGNhKdHkEJs4fQDb2x47VAvlht4vbPqaUwsy76Esq1r8DFPVBlad7hcIt1z+X ktHoIJg0Qlxrm1c1dUbtIIJwX7RlBQppu52nZz/lEEy6phlv+GfD89zLbmRpGWIQFAMh XOqA== 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=6dcC8t6gmgVjP4fCkb+Kcyg1MQCNKjdgUj5V7h7KPws=; b=FrXmN50xEZCv0iNwf+hH63nuBhQvdscZKyHw6+du1EiCml6bN0E06LKJX7cWuohEh9 Sd+JeJDiDowSl4klzzfzC/rWngRwMM1K75blMPclfDvpkSN66FgZH/7N0ipuvLQ/t8LL jJygElXOTsEVUm+nebhSbXoidkh8Ag9dP1FDjL9o9dH0rsnRWjbwzqD7luIIa5zzRqsz zfwoho4D3GD0dl4qAU84UvByHoqTqXRRYliZ/yNr9DeH8RMJC0zc35KNO2iBYRAf4hOb pvfMl0TBLd9qewDJhh0KNOBW6AMzW5F2bIRMuBEZW7wwbkJSleMCdLwkigKDqiQP+Lxh NdNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=TuqaPuzZ; 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 g9-v6si20558245plb.107.2018.09.19.06.22.36; Wed, 19 Sep 2018 06:23:07 -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=TuqaPuzZ; 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 S1731744AbeISSuz (ORCPT + 99 others); Wed, 19 Sep 2018 14:50:55 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:42908 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731620AbeISSuy (ORCPT ); Wed, 19 Sep 2018 14:50:54 -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=6dcC8t6gmgVjP4fCkb+Kcyg1MQCNKjdgUj5V7h7KPws=; b=TuqaPuzZZpAgaCuU2ydiFjFXQ VbUbymInmdHkY9KYrQTSGY78VM05S6rI8krNbHXoLHBuIyRCf0n3pbIoSjgLrTZ7wJcC307hxtMEr g9mWsfHFZJ/qtEhpUGEepjBU9lax0CTEFQjaSqZqW7ZGcvh/mk+h6q2lWukaRq9rH2DloKBuDbZr5 H7G9vCFaOe5Ez1+zvDCAEYTjODGXkdcvMP534ocjk/JvKwQv7awSbJ3lV4LVX/M7cYnAUPlpFHjRn iiMuDtNOaP4lu9FJYnM+k43KNk2GQ2GmvLEBvSE0gELA5gddNzbhWkfdEppUhO1zG5iRpfKS2XIZP DC+uwmLMg==; 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 1g2cHo-0007on-2V; Wed, 19 Sep 2018 13:12:56 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 6BC062024E448; Wed, 19 Sep 2018 15:12:54 +0200 (CEST) Date: Wed, 19 Sep 2018 15:12:54 +0200 From: Peter Zijlstra To: Will Deacon Cc: 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 Subject: Re: [RFC][PATCH 01/11] asm-generic/tlb: Provide a comment Message-ID: <20180919131254.GI24124@hirez.programming.kicks-ass.net> References: <20180913092110.817204997@infradead.org> <20180913092811.894806629@infradead.org> <20180914164857.GG6236@arm.com> <20180919115158.GD24124@hirez.programming.kicks-ass.net> <20180919122328.GB22723@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180919122328.GB22723@arm.com> 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 Wed, Sep 19, 2018 at 01:23:29PM +0100, Will Deacon wrote: > > > > + * which (when !need_flush_all; fullmm will have start = end = ~0UL) provides > > > > + * the range that needs to be flushed to cover the pages to be freed. > > > > > > I don't understand the mention of need_flush_all here -- I didn't think it > > > was used by the core code at all. > > > > The core does indeed not use that flag; but if the architecture set > > that, the range is still ignored. > > > > Can you suggest clearer wording? > > The range is only ignored if the default tlb_flush() implementation is used > though, right? Since this text is about the fields that tlb_flush() can use, > I think we can just delete the part in brackets. Well, any architecture that actually uses need_flush_all will obviously require a tlb_flush implementation that looks at it. But OK, I'll remove the note.