Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp665512rdg; Wed, 11 Oct 2023 01:51:22 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEO0tkTAUi3xKyqkG8jRWAAL04XQWSUUYFLouEkPTJXhKSAro6ldv8WEpAoJGwelCr1OoUO X-Received: by 2002:a17:90a:4947:b0:263:3386:9da8 with SMTP id c65-20020a17090a494700b0026333869da8mr15317681pjh.49.1697014282466; Wed, 11 Oct 2023 01:51:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697014282; cv=none; d=google.com; s=arc-20160816; b=QvqCn54ev5Pfzwg3tUUTW7cqomXXtBF+pQYnRUULTTM/9YUf8HSvKxQfjtFj/w/+f5 4/ncFzS8csXKjhrUKEKm7ZuZS+nsfAGa+ISz4q6434KOw16zFWN24QWtnd61ZFShiNxt 3giWBbG+oN3E8S2VSvhwNUHbD/tPHO+6DNyrUCQF+Y9X4uFYD0q+0rfHCv7k7N8rd6ht Qd9IBjBE8Cp0vUStpyk/3o3/4/n9Mb9k2k5aTUAGzSms2mFmInhwmDca1Uz9/87tDKrk hFSD3cjg0OASwZzFRIlzOEhOInMhTjPsmJPg3d08ViGc1TezQXtUmYYnIvRvEpfcpCWk XPsA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=8gYo5goS4DqeD1ldn/WMNS5pR/ViIwg7IylwRkFLbCQ=; fh=VX+qCZgcOL42z5bWi5HqzKBjMBdGjtxGfGqqCFIerBI=; b=vZQh70QsOEjz4pPgMnM06E9dfAyr41K26/I8JcD5fAgZKSTOxw2tqz9bMqvPQ7VMpY lYVtuYGaY/j8lke+a2XYyT450Tddn2hw24Py+kOm06ztSKvWKvzysq6Qy8BmhUMdmjCo I2jGAhLwk1gnovjKr3DodzALYFSuBh37Y4UnA+gKKJJjR6I8EeTSDzYKMbxCxho7fBzx 5VXz7bKsYBpUXy3naMH/BMV2bfVlC/DFPJp1IiH8tp2ezsgIC1nmnSSli5hcUWCEd8Zc xXQGCbiFifKkfpS8WmFzKKCCPZNHF2e42aGtRE4hFG9gQ7oZuPZLC2t75I66UPiGktTY n/LA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=ZaTlXAtb; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id mt23-20020a17090b231700b0027769032e57si15378853pjb.52.2023.10.11.01.51.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Oct 2023 01:51:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=ZaTlXAtb; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 10E3B80234E8; Wed, 11 Oct 2023 01:51:16 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230392AbjJKIvJ (ORCPT + 99 others); Wed, 11 Oct 2023 04:51:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36998 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230382AbjJKIvI (ORCPT ); Wed, 11 Oct 2023 04:51:08 -0400 Received: from mx07-00178001.pphosted.com (mx07-00178001.pphosted.com [185.132.182.106]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5A75798; Wed, 11 Oct 2023 01:51:05 -0700 (PDT) Received: from pps.filterd (m0369458.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.17.1.22/8.17.1.22) with ESMTP id 39B5xlfO011115; Wed, 11 Oct 2023 10:50:08 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h= message-id:date:mime-version:subject:to:cc:references:from :in-reply-to:content-type:content-transfer-encoding; s= selector1; bh=8gYo5goS4DqeD1ldn/WMNS5pR/ViIwg7IylwRkFLbCQ=; b=Za TlXAtbPx+MB2v0D8AaSOiCRr0QWaExzh07Zo/oJZvuCeapBUJIlchy/0wVkKmKEn wF4z0gNW2gVgYd+nm+OoUH3zQARoNUOh9jLOsqhjQPZQakZgQ8UQum8NC5lIu53G J9/i4D9RVwogLLkVq45t8JbhccX58FoBHOkPFG54l4Myu31cTN8/lVAO4VwO3iQ/ QVK9wmSpmZQtWB32TwY8Jbg0FQFxf0GPdf5ZAKxNUqJf8bLx+7v473H+0cTRORLN +6OGQsijOBEGjRMLIhQfjAvoAYEoRWr3fmVZBKuazCBrw1XmeMdLs2GuCUkIAx4t D2E7cjGWOwhthrlESwYw== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com (PPS) with ESMTPS id 3tnp24gtuh-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 11 Oct 2023 10:50:08 +0200 (MEST) Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 21883100064; Wed, 11 Oct 2023 10:50:05 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node1.st.com [10.75.129.69]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id B630822FA2E; Wed, 11 Oct 2023 10:50:05 +0200 (CEST) Received: from [10.201.20.32] (10.201.20.32) by SHFDAG1NODE1.st.com (10.75.129.69) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Wed, 11 Oct 2023 10:50:03 +0200 Message-ID: <8f1b6915-68be-a525-c5d5-37f0983c14de@foss.st.com> Date: Wed, 11 Oct 2023 10:49:58 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 Subject: Re: [PATCH v6 10/11] ARM: dts: stm32: add ETZPC as a system bus for STM32MP15x boards To: Rob Herring CC: , , , , , , , , , , , , , , , , , , , , , , , , Frank Rowand , , , , , , , , , , , , , , , , , References: <20231010125719.784627-1-gatien.chevallier@foss.st.com> <20231010125719.784627-11-gatien.chevallier@foss.st.com> <20231010184212.GA1221641-robh@kernel.org> Content-Language: en-US From: Gatien CHEVALLIER In-Reply-To: <20231010184212.GA1221641-robh@kernel.org> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.201.20.32] X-ClientProxiedBy: SHFCAS1NODE2.st.com (10.75.129.73) To SHFDAG1NODE1.st.com (10.75.129.69) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.980,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-10-11_06,2023-10-10_01,2023-05-22_02 X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Wed, 11 Oct 2023 01:51:16 -0700 (PDT) Hi Rob, On 10/10/23 20:42, Rob Herring wrote: > On Tue, Oct 10, 2023 at 02:57:18PM +0200, Gatien Chevallier wrote: >> ETZPC is a firewall controller. Put all peripherals filtered by the >> ETZPC as ETZPC subnodes and reference ETZPC as an >> access-control-provider. >> >> For more information on which peripheral is securable or supports MCU >> isolation, please read the STM32MP15 reference manual. >> >> Signed-off-by: Gatien Chevallier >> --- >> >> Changes in V6: >> - Renamed access-controller to access-controllers >> - Removal of access-control-provider property >> >> Changes in V5: >> - Renamed feature-domain* to access-control* >> >> arch/arm/boot/dts/st/stm32mp151.dtsi | 2756 +++++++++++++------------ >> arch/arm/boot/dts/st/stm32mp153.dtsi | 52 +- >> arch/arm/boot/dts/st/stm32mp15xc.dtsi | 19 +- >> 3 files changed, 1450 insertions(+), 1377 deletions(-) > > This is not reviewable. Change the indentation and any non-functional > change in one patch and then actual changes in another. Ok, I'll make it easier to read. > > This is also an ABI break. Though I'm not sure it's avoidable. All the > devices below the ETZPC node won't probe on existing kernel. A > simple-bus fallback for ETZPC node should solve that. > I had one issue when trying with a simple-bus fallback that was the drivers were probing even though the access rights aren't correct. Hence the removal of the simple-bus compatible in the STM32MP25 patch. Even though a node is tagged with the OF_POPULATED flag when checking the access rights with the firewall controller, it seems that when simple-bus is probing, there's no check of this flag. of_platform_populate() checks and sets the OF_POPULATED_BUS flag. Maybe that is my error and the firewall bus populate should set OF_POPULATED_BUS instead of OF_POPULATED. Is that correct? Best regards, Gatien > Rob