Message ID | 20211008195655.46046-12-mr.nuke.me@gmail.com |
---|---|
State | Deferred |
Delegated to: | Tom Rini |
Headers | show
Return-Path: <u-boot-bounces@lists.denx.de> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=LAPM/Rwq; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=<UNKNOWN>) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4HQzY12Sgmz9sPB for <incoming@patchwork.ozlabs.org>; Sat, 9 Oct 2021 06:59:17 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 3A2F58364D; Fri, 8 Oct 2021 21:57:51 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="LAPM/Rwq"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id DAF4483598; Fri, 8 Oct 2021 21:57:19 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-ot1-x336.google.com (mail-ot1-x336.google.com [IPv6:2607:f8b0:4864:20::336]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 8046583625 for <u-boot@lists.denx.de>; Fri, 8 Oct 2021 21:57:12 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=mr.nuke.me@gmail.com Received: by mail-ot1-x336.google.com with SMTP id u20-20020a9d7214000000b0054e170300adso12915484otj.13 for <u-boot@lists.denx.de>; Fri, 08 Oct 2021 12:57:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=0ncznSRDaTfVl26/yRSF29JA0nsKYf7/2VaOASI8t00=; b=LAPM/RwqCv46wpIx3noz8lqtA2+0dMxm3B1aAwig46xxnk7bdrSEPVvesTCrOlcnD/ ytFg2g+otyebbBAXjGAVDmZzx5endngSA8IcAqweAKHGd/o4fyK6eCa036sZD5rzWF6N 1Wq5A+IypdQ0QIQeV67uwOzW+jy24gxjSz5z5r4qyx7e51SNbfZe7fGEIQjXf8fImtWe qkWkX2gb+cFLTSVDBAeblz3GWHxccznOi49b0fvF3KbfBz5C/uFSzDJXtHOE7v3oXDbe Ngs6praJ9LLMxhR5GhUJ2ZTXk5XRg2Z0tD6vU6SDOP7LhA0hHRZ9A2IYGATyoMoIvTpV qjYg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=0ncznSRDaTfVl26/yRSF29JA0nsKYf7/2VaOASI8t00=; b=DvPXwDjU52KqjljTfKK+mqoADEyKfxapO1YnredQ7merGcRk20YGAb0Q7bt6rAZSJL ezqUFDj24adpk4UWeCKLAWsyIcjx+JfpcJSigGqqLIcxeSnBZxz4AFCZ7NBOKkFgDdUc Tq1dqH5lIE/MFzJywaLtoDwJ+IBYGx2yKXcSh32KfvQ4VNDR2O+QNF8qXNwOlv1mNq2q WRVFZIZAOaBXeUlePSd+/+u4wBnqNloM8oJwSctfIZ8hhcP+3WwWNk/12JGskryFTlDw 62+Hpjj2lkzMJQMuF7hX92Gg8XvtB+2ZmDPsaaLADmGrsnu66O8M3jVjxNaMRlW3I2tQ 9XZA== X-Gm-Message-State: AOAM5305x0ycKYscDSN5FzD52lhZ9Be1raCau/6b8/2C6Z8CxwsL/9Th OoEntaVgqU4pw+Go3M4ouc9g29xXHgo= X-Google-Smtp-Source: ABdhPJwyudm92C8A1CuSvz3w7N0cuyDuhWFGpm4Fsaun7jqmokhTsyHrNrZz4ZSQoSlYoY40H6jVCQ== X-Received: by 2002:a05:6830:31ae:: with SMTP id q14mr10520408ots.66.1633723030937; Fri, 08 Oct 2021 12:57:10 -0700 (PDT) Received: from nuclearis3.lan (c-98-195-139-126.hsd1.tx.comcast.net. [98.195.139.126]) by smtp.gmail.com with ESMTPSA id x8sm67409otg.31.2021.10.08.12.57.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Oct 2021 12:57:10 -0700 (PDT) From: Alexandru Gagniuc <mr.nuke.me@gmail.com> To: u-boot@lists.denx.de, uboot-stm32@st-md-mailman.stormreply.com, patrick.delaunay@foss.st.com Cc: Alexandru Gagniuc <mr.nuke.me@gmail.com>, patrice.chotard@foss.st.com, etienne.carriere@linaro.org Subject: [PATCH v3 11/13] ARM: dts: stm32mp: Add OP-TEE "/firmware" node to SPL dtb Date: Fri, 8 Oct 2021 14:56:53 -0500 Message-Id: <20211008195655.46046-12-mr.nuke.me@gmail.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20211008195655.46046-1-mr.nuke.me@gmail.com> References: <20211008195655.46046-1-mr.nuke.me@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <https://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <https://lists.denx.de/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean |
Series |
stm32mp1: Support falcon mode with OP-TEE payloads
|
expand
|
diff --git a/arch/arm/dts/stm32mp157a-dk1-u-boot.dtsi b/arch/arm/dts/stm32mp157a-dk1-u-boot.dtsi index 629451e731..fb60549f4d 100644 --- a/arch/arm/dts/stm32mp157a-dk1-u-boot.dtsi +++ b/arch/arm/dts/stm32mp157a-dk1-u-boot.dtsi @@ -35,6 +35,7 @@ optee { compatible = "linaro,optee-tz"; method = "smc"; + u-boot,dm-spl; }; };
The optee "/firmware" node is normally used to load the OP-TEE driver. SPL does not use it this way, but instead uses it to patch the kernel devicetree when booting OP-TEE. This seems weird, as OP-TEE -- which would run after SPL -- is capable of patching the devicetree and adding the required "/firmware" and "/reserved-memory" nodes. However, OP-TEE's devicetree patching (CFG_DT=y) comes with a significant boot time penalty. Measurements put it between 700 to 1800 milliseconds. SPL can also do this patching, without incurring a measurable increase in boot time. This is the use case for falcon mode, which is the main reason to launch OP-TEE from SPL. Although some OP-TEE configurations do not require any pre-patching of the devicetree, there are good use cases for doing so. As far as concerns with adding the nodes twice, OP-TEE will not add the node if it already-exists. Add the "/firmware/optee" node the SPL devicetree. Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com> --- arch/arm/dts/stm32mp157a-dk1-u-boot.dtsi | 1 + 1 file changed, 1 insertion(+)