From patchwork Tue Jun 19 11:00:27 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Osipenko X-Patchwork-Id: 10474081 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 9306260383 for ; Tue, 19 Jun 2018 11:04:04 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 84C4928771 for ; Tue, 19 Jun 2018 11:04:04 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 76BE628B5F; Tue, 19 Jun 2018 11:04:04 +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 1DBCA28771 for ; Tue, 19 Jun 2018 11:04:04 +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=cHXvfWnyMigrk9wfRc7tYUrGnitxGc3suCoF7+Ev8OI=; b=l4AZy6deFoXu+hCNQHYz/nZ45Z yDeKEKXa3xEmGALa1iEA0srtscTpqz5u/ShxnoKe1Q3k5Ww06M3hCYzfUFyVL77bgAm2jh48rl6Rv J8TZGJMqvb4hyTJwA//sP8CQDIGjfk38bNjlfR5jKKNn/yvkxDd2AGYTfyQFNRc/dHPh9S2hQCxTJ ygLwBGzopV3GrE+Satr+FMjnZa8KX1rmrkTyAJlJDuVMNjXk+B07bab+xIffPamTMEKBE9d0+Qz1H ZHxxV0JOVXCQRYuCEZSH+nrfQJbNNdxyif5Elscabbbf8rZ81EMaQY4tJNiyEkMk6HuRLeMK7T/Yo xFTbdLYA==; 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 1fVEQU-0007mn-Nd; Tue, 19 Jun 2018 11:03:54 +0000 Received: from mail-lf0-x244.google.com ([2a00:1450:4010:c07::244]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fVEPh-0007E8-Dz for linux-arm-kernel@lists.infradead.org; Tue, 19 Jun 2018 11:03:15 +0000 Received: by mail-lf0-x244.google.com with SMTP id y20-v6so29488885lfy.0 for ; Tue, 19 Jun 2018 04:02:59 -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=+7g9Lwn3g6LuKjXiq01IIe6bion0z2zfgyBdmexeaq0=; b=lFB17LlagojzCXLLVQVEshwArZ0Eoupfy0hplkOBzXxjvpJELlSvllcArfYaE2StoU y6/dYRZIID0/di2DKv7sifqCitFMKoCZ07GVxJ9gkIIxhM0F8rxyY9H9Os+ty1AZz5EU q/XrJBk62EkZqPKU4Jb2iTOdxB7TJAQwWH2MpMWER0/2BII79jYH85cq7dXj7IOj02ep GprahMmSJhGdmNsAr0jIXTC0i7ruglYZj2aFdrsm9EU9SlIt3wfPfLri0hy1i6dul6bv kWNPv4xcGpquYEnU5P8qasc1lTZ35wdBOfzM6/Z3YVrSeXaQtDKFD6ykLIZ2oQslAsOx KJiQ== 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=+7g9Lwn3g6LuKjXiq01IIe6bion0z2zfgyBdmexeaq0=; b=PKB0DV7WuUL2f6iVqh7UVzH2/h5gyWTh5VHD7/zumlLQq3+uoPZPD6ZPltYm4Of3Wk 4x06tkhRbxSWIxeCL5Sf94mm2/ro1q0sJj5RjbHhpbM7sb1QyNldnjBqg3pUhHpX/PkJ WjN5u4BFMmihhbDAUob736c+/9X6V/stMyT6Kutv/yXIopSWZ2pPTckZWe098S+67ygK DBiH70uwWzkfquH0ONKdtGnl8XrtDUe2/DdOw1MyckqEsdvztFUYqLaV6p2DBq4rX9b+ L+qsIvVC/qki9PsB34W+3/4tewSeXlcWeGWpwC9M0/XnviZKayhCifYdH0yMz8FoKDZ1 +uXQ== X-Gm-Message-State: APt69E0VkFUKRF4zyBXAPizWlN8Gu+oUUgy2ewjiGTRT3QIgG5Xf53k5 2vpGQaZc48/KHnPbweLAs+c= X-Google-Smtp-Source: ADUXVKKbgOLhXETgD96OHfSKqB/Efz4Xlo+/FOQ8knw/jAPXmqlBdyrlbH8+fM+KzHNzFBqVyjOvZA== X-Received: by 2002:a19:a78a:: with SMTP id q132-v6mr1496069lfe.126.1529406177721; Tue, 19 Jun 2018 04:02:57 -0700 (PDT) Received: from localhost.localdomain (109-252-91-84.nat.spd-mgts.ru. [109.252.91.84]) by smtp.gmail.com with ESMTPSA id m84-v6sm3118543lje.91.2018.06.19.04.02.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 19 Jun 2018 04:02:57 -0700 (PDT) From: Dmitry Osipenko To: Russell King , Thierry Reding , Jonathan Hunter Subject: [PATCH v2 5/5] ARM: tegra: Always boot CPU in ARM-mode Date: Tue, 19 Jun 2018 14:00:27 +0300 Message-Id: <20180619110027.16935-6-digetx@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180619110027.16935-1-digetx@gmail.com> References: <20180619110027.16935-1-digetx@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180619_040305_541328_02BDB067 X-CRM114-Status: GOOD ( 14.52 ) 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 e9f2a7775998..8eda5c786f50 100644 --- a/arch/arm/mach-tegra/reset-handler.S +++ b/arch/arm/mach-tegra/reset-handler.S @@ -113,6 +113,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