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 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 9E632C433F5 for ; Wed, 16 Mar 2022 11:18:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:From:References:To:Subject: MIME-Version:Date:Message-ID:Reply-To:Cc:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=E5ZZcPQGLxCxFGpWF6gArutL39ZzmLq7Pl1Pxu1Gqgc=; b=1A/f4BH/q/G7zw HxzPH5CEVIl/65Mnejhrl/2l5VBeeCmSnH48dEdZ4/QOYfiZGoMsLm3ALjHG6lnRpdsMZCv/4CboS VLvsm9fwGe1Nf7i3im1L97uMIrtFsTEDR4LUPFRXBUwjyKPS85hUSQ+rWndYJfZPoLmGHGTLMF0jj CEmeB/OEt4GYlJLlNiK+ftC3RVXaLmWSB/BFU9j7n2qLEKKlZoDbwdes0FvXjFOFZndNY8DLr8iUN fcZ+zql0kUgR0vrOvFHaeF7CmBJZGOI+MGaM+FsxdXe/ddqPx2PyQbFA1jzI0bW1SkemJo2dc7g+F D17SN0MkxNhvoqdamYtw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nURed-00CbS9-8s; Wed, 16 Mar 2022 11:17:23 +0000 Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nUReZ-00CbQn-5w for linux-arm-kernel@lists.infradead.org; Wed, 16 Mar 2022 11:17:20 +0000 Received: from gallifrey.ext.pengutronix.de ([2001:67c:670:201:5054:ff:fe8d:eefb] helo=[127.0.0.1]) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1nUReM-0003ml-JI; Wed, 16 Mar 2022 12:17:06 +0100 Message-ID: Date: Wed, 16 Mar 2022 12:17:03 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.6.1 Subject: Re: [Linux-stm32] [PATCH v2 12/13] ARM: dts: stm32: enable optee firmware and SCMI support on STM32MP13 Content-Language: en-US To: Etienne Carriere , Gabriel FERNANDEZ , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Maxime Coquelin , Alexandre Torgue , Philipp Zabel , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" , linux-stm32@st-md-mailman.stormreply.com, Pengutronix Kernel Team References: From: Ahmad Fatoum In-Reply-To: X-SA-Exim-Connect-IP: 2001:67c:670:201:5054:ff:fe8d:eefb X-SA-Exim-Mail-From: a.fatoum@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-arm-kernel@lists.infradead.org X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220316_041719_259497_6811DF8C X-CRM114-Status: GOOD ( 25.95 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hello Etienne, On 16.03.22 12:01, Etienne Carriere wrote: > Hi Ahmad, > >> Helo Gabriel, >> >> On 03.03.22 14:09, Gabriel FERNANDEZ wrote: >>> >>> On 2/25/22 16:13, Ahmad Fatoum wrote: >>>> Hello Gabriel, >>>> >>>> On 25.02.22 14:31, gabriel.fernandez@foss.st.com wrote: >>>>> From: Gabriel Fernandez >>>>> + firmware { >>>>> + optee { >>>>> + method = "smc"; >>>>> + compatible = "linaro,optee-tz"; >>>>> + }; >>>>> + >>>>> + scmi: scmi { >>>>> + compatible = "linaro,scmi-optee"; >>>> This compatible doesn't seem to be documented upstream. I am looking at v5.17-rc5. >>>> Do you have a reference detailing the difference between this conduit and >>>> plain arm,scmi-smc (as used with TF-A on the STM32MP151). >>>> >>>> Cheers, >>>> Ahmad >>> >>> Hi >>> >>> Ahmad, >>> >>> it's on going. >>> >>> https://lore.kernel.org/linux-arm-kernel/20211029102118.GG6526@e120937-lin/T/#mf46c83f0aadce3061ee93fa22159405f38d881a0 >> >> I've found that thread in the meantime and got some clarification on why a new >> transport for OP-TEE was added. One question I still have though is why make >> this transport the default for STM32MP13x instead of using SCMI over SMC like >> you do for STM32MP15x. OP-TEE could still be made to service SCMI over SMC >> and it would allow people employing TF-A as SCMI provider an easier migration >> to the newer SoC. >> > > Just to rephrase a bit what's being said in the referred mail thread: > On STM32MP13x, there are SCMI messages that must be processed inside a > thread execution context in the SCMI server. There is no standard SMC > function ID defined that the SCMI/SMC transport could use for that > purpose. OP-TEE provides such a threaded context. Therefore STM32MP13x > explicitly expects SCMI services based on SCMI/OP-TEE transport, not > SCMI/SMC transport. I see. Users can still override it as they see fit and I understand that ST would prefer to have the "fully-featured" boot chain be the default for the new SoC. So no concerns from my side. Thanks a lot for the clarification! Cheers, Ahmad > > Best regards, > etienne > >> Cheers, >> Ahmad > >> >>> >>>> + #address-cells = <1>; >>>> + #size-cells = <0>; >>>> + linaro,optee-channel-id = <0>; >>>> + shmem = <&scmi_shm>; >>>> + >>>> + scmi_clk: protocol@14 { >>>> + reg = <0x14>; >>>> + #clock-cells = <1>; >>>> + }; >>>> + >>>> + scmi_reset: protocol@16 { >>>> + reg = <0x16>; >>>> + #reset-cells = <1>; >>>> + }; >>>> + }; >>>> + }; >>>> clocks { >>>> clk_axi: clk-axi { >>>> #clock-cells = <0>; >>> >> > > -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel