Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp276703pxf; Thu, 11 Mar 2021 03:45:24 -0800 (PST) X-Google-Smtp-Source: ABdhPJyVExNnSxXzqvUL4j55mb8v2+CpwVCxhDssgiYy53s4hQnLS2wbltWZIHEai75EdR1nQutC X-Received: by 2002:a17:906:1e50:: with SMTP id i16mr2656412ejj.466.1615463124294; Thu, 11 Mar 2021 03:45:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615463124; cv=none; d=google.com; s=arc-20160816; b=YLo9nKkbnHiME6H/HTFIwwd7TU6t1hpm+1PJKtMgl1I2YeYLYFhCYcPc55g6tpjsJr 7xsD50TthHZoFxIHA2wvkXfzc/J5YoMG4RFza8U20gDUvSPk32R7C6TsW0e8QB618Gee Mt7QObcETQNt9Uq0AsO1mEGhkdPqS2tFe1Ol4SuxxDttkrNIHGs33tcA6JR+bvRh3a3q DfTEXfDNxhHhkOBN18RTQVteF59TGHYDBdgRiQviw0550J0+tVhd3Xg8p6snQoGN2EHs Yjjoz3knFedtQB3wWfOzsrs1WXtfj2gbB23VKm0SreaMBcTTtSIPk7iQy3IcZ1kt3g0q jc9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=Z046TeVbBhXct7SNJb2q03vRVlCn+Y8pP0sWGqhd4m8=; b=q1l576SB335Fk5Hg+XX+Cl+S95egMitg85luJBHc6FAvxqEhWjt+P3axj14l4IjS/9 JZ9eB9pACFPjS6dpJK5ng/eqWOA1uczmZCsN/WaJIgCvoa76Liy6WlQubM5cg/kK4dQK iHDLxUbjuN0IKMiPVVIT8BC+GGV2Pe6tRee31hrgppjbt/6h+6mlpG4CDdTi6SxpODSH erqbdLcBBZgJ1x4TQdLaXm4Fu5UFCCgE3tun9OIke9qVC7bJs4OOt1R+zgOO+aqFL4sH gfyqpXggxs2o8mBhVs3/eg4STIM7BQdWqLQ/VnTP6Id2IHLkK1q6ztMBpoxM3r/SwSVD Oo6w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h17si1574731edr.331.2021.03.11.03.45.02; Thu, 11 Mar 2021 03:45:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232782AbhCKLnh (ORCPT + 99 others); Thu, 11 Mar 2021 06:43:37 -0500 Received: from mail-out.m-online.net ([212.18.0.10]:44764 "EHLO mail-out.m-online.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232719AbhCKLnL (ORCPT ); Thu, 11 Mar 2021 06:43:11 -0500 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 4Dx6Wv6wKFz1ry9k; Thu, 11 Mar 2021 12:43:07 +0100 (CET) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 4Dx6Wv4vCTz1qr4m; Thu, 11 Mar 2021 12:43:07 +0100 (CET) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id bwhSiK_6OLsr; Thu, 11 Mar 2021 12:43:05 +0100 (CET) X-Auth-Info: PWDLWpU/RF1mQ0vyUrR2TmlPpbT0QFk+u0aQwwhF6ik= Received: from [127.0.0.1] (p578adb1c.dip0.t-ipconnect.de [87.138.219.28]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Thu, 11 Mar 2021 12:43:05 +0100 (CET) Subject: Re: [PATCH v2 00/14] Introduce STM32MP1 RCC in secured mode To: Alexandre TORGUE , "Alex G." , Gabriel FERNANDEZ - foss , Michael Turquette , Stephen Boyd , Rob Herring , Maxime Coquelin , Philipp Zabel , Etienne CARRIERE , Alexandre TORGUE - foss Cc: "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-clk@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-stm32@st-md-mailman.stormreply.com" References: <20210126090120.19900-1-gabriel.fernandez@foss.st.com> <2e04f814-b694-119d-fe8a-13e6df129536@gmail.com> From: Marek Vasut Message-ID: Date: Thu, 11 Mar 2021 12:43:04 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 3/11/21 9:08 AM, Alexandre TORGUE wrote: > Hi ALex Hello everyone, [...] >> Subject: Re: [PATCH v2 00/14] Introduce STM32MP1 RCC in secured mode >> >> On 1/26/21 3:01 AM, gabriel.fernandez@foss.st.com wrote: >>> From: Gabriel Fernandez >>> >>> Platform STM32MP1 can be used in configuration where some clocks and >>> IP resets can relate as secure resources. >>> These resources are moved from a RCC clock/reset handle to a SCMI >>> clock/reset_domain handle. >>> >>> The RCC clock driver is now dependent of the SCMI driver, then we have >>> to manage now the probe defering. >>> >>> v1 -> v2: >>> - fix yamllint warnings. >> >> Hi Gabriel, >> >> I don't have much clout with the maintainers, but I have to NAK this series >> after finding major breakage. >> >> The problem with series is that it breaks pretty much every board it touches. >> I have a DK2 here that I'm using for development, which no longer boots with >> this series applied. >> >> The crux of the matter is that this series assumes all boards will boot with an >> FSBL that implements a very specific SCMI clock tree. This is major ABI >> breakage for anyone not using TF-A as the first stage bootloader. Anyone >> using u-boot SPL is screwed. >> >> This series imposes a SOC-wide change via the dtsi files. So even boards that >> you don't intend to convert to SCMI will get broken this way. >> Adding a -no-scmi file that isn't used anywhere doesn't help things. > > You are right. We mainly take care about NO ST (DH/...) boards, but not really about current usage > Of our stm32 boards. Several options exist: Since a lot of people benefit from the good upstream support for the MP1 _and_ keep updating their machines to get the latest fixes, it is very important to keep the current usage working. > 1- Break the current ABI: as soon as those patches are merged, stm32mp157c-dk2.dtb will impose to use > A tf-a for scmi clocks. For people using u-boot spl, the will have to create their own "no-secure" devicetree. NAK, this breaks existing boards and existing setups, e.g. DK2 that does not use ATF. > 2-As you suggest, create a new "secure" dtb per boards (Not my wish for maintenance perspectives). I agree with Alex (G) that the "secure" option should be opt-in. That way existing setups remain working and no extra requirements are imposed on MP1 users. Esp. since as far as I understand this, the "secure" part isn't really about security, but rather about moving clock configuration from Linux to some firmware blob. > 3- Keep kernel device tree as they are and applied this secure layer (scmi clocks phandle) thanks to dtbo in > U-boot. Is this really better than #include "stm32mp15xx-enable-secure-stuff.dtsi" in a board DT ? Because that is how I imagine the opt-in "secure" option could work. > The third could be the less costly. [...]