Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964834AbaKNAFf (ORCPT ); Thu, 13 Nov 2014 19:05:35 -0500 Received: from smtprelay0075.hostedemail.com ([216.40.44.75]:51308 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S933846AbaKNAFe (ORCPT ); Thu, 13 Nov 2014 19:05:34 -0500 X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 50,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::::::::,RULES_HIT:41:355:379:541:599:800:960:967:973:988:989:1260:1277:1311:1313:1314:1345:1359:1373:1437:1515:1516:1518:1534:1542:1593:1594:1711:1730:1747:1777:1792:2393:2525:2553:2560:2563:2682:2685:2693:2828:2859:2933:2937:2939:2942:2945:2947:2951:2954:3022:3138:3139:3140:3141:3142:3354:3622:3865:3866:3867:3870:3871:3872:3873:3874:3934:3936:3938:3941:3944:3947:3950:3953:3956:3959:4321:4605:4641:5007:6119:6120:6261:6691:7808:7903:8985:9010:9025:10004:10400:10848:11026:11232:11473:11658:11914:12043:12050:12291:12438:12517:12519:12555:12663:12740:13161:13229:14096:14097:21060:21080,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:none,Custom_rules:0:0:0 X-HE-Tag: fuel96_4d588d279424b X-Filterd-Recvd-Size: 4132 Message-ID: <1415923530.4223.17.camel@perches.com> Subject: Re: [RFC V6 2/3] arm:add bitrev.h file to support rbit instruction From: Joe Perches To: Russell King - ARM Linux , Takashi Iwai Cc: "Wang, Yalin" , "'Will Deacon'" , "'Ard Biesheuvel'" , "'linux-kernel@vger.kernel.org'" , "'akinobu.mita@gmail.com'" , "'linux-mm@kvack.org'" , "'linux-arm-kernel@lists.infradead.org'" Date: Thu, 13 Nov 2014 16:05:30 -0800 In-Reply-To: <20141113235322.GC4042@n2100.arm.linux.org.uk> References: <35FD53F367049845BC99AC72306C23D103E010D18261@CNBJMBX05.corpusers.net> <35FD53F367049845BC99AC72306C23D103E010D18264@CNBJMBX05.corpusers.net> <35FD53F367049845BC99AC72306C23D103E010D18265@CNBJMBX05.corpusers.net> <35FD53F367049845BC99AC72306C23D103E010D18266@CNBJMBX05.corpusers.net> <20141030120127.GC32589@arm.com> <20141030135749.GE32589@arm.com> <35FD53F367049845BC99AC72306C23D103E010D18272@CNBJMBX05.corpusers.net> <35FD53F367049845BC99AC72306C23D103E010D18273@CNBJMBX05.corpusers.net> <35FD53F367049845BC99AC72306C23D103E010D18275@CNBJMBX05.corpusers.net> <20141113235322.GC4042@n2100.arm.linux.org.uk> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.12.7-0ubuntu1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 2014-11-13 at 23:53 +0000, Russell King - ARM Linux wrote: > On Fri, Oct 31, 2014 at 01:42:44PM +0800, Wang, Yalin wrote: > > This patch add bitrev.h file to support rbit instruction, > > so that we can do bitrev operation by hardware. > > Signed-off-by: Yalin Wang > > --- > > arch/arm/Kconfig | 1 + > > arch/arm/include/asm/bitrev.h | 21 +++++++++++++++++++++ > > 2 files changed, 22 insertions(+) > > create mode 100644 arch/arm/include/asm/bitrev.h > > > > diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig > > index 89c4b5c..be92b3b 100644 > > --- a/arch/arm/Kconfig > > +++ b/arch/arm/Kconfig > > @@ -28,6 +28,7 @@ config ARM > > select HANDLE_DOMAIN_IRQ > > select HARDIRQS_SW_RESEND > > select HAVE_ARCH_AUDITSYSCALL if (AEABI && !OABI_COMPAT) > > + select HAVE_ARCH_BITREVERSE if (CPU_V7M || CPU_V7) > > Looking at this, this is just wrong. Take a moment to consider what > happens if we build a kernel which supports both ARMv6 _and_ ARMv7 CPUs. > What happens if an ARMv6 CPU tries to execute an rbit instruction? > > Second point (which isn't obvious from your submissions on-list) is that > you've loaded the patch system up with patches for other parts of the > kernel tree for which I am not responsible for. As such, I can't take > those patches without the sub-tree maintainer acking them. Also, the > commit text in those patches look weird: > > 6fire: Convert byte_rev_table uses to bitrev8 > > Use the inline function instead of directly indexing the array. > > This allows some architectures with hardware instructions for bit > reversals to eliminate the array. > > Signed-off-by: Joe Perches <(address hidden)> > Signed-off-by: Yalin Wang <(address hidden)> > > Why is Joe signing off on these patches? > Shouldn't his entry be an Acked-by: ? I didn't sign off on or ack the "add bitrev.h" patch. I created 2 patches that converted direct uses of byte_rev_table to that bitrev8 static inline. One of them is already in -next 7a1283d8f5298437a454ec477384dcd9f9f88bac carl9170: Convert byte_rev_table uses to bitrev8 The other hasn't been applied. https://lkml.org/lkml/2014/10/28/1056 Maybe Takashi Iwai will get around to it one day. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/