From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933452AbaEFAdK (ORCPT ); Mon, 5 May 2014 20:33:10 -0400 Received: from mho-02-ewr.mailhop.org ([204.13.248.72]:54160 "EHLO mho-02-ewr.mailhop.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933005AbaEFAdI (ORCPT ); Mon, 5 May 2014 20:33:08 -0400 X-Mail-Handler: Dyn Standard SMTP by Dyn X-Originating-IP: 99.127.230.128 X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/sendlabs/outbound_abuse.html for abuse reporting information) X-MHO-User: U2FsdGVkX1/N+sE75ZLAMtd4Uqd5Pe5Q Date: Mon, 5 May 2014 17:32:58 -0700 From: Tony Lindgren To: Joel Fernandes Cc: Dave Martin , Santosh Shilimkar , Russell King , Nishanth Menon , "open list:OMAP SUPPORT" , "moderated list:ARM SUB-ARCHITECT..." , open list Subject: Re: [PATCH] ARM: OMAP5: Redo THUMB mode switch on secondary CPU Message-ID: <20140506003257.GM25949@atomide.com> References: <1398826427-17200-1-git-send-email-joelf@ti.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1398826427-17200-1-git-send-email-joelf@ti.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Joel Fernandes [140429 19:54]: > Here's a redo of the patch [1] that effectively does the same > thing but is the right way to do things by using ENDPROC instead. > The firmware correctly switches to THUMB before entry. > > The patch applies ontop of the earlier patch [1]. > > [1] https://lkml.org/lkml/2014/4/22/1044 > > Suggested-by: Dave Martin > Cc: Dave Martin > Cc: Santosh Shilimkar > Cc: Russell King > Cc: Nishanth Menon > Cc: Tony Lindgren > Signed-off-by: Joel Fernandes > --- > > Tony, the earlier patch went into your fixes, and can remain. This patch is just a simple redo of the same and can go in for v3.16, no problem. Thanks. OK thanks, applying into omap-for-v3.16/fixes-not-urgent. Tony > arch/arm/mach-omap2/omap-headsmp.S | 6 +----- > 1 file changed, 1 insertion(+), 5 deletions(-) > > diff --git a/arch/arm/mach-omap2/omap-headsmp.S b/arch/arm/mach-omap2/omap-headsmp.S > index 1809dce..bf36f26 100644 > --- a/arch/arm/mach-omap2/omap-headsmp.S > +++ b/arch/arm/mach-omap2/omap-headsmp.S > @@ -31,10 +31,6 @@ > * register AuxCoreBoot0. > */ > ENTRY(omap5_secondary_startup) > -.arm > -THUMB( adr r9, BSYM(wait) ) @ CPU may be entered in ARM mode. > -THUMB( bx r9 ) @ If this is a Thumb-2 kernel, > -THUMB( .thumb ) @ switch to Thumb now. > wait: ldr r2, =AUX_CORE_BOOT0_PA @ read from AuxCoreBoot0 > ldr r0, [r2] > mov r0, r0, lsr #5 > @@ -43,7 +39,7 @@ wait: ldr r2, =AUX_CORE_BOOT0_PA @ read from AuxCoreBoot0 > cmp r0, r4 > bne wait > b secondary_startup > -END(omap5_secondary_startup) > +ENDPROC(omap5_secondary_startup) > /* > * OMAP4 specific entry point for secondary CPU to jump from ROM > * code. This routine also provides a holding flag into which > -- > 1.7.9.5 >