From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 61C383314BF for ; Thu, 9 Jul 2026 05:24:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.180.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783574679; cv=none; b=ryUyXEOkOvoPY62vrJehUXnR5dRY5lMiVqKMkNST5WaMK4YXZc313gk+AqrTjDZhw45DMo99idtChCQZPZfKJar/jCSmicMvU7s8Gv/3beI/gvnBkmyZfhgrHW7gemf3dUkltWkXF17vWuZqgSCUaZdXrdClCMcwTuRMvJ0t34k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783574679; c=relaxed/simple; bh=eCEmFNBKDCUgi/XpzjhkSQjXE6ML/LWB346kaTFfFn0=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=JUhGEevUv3E/DssfA3MgvVZ9FoXN82QwxchknfX6/sXzBstYkX8/KuxsRlu+mV4+Yoem2nr1oF/ZFqqsjfxuspCvg0O+lV/ILR4yKgE0cANusiIXLuM92l3dhJQnSUzZDZQf1MDIkco9083ExfepHVhj+msmJxheevfrMy2tsd0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b=a35GQmGs; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=Xmko6yvi; arc=none smtp.client-ip=205.220.180.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b="a35GQmGs"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="Xmko6yvi" Received: from pps.filterd (m0279871.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 668N8aeY037203 for ; Thu, 9 Jul 2026 05:24:35 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= VD1AdfG2BjNXiv/VHQwI0Lnl5qw+Uds4QKa09TDo4ds=; b=a35GQmGs9wr7rn+0 ZhoGjA7yyYan+76zASJR+jiS752KDbhgRM8t7qeoBOi20HePqfqTSRypLPDCpRAd cDO7i2YEaOafS22jzgsocg2l5OCEh7Q6VqxI4r+DhrQ1IOMSrh7qzpzrMsTVLMaa jtqtK5e/b5in5sCvRTAHuwrQq/kBtbUZWA5/oaGtm+99M6SPaSWOI3TDxBSljlUm S9QvOav5tq6V59VvbeilyXBY6UbYSOQr0R8IAQ1L7Ga1E7lpz0abA1Efq3GW+8D7 wHdIjX/wgLt3XeH1j1TDCiUDCD4QhXNa+GJfecbvFsWjC5kNA/0q1SG+LQ8rJ4Cf MZwquA== Received: from mail-pg1-f198.google.com (mail-pg1-f198.google.com [209.85.215.198]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4f9ug6j14g-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Thu, 09 Jul 2026 05:24:35 +0000 (GMT) Received: by mail-pg1-f198.google.com with SMTP id 41be03b00d2f7-c88aab7c1d4so1549302a12.3 for ; Wed, 08 Jul 2026 22:24:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1783574674; x=1784179474; darn=vger.kernel.org; h=content-transfer-encoding:content-type:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:from:to:cc:subject:date:message-id:reply-to :content-type; bh=VD1AdfG2BjNXiv/VHQwI0Lnl5qw+Uds4QKa09TDo4ds=; b=Xmko6yviZxwnc0Y5jFf8MudMF/CzgrsLOlhn6AlGCDY+oxfRMFunB1tixTiaM7In96 C0v6xkXhLg86djeXv5XqcaZNjcyWZUE+f4bHYPSDwR9+hFrufDlC11sS91eFV4DMK2xJ MM3GYdBN92glMtUYIe6E67S33Ue9zHxARTilQzIzN7lrB1PUHqGsCRoLROcY+i5UCPKT kDq692v2Tsu1Dxiq34HupMBSVAeLYWAQvMe8KwsGbskIqORb0iGyPikaT7Ln7KXdggnT DzQ4vvPOg5Km/elKl5AyY+VqM0rhYfYaPcImkDZtYhfHxTzi5uzG/mVf86re6UphnLG6 ZSLw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1783574674; x=1784179474; h=content-transfer-encoding:content-type:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=VD1AdfG2BjNXiv/VHQwI0Lnl5qw+Uds4QKa09TDo4ds=; b=Pxe3BWqDY1xFtN/61q1OndodSu7Z6eHCgarf8Max6XU0wxlyRHAJizML0WvZ6RgD6K icr+oP26LEqZveIlVcR2Dfj6X6h7EojQQE9CoeUiUpPfEpM0381tpyWpSDEf4i7b/Udi G4eEvUiKdt7UoSdlbttQ0LcbeWJMI7trZqGoVi069+R4fuKnGPcqipzH3CaG+Vmh8zi+ NW3vhfhZItEvrW08iN8tYilMyOI2tl9XCzG/v5hcGxI0c/BTbFOG4xdSPi46ZlzcDX2y JuY7SpnXdQECU3KRxp3bpZw66StbbzTCfleh42AVf0pUSBBYsGNx2VIpU4UL1o9aTtvD JP8A== X-Forwarded-Encrypted: i=1; AHgh+RqWSSsV5gdPOsKTenviAeJALJsVi7pxV2vk10q6WzGa/KlbiRCRGwh01bwK0Y13A9mZeLsTIJQzDzlW@vger.kernel.org X-Gm-Message-State: AOJu0YyLU+1QeZ9JrLkCYQY1Wh6eIEUrTCvVyUubRR0RcQBbnLNVTkEw x3ta/1Gf41jJydVKZxsQWTLOMQZxVEK4cs9XP5ZuR57YEPjgl5OMXgdd8bvJHp89WRmFqE5rqs/ bnDPvY7cHC2GwQr0BrH3WTiVOEai0CsFHNQBtsOg5r8FDLCK3DHO1uPUCCqPmbWgyvzFpSo60 X-Gm-Gg: AfdE7cly6niABjO0FbSY3JL3qBCmTu460c+Cz6sPo/BkyZYJMZXaIBtUf5bNjooQ2wz yzpu5PQJhx89cxt4FU6EnMIDj7z1M9gY0T3LYAmcQA8MaIg3zJtKiKfI/rAPgjHWozFabWZXqJF xDAZVOrNhyWnYe6cph9oXLDt7pSw50dW5vijPH6TuIce3u2eywMviD5vrw+vJEdtSI6FJqDkClt cbVy60TLUDN2d539nY3I2q+Kug+ik9+pvyLwOwHIg+GFqtpAp6VbRu9OIM/7w5O/Zjlu0jszX0h RurEZ9zvW/dQZ1unvOgTC2ndlU8VLwJnhOQMxHPYgttk/w8PpaNMQRecyiv8HsyRYak0GK34Bhm XcEm2GjFCUiVcOnPfITVAs4tw7ko79C9cY5F/MRzS9w== X-Received: by 2002:a05:6a00:c88:b0:846:de21:3da4 with SMTP id d2e1a72fcca58-84842ebc27cmr4969628b3a.3.1783574674323; Wed, 08 Jul 2026 22:24:34 -0700 (PDT) X-Received: by 2002:a05:6a00:c88:b0:846:de21:3da4 with SMTP id d2e1a72fcca58-84842ebc27cmr4969596b3a.3.1783574673765; Wed, 08 Jul 2026 22:24:33 -0700 (PDT) Received: from [10.217.199.117] ([202.46.22.19]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-8483d117a1dsm2382038b3a.37.2026.07.08.22.24.27 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 08 Jul 2026 22:24:33 -0700 (PDT) Message-ID: <6f179f96-fdd1-4fa9-b26c-df7372eb6d20@oss.qualcomm.com> Date: Thu, 9 Jul 2026 10:54:26 +0530 Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v4 01/10] dt-bindings: firmware: qcom: tmd: add TMD device type constants To: Dmitry Baryshkov Cc: Daniel Lezcano , Konrad Dybcio , Bjorn Andersson , Mathieu Poirier , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Amit Kucheria , Manivannan Sadhasivam , Konrad Dybcio , Kees Cook , "Gustavo A. R. Silva" , 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 References: <20260703-qmi-tmd-v4-0-3882189c1f83@oss.qualcomm.com> <20260703-qmi-tmd-v4-1-3882189c1f83@oss.qualcomm.com> <977711ef-c1fb-4735-b82a-4ca2f4797f51@oss.qualcomm.com> <8ad14017-bce7-485e-9677-9cbf8ecb2742@oss.qualcomm.com> <10a346d8-fbb1-4142-a650-507c3917b8f6@oss.qualcomm.com> <1aca8d60-8e39-4532-9095-a5260bba76ac@oss.qualcomm.com> <9dc4b29e-e9fb-421a-b789-eb16a68ff915@oss.qualcomm.com> <2tu35aavp7sc2npni33ky5bve57idzy3bzp2pk7eh5lryq3r4v@gmm3dhayu4cf> Content-Language: en-US From: Gaurav Kohli In-Reply-To: <2tu35aavp7sc2npni33ky5bve57idzy3bzp2pk7eh5lryq3r4v@gmm3dhayu4cf> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Proofpoint-Spam-Info: AW1haW4tMjYwNzA5MDA0OCBTYWx0ZWRfX+1CkvNry27rd 6NapbLqblGjnW5pSxHArP4E2UwBDe/+/EtTa5TjdZ417btckGLFza58mQSAyWaWmBoM4VXHGgTx oyW1Cvp35+wWVv8+90h0l9HE/VewiCQ= X-Proofpoint-GUID: dARK_E48dBXcjlutkZ67s6BMvbX9q7jG X-Authority-Analysis: v=2.4 cv=cL3QdFeN c=1 sm=1 tr=0 ts=6a4f3093 cx=c_pps a=Qgeoaf8Lrialg5Z894R3/Q==:117 a=fChuTYTh2wq5r3m49p7fHw==:17 a=IkcTkHD0fZMA:10 a=RAioF0-LDSMA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=3WHJM1ZQz_JShphwDgj5:22 a=NEAV23lmAAAA:8 a=EUspDBNiAAAA:8 a=tNnYrs7vTIEjkU0joGkA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=x9snwWr2DeNwDh03kgHS:22 X-Proofpoint-ORIG-GUID: dARK_E48dBXcjlutkZ67s6BMvbX9q7jG X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNzA5MDA0OCBTYWx0ZWRfX3xRX5ZBofgth rIrrEh7vhPinjCCy5H746ZR1eTqstlGgQC8quP4yoeYPNpKCg3n1lK0+YwPMub23hHQ523t7SOI cBuN8iK7Ta4dS8IzHTlofS+hbhq6kKoD05unDYPnUxTjMTfyI9UgwUUf/KwaXLgJdZXJp1mV0q5 rohQhauedfWdTZoBq2pdvZNcoH2q+fmX53ez1vpB+e7smF1y6whLOrIMYXEhAc5thhg/FHqHO6i pTL5ciohH+2qkNmAp4BgrRvrMT+mf3D4iumP8mGwAYrAzOnUP7scJ9EkTJE5XAl+xlKcs9S7YOZ YRGViE8NrN+q0Zva3NNeoE7g/TkdXRLK2dW+mVp8a1vXurG+YaneJocXApXdcYX230zu5n7S7iE KVbcW+JkF2d+65clgH7r6q0tGI8dnIhaRXl4qcUnyaKOZU8XcGYH+WtqkW9FnKi8rBE50l3YKZj 49R20fwolAnPPJ3SYTA== X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-07-08_05,2026-07-08_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 impostorscore=0 suspectscore=0 adultscore=0 spamscore=0 phishscore=0 bulkscore=0 lowpriorityscore=0 clxscore=1015 malwarescore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2606150000 definitions=main-2607090048 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 >>>> >>>> [ ... ] >>>> >>>>>>> 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. > >> 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. > >> >> Will add a note in the cover letter clarifying for current tmd's. >> Please let me if this is fine. >> >>> >>> >> >