Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp2740640ybh; Mon, 9 Mar 2020 12:02:57 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtpwYPcpfWcyf58KTnYOQalsNZq7aPrKefWCs256d2tD4f+NDFYQvzfz1GzBi7tcO6xhZZ5 X-Received: by 2002:a9d:5a8a:: with SMTP id w10mr3748952oth.200.1583780575284; Mon, 09 Mar 2020 12:02:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583780575; cv=none; d=google.com; s=arc-20160816; b=cI2tSfxfXJ6qhH/DN/qgcRHGjWAVqbGYCnnaVV0ryhy0cOQ7iUc9drkaRNtm0gme2y ru8JlgB7YyeDGXylMfvTLleXvEv6gnG7n9tEL3T64hoaih+FTUIHGoCVulYC+VYxppzf 940jMBnrGseGXhSOJrrWLLi/pshC1wTEaAP9YE9xbwlOPz01Vx2CzzhENRfMwbWIvh2+ aqU3W9GB0JBLkAxX19mMhy3SMF97Wfom7uZjmGt/ScdPdZ0E4lCOP/RHleSI4gKJI1h7 pkdmoyhypA2ZgOR5FGIZC4LMjZC/ywUO6eAaSnVcmtjXiO7XvVln4lQwkZI1AOZCZuP+ I/Dw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:message-id:date:to:cc:from :subject:references:in-reply-to:content-transfer-encoding :mime-version:dkim-signature; bh=vlwqcKTAzq+tnews6JZmD9exPu8HmU2dnVIUxFyHgnU=; b=uu6OR//z2YLLpumagQSB4asYiGLTpYcbyCJ2zQz9xgejn9MWamB54shAd7daklyxXg Yi46UTI4KkFLYr4SaGfNBcRh3NVqVxCtUtpP285HbIulC6WoR+zA21P0CwRAyvunQ6Lg w9Kx1ip7vh6zcT9iHbiLW2/ZfJEgO/dbqeFpIXsqwAImH1rIVkDA7rbNzWKnCbXm2cWi /0REgt8UKpnDFs+gCaALG4hUiae1OKl3GzTYPhitCXP5EUjczHG8QQkJVLg/Ybr0FdXY z5JUqozbBbJQwXVmLOmI6df4OSheOMzOoNLT/Tnzt61bEP+m7bKq0OBYqHuGANCEjAGo SLEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=D0ZkahO1; 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 r3si3597484otc.58.2020.03.09.12.02.41; Mon, 09 Mar 2020 12:02:55 -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=D0ZkahO1; 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 S1727535AbgCITBE (ORCPT + 99 others); Mon, 9 Mar 2020 15:01:04 -0400 Received: from mail-pl1-f195.google.com ([209.85.214.195]:34690 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727387AbgCITBE (ORCPT ); Mon, 9 Mar 2020 15:01:04 -0400 Received: by mail-pl1-f195.google.com with SMTP id a23so1665522plm.1 for ; Mon, 09 Mar 2020 12:01:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:content-transfer-encoding:in-reply-to:references :subject:from:cc:to:date:message-id:user-agent; bh=vlwqcKTAzq+tnews6JZmD9exPu8HmU2dnVIUxFyHgnU=; b=D0ZkahO1wynqPGY55sNCGoG0peiJ8j4nO/0C6g+hf9C4UnZp478yFslg/fitmtiVD5 LPAHpOrV6mOIZqUA57C4QgVZvB7xIohv2jSOsNGBzIZJVr/eElHEYyyKJjtq4XUblYNx sR0ojQX7gfHwLsFgA3yFU/YcsiwyLiExJt6jE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:content-transfer-encoding :in-reply-to:references:subject:from:cc:to:date:message-id :user-agent; bh=vlwqcKTAzq+tnews6JZmD9exPu8HmU2dnVIUxFyHgnU=; b=ovInCV9gM+3+uAymieLJvIVwK666bfoTFP2X2djL/fliMuL/OsxYYzJ1OOMi9Sl3Xo 6PJmY+F6nPsWhGsauWQHoTSH1IXhMgy3UHTmjCi8TDAFCTJd1Xqqg10XWLiNpOrapvpy wIZuLSY1kO2KIgBRH6nCbpAmRlIpsiCJdc7DmFDy6ByOExLmtOnFclCdl5FjOG5n2OyY XZw60a4wQxxvryilkVbW5/N2hUI0dSng9IcsfU9oVcU0mvSwjOl4j8dYVN1BcS+VbFz/ EY2CgRtmjwmHTwluSRfbqTly7gVjmBIrkauSlcntsulZrRDxkmu+ERyXBU/qf4dL3Z4+ zOnw== X-Gm-Message-State: ANhLgQ0tWt2m2wvtKDzlvCRmn0jAgrQ7hrW0nKAiUySD+Iu8CM9h4A5X 0Xh310FDduzMvlg1K0W/xSLKMg== X-Received: by 2002:a17:902:aa49:: with SMTP id c9mr17784508plr.145.1583780462732; Mon, 09 Mar 2020 12:01:02 -0700 (PDT) Received: from chromium.org ([2620:15c:202:1:fa53:7765:582b:82b9]) by smtp.gmail.com with ESMTPSA id y9sm293333pjj.17.2020.03.09.12.01.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Mar 2020 12:01:02 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20200309185120.GC1098305@builder> References: <1583752457-21159-1-git-send-email-mkshah@codeaurora.org> <1583752457-21159-2-git-send-email-mkshah@codeaurora.org> <158377818530.66766.4481786840843320343@swboyd.mtv.corp.google.com> <20200309185120.GC1098305@builder> Subject: Re: [PATCH v4 1/4] dt-bindings: Introduce SoC sleep stats bindings From: Stephen Boyd Cc: Maulik Shah , evgreen@chromium.org, mka@chromium.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, agross@kernel.org, dianders@chromium.org, rnayak@codeaurora.org, ilina@codeaurora.org, lsrao@codeaurora.org, Mahesh Sivasubramanian , devicetree@vger.kernel.org To: Bjorn Andersson Date: Mon, 09 Mar 2020 12:01:01 -0700 Message-ID: <158378046147.66766.9861199454487445583@swboyd.mtv.corp.google.com> User-Agent: alot/0.9 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Bjorn Andersson (2020-03-09 11:51:20) > On Mon 09 Mar 11:23 PDT 2020, Stephen Boyd wrote: >=20 > > Quoting Maulik Shah (2020-03-09 04:14:14) > > > From: Mahesh Sivasubramanian > > >=20 > > > Add device binding documentation for Qualcomm Technologies, Inc. (QTI) > > > SoC sleep stats driver. The driver is used for displaying SoC sleep > > > statistic maintained by Always On Processor or Resource Power Manager. > > >=20 > > > Cc: devicetree@vger.kernel.org > > > Signed-off-by: Mahesh Sivasubramanian > > > Signed-off-by: Lina Iyer > > > Signed-off-by: Maulik Shah > > > Reviewed-by: Rob Herring > > > Reviewed-by: Bjorn Andersson > > > --- > > > .../bindings/soc/qcom/soc-sleep-stats.yaml | 46 ++++++++++++= ++++++++++ > > > 1 file changed, 46 insertions(+) > > > create mode 100644 Documentation/devicetree/bindings/soc/qcom/soc-sl= eep-stats.yaml > > >=20 > > > diff --git a/Documentation/devicetree/bindings/soc/qcom/soc-sleep-sta= ts.yaml b/Documentation/devicetree/bindings/soc/qcom/soc-sleep-stats.yaml > > > new file mode 100644 > > > index 00000000..7c29c61 > > > --- /dev/null > > > +++ b/Documentation/devicetree/bindings/soc/qcom/soc-sleep-stats.yaml > > > @@ -0,0 +1,46 @@ > > > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > > > +%YAML 1.2 > > > +--- > > > +$id: http://devicetree.org/schemas/soc/qcom/soc-sleep-stats.yaml# > > > +$schema: http://devicetree.org/meta-schemas/core.yaml# > > > + > > > +title: Qualcomm Technologies, Inc. (QTI) SoC sleep stats bindings > > > + > > > +maintainers: > > > + - Maulik Shah > > > + - Lina Iyer > > > + > > > +description: > > > + Always On Processor/Resource Power Manager maintains statistics of= the SoC > > > + sleep modes involving powering down of the rails and oscillator cl= ock. > > > + > > > + Statistics includes SoC sleep mode type, number of times low power= mode were > > > + entered, time of last entry, time of last exit and accumulated sle= ep duration. > > > + > > > +properties: > > > + compatible: > > > + enum: > > > + - qcom,rpmh-sleep-stats > > > + - qcom,rpm-sleep-stats > > > + > > > + reg: > > > + maxItems: 1 > > > + > > > +required: > > > + - compatible > > > + - reg > > > + > > > +examples: > > > + # Example of rpmh sleep stats > > > + - | > > > + rpmh_sleep_stats@c3f0000 { > > > + compatible =3D "qcom,rpmh-sleep-stats"; > > > + reg =3D <0 0xc3f0000 0 0x400>; > > > + }; > > > + # Example of rpm sleep stats > > > + - | > > > + rpm_sleep_stats@4690000 { > >=20 > > Node names don't have underscores. It really feels like we should be ab= le > > to get away with not having this device node at all. Why can't we have > > the rpm message ram be a node that covers the entire range and then have > > that either create a platform device for debugfs stats or just have it > > register the stat information from whatever driver attaches to that > > node? > >=20 > > Carving this up into multiple nodes and making compatible strings > > doesn't seem very useful here because we're essentially making device > > nodes in DT for logical software components that exist in the rpm > > message ram. >=20 > It's been a while since I discussed this with Lina, but iirc I opted for > the model you suggest and we concluded that it wouldn't fit with the RPM > case. >=20 > And given that, for reasons unknown to me, msgram isn't a single region, > but a set of adjacent memory regions, this does seem to represent > hardware better. >=20 I guess there's message ram and code ram or something like that? Maybe that's the problem? Either way it sounds like the node name needs to be fixed to have dashes and then this is fine to keep. Describing memory like this in DT just makes me sad.