Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp936217ybx; Wed, 30 Oct 2019 07:29:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqzMTlHdiRUPgZNT1qOybdUWdjsCfznkPguKtiiBoVeDe/USOEKcTEdzTDoU9Uz/CPU0b76E X-Received: by 2002:aa7:c942:: with SMTP id h2mr33593784edt.238.1572445764966; Wed, 30 Oct 2019 07:29:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572445764; cv=none; d=google.com; s=arc-20160816; b=qftXGDH9d9C1VCbiL6qb2Dm+JuwvBKqQQ//kf16LTyMJKk0Z4hjCftPlE+w+9x6G6c D6dglbCg5XGwSjldBRG3dkhc4/KbUJYgxBYsk2ANeW9N5s6S18DPsaIFkqOC+Ob7zqzS V0kEAF219Q8EwK9ekZjC2Me9gBVPVeyh1dJYPNugBzZxpoVpxhm0ssFyUJuwz4E87YYs tRnOn3BuDkyXta3qmKjKEV9DM8SnHOjRdEECCb03XoelosHiR/zZG0QhTcSkr+y+nB0e E7tGv88erMXRJmdNmE4EiNoXvqTe/2KpkB+f2Fc+bNXfZv9N2dUHbtuiXyGwXC772pPk GWLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:cc:references:to :subject:dkim-signature; bh=0Vz1KDYCDT2nsHaipdZBgphD7z8UkOtZoGz67YhDtMM=; b=XJPkGJ5TsvxrQZ5gDMLKxadIvHrVkhY9ECPZrXBqJrN6qhIoN5wpFi8heQM5k9adKp 06/yOUSE+6EwtEX8sVCRIjYgV/j2M61XFlVoZWAaW1vON1fyi5eBOipClE7NyQAT14c7 hAiVlQi6PJy3cO907OfYFj3eZY6NCfARx3Z42FUo3zTkBgdu+HFR41V7AWmbnxqgs4Xx 13u8ipHr1s4CpW2YyzGl3SJ6M7PQW1Me5ZuQ80PJpV1DtWIOIkHEVpAQOf5mboPK+VPo aVepYLDaAtedgvwIoj//g/wo1aIStmnuH5hFfZ1sjclKXS6MgDKJIYEnen1MT6HW7Q2o B1xw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=JPfoLkqB; 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 m9si1261644ejo.46.2019.10.30.07.29.00; Wed, 30 Oct 2019 07:29:24 -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=JPfoLkqB; 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 S1726650AbfJ3O1s (ORCPT + 99 others); Wed, 30 Oct 2019 10:27:48 -0400 Received: from mail-qk1-f194.google.com ([209.85.222.194]:33192 "EHLO mail-qk1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726137AbfJ3O1r (ORCPT ); Wed, 30 Oct 2019 10:27:47 -0400 Received: by mail-qk1-f194.google.com with SMTP id 71so2953946qkl.0 for ; Wed, 30 Oct 2019 07:27:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding; bh=0Vz1KDYCDT2nsHaipdZBgphD7z8UkOtZoGz67YhDtMM=; b=JPfoLkqBMtflePcsG2m0PMHTXAiStkOEa8LPn1smF+pru4l/wbDQztqjA/77KBu5b8 +4+TM8gotpTQHMlqQgNgVarr6Ksgg2u76AA+c/CPubiyByGEFkoBr5/J+fDLdtW5Xc98 x9EB/fmVJdZnaEdGdCSCY8Mp0JtRoMcMRDAofwL/xaDRcV18nSTVhzE0kDrQiLVPuMl8 Kyv4XqSMWKENZC3EVFmg9K+7/953SfZyjKmawXRQBMCmgdT/+2UGixJM2HCgx5PBD2PN JB+8SsoBrgiZ8e3NJe7G5Qv6gti7JjjIby6foHIcDiQtgmEUZKDe4iVyT6S4d4l4naPe QkCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:cc:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=0Vz1KDYCDT2nsHaipdZBgphD7z8UkOtZoGz67YhDtMM=; b=G0O3tnutFBVOtYXWQC+tb41dPM8oSXU7YXZtii6/OfcEI2Ry7MXNeEcJh434ypRFvn GjUYkdzfVNGoFD1j00B4bBqHNMj3Er4U/nR/mRLkwWZpWERfAJSMoLazT1FT6catn8Of 2jDKl6di4yeQbFJLimwNZErSX00J5ezI06yhOm6SFr11qyQCj83Yxa6Pu5Zn+eq5ReeK yvqUsZ0ovQ1wF0D49NaXr7lwmGNhcx+QdhSiVIIuzCVTULU9y0F5BeN/LJf8xXpsrSYj 0jDvI33jPH5OhCjCAViivRyQeHmIFV+giv4XWv8T16BriwScGl8VcS3LL7bIK/hhz52x wJag== X-Gm-Message-State: APjAAAU7TZ9YL2gacqcD2y0JDjuL7yinG8jrjfnaYI2nCkKMbeHp10Zn ebvwz2uGlGL2uQYDfPK1BiboPmTDHPHnww== X-Received: by 2002:a37:7943:: with SMTP id u64mr104655qkc.295.1572445665090; Wed, 30 Oct 2019 07:27:45 -0700 (PDT) Received: from [192.168.1.169] (pool-71-255-246-27.washdc.fios.verizon.net. [71.255.246.27]) by smtp.gmail.com with ESMTPSA id y33sm300083qta.18.2019.10.30.07.27.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 30 Oct 2019 07:27:44 -0700 (PDT) Subject: Re: [PATCH v3 6/7] dt-bindings: soc: qcom: Extend RPMh power controller binding to describe thermal warming device To: Rob Herring , Ulf Hansson 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> Cc: 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 From: Thara Gopinath Message-ID: <5DB99DDE.3090308@linaro.org> Date: Wed, 30 Oct 2019 10:27:42 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Rob, Thanks for the review. On 10/29/2019 04:16 PM, 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... Cold regions and non-closing of circuits is what I am told. > > I think I'd just expect the power domain provider to know which > domains to power on then. I will just retain #cooling-cells in the power domain provider and let the driver identify the actual power domains. > > Rob > -- Warm Regards Thara