mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Gaurav Kohli <gaurav.kohli@oss.qualcomm.com>
To: Daniel Lezcano <daniel.lezcano@oss.qualcomm.com>,
	Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Cc: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>,
	Bjorn Andersson <andersson@kernel.org>,
	Mathieu Poirier <mathieu.poirier@linaro.org>,
	Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>,
	Amit Kucheria <amit.kucheria@oss.qualcomm.com>,
	Manivannan Sadhasivam <mani@kernel.org>,
	Konrad Dybcio <konradybcio@kernel.org>,
	Kees Cook <kees@kernel.org>,
	"Gustavo A. R. Silva" <gustavoars@kernel.org>,
	cros-qcom-dts-watchers@chromium.org,
	linux-arm-msm@vger.kernel.org, linux-remoteproc@vger.kernel.org,
	devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
	linux-pm@vger.kernel.org, linux-hardening@vger.kernel.org,
	Manaf Meethalavalappu Pallikunhi
	<manaf.pallikunhi@oss.qualcomm.com>
Subject: Re: [PATCH v4 01/10] dt-bindings: firmware: qcom: tmd: add TMD device type constants
Date: Tue, 21 Jul 2026 12:18:36 +0530	[thread overview]
Message-ID: <ffe1524e-6dfd-4394-a5e7-c9090dadc582@oss.qualcomm.com> (raw)
In-Reply-To: <3b9f1b3d-4c06-4006-82d5-d59ce2101070@oss.qualcomm.com>



