Received: by 2002:ab2:1347:0:b0:1f4:ac9d:b246 with SMTP id g7csp280580lqg; Thu, 11 Apr 2024 02:39:55 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWIdmGTTTkNJn0XoGX1AWQXplBBJ2FOrNB7iFEl1tn7Eb0bhlCGz2r0CMtySiqXS/A6lDSpYcNik09qMNYBbrqyVGN40FtGcXZUNgsjlQ== X-Google-Smtp-Source: AGHT+IEPMTLx9gN+46yCB+TkfJ+8VqkSMNVBXEXL6tlDNy/Rl053l9YlI6e59vDBlN61WWdcMBBl X-Received: by 2002:a17:907:9411:b0:a4e:453b:f6b6 with SMTP id dk17-20020a170907941100b00a4e453bf6b6mr5327399ejc.72.1712828395385; Thu, 11 Apr 2024 02:39:55 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712828395; cv=pass; d=google.com; s=arc-20160816; b=wtB0oHFPvmmwXcOnVuhLe3jiDWjTB9KQx0iRKzWK34hov3umW96LQcVn+PGokplT6T 5f+qdUOokkqfvIXwbbT1RYky4w6WJ6CF8iXlu/zOFjQvr+0Ti0o6Wzs2XUsg1MUp3tJl ZrNaLtJsvp91NvvcbuVd6xzRhknYgTG0VYtVtipq/bErkb/VKdh0myj78I92PccSO5+x tEo5zpCqbGy3Iwvh7af3qF6fni6hD+EOOYop6PN2BhG/YKrsO2fEx3N5VFu19sM7OBok i3MlQgvianNDVULox3gcdrBWLqt4rMws9gBY+xfrBLhn3e4A+Hi1IZKgFaWXGzttYlkQ iuZQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=6rfS5zPiSmzZMMxQ4v6y7X7sH1FVnmMas6q+NGiPbP0=; fh=jphjG60QI1Z79zb+F7FboOjPVj6Ik7vC+/HPWZ/pbas=; b=Y8FMCQmldlThqMyhLmQfihCIvtiNpD78OfIhAHwg0zQ4ncAJiejgRTqF8kucRfMjRy +0+seosibuME/BwiEyiilKvvmbixUvH9BdNGE9XaORdJQxjZ5za+bZUB7uGejRFIkUDH KcOr/O8nN724gXwAKeeoO60yemZBCUueVRev+uQ6KLvwuVBFnt/qFUQNTBS+k5MOrRPw FOnWZ9ARg1qfHQ44yQ5J58aa/Vg55Yf2tHJtmXOYHRV5IUmKl2CHoxYfnQ2zUuL+SouU gC4UbwOGodIisk8gnNpZ3V/mhSIrkVTlqzp7cQe6PSW8xPJMDPb31AhXnioT4nMVg4jf orzw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=RH23LTku; arc=pass (i=1 spf=pass spfdomain=foss.st.com dkim=pass dkdomain=foss.st.com dmarc=pass fromdomain=foss.st.com); spf=pass (google.com: domain of linux-crypto+bounces-3450-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-crypto+bounces-3450-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id l17-20020a1709060e1100b00a4e24dcad27si571343eji.898.2024.04.11.02.39.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Apr 2024 02:39:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto+bounces-3450-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=RH23LTku; arc=pass (i=1 spf=pass spfdomain=foss.st.com dkim=pass dkdomain=foss.st.com dmarc=pass fromdomain=foss.st.com); spf=pass (google.com: domain of linux-crypto+bounces-3450-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-crypto+bounces-3450-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id EE0E91F27BFF for ; Thu, 11 Apr 2024 09:39:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 87ED214534C; Thu, 11 Apr 2024 09:39:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=foss.st.com header.i=@foss.st.com header.b="RH23LTku" X-Original-To: linux-crypto@vger.kernel.org Received: from mx07-00178001.pphosted.com (mx07-00178001.pphosted.com [185.132.182.106]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3930B13B2A8; Thu, 11 Apr 2024 09:39:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.132.182.106 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712828386; cv=none; b=PusHeacMlNx8UuWmN4NbKIVMZcoaG4BKdYp/SRlPNHPaGq7Rwb+PW/8TeXzmByAFPL92qZzyKbEJcOZ4NenJa5ad2MTA0JAHKNKLmsVfQq50PurIT2O6Ec5W45O9pDBU34ahT4O7JZEVWwZkM5L1RPSqmMbfk9KKMxTPd13di5U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712828386; c=relaxed/simple; bh=wanp9p18Kaf0ShHZ0lGWcX4M0b7lk+ryk6Qlal5cEOU=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=V6pVbqzfPJc7ZepFHHLG6R+/HQ+5hm4Dc0FsZoEHB3Hc68T4bRN5eJ70O2/BbP32elGL92pHfIMI7/c/cL3fCAZO/Gp+YmlWgbpxnSo7s7CkOgg+2cwxg9N81U08ZmXL4G3l725gJxlw0bjioDZYAED3jKQCnnonw4a5+zdEqZ4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=foss.st.com; spf=pass smtp.mailfrom=foss.st.com; dkim=pass (2048-bit key) header.d=foss.st.com header.i=@foss.st.com header.b=RH23LTku; arc=none smtp.client-ip=185.132.182.106 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=foss.st.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=foss.st.com Received: from pps.filterd (m0369458.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 43B7Pfi7029833; Thu, 11 Apr 2024 11:38:52 +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=6rfS5zPiSmzZMMxQ4v6y7X7sH1FVnmMas6q+NGiPbP0=; b=RH 23LTkuSOQZgrLqSQPcyDWEaHansF0FyzusSDHHejYeeQubA/RF03+Fcw0JO1uxMG vxF1TpPcpGgm0D5a22KTGFQ7B10VA0NGWF7kWPIuCEes6xP+vVpTvGT3WcMqMrto D4vR5lrxgA/glhjYfqpRe5c0L23nsZVK7DVfPfG0lEV5OCEp0AXAts6p2Sz8Eqn+ pfNDTysrxZZj3w6etWkPop5DdColzGvEkh0mS5oMq1L4D7HeqW1uQ1DiKhu8ho9x WWExS/Zmj9aq87LkaFiH+L0wv8VNYlPBEg0uHS/sXlEIu+kMGooWvN+/JWrTbuwL XfW02l4cyVpCxpiEPg5w== Received: from beta.dmz-ap.st.com (beta.dmz-ap.st.com [138.198.100.35]) by mx07-00178001.pphosted.com (PPS) with ESMTPS id 3xbfy12h6s-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 11 Apr 2024 11:38:51 +0200 (MEST) Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-ap.st.com (STMicroelectronics) with ESMTP id D322A4002D; Thu, 11 Apr 2024 11:38:34 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node1.st.com [10.75.129.69]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 906DE2132CA; Thu, 11 Apr 2024 11:37:27 +0200 (CEST) Received: from [10.48.86.79] (10.48.86.79) 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; Thu, 11 Apr 2024 11:37:25 +0200 Message-ID: Date: Thu, 11 Apr 2024 11:37:24 +0200 Precedence: bulk X-Mailing-List: linux-crypto@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v9 00/13] Introduce STM32 Firewall framework To: Rob Herring CC: Gatien Chevallier , , , , , , , , , , , , , , , , , , , , , , , , Frank Rowand , , , , , , , , , , , , , , , , , , , , , References: <20240105130404.301172-1-gatien.chevallier@foss.st.com> <61608010-fbce-46c6-a83d-94c04d0f000d@foss.st.com> Content-Language: en-US From: Alexandre TORGUE In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-ClientProxiedBy: EQNCAS1NODE3.st.com (10.75.129.80) To SHFDAG1NODE1.st.com (10.75.129.69) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-04-11_03,2024-04-09_01,2023-05-22_02 Hi Rob On 4/9/24 19:13, Rob Herring wrote: > On Mon, Apr 8, 2024 at 3:44 AM Alexandre TORGUE > wrote: >> >> Hi Gatien, >> >> On 1/5/24 14:03, Gatien Chevallier wrote: >>> Introduce STM32 Firewall framework for STM32MP1x and STM32MP2x >>> platforms. STM32MP1x(ETZPC) and STM32MP2x(RIFSC) Firewall controllers >>> register to the framework to offer firewall services such as access >>> granting. >>> >>> This series of patches is a new approach on the previous STM32 system >>> bus, history is available here: >>> https://lore.kernel.org/lkml/20230127164040.1047583/ >>> >>> The need for such framework arises from the fact that there are now >>> multiple hardware firewalls implemented across multiple products. >>> Drivers are shared between different products, using the same code. >>> When it comes to firewalls, the purpose mostly stays the same: Protect >>> hardware resources. But the implementation differs, and there are >>> multiple types of firewalls: peripheral, memory, ... >>> >>> Some hardware firewall controllers such as the RIFSC implemented on >>> STM32MP2x platforms may require to take ownership of a resource before >>> being able to use it, hence the requirement for firewall services to >>> take/release the ownership of such resources. >>> >>> On the other hand, hardware firewall configurations are becoming >>> more and more complex. These mecanisms prevent platform crashes >>> or other firewall-related incoveniences by denying access to some >>> resources. >>> >>> The stm32 firewall framework offers an API that is defined in >>> firewall controllers drivers to best fit the specificity of each >>> firewall. >>> >>> For every peripherals protected by either the ETZPC or the RIFSC, the >>> firewall framework checks the firewall controlelr registers to see if >>> the peripheral's access is granted to the Linux kernel. If not, the >>> peripheral is configured as secure, the node is marked populated, >>> so that the driver is not probed for that device. >>> >>> The firewall framework relies on the access-controller device tree >>> binding. It is used by peripherals to reference a domain access >>> controller. In this case a firewall controller. The bus uses the ID >>> referenced by the access-controller property to know where to look >>> in the firewall to get the security configuration for the peripheral. >>> This allows a device tree description rather than a hardcoded peripheral >>> table in the bus driver. >>> >>> The STM32 ETZPC device is responsible for filtering accesses based on >>> security level, or co-processor isolation for any resource connected >>> to it. >>> >>> The RIFSC is responsible for filtering accesses based on Compartment >>> ID / security level / privilege level for any resource connected to >>> it. >>> >>> STM32MP13/15/25 SoC device tree files are updated in this series to >>> implement this mecanism. >>> >> >> ... >> >> After minor cosmetic fixes, series applied on stm32-next. >> Seen with Arnd: it will be part on my next PR and will come through >> arm-soc tree. > > And there's some new warnings in next with it: > > 1 venc@480e0000: 'access-controllers' does not match any of the > regexes: 'pinctrl-[0-9]+' > 1 vdec@480d0000: 'access-controllers' does not match any of the > regexes: 'pinctrl-[0-9]+' Yes I noticed it to my colleague. YAML update has been sent for VEND/VDENC. https://lore.kernel.org/lkml/171276671618.403884.13818480350194550959.robh@kernel.org/T/ As soon as it is acked I could merge it in my tree. Alex > > Rob