From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759709AbbIVWts (ORCPT ); Tue, 22 Sep 2015 18:49:48 -0400 Received: from 2.236.17.93.rev.sfr.net ([93.17.236.2]:16716 "EHLO mailhub1.si.c-s.fr" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1757541AbbIVWtq (ORCPT ); Tue, 22 Sep 2015 18:49:46 -0400 Subject: Re: [PATCH v2 22/25] powerpc32: move xxxxx_dcache_range() functions inline To: Scott Wood References: <1442945547.29498.50.camel@transmode.se> <1442948339.19102.270.camel@freescale.com> <1442950473.29498.54.camel@transmode.se> <1442950926.19102.280.camel@freescale.com> <1442951752.29498.58.camel@transmode.se> <1442952852.19102.281.camel@freescale.com> <1442953971.29498.76.camel@transmode.se> <1442954101.19102.286.camel@freescale.com> <1442954285.29498.79.camel@transmode.se> <5601C0CC.6090503@c-s.fr> <1442961271.19102.289.camel@freescale.com> Cc: Joakim Tjernlund , "paulus@samba.org" , "mpe@ellerman.id.au" , "benh@kernel.crashing.org" , "linux-kernel@vger.kernel.org" , "linuxppc-dev@lists.ozlabs.org" From: Christophe Leroy Message-ID: <5601DB07.3000205@c-s.fr> Date: Wed, 23 Sep 2015 00:49:43 +0200 User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: <1442961271.19102.289.camel@freescale.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Le 23/09/2015 00:34, Scott Wood a écrit : > On Tue, 2015-09-22 at 22:57 +0200, Christophe Leroy wrote: >> >Here is what I get in asm. First one is with "if (i) mb();". We see gcc >> >puts a beqlr. This is the form that is closest to what we had in the >> >former misc_32.S >> >Second one if with "mb()". Here we get a branch to sync for a useless sync > I was more concerned with keeping the code simple than the asm output. > Right, but is that so complicated to say: if we did nothing in the loop, no need to sync ? Christophe