From patchwork Wed Apr 20 10:26:22 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 66209 Delivered-To: patch@linaro.org Received: by 10.140.93.198 with SMTP id d64csp2361984qge; Wed, 20 Apr 2016 03:28:06 -0700 (PDT) X-Received: by 10.98.7.135 with SMTP id 7mr10972506pfh.124.1461148086798; Wed, 20 Apr 2016 03:28:06 -0700 (PDT) Return-Path: Received: from bombadil.infradead.org (bombadil.infradead.org. [2001:1868:205::9]) by mx.google.com with ESMTPS id w13si8375683pas.206.2016.04.20.03.28.06 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 20 Apr 2016 03:28:06 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org designates 2001:1868:205::9 as permitted sender) client-ip=2001:1868:205::9; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org designates 2001:1868:205::9 as permitted sender) smtp.mailfrom=linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org; dmarc=fail (p=NONE dis=NONE) header.from=linaro.org Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1aspLL-0000Uu-22; Wed, 20 Apr 2016 10:26:47 +0000 Received: from mail-ig0-x22d.google.com ([2607:f8b0:4001:c05::22d]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1aspLI-0000Lb-22 for linux-arm-kernel@lists.infradead.org; Wed, 20 Apr 2016 10:26:44 +0000 Received: by mail-ig0-x22d.google.com with SMTP id gy3so124322171igb.0 for ; Wed, 20 Apr 2016 03:26:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc; bh=Gomjl61yROIXs582kNSM2T9kwHi5TdRSXkznvXvl5pE=; b=C9jX1alET58fSqzp5ydmI0oBkdfbBdDZLI0dscV8E/GAhcZRPfAZ0lWyQSYBwvcdQn Yu8ACNpNhtSJJphDM3szexDzrMfbQsRXZkphvMQvqQk2F5OI38N51G3TivjZP3Tq4Mbx dikrNRQXbxxF/utHb4xYVdp+n7WlrvEJu7aeQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc; bh=Gomjl61yROIXs582kNSM2T9kwHi5TdRSXkznvXvl5pE=; b=iHsJTpsaTrOETwavRpaZ+uOCFdn0naHzzJwjLArxlM/TjUVGwmmoxYlugJetdFlIvQ XMPDGquCh5n1MXPgTGO9g5mp1PVEwZKNET4nXg/WCG4uEVgrklDAHfKt+EQU4GNf4am4 xF9AMePISyTJs+uZItfwXZoSoTmzPWKuehs0SaQqHry/RG8rv3mWeEJK4ELHbHHuHE3f M1llrlpzz61Yid6zfN9Ja57CewN3roqNFh9BRsYMnVKbDx/CWNGzGD6r5V1C6pj+/Dyg dyvBKneKDirtLhBr5k9eQx7ksxUdoBOGB9frNJHhAPdhbf2F+BDjGLVliK0OnV0BjhcB cAQg== X-Gm-Message-State: AOPr4FWm57Y75eTE9jEXn19biojsOTgUI/vjaSDJIEX96qJQ47mDRbl/C+9OBLm+id2duGr7KrZMnVS31v33dG0S MIME-Version: 1.0 X-Received: by 10.50.180.202 with SMTP id dq10mr2694875igc.37.1461147982293; Wed, 20 Apr 2016 03:26:22 -0700 (PDT) Received: by 10.36.139.197 with HTTP; Wed, 20 Apr 2016 03:26:22 -0700 (PDT) In-Reply-To: <20160420095541.GG31470@pengutronix.de> References: <20160419140220.GA9503@pengutronix.de> <20160420092516.GA21732@e103592.cambridge.arm.com> <20160420095541.GG31470@pengutronix.de> Date: Wed, 20 Apr 2016 12:26:22 +0200 Message-ID: Subject: Re: SoCFPGA with CONFIG_THUMB2_KERNEL boot error From: Ard Biesheuvel To: Sascha Hauer X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160420_032644_281790_603C16CB X-CRM114-Status: GOOD ( 15.42 ) X-Spam-Score: -2.7 (--) X-Spam-Report: SpamAssassin version 3.4.0 on bombadil.infradead.org summary: Content analysis details: (-2.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [2607:f8b0:4001:c05:0:0:0:22d listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Arnd Bergmann , kernel@pengutronix.de, Dinh Nguyen , Steffen Trumtrar , Dave Martin , "linux-arm-kernel@lists.infradead.org" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org On 20 April 2016 at 11:55, Sascha Hauer wrote: > On Wed, Apr 20, 2016 at 11:43:30AM +0200, Ard Biesheuvel wrote: >> (replying to self) >> >> On 20 April 2016 at 11:39, Ard Biesheuvel wrote: >> > (+ Arnd) >> > >> > On 20 April 2016 at 11:25, Dave Martin wrote: >> >> On Tue, Apr 19, 2016 at 04:02:20PM +0200, Steffen Trumtrar wrote: >> >>> Hi! >> >>> >> >>> According to kernelci.org (and validating on my own hardware), the current >> >>> socfpga mainline kernel has an issue with CONFIG_THUMB2_KERNEL enabled. >> >>> >> >>> https://storage.kernelci.org/mainline/v4.6-rc4-11-g12566cc35d0e/arm-multi_v7_defconfig/lab-khilman/boot-socfpga_cyclone5_de0_sockit.html >> >>> >> >>> vs >> >>> >> >>> https://storage.kernelci.org/mainline/v4.6-rc4-11-g12566cc35d0e/arm-multi_v7_defconfig+CONFIG_THUMB2_KERNEL=y/lab-khilman/boot-socfpga_cyclone5_de0_sockit.html >> >>> >> >>> Both boot successfully, but notice that the board fails to bring up CPU1 if >> >>> thumb2 support is enabled. >> >>> >> >>> Any ideas why this might be happening? >> >> >> >> Actually, this looks like a problem with the secondary entry point to >> me. Could you try this? > > Been there, done that. Unfortunately this does not solve the problem. > How about if you put this on top? _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel diff --git a/arch/arm/mach-socfpga/headsmp.S b/arch/arm/mach-socfpga/headsmp.S index 5d94b7a2fb10..c160fa3007e9 100644 --- a/arch/arm/mach-socfpga/headsmp.S +++ b/arch/arm/mach-socfpga/headsmp.S @@ -13,6 +13,7 @@ #include .arch armv7-a + .arm ENTRY(secondary_trampoline) /* CPU1 will always fetch from 0x0 when it is brought out of reset.