On 7/9/2026 1:53 PM, Daniel Lezcano wrote:
> 
> 
> Le 09/07/2026 à 09:58, Dmitry Baryshkov a écrit :
>> On Thu, Jul 09, 2026 at 09:42:04AM +0200, Daniel Lezcano wrote:
>>>
>>>
>>> Le 09/07/2026 à 09:37, Dmitry Baryshkov a écrit :
>>>> On Thu, Jul 09, 2026 at 10:54:26AM +0530, Gaurav Kohli wrote:
>>>>>
>>>>>
>>>>> On 7/8/2026 7:55 PM, Dmitry Baryshkov wrote:
>>>>>> On Tue, Jul 07, 2026 at 03:55:13PM +0530, Gaurav Kohli wrote:
>>>>>>>
>>>>>>>
>>>>>>> On 7/7/2026 1:04 AM, Dmitry Baryshkov wrote:
>>>>>>>> On Mon, Jul 06, 2026 at 08:11:35PM +0200, Daniel Lezcano wrote:
>>>>>>>>> On 7/6/26 19:47, Dmitry Baryshkov wrote:
>>>>>>>>>> On Mon, Jul 06, 2026 at 07:03:18PM +0200, Daniel Lezcano wrote:
>>>>>>>>>>> On 7/3/26 17:42, Dmitry Baryshkov wrote:
>>>>>>>>>>>> On Fri, Jul 03, 2026 at 07:43:39PM +0530, Gaurav Kohli wrote:
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> On 7/3/2026 1:23 PM, Konrad Dybcio wrote:
>>>>>>>>>>>>>> On 7/3/26 7:03 AM, Gaurav Kohli wrote:
>>>>>>>>>>>>>>> Add Device Tree binding constants for Qualcomm Thermal 
>>>>>>>>>>>>>>> Mitigation
>>>>>>>>>>>>>>> Device (TMD) types used by remoteproc-backed thermal 
>>>>>>>>>>>>>>> cooling devices.
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Qualcomm remote processors expose thermal mitigation 
>>>>>>>>>>>>>>> endpoints
>>>>>>>>>>>>>>> through QMI. These endpoints can be registered with the 
>>>>>>>>>>>>>>> thermal
>>>>>>>>>>>>>>> framework via the `#cooling-cells` property on the 
>>>>>>>>>>>>>>> remoteproc node.
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> The QMI TMD protocol identifies devices using string 
>>>>>>>>>>>>>>> names (for example,
>>>>>>>>>>>>>>> "pa", "modem", and "cdsp_sw"), while the DT cooling- 
>>>>>>>>>>>>>>> device binding with
>>>>>>>>>>>>>>> `#cooling-cells = <3>` requires numeric device id in the 
>>>>>>>>>>>>>>> form:
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>          <&phandle device_id min_state max_state>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Define common TMD device index constants shared across 
>>>>>>>>>>>>>>> currently
>>>>>>>>>>>>>>> supported platforms. If a future target requires a 
>>>>>>>>>>>>>>> different mapping,
>>>>>>>>>>>>>>> additional target-specific constants can be introduced 
>>>>>>>>>>>>>>> while preserving
>>>>>>>>>>>>>>> existing DT ABI.
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Signed-off-by: Gaurav Kohli <gaurav.kohli@oss.qualcomm.com>
>>>>>>>>>
>>>>>>>>> [ ... ]
>>>>>>>>>
>>>>>>>>>>>> Why are you using only those TMD devices?
>>>>>>>>>>>>
>>>>>>>>>>>>> More constants can be added as needed.
>>>>>>>>>>>>
>>>>>>>>>>>> Kodiak is one of the supported platforms.
>>>>>>>>>>>
>>>>>>>>>>> What would be the benefit of having more than thirteen 
>>>>>>>>>>> cooling devices
>>>>>>>>>>> declared in the thermal framework and having only a couple of 
>>>>>>>>>>> them mapped in
>>>>>>>>>>> a thermal zone ?
>>>>>>>>>>>
>>>>>>>>>>> I agree there are more TMDs but if they are unused for the 
>>>>>>>>>>> moment, why do we
>>>>>>>>>>> need to add them ? Can we do that incrementally ?
>>>>>>>>>>
>>>>>>>>>> That's what I am trying to understand: why the implementation 
>>>>>>>>>> uses only
>>>>>>>>>> the selected two devices, if the modem on Kodiak supports 
>>>>>>>>>> others. How
>>>>>>>>>> can we find out, which TMDs to use on other devices.
>>>>>>>>>
>>>>>>>>> My understanding is that is an initial thermal setup. Gaurav 
>>>>>>>>> will add them
>>>>>>>>> step by step while setting up all the thermal zones instead of 
>>>>>>>>> sending a big
>>>>>>>>> patchset. And TBH, that will be much easier to review.
>>>>>>>>
>>>>>>>> In such a case it should be noted in the commit message and/or 
>>>>>>>> cover
>>>>>>>> letter.
>>>>>>>
>>>>>>> Thanks for the review/guidance. Not all TMD endpoints are 
>>>>>>> relevant for
>>>>>>> kernel thermal zone binding — some like BCL and cold temperature 
>>>>>>> are handled
>>>>>>> from userspace when needed. The constants here cover only
>>>>>>
>>>>>> What if there is no userspace? Or the userspace is different from 
>>>>>> what
>>>>>> you expect? I doubt we have TMD-speaking userspace yet.
>>>>>
>>>>> Thanks for mail, The TMD userspace implementation is available 
>>>>> upstream at
>>>>> https://github.com/qualcomm/qmi-framework.
>>>>
>>>> Is it?
>>>>
>>>> lumag@rohan:/tmp/qmi-framework$ git grep -i tmd
>>>> lumag@rohan:/tmp/qmi-framework$
>>>>
>>>> I found no traces of TMD there. Moreover, I don't see why QMI framework
>>>> implementation would react to thermal events.
>>>>
>>>>>>> what is needed for modem and CDSP thermal zones on the currently 
>>>>>>> posted
>>>>>>> targets.
>>>>>>
>>>>>> Again, SLPI, ADSP?
>>>>>
>>>>> Sorry, I should have said "generic subsystems" rather than listing 
>>>>> specific
>>>>> ones. SLPI and ADSP do not require active thermal mitigation on these
>>>>> platforms.
>>>>
>>>> Could you please provide details, then. What is cpuv_restriction_cold
>>>> TMD?
>>>
>>> It warms up the zone when the temperature is too cold
>>
>> So, if we ever get back to supporting warming up, these TMDs would
>> become relevant. Am I right?
> Probably
> 
> Can we do some progress with these TMDs definition ?
> 
> Spending 95% of the effort to discuss 1% of the proposed changes, which 
> is always DT discussion, is quite frustrating :/
> 
> You want to add all defines for existing TMDs for all platforms ?
> 
> We are talking about numerical values right ? Why is it a problem to add 
> their define later ?

Sent a new version. Added a note in the cover letter clarifying that 
only kernel-managed TMDs are included in the DT binding. Please review.
> 


  reply	other threads:[~2026-07-21  6:48 UTC|newest]

