Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp2353664ybe; Tue, 3 Sep 2019 11:34:34 -0700 (PDT) X-Google-Smtp-Source: APXvYqzj+4TqR8fkbMSvmeeZgmmPCAMKxXKrpAhBhE4PFcT9xtJMM7qKsftp/ueDA9WibX/AfIzi X-Received: by 2002:a62:e10f:: with SMTP id q15mr14681124pfh.34.1567535674684; Tue, 03 Sep 2019 11:34:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567535674; cv=none; d=google.com; s=arc-20160816; b=RL0CUVYe7ldmN8TdJQpb1581WMjodRjQ+86sStMluTiGNb6aAvj0hoccBDdtTxEcb+ 9mAAycd9iUBycqqVBin2y55ZMvDj7/FEN5zNIE9ye3g3HtI95moBMb8EPJ5B6fuvW1e8 CIRPs0JP2GwVuoX38OMP7Rq3cXuz/egD25Th7v3rpQj4eaFh7qB3ztXPdF6naIdf96St QN3/Mtxf42Ca1YIL3YCNO1K+whm9IKY+qwO7lpyyX4vjWEqShE0MTO1J8XPIZy840dUX fmz1ih2CAIN1723z+kgGoQZLZcPcrYV/if/SP6/SDBLQgjruoUUg29/JgnoB9k2KGUmR xepw== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=/6t3XQWzdTDa7+vBhz9DBxvrZvXkQurRecy3oVVhzxw=; b=NdPrHkb8MGzXQ9SQWTwzdR57lJ9qKA74AEUv6mDnXTqnJOfkV79vU+YbidZ+88H4Ds NA4V3uA0Qp9VztZx4/6nCn+sTQRfucAQoHe2MGmU7H/sy6f0EQrQfT3Z9uYdS2WF/R/4 yJO3Y2Kvg3zf0Dkmkruke9dmJLwxHpZB97pNNfrU6R+6wEftcMejM3N01DDzUV3yEdFo y9mf9UJZGTqkqFJIHcd0kpD6TvgZjKz7HYS0YqJZsaIl9a9Kw9MDSeG/PR85dAOysE7+ Re+W/eCnWqTMtpI/7RUCdtljfC1uKS5HFs30k22+OrB3FhKXzj4U97ciFEtWo1TODuCB 54Tg== 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 co19si15694573plb.242.2019.09.03.11.34.19; Tue, 03 Sep 2019 11:34:34 -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 S1726460AbfICScs (ORCPT + 99 others); Tue, 3 Sep 2019 14:32:48 -0400 Received: from gate.crashing.org ([63.228.1.57]:50902 "EHLO gate.crashing.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726377AbfICScs (ORCPT ); Tue, 3 Sep 2019 14:32:48 -0400 Received: from gate.crashing.org (localhost.localdomain [127.0.0.1]) by gate.crashing.org (8.14.1/8.14.1) with ESMTP id x83IVx20018430; Tue, 3 Sep 2019 13:31:59 -0500 Received: (from segher@localhost) by gate.crashing.org (8.14.1/8.14.1/Submit) id x83IVvlH018429; Tue, 3 Sep 2019 13:31:57 -0500 X-Authentication-Warning: gate.crashing.org: segher set sender to segher@kernel.crashing.org using -f Date: Tue, 3 Sep 2019 13:31:57 -0500 From: Segher Boessenkool To: Christophe Leroy Cc: "Alastair D'Silva" , David Hildenbrand , Greg Kroah-Hartman , linux-kernel@vger.kernel.org, Nicholas Piggin , Mike Rapoport , Paul Mackerras , alastair@d-silva.org, Qian Cai , Thomas Gleixner , linuxppc-dev@lists.ozlabs.org, Andrew Morton , Allison Randal Subject: Re: [PATCH v2 3/6] powerpc: Convert flush_icache_range & friends to C Message-ID: <20190903183157.GB9749@gate.crashing.org> References: <20190903052407.16638-1-alastair@au1.ibm.com> <20190903052407.16638-4-alastair@au1.ibm.com> <20190903130430.GC31406@gate.crashing.org> <20190903160415.GA9749@gate.crashing.org> <321b003a-9633-5ff4-c4a2-59a47ec23421@c-s.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <321b003a-9633-5ff4-c4a2-59a47ec23421@c-s.fr> User-Agent: Mutt/1.4.2.3i Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 03, 2019 at 07:05:19PM +0200, Christophe Leroy wrote: > Le 03/09/2019 ? 18:04, Segher Boessenkool a ?crit?: > >(Why are they separate though? It could just be one loop var). > > Yes it could just be a single loop var, but in that case it would have > to be reset at the start of the second loop, which means we would have > to pass 'addr' for resetting the loop anyway, Right, I noticed that after hitting send, as usual. > so I opted to do it > outside the inline asm by using to separate loop vars set to their > starting value outside the inline asm. The thing is, the way it is written now, it will get separate registers for each loop (with proper earlyclobbers added). Not that that really matters of course, it just feels wrong :-) Segher