Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp641007ybl; Tue, 28 Jan 2020 09:18:54 -0800 (PST) X-Google-Smtp-Source: APXvYqweWX6zFubNoRH84oicXSwxaj4AzZDY/47iAkaBY4WuOpwSU316c6q1sepS86bK17RvSHvn X-Received: by 2002:aca:f305:: with SMTP id r5mr3647863oih.174.1580231934032; Tue, 28 Jan 2020 09:18:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580231934; cv=none; d=google.com; s=arc-20160816; b=IrJ9wphCOMiSFP29MCXuw/8/HD+yEq3iQLnFzM8Nq/zSGssnk1P3kOxGrQ7oMuvLPB AqLJ5AGfuHtfsMzytQwuExXZ/t219dtBXPu3dzYsW/TUB/D5bYanT0h/5JLeEtkMSwKS 9rXV0b1388SAKBrzO3rXa9ClF/97eveaq8gQDbuVIoKzBImYlXshwfSl8zCenUtpV8kV bDrpZ5V/LaZa60tBC8y1UJ+ZSDeHnJPCNHzZ9Trz3bn0zK4wlktSs770/fOw7yB2Hr3Y zGUzLSdkoMlgQtzzGEAWENAGo1sRe+L91K3QTpjbMrGUD9Mkr/bcC/N27Ga3v1W/csvH EafQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=3d2xd9KiFNFpHTHz9U+BoctoKDNwKB2622qUTrCOSB8=; b=B0M6i+BX0aPv4dPQsfyZZyO0UlQaDXGilEDT5VeWtwZEupVEK29jpEJ+4h6eUCeHCu Sp8XayofW3JLTT9sNBuFdR1OftpFGF7LhIcZi6Dl79ZVklqnQEWs0EOxKoBARvUiRsAe rR3q0lzxXRscSvdo/EX2NkOndYPwQ8oN9isTRVHId9W0Gj3u/+vMaXuIYgUDZxjWnwhs vBUqJw/uU/t3UxNx1+6lLRs7kaLEn+zC3TlyX3YY/c7QvHbK6Q/0VONtfjvWnf8b7O3T +EsVQUW+Et1es1dMtKADi0fbnCppge6MLfTMOC69Tcz6g5X6QPDrBKn/oXf5OLdpj3Bg mdJw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i20si8973574otk.270.2020.01.28.09.18.41; Tue, 28 Jan 2020 09:18:54 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726066AbgA1RRp (ORCPT + 99 others); Tue, 28 Jan 2020 12:17:45 -0500 Received: from foss.arm.com ([217.140.110.172]:60876 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726182AbgA1RRp (ORCPT ); Tue, 28 Jan 2020 12:17:45 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 5E803328; Tue, 28 Jan 2020 09:17:44 -0800 (PST) Received: from bogus (e103737-lin.cambridge.arm.com [10.1.197.49]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 1E6273F52E; Tue, 28 Jan 2020 09:17:42 -0800 (PST) Date: Tue, 28 Jan 2020 17:17:36 +0000 From: Sudeep Holla To: Benjamin GAIGNARD Cc: "broonie@kernel.org" , "robh@kernel.org" , "arnd@arndb.de" , "shawnguo@kernel.org" , "s.hauer@pengutronix.de" , "fabio.estevam@nxp.com" , "lkml@metux.net" , Loic PALLARDY , "gregkh@linuxfoundation.org" , "linux-kernel@vger.kernel.org" , "linux-imx@nxp.com" , "kernel@pengutronix.de" , "linux-arm-kernel@lists.infradead.org" , "devicetree@vger.kernel.org" , "system-dt@lists.openampproject.org" , "stefano.stabellini@xilinx.com" , Sudeep Holla Subject: Re: [PATCH v2 0/7] Introduce bus firewall controller framework Message-ID: <20200128171639.GA36496@bogus> References: <20200128153806.7780-1-benjamin.gaignard@st.com> <20200128163628.GB30489@bogus> <7f54ec36-8022-a57a-c634-45257f4c6984@st.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <7f54ec36-8022-a57a-c634-45257f4c6984@st.com> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 28, 2020 at 04:46:41PM +0000, Benjamin GAIGNARD wrote: > > On 1/28/20 5:36 PM, Sudeep Holla wrote: > > On Tue, Jan 28, 2020 at 04:37:59PM +0100, Benjamin Gaignard wrote: > >> Bus firewall framework aims to provide a kernel API to set the configuration > >> of the harware blocks in charge of busses access control. > >> > >> Framework architecture is inspirated by pinctrl framework: > >> - a default configuration could be applied before bind the driver. > >> If a configuration could not be applied the driver is not bind > >> to avoid doing accesses on prohibited regions. > >> - configurations could be apllied dynamically by drivers. > >> - device node provides the bus firewall configurations. > >> > >> An example of bus firewall controller is STM32 ETZPC hardware block > >> which got 3 possible configurations: > >> - trust: hardware blocks are only accessible by software running on trust > >> zone (i.e op-tee firmware). > >> - non-secure: hardware blocks are accessible by non-secure software (i.e. > >> linux kernel). > >> - coprocessor: hardware blocks are only accessible by the coprocessor. > >> Up to 94 hardware blocks of the soc could be managed by ETZPC. > >> > > /me confused. Is ETZPC accessible from the non-secure kernel space to > > begin with ? If so, is it allowed to configure hardware blocks as secure > > or trusted ? I am failing to understand the overall design of a system > > with ETZPC controller. > > Non-secure kernel could read the values set in ETZPC, if it doesn't match > with what is required by the device node the driver won't be probed. > OK, but I was under the impression that it was made clear that Linux is not firmware validation suite. The firmware need to ensure all the devices that are not accessible in the Linux kernel are marked as disabled and this needs to happen before entering the kernel. So if this is what this patch series achieves, then there is no need for it. Please stop pursuing this any further or provide any other reasons(if any) to have it. Until you have other reasons, NACK for this series. Note you haven't cc-ed 2 people who has comments earlier[1][2] -- Regards, Sudeep [1] https://lkml.org/lkml/2018/2/27/512 [2] https://lkml.org/lkml/2018/2/27/598