From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.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 C013E3E025F for ; Tue, 7 Jul 2026 10:25:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783419924; cv=none; b=HXGqFTOdGnzir7GhYDlxF184IU+UI13SM6TTj5iTZdibPbHh+9bwXh0xA8a0im7MnhIJlp4vrsM4Re9KWfm9lIV4yk5xJXlPNbpUz+TNctcmwKlQlZFUOYxbtS1g+w5w7MmCoyWwGg2QppWjTsj8KOmIb9BZNg/p3fM3FAAdkSM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783419924; c=relaxed/simple; bh=9FaByEYQ1+f7toZfhp8ANfaJcWrdVoKguDXFfomYHnU=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=KILMAK0+kIWh0QJTzv8ZMPnOzrL2Vuv7lxahG/UExju8i4YaLQM6MKW+eYrRyDJ7qGad/lY9ODcWXVmJq5XIIxju+fZRbgtDeC9jYlSjglJxLpA3tdbhjEqyeNEh2ttYBT7t7rCU8f0JVUK2r+c8uS0fd/saz0q87WfwMQwzA0k= 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=illqUTys; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=C2txeiaZ; arc=none smtp.client-ip=205.220.168.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="illqUTys"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="C2txeiaZ" Received: from pps.filterd (m0279867.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 667A713J3471383 for ; Tue, 7 Jul 2026 10:25:22 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= XP5y6yGHt3Ajgb88Dol1E8KHAvk0yQ+E6gY+cGfJFsU=; b=illqUTys1FEjtQ2r JJiO83qoOAGwu4d2azr51/L4o3C7r8f/xXVuJyNxm+Bdk9qwucmgiqpd8hz7Dzgu ozJWczUxVBhw1HlLltKhXOWx2DQEMUCyhO+x7vZ42c5v7nzidw3z4dlgUNCQsYRV dLyrz4M5Qdun6buzr/xoMvKPOuzcJQ4HpRXNbOvhRKnxxVV73S+WQtNiy4pUQk9U UbbMNHxXorVebnIbf++hcPbluekhyhHQ5E4SH4YQyNtqxpWnQ1XIPbdbCyA1L3yk HxwoOo2xVuf+IbRGW+exPm+ZaCm2UVsWFEtwPeT1fbCTbZricKqstwjD4IJ70/gb GQrcPA== Received: from mail-pl1-f198.google.com (mail-pl1-f198.google.com [209.85.214.198]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4f8ye0g24q-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Tue, 07 Jul 2026 10:25:21 +0000 (GMT) Received: by mail-pl1-f198.google.com with SMTP id d9443c01a7336-2cae134ab3aso70814685ad.2 for ; Tue, 07 Jul 2026 03:25:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1783419921; x=1784024721; darn=vger.kernel.org; h=content-transfer-encoding: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; bh=XP5y6yGHt3Ajgb88Dol1E8KHAvk0yQ+E6gY+cGfJFsU=; b=C2txeiaZgravPS2fywlur9+W7Uh66Ui8SaHcp5R1OM80RHbOgcdG5brheiBGGKaqDY Y2glyF8HgrOCBS84zHJRldUmkQ/XagXwGBQ8ZiI6McAIrAa7+KRUJkhbnqj8U6Os9IWS B/STy/75rTNd3j11u3nw4Jt1GHGP+CqrsROvoS3RwxLG+1e/zDaQfajUindx6WTRFOfe nA+PZNi9GV7GoEEPJsMsL1L8ACs4k2OO/s2O9+EVrraNZ80oPauLYKUFRsEnziK4Zx5O w9sMYhxFHpb940CaXu13XEaEocNNQ3jzg4MJJx7OBcrqUQK0RZSFZBZ8AZ5AqlfBjdHS zMzw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1783419921; x=1784024721; h=content-transfer-encoding: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; bh=XP5y6yGHt3Ajgb88Dol1E8KHAvk0yQ+E6gY+cGfJFsU=; b=AOnRK3soDfA590WlicbX8HZXghb+UwP/wtBzBdQSf7DJbveZd3D03RYJ15J/yZqcuz 06FR1HClUPa1T3SyuJwO7q6uyLtkfPCIia8a7VztT0HPEstMgheUFuPId3sUePtPwFRr mKBUOZnDSFMA0RtsEWpIOM9ha1ojVS+Od/Hdlx0Ko/mZpU8oka+PwbSJ2LSs0mQ3tNux zB6/WDRzULCGTVXwnvamu6YaoX1CcfBNVczHvQRA1ALjrHlXZ0XbLdWVjyOmhy2yiGmB 9UCVyeYuCbj3d/cG4D/JLTypz0EaILlL2Ccm4x7ESBmCjfhbE9ZWN3PxXbJCaCPMcacX vSHQ== X-Forwarded-Encrypted: i=1; AHgh+RokrPaYnzlCSs3g3+XkcJ2/i03CK6NxEi+Mz/grJ6BmGioAZTCKsASt4VrUx1vZi+cPwxrshxyhWQ==@vger.kernel.org X-Gm-Message-State: AOJu0YzgX0ujs0lLK/M1m/JUZ6qRpYdrZhiF8q8P168dzy9YghkvTcGy rLX8/A/Bt6BlNNRGkT1LZKSLRRh+c1lQepq+pa4VPLLjv9/WJui2LXJfI4UttzP/W6JEuicWy36 Da2eDjbYfSDtqMfcTFlLR5AkQj20vIAp1t+l/JUkqQzlLCzrbZNp23vtyhq4Qhw== X-Gm-Gg: AfdE7cmVPp4jlrJn6Zjk48nvc3fW5Llvv1vVBEsKBdH2aS1zdUJ+IbZnTDb5oEbVtEj aqufOGsWf212fwb/WZrudaQNYh3IutMAzruPj/HgKdq+tnslz1IgwrsXcEoCd1415gQh2aiC/Eh hvdPdLlhegi5XfNiYkvAGgy2HpkwxUriB74DH+6oegDsA9iF7C1PX9BBZZHW6gnPCtv4DQBOJeD +yNCc6gchpZe41QJWNF5lxc8sT099zjLw9U55I63/RqUlmf8ra5ZDM+EnJGWI7zrJjnaRIpU666 YDm2T2oQstWzm0iMePZVrGKMFM0GzChmhhvCXb1p+oyy72Un75W7ZT4CWGJ6TXPJ2tmA7BiAxPi kBkCKajEbxvgp2vvKsdtu/awRLMduQXZ2h6b62a+ybg== X-Received: by 2002:a17:902:f60e:b0:2c8:25c8:85a6 with SMTP id d9443c01a7336-2ccbe4004demr49315175ad.2.1783419921198; Tue, 07 Jul 2026 03:25:21 -0700 (PDT) X-Received: by 2002:a17:902:f60e:b0:2c8:25c8:85a6 with SMTP id d9443c01a7336-2ccbe4004demr49314885ad.2.1783419920605; Tue, 07 Jul 2026 03:25:20 -0700 (PDT) Received: from [10.217.199.117] ([202.46.22.19]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2ccc9bdb9bbsm9319265ad.4.2026.07.07.03.25.14 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 07 Jul 2026 03:25:20 -0700 (PDT) Message-ID: <9dc4b29e-e9fb-421a-b789-eb16a68ff915@oss.qualcomm.com> Date: Tue, 7 Jul 2026 15:55:13 +0530 Precedence: bulk X-Mailing-List: linux-pm@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 , Daniel Lezcano Cc: 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> Content-Language: en-US From: Gaurav Kohli In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Proofpoint-ORIG-GUID: ognTBG3lOqvntEnneTT4OM4GK5Lr2hE0 X-Proofpoint-Spam-Info: AW1haW4tMjYwNzA3MDEwMCBTYWx0ZWRfX9Ahm0SGOAKoM pXAxyTZprvM3iwQbDJ/rJXsSZa/156Ojh81fw/6Ar0UXqZSKyeDZKbTzyrkOiJb4W6cBZ0eA+jQ quTJKy80XoXunZGxRcU2iT/r3bCNatA= X-Authority-Analysis: v=2.4 cv=SZfHsPRu c=1 sm=1 tr=0 ts=6a4cd411 cx=c_pps a=MTSHoo12Qbhz2p7MsH1ifg==:117 a=fChuTYTh2wq5r3m49p7fHw==:17 a=IkcTkHD0fZMA:10 a=RAioF0-LDSMA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=eoimf2acIAo5FJnRuUoq:22 a=EUspDBNiAAAA:8 a=fbyXy8itprBkbsvVMWwA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=GvdueXVYPmCkWapjIL-Q:22 X-Proofpoint-GUID: ognTBG3lOqvntEnneTT4OM4GK5Lr2hE0 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNzA3MDEwMCBTYWx0ZWRfXx4L5Ey4gPL+U WFGCEh0ymjtURxinoUrPIPxYfnkjqTb1uyqK0qSwXgDOMXs2b9J0+BoCfgSr507eikEfg5VY6YA baxy0ADcNo6AIUPda6Oo25Y9WtBConEREQE89iIkpGZQef2THJ4JuXr5poZvcl7tX95G12EibLA 0mv47sTUY1/dGzIbxlXC207KYr0EJX3tpvTo3wsvqWc2jda+gE7AdAYD6L49khZ1QsvTdeHrbCY S6gNFlpD2QP6DSEjy2QQVzdk8jwAH3/rKFIer6q5fDqw78/YZw9IQ67e9As16ovWHnmMGyA0KI9 YDSdPZus2at/mHOyWmS1wpSN2KfRqckuJAEhWoXxaeyOWx9QtMtcyOF8M3c2NxtJcto3nU45ssN Rq1Mdm4ZL/CPes2XgKy0LiASm4lCbuzHx2zrA7fbRFFYVJ/jKEddlcZHOF5HFQFcPWdftFCkNFm vaS7CD9OepTytsjoLcw== 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-07_02,2026-07-06_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 impostorscore=0 malwarescore=0 bulkscore=0 spamscore=0 adultscore=0 lowpriorityscore=0 phishscore=0 clxscore=1015 suspectscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2606150000 definitions=main-2607070100 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 is needed for modem and CDSP thermal zones on the currently posted targets. Will add a note in the cover letter clarifying for current tmd's. Please let me if this is fine. > >