Thread overview: 45+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-03  5:03 [PATCH v4 00/10] Add support for Qualcomm remoteproc subsystem cooling Gaurav Kohli
2026-07-03  5:03 ` [PATCH v4 01/10] dt-bindings: firmware: qcom: tmd: add TMD device type constants Gaurav Kohli
2026-07-03  7:47   ` Krzysztof Kozlowski
2026-07-03 10:14     ` Gaurav Kohli
2026-07-03  7:52   ` Krzysztof Kozlowski
2026-07-03 10:31     ` Gaurav Kohli
2026-07-03  7:53   ` Konrad Dybcio
2026-07-03 14:13     ` Gaurav Kohli
2026-07-03 15:42       ` Dmitry Baryshkov
2026-07-06 17:03         ` Daniel Lezcano
2026-07-06 17:47           ` Dmitry Baryshkov
2026-07-06 18:11             ` Daniel Lezcano
2026-07-06 19:21               ` Krzysztof Kozlowski
2026-07-08 11:16                 ` Gaurav Kohli
2026-07-06 19:34               ` Dmitry Baryshkov
2026-07-07 10:25                 ` Gaurav Kohli
2026-07-08 14:25                   ` Dmitry Baryshkov
2026-07-09  5:24                     ` Gaurav Kohli
2026-07-09  7:37                       ` Dmitry Baryshkov
2026-07-09  7:42                         ` Daniel Lezcano
2026-07-09  7:58                           ` Dmitry Baryshkov
2026-07-09  8:23                             ` Daniel Lezcano
2026-07-21  6:48                               ` Gaurav Kohli [this message]
2026-07-21 23:02                               ` Dmitry Baryshkov
2026-07-03  5:03 ` [PATCH v4 02/10] dt-bindings: remoteproc: qcom,pas: add #cooling-cells property Gaurav Kohli
2026-07-03  7:49   ` Krzysztof Kozlowski
2026-07-05  8:41     ` Gaurav Kohli
2026-07-03  5:03 ` [PATCH v4 03/10] soc: qcom: Add QMI TMD support for remote thermal mitigation Gaurav Kohli
2026-07-03  8:03   ` Krzysztof Kozlowski
2026-07-05  9:37     ` Gaurav Kohli
2026-07-03 18:09   ` Julian Braha
2026-07-05  9:50     ` Gaurav Kohli
2026-07-03  5:03 ` [PATCH v4 04/10] remoteproc: qcom: pas: add support for TMD thermal cooling devices Gaurav Kohli
2026-07-03  7:56   ` Krzysztof Kozlowski
2026-07-05  9:56     ` Gaurav Kohli
2026-07-03  5:03 ` [PATCH v4 05/10] remoteproc: qcom_q6v5_pas: enable QMI TMD cooling support Gaurav Kohli
2026-07-06 17:08   ` Daniel Lezcano
2026-07-03  5:03 ` [PATCH v4 06/10] arm64: dts: qcom: kodiak: Enable CDSP & Modem cooling Gaurav Kohli
2026-07-03  7:51   ` Krzysztof Kozlowski
2026-07-03 15:48   ` Dmitry Baryshkov
2026-07-05 10:19     ` Gaurav Kohli
2026-07-03  5:03 ` [PATCH v4 07/10] arm64: dts: qcom: lemans: Enable CDSP cooling Gaurav Kohli
2026-07-03  5:03 ` [PATCH v4 08/10] arm64: dts: qcom: talos: " Gaurav Kohli
2026-07-03  5:03 ` [PATCH v4 09/10] arm64: dts: qcom: monaco: " Gaurav Kohli
2026-07-03  5:03 ` [PATCH v4 10/10] arm64: dts: qcom: hamoa: " Gaurav Kohli

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ffe1524e-6dfd-4394-a5e7-c9090dadc582@oss.qualcomm.com \
    --to=gaurav.kohli@oss.qualcomm.com \
    --cc=amit.kucheria@oss.qualcomm.com \
    --cc=andersson@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=cros-qcom-dts-watchers@chromium.org \
    --cc=daniel.lezcano@oss.qualcomm.com \
    --cc=devicetree@vger.kernel.org \
    --cc=dmitry.baryshkov@oss.qualcomm.com \
    --cc=gustavoars@kernel.org \
    --cc=kees@kernel.org \
    --cc=konrad.dybcio@oss.qualcomm.com \
    --cc=konradybcio@kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-hardening@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=linux-remoteproc@vger.kernel.org \
    --cc=manaf.pallikunhi@oss.qualcomm.com \
    --cc=mani@kernel.org \
    --cc=mathieu.poirier@linaro.org \
    --cc=robh@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®