Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp9629201ybi; Wed, 24 Jul 2019 07:20:12 -0700 (PDT) X-Google-Smtp-Source: APXvYqzma7n5AB9lr19RjTE6PaNsvA/Te/DbVqi/3H2SugcEubHzWLB0Z7gUN1bMjzLniEuRgtti X-Received: by 2002:a17:902:bd06:: with SMTP id p6mr88434812pls.189.1563978012824; Wed, 24 Jul 2019 07:20:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563978012; cv=none; d=google.com; s=arc-20160816; b=rQ0hXy3owIm6XuwdtW/IBgodqwh6V6GRp/ADrWKA/N/omBjNuJYSDM8rR0gLzEYjAr 8ZnOBZTZ+3BLpx1Ie8ryUVm+9JXjQVkT969mpi1WOrkZFLuxBLZzy1brYFt5mHVGocDY TAlv5inzRT0j6kuM3UxnQPpXHRYs1iH3DMegb772u+67cZW7Vhi8R/yrNceA80iJPoqi qc29c/1bKb1JPopFKgWQdw+97wS36VzTi5Bf5e4PGRNkS6dqxv1TZhJKMg0iauddDhBp CcgPU9k4ABV0UpX8u1ZjKM5W3wM1nkCwTt/r2xhrWJtRwD49h13fEpoLs8OXBGUa0UL6 FLew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:user-agent:from:cc:to:subject :references:in-reply-to:content-transfer-encoding:mime-version :message-id:dkim-signature; bh=i6ucO8M1kBwfk/WDeuCHxIoA+2DfAiPuMamyFSvxMIE=; b=B6cSULfR/Nsmc4yYU9o0aKp0x90rpZkGD89aOcmvLLmU5LFj+E9wpBA0E7q3maYfz6 Zuyt5u5L4doIX8+y7wf3kZCjuB16QFHhIHC8c3NxImjGb2BsduNAxf7NrVPmikWmeXqy Us+mVjNdXLoKaSXK56YK8GqOwdK3mUmW3UNr6K6mvqCnJXtTJPKl1do+fYZKwPPbPsWd ffBdSPZ/W43qPs+FlEzVxLIeROxNUH2LZOtyJulS3QVWsuFWfsMmWw0jVOJoQGBDRXQ1 Gw3H214XVXzRpcaOM6v0s784jL3wfTYZxSZtnO+efmWi/xQWzlrWl60CXbI+GKRTPgB/ kG2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=TND1gWT+; 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=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s14si16528377pgj.347.2019.07.24.07.19.56; Wed, 24 Jul 2019 07:20:12 -0700 (PDT) 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=@chromium.org header.s=google header.b=TND1gWT+; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728225AbfGXOST (ORCPT + 99 others); Wed, 24 Jul 2019 10:18:19 -0400 Received: from mail-pf1-f195.google.com ([209.85.210.195]:33127 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728184AbfGXOSS (ORCPT ); Wed, 24 Jul 2019 10:18:18 -0400 Received: by mail-pf1-f195.google.com with SMTP id g2so21042183pfq.0 for ; Wed, 24 Jul 2019 07:18:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=message-id:mime-version:content-transfer-encoding:in-reply-to :references:subject:to:cc:from:user-agent:date; bh=i6ucO8M1kBwfk/WDeuCHxIoA+2DfAiPuMamyFSvxMIE=; b=TND1gWT+zyPtTrknjApjowmDcsWxhTeFFGQQKuHPjwHM2p+eRGXgyM/jgeho5dZ5b/ bLE5zwWspO66n2PXUX4fU3WNEigbELc5ZOvRddO9zVh/AEf6mn610vnp/GjuLr8pjT3r Tl8gh340iXQfZf7V6Z0eW5ED8IBh6e7w7hGeQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:mime-version :content-transfer-encoding:in-reply-to:references:subject:to:cc:from :user-agent:date; bh=i6ucO8M1kBwfk/WDeuCHxIoA+2DfAiPuMamyFSvxMIE=; b=DAnUb5z0gYoXuntmwaeYT8i09HJIsqNzWMAYV7F+9xlYfKRVHNR8pVqi2caC2ZBUPD +kPePlR410q51387dKnSgWe5Q35AECYC92kJo8dmYWTzwVdfkv2HZ7jAz71ZHsvQEqdi L/uFJU+z+T0IEidwgPt41cRyEAMFQ7Ma0EfSnO9DGZ0a39b4UYSbvVjqhASwQyPKKkTg B7AeA02bI4C14pidzw9/AUHDB0+/lUGajQ/BK+7pwnJYvuf7fczxdkNWdgoGS+h5F8e7 i6EnWy12DiFWS1XuHnT4sm5FVL+t9EA1CtpO2ZgvX4u+b9mD/G3HwOYmPHZU9ka/gHim UU4w== X-Gm-Message-State: APjAAAXx4A3QxNcQVMfTOi4x+jhAG1A+eJvbfYeNFNncQ84ocj5LOwVt wsnKwGe7TV6A/2veN93QJA17Sg== X-Received: by 2002:a17:90a:d151:: with SMTP id t17mr87008292pjw.60.1563977898088; Wed, 24 Jul 2019 07:18:18 -0700 (PDT) Received: from chromium.org ([2620:15c:202:1:fa53:7765:582b:82b9]) by smtp.gmail.com with ESMTPSA id j20sm44352358pfr.113.2019.07.24.07.18.17 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Wed, 24 Jul 2019 07:18:17 -0700 (PDT) Message-ID: <5d3868a9.1c69fb81.876aa.ac30@mx.google.com> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <8c181f08-559b-5d77-a617-65cfd3d5da55@codeaurora.org> References: <1563568344-1274-1-git-send-email-daidavid1@codeaurora.org> <1563568344-1274-2-git-send-email-daidavid1@codeaurora.org> <5d371ce7.1c69fb81.9650.8239@mx.google.com> <8c181f08-559b-5d77-a617-65cfd3d5da55@codeaurora.org> Subject: Re: [PATCH 1/2] dt-bindings: interconnect: Update Qualcomm SDM845 DT bindings To: David Dai , bjorn.andersson@linaro.org, georgi.djakov@linaro.org, robh+dt@kernel.org Cc: evgreen@google.com, ilina@codeaurora.org, seansw@qti.qualcomm.com, elder@linaro.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org From: Stephen Boyd User-Agent: alot/0.8.1 Date: Wed, 24 Jul 2019 07:18:16 -0700 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting David Dai (2019-07-23 14:48:42) > On 7/23/2019 7:42 AM, Stephen Boyd wrote: > > Quoting David Dai (2019-07-19 13:32:23) > >> +- compatible : shall contain only one of the following: > >> + "qcom,sdm845-bcm-voter", > >> + > >> +Examples: > >> + > >> +apps_rsc: rsc@179c0000 { > > But there isn't a reg property. > I'll change this to the generic example with just apps_rsc: rsc { > > > >> + label =3D "apps_rsc"; > > Is label required? Any answer? > > > >> + compatible =3D "qcom,rpmh-rsc"; > >> + > >> + apps_bcm_voter: bcm_voter { > >> + compatible =3D "qcom,sdm845-bcm-voter"; > >> + }; > >> +} > >> + > >> +disp_rsc: rsc@179d0000 { > >> + label =3D "disp_rsc"; > >> + compatible =3D "qcom,rpmh-rsc"; > >> + > >> + disp_bcm_voter: bcm_voter { > >> + compatible =3D "qcom,sdm845-bcm-voter"; > >> + }; > >> +} > >> diff --git a/Documentation/devicetree/bindings/interconnect/qcom,sdm84= 5.txt b/Documentation/devicetree/bindings/interconnect/qcom,sdm845.txt > >> index 5c4f1d9..27f9ed9 100644 > >> --- a/Documentation/devicetree/bindings/interconnect/qcom,sdm845.txt > >> +++ b/Documentation/devicetree/bindings/interconnect/qcom,sdm845.txt [...] > >> + > >> +mem_noc: interconnect@1380000 { > >> + compatible =3D "qcom,sdm845-mem_noc"; > >> + reg =3D <0 0x1380000 0 0x27200>; > >> + #interconnect-cells =3D <1>; > >> + qcom,bcm-voter =3D <&apps_bcm_voter>, <&disp_bcm_voter>; > >> +}; > > How does a consumer target a particular RSC? For example, how can > > display decide to use the disp_bcm_voter node from mem_noc here? Maybe > > you can add that consumer to the example? >=20 > I was thinking that the association between the bcm voters and the icc=20 > nodes would be handled by the interconnect provider, and that there=20 > would be a set of display specific icc nodes with their own unique IDs=20 > that the consumers could reference. I will mention this as part of the=20 > description and provide an example. >=20 > Ex: interconnects =3D <&mmss_noc MASTER_MDP0_DISP &mem_noc SLAVE_EBI_DISP= >; >=20 It looks backwards to me. Don't the consumers want to consume a particular RSC, i.e. apps or display RSC, so they can choose where to put the bcm vote and then those RSCs want to find MMIO registers for mmss_noc or mem_noc that they have to write to tune something else like QoS? If the MMIO space is the provider then I'm lost how it can differentiate between the RSCs that may be targetting the particular NoC.=20 Maybe I've just completely missed something and this is all decided already. If so, sorry, I'm just trying to understand.