From patchwork Thu Feb 28 14:59:36 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Dmitry Osipenko X-Patchwork-Id: 10833295 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id F1E2A1515 for ; Thu, 28 Feb 2019 15:01:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E09142F2D2 for ; Thu, 28 Feb 2019 15:01:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DE4542F2F3; Thu, 28 Feb 2019 15:01:54 +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=-5.2 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED 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 896892F2D3 for ; Thu, 28 Feb 2019 15:01:54 +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:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version: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=00IgXSiaJBg0X6BFVSlKfaEXAzmhc5//SJO7uXGxYzE=; b=Y5Fj8lS/mhMfp3 /aIyoB5JJ6r3+U6GAkg9HUMGRGvHwVEI3r/7UisUZILPAm9Q6MCJuQZRKteQH0Jy6PBozcf5k2mhy jcASYydJR6kfXgIjD/X7W7BA35/lbVeoohOZv0GyqxFHwXPXlWWUKMwD2xOdtL1fZKENLOaPnvKLd 7jesUZusDQZ7BrC/FW/pjwyKtpbkMTzPbroAA3RN0eMygNpppYLc5ClCHlAyt5ZesPkTHp5qKTY4r fLelE7Ne0pqNlwexdhXd5LhBApWBqbcUC3/OHTpCMeSeSsXIuADPEErd056GuqyionATgTrwHAQ0k B4HTNLFFKGvV81xPRr9g==; 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 1gzNC1-0006ks-Ja; Thu, 28 Feb 2019 15:01:49 +0000 Received: from mail-lf1-x144.google.com ([2a00:1450:4864:20::144]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gzNAI-0003qB-Hi for linux-arm-kernel@lists.infradead.org; Thu, 28 Feb 2019 15:00:12 +0000 Received: by mail-lf1-x144.google.com with SMTP id z23so3450601lfe.0 for ; Thu, 28 Feb 2019 07:00:01 -0800 (PST) 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 :mime-version:content-transfer-encoding; bh=EnxVFjv0sJZsDhiPW9qc3IgJCRO74aOC680wPGEHp64=; b=MfX95nbZZ0XHuXMwK/7/BscyvQyC/bbD+2xbf9d+h4hzxIGNhVvvaL/GBCxRBeN0ig 24Ba0uus+RLusNOvdFwhySUTxoTAAp/Anv4z4RAajPiMMOWZYq04oyycpW4slE9GCVWT hga/5SuGkjSsTUMkEm+CFWTfkyF8XxO7nLPQMw/Uk0MngqTSV7ThMdgm05MB7iysPPxw g198pp7HmtRHNT2FNT/qR5dbUVVNEB+3uYdI4QjEUpVVHBbuJILxp4diw+5SCDQ/psRJ 452PuetAyA4M2l9JMsqXJIv95vMAxv8pPSe4zKBeuG5lX7ZCP1kpUQsnQeG2J9IQPXpX O7+A== 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:mime-version:content-transfer-encoding; bh=EnxVFjv0sJZsDhiPW9qc3IgJCRO74aOC680wPGEHp64=; b=ltAZwA029JsOOnDad9zS8w1l28LIyMxhvqwy4LzwhwBBmhzdiTfst2jG1siZ1ELsi7 PkV+czt2IUn9JL4Jg6mQL5JqCeoOBrOtp+sJ17lq2RpH3Ujawhj4s0RXnm97ciUVM1v7 EyErsqiMxfoH/57G6CXTU4zZDEkBd+Ghwa1HpPZbEl8LAhgoBoRTuEl2U+U4OCgVSPNu 0Zwmch/mqIGehHFWgjZnYtGrwHbV3YCKu5qLhZRh7nmgvmxz/o7SboMOJZXv2Pt0XiK5 9V2NRtq6ebA37jJ28lomA1vPLJUQsCW4EXJqxbsFm++WhTvmuDnDGwJGbcODLYoChA/b yfQw== X-Gm-Message-State: AHQUAub3WD9ojhZArgGfJQXuD4riAK5jeIgXMB2X7rSoaWeADpNwHxUD Vp/WTekL0LSgrUugiI7CjVQ= X-Google-Smtp-Source: AHgI3IY0zRY9X8UGQ4wJ8cYEmj3o5MhDTL9yUEHR+orYUg2Qk/cqky8zAMhA5nrAORGPOujtUJO/Sg== X-Received: by 2002:a19:cbc6:: with SMTP id b189mr4504553lfg.34.1551366000298; Thu, 28 Feb 2019 07:00:00 -0800 (PST) Received: from localhost.localdomain (ppp91-79-175-49.pppoe.mtu-net.ru. [91.79.175.49]) by smtp.gmail.com with ESMTPSA id z20sm4728309lff.87.2019.02.28.06.59.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 28 Feb 2019 06:59:59 -0800 (PST) From: Dmitry Osipenko To: Russell King , Thierry Reding , Jonathan Hunter , Robert Yang , =?utf-8?b?TWljaGHFgiBNaXJvc8WCYXc=?= Subject: [PATCH v8 6/7] ARM: tegra: Always boot CPU in ARM-mode Date: Thu, 28 Feb 2019 17:59:36 +0300 Message-Id: <20190228145937.27725-7-digetx@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190228145937.27725-1-digetx@gmail.com> References: <20190228145937.27725-1-digetx@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190228_070003_013858_096A0220 X-CRM114-Status: GOOD ( 12.88 ) 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, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org 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 reset handler in ARM-mode from the Trusted Foundations firmware, hence let's make CPU to always jump into kernel in ARM-mode regardless of the firmware presence. This is required to make Thumb-2 kernel working with the Trusted Foundations firmware on Tegra30. Tested-by: Robert Yang Tested-by: Michał Mirosław Signed-off-by: Dmitry Osipenko --- arch/arm/mach-tegra/reset-handler.S | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-tegra/reset-handler.S b/arch/arm/mach-tegra/reset-handler.S index 6bea95d165fa..3bf202819534 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)