From patchwork Sun Mar 17 22:52:09 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Dmitry Osipenko X-Patchwork-Id: 10856657 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 33D3D17E6 for ; Sun, 17 Mar 2019 22:57:06 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1DF7929211 for ; Sun, 17 Mar 2019 22:57:06 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0E8EA29250; Sun, 17 Mar 2019 22:57:06 +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 0302D29211 for ; Sun, 17 Mar 2019 22:57:05 +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=tmEIy4ix8y1V6gB/wy7dkqMMlPJlhpNVeXVLLV2eswE=; b=b8tORH4ZoGGNvX FeHMXBI1LQOQ9/9z01aNTbAgzHnXByt6XlhfnEtMZPhip95s6tWaZeXLssDJaBgNstRQX6EDmxK/x A4UuGQZJfDxnSVhnLDmAvIrAXhu/k7vQphV5/mE5/3jEO57QldaeHO5yPXElSC8/XsvCBlfJwcHUi 1FHhBXrjFqtpOneyxlJhEAESjjSo5R/oa4TYNdAFHpic8CVUu6YtVnePYWbprMxSWOd3qak4RdNez WVDxoyTvgCJHFdF7YHJpUAFdPqYpub40yYtOxzTLRC5fRCgdQqESgZRaaC7S7tmCN/KvOvGAEtr8c W9EB6ZYno8nwXCksNANA==; 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 1h5eiF-0008RA-L0; Sun, 17 Mar 2019 22:57:03 +0000 Received: from mail-pg1-x543.google.com ([2607:f8b0:4864:20::543]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1h5ehO-0007S7-6y for linux-arm-kernel@lists.infradead.org; Sun, 17 Mar 2019 22:56:22 +0000 Received: by mail-pg1-x543.google.com with SMTP id v1so5320537pgi.5 for ; Sun, 17 Mar 2019 15:56:08 -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 :mime-version:content-transfer-encoding; bh=JuH8Ap/N0CCqMGuBFEsBfvavZHslxZuq0RCbP2Dsuc4=; b=iOcwJLtJQnDLJiglzaTS+waJniGYwLA83xMREpG+k375gPYY4JP1CpdKaH0WW48J9D HwazE2Mt8U3/qVi2y6EMOSTYjfggq1G/pwXKubuc5/evx3RFBc6/FSKIYqTXRR1csoJc c62xnwSrCuuwwKZYRr96bKCym0IaUAXUfpf7dK9reOecNqCs2d+WeL2qB7YWMXXEih9j vwL+awOaTcP1q6tXXCB6B9tIhD0qCkGXJDvJEgkZJ/SZX2EAb1iTr4GWQLV+EHeRom5z dyuEXEoYtN+bYpsd6aQr1Z5H03UxwSrbh+W0ZONh85lBu2BGibrue6qMqiscTT1CwHOP gFjA== 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=JuH8Ap/N0CCqMGuBFEsBfvavZHslxZuq0RCbP2Dsuc4=; b=ovRSYW9dgwhUCRB6qaAg563DDFxuLL+19UcljImU46Fgz2MBjfoE4ij4+6Xo6taOjA zJtboNLsPvKeR09jeM88THOxXgXb1FN3K9Ww6+yLmukLqmOdECOt1LDIOfBXpl/Ctjx3 UzFChosp7YZ6Eql2vDNYhS7QQ6U0A2HsWYi6rW8GMyn7ERr0h1oVnYCAkNxRI9QSz6IY HJjCPhQkRmSeM/nIUJN3AJKq8XXWVnW0GeIAVOyjjkspoVbmhjCEczLNkJTMMz5aICh9 ztVV0KnVaWd5iEkIRdFM6Eo9UWz0Rhaqn1UUldmTCBSpv3c6E9QLKZbsBH9PxHzT5Cul 0klQ== X-Gm-Message-State: APjAAAXLT40lomAAOwmWmaT1a7fTDeeyqfAVZ0rAWKE2GQ6z+s064P6I EQ3f/NhfhCR3jDysjGbV4wnOMEpY X-Google-Smtp-Source: APXvYqyZ9bjwZ3mO6XQE939//EtDOS9s43r7bv6jyV1ZA4rVpiUwoovnt0DAlggb/V2H5hxYhqU+8g== X-Received: by 2002:aa7:8b12:: with SMTP id f18mr16501979pfd.240.1552863367692; Sun, 17 Mar 2019 15:56:07 -0700 (PDT) Received: from localhost.localdomain (ppp94-29-37-86.pppoe.spdop.ru. [94.29.37.86]) by smtp.gmail.com with ESMTPSA id v2sm13738838pfg.118.2019.03.17.15.56.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 17 Mar 2019 15:56:07 -0700 (PDT) From: Dmitry Osipenko To: Russell King , Thierry Reding , Jonathan Hunter , Robert Yang , =?utf-8?b?TWljaGHFgiBNaXJvc8WCYXc=?= Subject: [PATCH v10 6/7] ARM: tegra: Always boot CPU in ARM-mode Date: Mon, 18 Mar 2019 01:52:09 +0300 Message-Id: <20190317225211.23091-7-digetx@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190317225211.23091-1-digetx@gmail.com> References: <20190317225211.23091-1-digetx@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190317_155610_574371_C366A669 X-CRM114-Status: GOOD ( 11.91 ) 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 809fbc200cef..31fb53f9ce13 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)