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=-8.2 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 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 6AAE8C432BE for ; Tue, 31 Aug 2021 16:42:23 +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 41887610FC for ; Tue, 31 Aug 2021 16:42:22 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 41887610FC Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=denx.de 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 D9E3E8341A; Tue, 31 Aug 2021 18:42:19 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1630428140; bh=+kqVwMi/euKvyFwpjHCK8dCpvDJKPlkaJ2jalK6a4Wk=; h=Subject:To:Cc:References:From:Date:In-Reply-To:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=d5xMfvH8Gl6l+DXYt1pEgVeMONGdcgEtalY3dSeLAvVqMdTRFXB5ORwnjI5HCl0AN GMHAUrvJRmesACdEEtUWAinTM9GOg+62eKQR+kqjnuOcTsIL4LAPB06xO3sQ8/X7Mj IxyYkZb8WIMpRdwfXSo0dFcbG5ziWubo4T4gdvmkcVj4uiaqDaZbBfSXn97Tf03wpo 6COEU8wHWzCKA94ZmvFwIE9PNfu4KklVQb/TvnZchfZWZiroB3IuWNj+wiQ9jmsu48 97o/kKXTw4bWigc6GxX3fUJDoZK735ERZ1nG1SNvQgfLm4E7dcYvys7LG2rcJd2iF3 SSaWflRhVRKxA== Received: from [IPv6:::1] (p578adb1c.dip0.t-ipconnect.de [87.138.219.28]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: marex@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id 6D4F7831FE; Tue, 31 Aug 2021 18:42:17 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1630428137; bh=+kqVwMi/euKvyFwpjHCK8dCpvDJKPlkaJ2jalK6a4Wk=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=JdN+zkp3ts9nRE+WuTbbtEAJm74NWikR0FRu7O2KtS6VkJ5XuGBS19SxeJVjYnS+F REZ8Z7eF0rOshgmrPb5QpSxVPk2qAhlSPEHhPp6li8oDA6niXgoNzerjoz8h3OH1BQ 2kJ/Cwbcjiv1aJH6F9ahGM9yFQCiBwKeCsKdwyo5jCmVD591uo2Qnbxt5RG3GIRfea AV+mIk26uMcuY2MrD8thx0mHn63VEDL0wFXYDJCUGzaW7FAZZHP3hKZd0IoK8ZsjTI tZdh7driOIcFqFKVedyDKTkaBCDumRNkgwy6GfNk0olucxvffLK64TkBF7JnXDrMI1 tsypMAQD/NoCg== Subject: Re: [RFC PATCH] stm32mp1: Replace STM32IMAGE config with TFABOOT_FIP To: Patrick DELAUNAY , Alexandru Gagniuc , u-boot@lists.denx.de Cc: Etienne Carriere , Patrice CHOTARD , Tom Rini References: <966fc974-8331-aeac-ba15-5b2ab19c0eaf@gmail.com> <20210826214705.255294-1-mr.nuke.me@gmail.com> From: Marek Vasut Message-ID: <5dce263b-7325-9119-cb2b-74a9f397b970@denx.de> Date: Tue, 31 Aug 2021 18:42:16 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US 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 On 8/31/21 4:54 PM, Patrick DELAUNAY wrote: > Hi Alexandru, Hi, > On 8/26/21 11:47 PM, Alexandru Gagniuc wrote: >> Hi Patrick, >> >> I proposing a better fix fir the issues I outlined earlier, I made a >> classification of the currently supported boot modes. >> >>     1) BL1 -> SPL -> U-Boot >>     2) BL1 -> SPL -> OP-TEE >> --------------------------------------------------------------------- >> |  3) BL1 -> TF-A -> U-Boot                                         | >> |  4) BL1 -> TF-A -> OP-TEE                                         | >> | _________________________________________________________________ | >> || 5) BL1 -> TF-A -> FIP container                                 || >> || CONFIG_TFABOOT_FIP                                              || >> ||_________________________________________________________________|| >> |                                                                   | >> | CONFIG_TFABOOT                                                    | >> --------------------------------------------------------------------- >> >> Here, I'm looking at FIP as a new boot mode. In order to avoid >> breakage, any changes to support FIP it should naturally be done only >> to this new path. >> >> This proposal contains several changes, but I've squashed them into >> one for ease of discussion. >> >> This better matches the boot mode classification above. > > 1) is supported but with many constraint for security part and low power > management > >     it is not recommended for real product / it will be not supported > by STMicroelectronics Does this mean ST will be cutting off their own customers who use this boot mode because they do not need/want additional complex problematically licensed components in their boot chain and/or ST will be forcing those customers into adding such unneeded/unwanted components unconditionally ? I am strongly opposed to that. I would argue that the U-Boot crypto code went through multiple independent security reviews, personally I trust that more than code fully controlled and maintained by any one single company, so I am not buying the security constraint argument here. Regarding power management and low power modes, there is literally nothing preventing Linux from implementing those low power modes, so there is no reason to hide all that code in firmware, so I am not buying the low power argument either. Finally, the argument that the component that is being forced upon everyone is "open source" is really turning any design with such a SoC into a huge risk. There have been SoCs where the vendor took "open source" bootloader code, compiled a blob, released a blob and never gave out the sources, because it is "open source" and not "free software", the BSD license permits such practice, GPL does not. Whoever wanted to design a board or SoM with such a SoC, had to adjust their design to match that one blob. Of course, that also implies that any security problems were not fixable in that blob. [...]