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=-10.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,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 ECC19C433EF for ; Thu, 9 Sep 2021 14:55:53 +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 2B2AD61245 for ; Thu, 9 Sep 2021 14:55:53 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 2B2AD61245 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 1B207834C1; Thu, 9 Sep 2021 16:55: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="pggUQq0m"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 28BDA834C1; Thu, 9 Sep 2021 16:55:49 +0200 (CEST) Received: from mail-oi1-x22e.google.com (mail-oi1-x22e.google.com [IPv6:2607:f8b0:4864:20::22e]) (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 43455834BE for ; Thu, 9 Sep 2021 16:55:45 +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-oi1-x22e.google.com with SMTP id r26so2831015oij.2 for ; Thu, 09 Sep 2021 07:55:45 -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:mime-version :content-transfer-encoding; bh=8aeYZjl/m2ty9MkGEUVpVxnmVSEH55Xdo8rmPDIrcM8=; b=pggUQq0mlbT/Ph+Hg9+/1gHKoRFCPJIlNZLl4/moWeRkYJ37gbmyvO5MgW05aBd2x3 a9DGosMaajqYdXVWhxDh5QgxCkH3kBnchkkCzzn2XSBbgorpfKOb00fij7W6cEn+Fyae QIoPc0m0++IbOVENY96mhjbklLlmL8QCx16QcYG2uKbPa4/8ISIDqJS4x+sOfwEjq3cF Vvw3JnHbzL71D3CUjXFLwRT5/GvZcy2r812Rp3qQsuqQx1HPcUCzjVHDu8MfUC2HBxNo 8JC8v8iKulVFq8wHCWaSct5wt2Qocuy1pMZxSWlMzbzuTRFvpne6Z57rLnnpRmuON3c8 e3TA== 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:mime-version :content-transfer-encoding; bh=8aeYZjl/m2ty9MkGEUVpVxnmVSEH55Xdo8rmPDIrcM8=; b=CPmlipnZuoKOt9Nmxm1H+5wSDguzujYXeEFZV7dzDWaDHZ0xUXaOUCEG6cjpOpTo7+ Dmc3WUKE+WGwYDfOUbZZ48DY6A8ppwnVIBu9RcRfD0vM0FqU4DaK8/b0FJ3ZBuSVSZHO /E14JKH2JIc3ZvW+IQX7oo9mbk3vEwVwHvCRhf2VgYaYUPeZO/xTYc1/YLnqUulBB62g 5rTsxftVpt7L3V4BVMSwgsH1Iodz2sJJLQc2VhEItfnGEc2N9B/NCugvvPDweRO1j/9n FGl5qhxGN9NSm92cgWjeASn/B24JPyiJxmz6MD4oEAj6rOWafPCE6LNLFcSyqI4AtZxh +4lg== X-Gm-Message-State: AOAM530nGKvKYCCypNZgH4ByfUY4pEjC6tVF5iLa/75cbHq//l5VH7v2 pS6M92ANCoW9wBG+W3wQAzafviEuQp0= X-Google-Smtp-Source: ABdhPJzdYNI/Of/XZzweIk0l0jKyNE1ogeehY8ZyHE55o2/wS4SmL8/0LZQYB7u9Z9Me9Qxy617JMQ== X-Received: by 2002:aca:670c:: with SMTP id z12mr157986oix.14.1631199343319; Thu, 09 Sep 2021 07:55:43 -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 l21sm447898oop.22.2021.09.09.07.55.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Sep 2021 07:55:42 -0700 (PDT) From: Alexandru Gagniuc To: u-boot@lists.denx.de, patrick.delaunay@foss.st.com Cc: patrice.chotard@foss.st.com, uboot-stm32@st-md-mailman.stormreply.com, Alexandru Gagniuc , marex@denx.de, etienne.carriere@linaro.org Subject: [PATCH 0/3] stm32mp: Attempt to resolve unintended breakage with v2021.10-rc2 Date: Thu, 9 Sep 2021 09:55:33 -0500 Message-Id: <20210909145536.2979951-1-mr.nuke.me@gmail.com> X-Mailer: git-send-email 2.31.1 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 u-boot v2021.10-rc2 Introduced support for booting from FIP images (not to be confused with FIT) for stm32mp. I am also working on a different boot flow based on u-boot's falcon mode. The changes to accommodate the FIP mode inadvertently broke the falcon flow. This series intends to address that. The core issue is that optee nodes are removed from the u-boot devicetree. For reasons detailed in my other series ("[PATCH v2 00/11] stm32mp1: Support falcon mode with OP-TEE payloads") the "optee" nodes are required. It might seem like an obvious solution to "just re-add the nodes", but I found out it didn't work like that. I couldn't use STM32MP15x_STM32IMAGE to get me back my nodes, because that would have required TFABOOT. What I needed was a new config that more accuratelyreflected the available boot flows. STM32MP15x_STM32IMAGE is a confusing because it conflates image generation with u-boot behavior. I'm proposing replacing it with TFABOOT_FIP_CONTAINER because I think this new config is much easier to understand in layman's terms. I also thinks it maps more elegantly to what STM is trying to do: add a new boot flow. Alexandru Gagniuc (3): stm32mp: Rename FIP config to stm32mp15_tfaboot_fip_defconig arm: Kconfig: Introduce a TFABOOT_FIP_CONTAINER option stm32mp1: Replace STM32MP15x_STM32IMAGE with TFABOOT_FIP_CONTAINER arch/arm/Kconfig | 15 ++++++++++++ arch/arm/dts/stm32mp157a-dk1-u-boot.dtsi | 9 ++++---- arch/arm/dts/stm32mp157c-ed1-u-boot.dtsi | 9 ++++---- arch/arm/mach-stm32mp/Kconfig | 7 ------ .../cmd_stm32prog/cmd_stm32prog.c | 5 ++-- .../mach-stm32mp/cmd_stm32prog/stm32prog.c | 4 ---- .../mach-stm32mp/cmd_stm32prog/stm32prog.h | 2 -- arch/arm/mach-stm32mp/config.mk | 2 +- arch/arm/mach-stm32mp/fdt.c | 4 +--- .../arm/mach-stm32mp/include/mach/stm32prog.h | 2 -- board/st/common/Kconfig | 23 ++++++++++--------- board/st/common/stm32mp_mtdparts.c | 20 +--------------- board/st/stm32mp1/MAINTAINERS | 2 +- board/st/stm32mp1/stm32mp1.c | 6 ++--- ...config => stm32mp15_tfaboot_fip_defconfig} | 1 + configs/stm32mp15_trusted_defconfig | 1 - doc/board/st/stm32mp1.rst | 16 ++++++------- 17 files changed, 54 insertions(+), 74 deletions(-) rename configs/{stm32mp15_defconfig => stm32mp15_tfaboot_fip_defconfig} (99%) -- 2.31.1