Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp631831ybx; Wed, 30 Oct 2019 02:29:02 -0700 (PDT) X-Google-Smtp-Source: APXvYqwwaYC2OGEIw/QTxBZgER1ltC0i7zFGydG7ICM/7lwOYXxjCi4lODrNbcheiy3LW6Ey83Ea X-Received: by 2002:aa7:de08:: with SMTP id h8mr29662845edv.169.1572427742549; Wed, 30 Oct 2019 02:29:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572427742; cv=none; d=google.com; s=arc-20160816; b=M7zTKM1CcowCwILUchnJoFq1fqCA53mXUf7P5MhNpWs29XrIVJ9bsCk3y+XuAVXk2x YgldlVi9O6n1jMiYKMJuJJcZc8XxQysp10xghcFrrLHF2Nr3iVlmJbJ7jUUT3CFXC/v5 yJhBI00s8ZBd1UxkmyRmJLO/7gsOKd4qtR3qiC/wZhG0U1WRPsDAvzIDE/WZdU1KWEcu Z5oc84wWpbRyOtTQ/3wx7PtThyVitQlPKgV5yZvaBb47VR6Ce3o6juuMKJv1RXkkeAoT DUfWu70Ba21popt2lQYlmrH0Nr9BblMllDQEyhUkcyarl0F8VxbV0aX9JhoT1byPKfp5 PWng== 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=MN5/XA2iWTn3JwsaVPfUNETYKLVHfkkM5TGKnq2qWow=; b=G+J5dNQw2Q5rb0FFFfHs2ZGRK+m4gLMPO31veJ3VfqjpNmXSPCVD2HvDy47krbEivr m+jp9gonXzBo1/+0Lsc5f0TGuTI0vxruxGZYnKxzFcPkiLEb+5SgwYFxr3V2AfFanUC/ 6vFr8an08eT/GpgG3z02a27FBxyn3qS83OTqy1y8jMo+UdQP7KKf5s7GbAWKUQq5mNO3 4ddWoYoC0LS2O4OUggrPL85PDuV8HiR4HCbH418hjJ2QO+1/dRPXbhXnpCtf5w0jsOO9 1SfVGGD1/SE/TYdrll8zAd/9nAV8vQw1Dl0QZED2PSo9ul9D+V9g8X/q5/PlXWSVdcjD vVHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=q4vfihaI; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r4si825331ejz.77.2019.10.30.02.28.39; Wed, 30 Oct 2019 02:29:02 -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=@linaro.org header.s=google header.b=q4vfihaI; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726065AbfJ3J2A (ORCPT + 99 others); Wed, 30 Oct 2019 05:28:00 -0400 Received: from mail-vk1-f196.google.com ([209.85.221.196]:38138 "EHLO mail-vk1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726028AbfJ3J2A (ORCPT ); Wed, 30 Oct 2019 05:28:00 -0400 Received: by mail-vk1-f196.google.com with SMTP id g14so318156vkl.5 for ; Wed, 30 Oct 2019 02:27:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=MN5/XA2iWTn3JwsaVPfUNETYKLVHfkkM5TGKnq2qWow=; b=q4vfihaI5SgnZO1mREK0EE92a2TcRqe5YARf2JUxGWe8b3RCSilUTop4ZV/z3M/1Ia weN9ltfEM6u2b4/2t7/tw+Nxzk9cRD14JW13Kz1VeE42C+IfgQ/qD2/hYVUPK3BAQwqG tlqjEzGFBCSsTNQ14MgdrT4ebi23gasDFuGezAvuHNHJVgg3LEBNiT6EXtL0homvbZhl mio1vgHviIVlTCyvDstI8u54o+OZPUxbYIwR8RMJpDrxPfE5AB+uNioto7r5yR/eGy3p WyJYHYunxFfhqU8bWoLWNd6oujzPiq2P6zitBof1M66HTaRyvjAV9LM2oWjqPhZdzTpp LUnw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=MN5/XA2iWTn3JwsaVPfUNETYKLVHfkkM5TGKnq2qWow=; b=gm3yL0Z4skTJ3skWPaWsHF0H3uTBiiswfNUf0bC0kJTAf+tPQojIATmZkMK0VwcrQF zgp+RC2MC2zlADpZq2RP0BjYGxnXsnkrUV4zKaaeEX4eT5GInSz7hMvvugGXgI1m1Qut yYQIv02gNllTUPZZx9exg07kDYo0yPT1/BOeyp7kSIVMqknXddry5hlP5DT8rkjKFAwu DNAuLfaEzJmRZFen/ruoC8o2oY/QQORp4BqNOiQICmBr1HpKMm8uyf1T8xpaL5TM5tnc 1lvjYghjOOcOelK2OBcUl0CbtUY2IR3ZBUoqAczs5E6sfx1QQrOTY+5lWPVdHlpfAGCT HTaw== X-Gm-Message-State: APjAAAXQPhgT0JsloW4Nn4SYV1QKPoCRgDqL1dyGbh3pAcah6tAWQF0D 9MPUr73GS6cRFl32GXXokhlAUaeTc2ULBmICXP93xg== X-Received: by 2002:a1f:b202:: with SMTP id b2mr14227092vkf.59.1572427678476; Wed, 30 Oct 2019 02:27:58 -0700 (PDT) MIME-Version: 1.0 References: <1571254641-13626-1-git-send-email-thara.gopinath@linaro.org> <1571254641-13626-7-git-send-email-thara.gopinath@linaro.org> <5DA88892.5000408@linaro.org> <5DA89267.30806@linaro.org> <20191029013648.GB27045@bogus> In-Reply-To: From: Ulf Hansson Date: Wed, 30 Oct 2019 10:27:21 +0100 Message-ID: Subject: Re: [PATCH v3 6/7] dt-bindings: soc: qcom: Extend RPMh power controller binding to describe thermal warming device To: Rob Herring Cc: Thara Gopinath , Eduardo Valentin , Zhang Rui , Daniel Lezcano , Bjorn Andersson , Andy Gross , Amit Kucheria , Mark Rutland , "Rafael J. Wysocki" , Linux PM , DTML , linux-arm-msm , Linux Kernel Mailing List 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 Tue, 29 Oct 2019 at 21:16, Rob Herring wrote: > > On Tue, Oct 29, 2019 at 5:07 AM Ulf Hansson wrote: > > > > On Tue, 29 Oct 2019 at 02:36, Rob Herring wrote: > > > > > > On Thu, Oct 17, 2019 at 12:10:15PM -0400, Thara Gopinath wrote: > > > > On 10/17/2019 11:43 AM, Ulf Hansson wrote: > > > > > On Thu, 17 Oct 2019 at 17:28, Thara Gopinath wrote: > > > > >> > > > > >> Hello Ulf, > > > > >> Thanks for the review! > > > > >> > > > > >> On 10/17/2019 05:04 AM, Ulf Hansson wrote: > > > > >>> On Wed, 16 Oct 2019 at 21:37, Thara Gopinath wrote: > > > > >>>> > > > > >>>> RPMh power controller hosts mx domain that can be used as thermal > > > > >>>> warming device. Add a sub-node to specify this. > > > > >>>> > > > > >>>> Signed-off-by: Thara Gopinath > > > > >>>> --- > > > > >>>> Documentation/devicetree/bindings/power/qcom,rpmpd.txt | 10 ++++++++++ > > > > >>>> 1 file changed, 10 insertions(+) > > > > >>>> > > > > >>>> diff --git a/Documentation/devicetree/bindings/power/qcom,rpmpd.txt b/Documentation/devicetree/bindings/power/qcom,rpmpd.txt > > > > >>>> index eb35b22..fff695d 100644 > > > > >>>> --- a/Documentation/devicetree/bindings/power/qcom,rpmpd.txt > > > > >>>> +++ b/Documentation/devicetree/bindings/power/qcom,rpmpd.txt > > > > >>>> @@ -18,6 +18,16 @@ Required Properties: > > > > >>>> Refer to for the level values for > > > > >>>> various OPPs for different platforms as well as Power domain indexes > > > > >>>> > > > > >>>> += SUBNODES > > > > >>>> +RPMh alsp hosts power domains that can behave as thermal warming device. > > > > >>>> +These are expressed as subnodes of the RPMh. The name of the node is used > > > > >>>> +to identify the power domain and must therefor be "mx". > > > > >>>> + > > > > >>>> +- #cooling-cells: > > > > >>>> + Usage: optional > > > > >>>> + Value type: > > > > >>>> + Definition: must be 2 > > > > >>>> + > > > > >>> > > > > >>> Just wanted to express a minor thought about this. In general we use > > > > >>> subnodes of PM domain providers to represent the topology of PM > > > > >>> domains (subdomains), this is something different, which I guess is > > > > >>> fine. > > > > >>> > > > > >>> I assume the #cooling-cells is here tells us this is not a PM domain > > > > >>> provider, but a "cooling device provider"? > > > > >> Yep. > > > > >>> > > > > >>> Also, I wonder if it would be fine to specify "power-domains" here, > > > > >>> rather than using "name" as I think that is kind of awkward!? > > > > >> Do you mean "power-domain-names" ? I am using this to match against the > > > > >> genpd names defined in the provider driver. > > > > > > > > > > No. If you are using "power-domains" it means that you allow to > > > > > describe the specifier for the provider. > > > > Yep. But won't this look funny in DT ? The provider node will have a sub > > > > node with a power domain referencing to itself Like below: Is this ok ? > > > > > > > > rpmhpd: power-controller { > > > > compatible = "qcom,sdm845-rpmhpd"; > > > > #power-domain-cells = <1>; > > > > > > > > ... > > > > ... > > > > mx_cdev: mx { > > > > #cooling-cells = <2>; > > > > power-domains = <&rpmhpd SDM845_MX>; > > > > }; > > > > > > > > > > The whole concept here seems all wrong to me. Isn't it what's in the > > > power domain that's the cooling device. A CPU power domain is not a > > > cooling device, the CPU is. Or we wouldn't make a clock a cooling > > > device, but what the clock drives. > > > > Well, I don't think that's entirely correct description either. > > > > As I see it, it's really the actual PM domain (that manages voltages > > for a power island), that needs to stay in full power state and > > increase its voltage level, as to warm up some of the silicon. It's > > not a regular device, but more a characteristics of how the PM domain > > can be used. > > First I've heard of Si needing warming... I guess people go to cooler places with their devices. :-) > > I think I'd just expect the power domain provider to know which > domains to power on then. Yeah, I agree. This seems reasonable. Thanks! Kind regards Uffe