From patchwork Sun May 20 10:15:42 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Osipenko X-Patchwork-Id: 10413349 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 6723460353 for ; Sun, 20 May 2018 10:18:47 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 57CD828724 for ; Sun, 20 May 2018 10:18:47 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4AAF228726; Sun, 20 May 2018 10:18:47 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, DKIM_VALID, FREEMAIL_FROM, MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id CB00528724 for ; Sun, 20 May 2018 10:18:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=98tDNf8jn9EtGgbdoMKfn3r2GJ9RXsWGDvFPAAuEukM=; b=AVvq7SZ70PYKe0AJOlzLR4U9mg 3Ct58omqv/YSuTtuVupqSwK4uFvcEv2DBmMN/pvZCTMUSpWBQkE0GGMhOd1K+CTwCoGisSKwrv67S 9U+TpCtxlQZy68aJE1NQleZXTw51jFtFW0ZSvM1onFWXPWw71mvt/fmqcqyyKRz81VAmB9u2WDaBZ +vimbRHS4b4OiFGGoe7gBc8GGDP3G7xQVswFOuSYddnn1qgWH05Chbw6nN6FK2quLEkj60/mEt6Dl L9mXVCUSYMnPWFeWc6WfsRa0UDRHnlYkeKfcghwl+T61EScs3wNThS5sKKFEuS6db46UEeqiKPXTT Dq4c0B5g==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fKLQD-00013Q-JT; Sun, 20 May 2018 10:18:37 +0000 Received: from mail-lf0-x242.google.com ([2a00:1450:4010:c07::242]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fKLOI-00081O-VH for linux-arm-kernel@lists.infradead.org; Sun, 20 May 2018 10:16:42 +0000 Received: by mail-lf0-x242.google.com with SMTP id y72-v6so19892676lfd.2 for ; Sun, 20 May 2018 03:16:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=e3bc+4uNRSfmUL1mZm1Uks8LdYbuYUN6vmbtmjy1dlk=; b=ot5hcQJdSYVBPGDTHNLFfFn4xrKPh2Wiwpp3Sxz6MkVyiSvb+qcn08PK9L1Fs/J3x/ HsmDiEUbrRfFfFD3tiTY+MAwum2RHRGEwNn/qQSmK+rEk9W1HVD/uXnPqdCPw2DcxevJ yuZzenj7ZnavH+cm8g2sFwI2Olj/imkuKquzyTM8CGP0GgMqu/SM4mkpAveCgGzgwKGJ I5yQURRxJM+ue6NkRXNn4zBNTycIlTQCzCXViKOqRnN+XCmfKuAw9jqHQFaZG3onCCtU e/wSE7OhlkZbEMy01Ux4VfUneoCjAAGPFMipKKWsaPnfAuuW6fOu4UgTSsDGkMbmQ5zK 1yvg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=e3bc+4uNRSfmUL1mZm1Uks8LdYbuYUN6vmbtmjy1dlk=; b=Sxy6ABUR8bTtNEQEwVtQo33FMl/R2dev/G7zAk80C6quR68QOHC8qIG3LqzBlzf/OA FSfIX/JyBYpR9ZLUSuZpc+Ty/U90kZnq/WwH0VvliADeNSfgwQ2ca2xlFQWsQY9FOhiD N4IbyhaPd+Y/leME+2vYpLjuCaPqvPsEoD+ps9bAwfow3f5yF+LCzWS24E4dXJWngJMS AfHTOJ+WqqyC9w44PRqVK0GerbIA8cSyp8Hl4XX8v+LQn2q8BxWjQRV0x0eVA1gtN/Vk bVic+I1eGHjzQpV8BMlqe3KQAS1+kay38WCgBX1LuamU3fupTfqfNq0jS8itJLNGUpSi eXZA== X-Gm-Message-State: ALKqPweuRlr5oQQAvYKwbGgARAdRKOJ5fvQekNcI4pUIR3ddnzNGxDO4 /6tCMlZXAbe9UgofyevfVM8= X-Google-Smtp-Source: AB8JxZreFvDIGdQrBBmGilIYW7GzUE61QpBdDGftDZr52J2gKAqosFfMbeEejd40HgJyK1NlPa1ehg== X-Received: by 2002:a19:fc0d:: with SMTP id a13-v6mr499637lfi.66.1526811386793; Sun, 20 May 2018 03:16:26 -0700 (PDT) Received: from localhost.localdomain (109-252-91-60.nat.spd-mgts.ru. [109.252.91.60]) by smtp.gmail.com with ESMTPSA id p18-v6sm2627836lfd.91.2018.05.20.03.16.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 20 May 2018 03:16:26 -0700 (PDT) From: Dmitry Osipenko To: Russell King , Thierry Reding , Jonathan Hunter Subject: [PATCH v1 5/5] ARM: tegra: Always boot CPU in ARM-mode Date: Sun, 20 May 2018 13:15:42 +0300 Message-Id: <20180520101542.12206-6-digetx@gmail.com> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180520101542.12206-1-digetx@gmail.com> References: <20180520101542.12206-1-digetx@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180520_031639_013764_A65E8B5D X-CRM114-Status: GOOD ( 14.16 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-tegra@vger.kernel.org, Peter Geis , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, =?UTF-8?q?Micha=C5=82=20Miros=C5=82aw?= MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP CPU always jumps into the reset handler in ARM-mode from the Trusted Foundations firmware, hence make CPU to always jump into kernel in ARM-mode regardless of the firmware presence to support Thumb2 kernel + TF case. Signed-off-by: Dmitry Osipenko --- arch/arm/mach-tegra/reset-handler.S | 1 + arch/arm/mach-tegra/reset.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-tegra/reset-handler.S b/arch/arm/mach-tegra/reset-handler.S index d84c74a95806..7e15c3bdf118 100644 --- a/arch/arm/mach-tegra/reset-handler.S +++ b/arch/arm/mach-tegra/reset-handler.S @@ -115,6 +115,7 @@ ENTRY(__tegra_cpu_reset_handler_start) * must be position-independent. */ + .arm .align L1_CACHE_SHIFT ENTRY(__tegra_cpu_reset_handler) diff --git a/arch/arm/mach-tegra/reset.c b/arch/arm/mach-tegra/reset.c index b02ae7699842..3f1ef4561298 100644 --- a/arch/arm/mach-tegra/reset.c +++ b/arch/arm/mach-tegra/reset.c @@ -97,7 +97,7 @@ void __init tegra_cpu_reset_handler_init(void) __tegra_cpu_reset_handler_data[TEGRA_RESET_MASK_PRESENT] = *((u32 *)cpu_possible_mask); __tegra_cpu_reset_handler_data[TEGRA_RESET_STARTUP_SECONDARY] = - __pa_symbol((void *)secondary_startup); + __pa_symbol((void *)secondary_startup_arm); #endif #ifdef CONFIG_PM_SLEEP