Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2228955imu; Thu, 17 Jan 2019 10:28:06 -0800 (PST) X-Google-Smtp-Source: ALg8bN67p/Heh7a2XPwemuWZjiQ5vrrkl03BG57jNqvKyVtY+JZfw4h+k1Xt37r9asNxy7FfuTN4 X-Received: by 2002:a17:902:b48b:: with SMTP id y11mr15503544plr.200.1547749686497; Thu, 17 Jan 2019 10:28:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547749686; cv=none; d=google.com; s=arc-20160816; b=YqNaQfoLzuH/Pl684IadkkvTzAAPkC/yIBM4JEwaKsR1elaUbmgiAcY4bfxkx185fg T7vPjkM8s3VhtVkj8NXelPS/I641lwVEHtCC0GKWjLZLsK5kfsDzzPuQju7WciGbC3cr oA4/28/oPCSFXKWKxjQRS6EvYrrfem9NOww3WM19PjpufggFSK9PL/jCGLXInZeod6/S a/Es/54cg483TwDNElnuNRPyP9JzubCHutyE8XOlJztWBFR/MGHEgTJmcGLivP0wX4Tn lpj2ozBNkD7OqumXWMB2uestDJmDE2gRF3RGusJBg/o2W8unncuNI4gNQkajU4BK+WTI T+1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=2ghxFTyvqj3TzxkLh9ymWKnaJED4psYHG7LJWSOv7xE=; b=pLbY4VtI20eK9LDJZ6KOpFmvsTLeiG9ZpP4nA+IuJdSUPnmmVIN3xE3UoXN5SkUKRw 5DIDPaVpMkLGrZufhiOMa+uABCsG578v7AUHrtbfaOh+kcK0Mv+7fLdN9lo/W6gnKx6C sYjp7eWhZk4Xxs/5GAdorvceMadn+ztY0G7SNnp59yInIH13u596qtLOC1EcsZNro8+0 xv8mJD0YdqlqU3sK85Ugcw1P/ZCfj1EXriiTNA9AUC/y3gxm/57RbuyupUcNjzm6KeV7 HZPrybqxr9d9dP/AYVkA/TuWk6D/NHDar4Mvb1CvxJx8E3yJutpKuhv5NuYDRC54mOdM v86Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=QlqgMrmq; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m38si2087556pgl.125.2019.01.17.10.27.49; Thu, 17 Jan 2019 10:28:06 -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; dkim=pass header.i=@kernel.org header.s=default header.b=QlqgMrmq; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727579AbfAQR5g (ORCPT + 99 others); Thu, 17 Jan 2019 12:57:36 -0500 Received: from mail.kernel.org ([198.145.29.99]:33308 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727070AbfAQR5g (ORCPT ); Thu, 17 Jan 2019 12:57:36 -0500 Received: from mail-qt1-f181.google.com (mail-qt1-f181.google.com [209.85.160.181]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 177EF20868 for ; Thu, 17 Jan 2019 17:57:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1547747855; bh=aFoDpqYyvIa3XPsbditSEh0OFxF2BqwNiWwJrygHAXY=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=QlqgMrmq49+sejNQtjRK5F10YCozvuY6j/VzfXxvgpc/YjM+fWV1kvzVEQbrCk1Xf TijPnmQk3GELXX8X+k99/a1U/fjwqB+++G4/L8ch2isT9rNJHGtGZ+w+5gw3BStQ+c gK9ppYBONzS98hJeVGjpaoeX7VyKYkYNgmIzM/gk= Received: by mail-qt1-f181.google.com with SMTP id k12so12273896qtf.7 for ; Thu, 17 Jan 2019 09:57:35 -0800 (PST) X-Gm-Message-State: AJcUuke/7h1Yq0NfqjoZxfJxrbiHUjxXczwyjvTytz81is5Ynt2mCaoT MYrlGxCSaZStJNBxkAwLR/iA6p5W+qiEkp5atQ== X-Received: by 2002:a0c:e2ca:: with SMTP id t10mr12635189qvl.77.1547747854238; Thu, 17 Jan 2019 09:57:34 -0800 (PST) MIME-Version: 1.0 References: <20190114144202.27315-1-benjamin.gaignard@st.com> In-Reply-To: <20190114144202.27315-1-benjamin.gaignard@st.com> From: Rob Herring Date: Thu, 17 Jan 2019 11:57:21 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [RFC 0/7] Introduce bus domains controller framework To: Benjamin Gaignard Cc: Mark Brown , Arnd Bergmann , "linux-kernel@vger.kernel.org" , loic pallardy , Benjamin Gaignard Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 14, 2019 at 8:42 AM Benjamin Gaignard wrote: > > The goal of this framework is to offer an interface for the > hardware blocks controlling bus accesses rights. > > Bus domains controllers are typically used to control if a > hardware block can perform read or write operations on bus. Lots of things are domains. Power domains, clock domains, etc. But naming is hard. We now have the inter-connect binding which ATM only deals with bandwidth. Any reason we can't add access controls to that? > Smarter domains controllers could be able to define accesses > rights per hardware blocks to control where they can read > or write. > > Domains controller configurations are provided in device node, > parsed by the framework and send to the driver to apply them. > Each controller may need different number and type of inputs > to configure a domain so device-tree properties size have to > be define by using "#domainctrl-cells". > Domains configurations properties have to be named "domainsctrl-X" > on device node. > "domainsctrl-names" keyword can also be used to give a name to > a specific configuration. > > An example of bus domains controller is STM32 ETZPC hardware block > which got 3 domains: > - secure: hardware blocks are only accessible by software running on trust > zone. > - non-secure: hardware blocks are accessible by non-secure software (i.e. > linux kernel). > - coprocessor: hardware blocks are only accessible by the corpocessor. We already have a way to assign secure vs. non-secure with 'status'. Ignoring co-processors for a minute, why does that not work for you? Co-processors are so varied in terms of capabilities and view of the system, I'm not sure we can define something generic. > Up to 94 hardware blocks of the soc could be managed by ETZPC and > assigned to one of the three domains. > > It is an RFC, comments are welcome to help to create this framework, thanks. Finally, for a new, common binding, I'd like to see more than one platform using it (or at least an intent to use it). Rob