From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 72C22C433F5 for ; Wed, 8 Sep 2021 00:01:57 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id E9FA460E97 for ; Wed, 8 Sep 2021 00:01:56 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org E9FA460E97 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id E81A4832FC; Wed, 8 Sep 2021 02:01:03 +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="C6ZrKH9f"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 933D482BD6; Wed, 8 Sep 2021 02:00:15 +0200 (CEST) Received: from mail-qt1-x82b.google.com (mail-qt1-x82b.google.com [IPv6:2607:f8b0:4864:20::82b]) (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 27F5C817D3 for ; Wed, 8 Sep 2021 01:59:49 +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-qt1-x82b.google.com with SMTP id x5so350076qtq.13 for ; Tue, 07 Sep 2021 16:59:49 -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=jsB3mjGBIUztuCqqDgNilfyksvtWHyQ9UeiFfnDXDVE=; b=C6ZrKH9f7c0yHvAwDDFALUu7kHhb6Knj9u4o2uWyPkC/QCAWbSYzFBdmNFSi1BEYoP xAemax4ZR4eDORZYx1Z4tH2XbH+KLnadVbAC7KL/bkI5IXHd/7Pgw2PwtaDKbGQ/g9cq usp9OhIF41RYFqEgthp8viN0GWTTHn0wdTjh6DJBKGRfoFUJL2/TkztI8BcvbuVYjUBm JxApHILAArpIITmm3QSmwvfeJChtkdhjEW3jc2SSW4kvaPkd+qaaSbDwLk7o3ne6t3kP oqJB8nAcDhrXH3Js/VSsQjPMbthFOvnpfhWT1aUaXaXCO6iRtr0n/6Q0GW5yDar82fKM niow== 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=jsB3mjGBIUztuCqqDgNilfyksvtWHyQ9UeiFfnDXDVE=; b=Gr8TU0dvXIiNLkR4dsFgccpr8lcQiV97UIkgx8D/fXGcgB0HubbEnhT7o3PvBq2C6P gf/2I9Pe/6cVyLF3JsFMzwCUDmlWHva1AJSVQnj8tDwytr9ttx3qAgxANEpYg+c7KNCp aAjhsk0k6c6FUKX+j8bQucWo5UqqFXas6FhIkWxKRnGRal3Mo+bFEIC0KUub6WkGK18e 9Ma3rL4iAgdYcIJX0UNydTxabmDXfDMfztQI+EnOF2uwMY4s8B5ZIk1KHBCNsyhzQXch WAHQK1Tb7nVbjk7RpoTeWdw5R0SvEAiQ+CkzjcVUbU09puTBh+dLG/o8clYzrP3/TccN 2iIg== X-Gm-Message-State: AOAM530hvUtZvXR11sMwkqFwab72sLSQxcqDlU9w0ewiaZh6a0aTmaqR y1zAd+DJS7mx3zkGQRuHwQBCWleoo3A= X-Google-Smtp-Source: ABdhPJxayehIACC60tXOLyTb06FwEa1nSGfZORgMifJqHxOvnMpGwDRMK5D9DtSvQhmYIHe7QRlA1w== X-Received: by 2002:a05:622a:34c:: with SMTP id r12mr1025622qtw.147.1631059187696; Tue, 07 Sep 2021 16:59:47 -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 d78sm460351qkg.92.2021.09.07.16.59.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Sep 2021 16:59:47 -0700 (PDT) From: Alexandru Gagniuc To: u-boot@lists.denx.de, uboot-stm32@st-md-mailman.stormreply.com, patrick.delaunay@foss.st.com Cc: Alexandru Gagniuc , patrice.chotard@foss.st.com, etienne.carriere@linaro.org Subject: [PATCH v2 10/11] ARM: dts: stm32mp: Add OP-TEE "/firmware" node to SPL dtb Date: Tue, 7 Sep 2021 18:59:32 -0500 Message-Id: <20210907235933.2798330-11-mr.nuke.me@gmail.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210907235933.2798330-1-mr.nuke.me@gmail.com> References: <20210907235933.2798330-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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean 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 --- arch/arm/dts/stm32mp157a-dk1-u-boot.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/dts/stm32mp157a-dk1-u-boot.dtsi b/arch/arm/dts/stm32mp157a-dk1-u-boot.dtsi index b314ce2dac..7deb0f5d70 100644 --- a/arch/arm/dts/stm32mp157a-dk1-u-boot.dtsi +++ b/arch/arm/dts/stm32mp157a-dk1-u-boot.dtsi @@ -33,6 +33,7 @@ optee { compatible = "linaro,optee-tz"; method = "smc"; + u-boot,dm-spl; }; }; -- 2.31.1