From patchwork Thu Feb 28 13:17:06 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Dmitry Osipenko X-Patchwork-Id: 10833027 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 EAC211390 for ; Thu, 28 Feb 2019 13:19:51 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DB10B285B7 for ; Thu, 28 Feb 2019 13:19:51 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CF0C42A157; Thu, 28 Feb 2019 13:19:51 +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 3EF76285B7 for ; Thu, 28 Feb 2019 13:19:51 +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=SPwhJWqrjVUrZo Z74+5fWBKZCOQbcdBDzO5wl5Q/dYWeXpp0h4FcOINhayE7Qh55n8hAkxRj6oTM7Z11F3L26Yo0SxP U+6aKTCht0lFXxxAYnpE7Ti3YJx+7vdu6+q5ajZclZ9PUcPsxMf+z8YsftiFgSDLvuvs14xO7A5pD UYze3QLwFAAPX9O0l9lOduD+NzT62L+AzJtb4gWgIBg/hTdi2yI6HlQWIbsOWp8TFzKm5CdO/AP0H o6t44c5TRwMSoybuQkhWBK3XOat6HlLVrWau9LV2K+STPX1jfkcm9yhK2lCqyYAZPdy5lamYqeW3M va31Y7+FiZfexBEIuEMQ==; 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 1gzLbF-0005Pm-K0; Thu, 28 Feb 2019 13:19:45 +0000 Received: from mail-lj1-x244.google.com ([2a00:1450:4864:20::244]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gzLaN-0004FV-AM for linux-arm-kernel@lists.infradead.org; Thu, 28 Feb 2019 13:18:54 +0000 Received: by mail-lj1-x244.google.com with SMTP id l5so17113888lje.1 for ; Thu, 28 Feb 2019 05:18:51 -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=QIXnBsCwph453Sew/t3YcxUUYO45b/7rqbIyrxGmtJvQhJDSTERFrYYsQYBXFGNPLX 2dgPh6Z7WM11TeeVWA8hoFxEIbt9hs0B4a/o3SlXLrc4rBAn9C6SE720/kNZK/ehkNpg gjGfifzjfdVHyPq/Xw0yo0SzQTiLveoSG5vx1niIWMCm6j69P7ZjSpiuBwbsfDu2rqHZ cz0SlyLVOxzAThR8aLG6o1SKGSC6qexyA/tYLql9+S39ZwoCXTc7IZmecpz3EkKc6Zmt ZsRFbuRNMnLT3uUjZOdFp951y78k69RVRaGb4EOxZeRtZlF10EHcWA1s/CRJR7EnhFk0 h10w== 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=j5x6sbOsvhOupTNg4oVKezC2wQBbV34g8FLHZZCeLi8sDz4lMp39wdUDOq9oYOZRjH SRGgpA0ZjgthfDRPvThI3vsqYak/WeQssQO/dyG9F0eVEb+DR+q25EWXYCwQUyBOpxri SfaeU7G+JVRt/3nG/FwBELj9sFcTFvEJXF28r2Qg4fex1zNn/Fmuge/ehJaAYk/Oy7ea Vxo+j/CfLtjrdzreR41uhFSzGWn3hK95VDoKdqgB3yIGyD7IrjEdJhx+Q4w8lCd2Lm1+ MzChnxy7ajIj/Pj9moEqZhy1P26FBIGOkmKiG65Gpr/afcfbpH3AplKL48R5toxrFiqp S1zQ== X-Gm-Message-State: APjAAAVzhIt1n6qRX9yLe6z/ssQi+sWWQ6PMlJMH95nsWeLzuJlwgp1d daFPdBFPBpJ9Zm6sq9sDOPFjmT30 X-Google-Smtp-Source: APXvYqx/IvPlgk66zI8TOQRQ2S5/4q1C1FZAtOscgNom3d8fTU7ZdNLQYK9RPQaayusITgoSsj99hw== X-Received: by 2002:a2e:9b99:: with SMTP id z25mr4582146lji.106.1551359929658; Thu, 28 Feb 2019 05:18:49 -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 l26sm4600069lfc.37.2019.02.28.05.18.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 28 Feb 2019 05:18:48 -0800 (PST) From: Dmitry Osipenko To: Russell King , Thierry Reding , Jonathan Hunter , Robert Yang , =?utf-8?b?TWljaGHFgiBNaXJvc8WCYXc=?= Subject: [PATCH v7 6/7] ARM: tegra: Always boot CPU in ARM-mode Date: Thu, 28 Feb 2019 16:17:06 +0300 Message-Id: <20190228131707.2592-7-digetx@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190228131707.2592-1-digetx@gmail.com> References: <20190228131707.2592-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_051851_774486_2269B974 X-CRM114-Status: GOOD ( 12.98 ) 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)