From patchwork Mon Sep 9 14:24:42 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicolas Pitre X-Patchwork-Id: 2861381 Return-Path: X-Original-To: patchwork-linux-omap@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 53E80BF43F for ; Mon, 9 Sep 2013 14:24:48 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id EC63F201CD for ; Mon, 9 Sep 2013 14:24:46 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B5D9D201BF for ; Mon, 9 Sep 2013 14:24:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751640Ab3IIOYo (ORCPT ); Mon, 9 Sep 2013 10:24:44 -0400 Received: from mail-qa0-f48.google.com ([209.85.216.48]:65429 "EHLO mail-qa0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752514Ab3IIOYo (ORCPT ); Mon, 9 Sep 2013 10:24:44 -0400 Received: by mail-qa0-f48.google.com with SMTP id k4so189022qaq.0 for ; Mon, 09 Sep 2013 07:24:43 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:in-reply-to:message-id :references:user-agent:mime-version:content-type; bh=jvMD/NMdnAhSjTBV2VZyFz214ey0J88E3ICV832OnVY=; b=G8Wr+eCkDAfrRZx4/SQd9m5r8J2MOjj/D30Q9kSsgEGiqkAa2dqU4fJEUOAOQHXOOt t+mysTZrQGmqrpR+Z3Um99wGUw7Rowhxaz04+LIsZRvtKvUAjiFxYm6oAnhxAJd8zLmH Lz/qfsV8ytYaCnfqyJiR01YNGHVxJtF4AzuTkqT84UKrPsjSrBKu6/eb/0eeIH4ZpgQl wP5j5VAUAPYl8s2PV0eyoieOKeZfZhl8Y0ILs0FYhWsYLv86T875ECBD4HlYa4Vz81HY ZnxEzOh0t210X5lJ/doRD/0H3Oa23tlJIwgVKg+E848fDuQV7qgBoVEnKqEkCaEI/8Jd Mohg== X-Gm-Message-State: ALoCoQmyXptaA0NVxFhujt77/hAXwD7+V6pyXIol9wbpf9Y5iZdKWzQysmOTEZVYJE08J0OEGHfO X-Received: by 10.224.135.196 with SMTP id o4mr1805860qat.46.1378736683457; Mon, 09 Sep 2013 07:24:43 -0700 (PDT) Received: from xanadu.home (modemcable044.209-83-70.mc.videotron.ca. [70.83.209.44]) by mx.google.com with ESMTPSA id 3sm1822506qau.3.1969.12.31.16.00.00 (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 09 Sep 2013 07:24:43 -0700 (PDT) Date: Mon, 9 Sep 2013 10:24:42 -0400 (EDT) From: Nicolas Pitre To: Guenter Roeck cc: Russell King - ARM Linux , Anil Kumar , "linux-omap@vger.kernel.org" , linux-arm , Tony Lindgren , "devicetree-discuss@lists.ozlabs.org" , Benoit Cousson Subject: Re: Build error in torvalds kernel 3.11 for omap2plus In-Reply-To: <522DB86A.8010207@roeck-us.net> Message-ID: References: <20130908090206.GK25647@n2100.arm.linux.org.uk> <522CB0DE.2010102@roeck-us.net> <20130909105115.GL25647@n2100.arm.linux.org.uk> <522DB86A.8010207@roeck-us.net> User-Agent: Alpine 2.03 (LFD 1266 2009-07-14) MIME-Version: 1.0 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Spam-Status: No, score=-7.8 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP On Mon, 9 Sep 2013, Guenter Roeck wrote: > On 09/09/2013 03:51 AM, Russell King - ARM Linux wrote: > > On Sun, Sep 08, 2013 at 10:16:14AM -0700, Guenter Roeck wrote: > > > Since we are at it: > > > > > > Build reference: v3.11-7887-gb409624 > > > > > > Building arm:defconfig ... passed > > > Building arm:allmodconfig ... failed > > > -------------- > > > Error log: > > > arch/arm/mach-cns3xxx/pcie.c: In function 'cns3xxx_pcie_hw_init': > > > arch/arm/mach-cns3xxx/pcie.c:350:1: warning: the frame size of 1064 bytes > > > is larger than 1024 bytes [-Wframe-larger-than=] > > > arch/arm/kernel/return_address.c:63:2: warning: #warning "TODO: > > > return_address should use unwind tables" [-Wcpp] > > > arch/arm/kernel/return_address.c:63:2: warning: #warning "TODO: > > > return_address should use unwind tables" [-Wcpp] > > > /tmp/cce439dZ.s: Assembler messages: > > > /tmp/cce439dZ.s:506: Error: selected processor does not support ARM mode > > > `isb ' > > > /tmp/cce439dZ.s:512: Error: selected processor does not support ARM mode > > > `isb ' > > > /tmp/cce439dZ.s:513: Error: selected processor does not support ARM mode > > > `dsb ' > > > /tmp/cce439dZ.s:583: Error: selected processor does not support ARM mode > > > `isb ' > > > /tmp/cce439dZ.s:589: Error: selected processor does not support ARM mode > > > `isb ' > > > /tmp/cce439dZ.s:590: Error: selected processor does not support ARM mode > > > `dsb ' > > > make[1]: *** [arch/arm/mach-vexpress/dcscb.o] Error 1 > > > make: *** [arch/arm/mach-vexpress] Error 2 > > > make: *** Waiting for unfinished jobs.... > > > -------------- > > > > > > Any solution for this one ? omap2plus passes for me. > > > > > > gcc version used is "arm-poky-linux-gnueabi-gcc (GCC) 4.7.2" from poky > > > 1.3. > > > > That's due to: > > > > commit e8f9bb1bd6bb93fff773345cc54c42585e0e3ece > > Author: Nicolas Pitre > > Date: Tue Jul 16 20:59:53 2013 -0400 > > > > ARM: vexpress/dcscb: fix cache disabling sequences > > > > Unlike real A15/A7's, the RTSM simulation doesn't appear to hit the > > cache when the CTRL.C bit is cleared. Let's ensure there is no memory > > access within the disable and flush cache sequence, including to the > > stack. > > > > Signed-off-by: Nicolas Pitre > > > > which introduces some 'isb' and 'dsb' instructions which are not > > available on ARMv6 CPUs - however, their 'mcr' equivalents are. > > > > Either dcscb needs to be built with an -march=armv7 override, or > > they need to use the mcr equivalent instructions. > > > > Well, I hope it will get fixed one way or another. > I don't know enough about arm to fix it myself. Would you try this patch please: --- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/arch/arm/mach-vexpress/Makefile b/arch/arm/mach-vexpress/Makefile index 36ea824712..505e64ab3e 100644 --- a/arch/arm/mach-vexpress/Makefile +++ b/arch/arm/mach-vexpress/Makefile @@ -7,6 +7,8 @@ ccflags-$(CONFIG_ARCH_MULTIPLATFORM) := -I$(srctree)/$(src)/include \ obj-y := v2m.o obj-$(CONFIG_ARCH_VEXPRESS_CA9X4) += ct-ca9x4.o obj-$(CONFIG_ARCH_VEXPRESS_DCSCB) += dcscb.o dcscb_setup.o +CFLAGS_dcscb.o += -march=armv7-a obj-$(CONFIG_ARCH_VEXPRESS_TC2_PM) += tc2_pm.o spc.o +CFLAGS_tc2_pm.o += -march=armv7-a obj-$(CONFIG_SMP) += platsmp.o obj-$(CONFIG_HOTPLUG_CPU) += hotplug.o