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 10875213E89 for ; Fri, 3 Jul 2026 05:03:45 +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=1783055038; cv=none; b=IZP89Xiou5BI4hoRAajISjVz601B04froamCQ+tY+BYRgSE2ttg68O1vRHGh00KMtCzkyGW9VMy4DgSZ9Bng7oSg7HVo8sxI9hIrTwIgwJpkkWDO06H9BrP+ulALyN2hbBh4SFXoZNVMAk9HycxiRMTvVmIvEjtZPaGIoGpY+QE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783055038; c=relaxed/simple; bh=rVXcKV7+kz5ldKBXO/tHbbJCCqeIj4iVBlRaSUOippg=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=kaETwcRzOsPqjfg57ZvO7f+U2c/qlapaQ3LGqq931uoZrbP1NiOre4Zxc3LsC4C5Ejj68gsoc/nl3YvIFwG0/rNI5EH6dpfIDjoQb/vJ7aUgCTBBk+DRydc4MvBTtSSiJ8cucNAKUE6MYHVxC3OfNi95LdJ/+iapVv1aGUN6NDI= 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=Kz9PX4ou; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=D7jqo7Y8; 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="Kz9PX4ou"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="D7jqo7Y8" Received: from pps.filterd (m0279864.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 66342Xdf2654697 for ; Fri, 3 Jul 2026 05:03:44 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:message-id :mime-version:subject:to; s=qcppdkim1; bh=NRBgE59QoTQV38VfgncqRJ YraRggkHBcu/Lnxj9AfME=; b=Kz9PX4ou0E2rzYJfU2YnTUQ9yhZCPBQNqiPR9p CEFvDPQWZjHGBADxTGLxRQqpJ0xB4605ahj3MquNKlSEoIwfn9qSQYiEM+G7JvH4 ejAU3XxaBOVO0OhkPDQRMLKZJ5yyUZJlSyVZDopfFRao5i1BYVqOR4R9Zxt0SH3p rtN/n2J+N1PgsV0Kj5AxPnGAwhLc0MYB1TdeaODbQF+OU96HilRFmC0dg/PY2Zpg udjrrHUeXr69qolFQApg6uVlrvU826UNzdT3yUgozsVxmAc1+HzKSYXZzWd8PAhu hXwjqv7JeCyQlCRz0wdGOfuVoro8fyFJD8Qvx6a1kr9CqdGA== Received: from mail-pj1-f72.google.com (mail-pj1-f72.google.com [209.85.216.72]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4f5nprc62s-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Fri, 03 Jul 2026 05:03:43 +0000 (GMT) Received: by mail-pj1-f72.google.com with SMTP id 98e67ed59e1d1-3812b0c6f23so227221a91.1 for ; Thu, 02 Jul 2026 22:03:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1783055023; x=1783659823; darn=vger.kernel.org; h=cc:to:content-transfer-encoding:content-type:mime-version :message-id:date:subject:from:from:to:cc:subject:date:message-id :reply-to:content-type; bh=NRBgE59QoTQV38VfgncqRJYraRggkHBcu/Lnxj9AfME=; b=D7jqo7Y8b6FRz9ZPg9+iDqieoYuvmbG68XKkCUkwzlXth4Mi/deGtFmSiYvaDWOswk x/QPqGy+2cTgFIcGfqpKPWj3yT1HUAy4EaRUg4dIA5kR7KUOmXhRx1j0n8dldwMW46dM FV1vcXjjbR/BZgVsLUfCXJhJ17LETb10vHAkPsTRclB6J90aeTUW7i8uv9hM8yQ3gPmA FvoyFBQgYJAAqNlrN1eLeScGFwb5iU42147NbkmVw6XXg3hMQ/M/sTmJq+cN/AYJWmhA m3slKeVS938WdR8n9G5mQjq1B9HiX5L3hPs74hkpvF9d7x5tnFJe6L3eAChTwj5lGGud WpXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1783055023; x=1783659823; h=cc:to:content-transfer-encoding:content-type:mime-version :message-id:date:subject:from:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to:content-type; bh=NRBgE59QoTQV38VfgncqRJYraRggkHBcu/Lnxj9AfME=; b=CIzlfsaJ21TJyO03oDRt2WinChk+nEg7TDrTdN9PISeA69lY0UgbWj8U09/Si4CC0g ZZrz+hICmgNVpkkXwM8Fcb6kWxeeqc1qNaL1nE+FqbUZZ4aEhB8mmWDbezyukOrJCKsU nMEIeTm6ZQUdRHVEelQssaXuRsvi+O7Fkq6i5PBLLk7Mt4GiYb/QMf1pE/2f3nONuB7l ijFW49zsD+DWY68Q1MUa7gd42r6jGtULpHLxHGCghhIQZqMkseTgWuEXsX5xfbtEoI4y udOlX9wBN/Uoze113xVFgIjUh9vcy2SqaeBmf+NZUoKuOTYpXpU4/5GWZku8uzs95eR/ hmtw== X-Forwarded-Encrypted: i=1; AHgh+RpsoEkBsB0Sjph+kMHd4OqcxLGg/Drapn4E0/yUN+BlGzSVxXDujKdPVh2X6YeBKTXO1v2QzA1eGDqrDvk=@vger.kernel.org X-Gm-Message-State: AOJu0YycD0zmXUauH13Pc762rgSDgSLeDDPYg6OoLTL/M5qmyT7rNQfP hQCOGCompGWqB58XVS+kBDHzE+C+izxV+QXakCndvWZ00xXqF7umnxFzkPCK4XrSQoRbJiacNY+ 2mtRp8TLs3QYG5mtuPfDYxcz71H2YmaoIAPkTdELXsA5hfBJ8dweKTp80mNIKDqLE/3g= X-Gm-Gg: AfdE7ckIQky/fJTqzbragYbNcpjdEnGvQ3wH+Pau72QFYx+0XS3TbkeBL1Rn8vgRSgF /OmRZ7VNjnfWUw/mx4MoWPXwXNdnCqpUQ/kXxvq9IGW1BLNGj4h3HbSyGgSXgaQparON7UMzJRA mNrwi9gTXAlJ8eVnAVm4CpFYRayu5XdQL9n9ZS2uEO76q+UYRqSTBUyXwztVGa9G4/1oRn5UROV Zuis/kRlCepZCs/HhxxguIz2//Op3TUVTspvmIdl1kCoyKF7ChnwMjA5Kmc8nbFXUQQu9IJc424 26QuD1BtdkGgo3npMq+EZjQg3dPIQ//uaH8ltKr6GWyPM+BzrV6dOcsPfhnVtPzehY7NjQ8dj/j tetB4UKmJ/+fSOZauqF840frN6v2Iy57zFgBikD4X X-Received: by 2002:a17:90a:e7cd:b0:37f:464d:ea38 with SMTP id 98e67ed59e1d1-380ba70e00cmr8071248a91.0.1783055022915; Thu, 02 Jul 2026 22:03:42 -0700 (PDT) X-Received: by 2002:a17:90a:e7cd:b0:37f:464d:ea38 with SMTP id 98e67ed59e1d1-380ba70e00cmr8071215a91.0.1783055022356; Thu, 02 Jul 2026 22:03:42 -0700 (PDT) Received: from hu-gkohli-hyd.qualcomm.com ([202.46.23.25]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-30f0bbd2362sm16771941eec.20.2026.07.02.22.03.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Jul 2026 22:03:41 -0700 (PDT) From: Gaurav Kohli Subject: [PATCH v4 00/10] Add support for Qualcomm remoteproc subsystem cooling Date: Fri, 03 Jul 2026 10:33:03 +0530 Message-Id: <20260703-qmi-tmd-v4-0-3882189c1f83@oss.qualcomm.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAIdCR2oC/22Oyw6CMBBFf4V07TR9QAuu/A/jooECjZRKC42G8 O8WXOjCzSTn5t6TWVHQ3uiAztmKvI4mGDcmyE8Zqns1dhpMkxgxwgQRpILJGphtA7zkDSeaKkE USu2H1615HqbrLXFvwuz86xBHuqcfB2WSFoVkDDNZSVlyoNCpxauI764fzMWFgKdFDbWzFqeDd lvkX8PvF5EDAVZRxdo2rwXP/8y3bXsDcQqP+ucAAAA= X-Change-ID: 20260609-qmi-tmd-383d30e1a60a To: Bjorn Andersson , Mathieu Poirier , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Daniel Lezcano , Amit Kucheria , Manivannan Sadhasivam , Konrad Dybcio , Gaurav Kohli , Kees Cook , "Gustavo A. R. Silva" , cros-qcom-dts-watchers@chromium.org Cc: 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 , Casey Connolly , Dipa Ramesh Mantre X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1783055015; l=5096; i=gaurav.kohli@oss.qualcomm.com; s=20260302; h=from:subject:message-id; bh=rVXcKV7+kz5ldKBXO/tHbbJCCqeIj4iVBlRaSUOippg=; b=R2N3EEztkFyImqucagAgpKp8NzRoJaFo2Sly8zMCuJ5DzVuyF7baMMSOJEkNjXzA4AoxyDzI0 fvQigP25c7XALoF87dIZF4/9xQBqzwSOoTuPeWkBpRKZn6kC7pLZ0/f X-Developer-Key: i=gaurav.kohli@oss.qualcomm.com; a=ed25519; pk=IdNsqe8rWsF6dbpGHfwPEH9zM0nbOdRH72HxUT9qPak= X-Proofpoint-ORIG-GUID: FZtNf9OZoY4-WJgcQ5FkL4UL0g0JCHMi X-Proofpoint-Spam-Info: AW1haW4tMjYwNzAzMDA0NSBTYWx0ZWRfX/z4TW/wuk1t1 k4LwywyNRdJpu7UrtQz6u656oFdF2Jz7ZdsDW0QE2BOgj82FQmklxQbnqE5hcPTOYN7oOjNCRFO e3wsqqW2J0cheXkTKvYXF3+bQ9IWKNA= X-Authority-Analysis: v=2.4 cv=NsvhtcdJ c=1 sm=1 tr=0 ts=6a4742af cx=c_pps a=RP+M6JBNLl+fLTcSJhASfg==:117 a=ZePRamnt/+rB5gQjfz0u9A==:17 a=IkcTkHD0fZMA:10 a=RAioF0-LDSMA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=DJpcGTmdVt4CTyJn9g5Z:22 a=VwQbUJbxAAAA:8 a=KKAkSRfTAAAA:8 a=EUspDBNiAAAA:8 a=elwFi30hILXyiLWNHsYA:9 a=QEXdDO2ut3YA:10 a=iS9zxrgQBfv6-_F4QbHw:22 a=cvBusfyB2V15izCimMoJ:22 X-Proofpoint-GUID: FZtNf9OZoY4-WJgcQ5FkL4UL0g0JCHMi X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNzAzMDA0NSBTYWx0ZWRfX2tftnhCdyA/R ddDaX92TZuZ+kH0kGhkVAGP6bWvS/19cru8jpPDBzmeNsj+UOyC2RkjdvDGUICMA6PcTa3OZ6JJ 6jlRjGq1MaOqFRJeNaTvXcgTizr6s8g9CZuN3JnBC9CPpDFGr+K8TJdl/qNM3f6sf7r17nopwq0 gwH99/DTQ972nxESV8imUV8Ui8DwiKGmxxPpFZ4/WGShpDRWloRRba1/DUkanbizeL8EF6Kkml3 YFYjxH+S1/DVWKDSRzQc5HVKoNdBzXTttEmqwiGlD627zt/UyH8P9Dx7+QZbxa2QgmvepvsbRiZ D5Oa8236dPbuhf6kPvH3LifDVgGqhswUqpbAeVjVqhEL63HJSwGx+/UC8qeyMW7mBT28tjBS4PZ yUYuXUx0zaDfcYQGuzopC3syxoKt9VUgwhBrD7a03NbCfnDDmoIlhohDw8607azRUv5SfIPMxYo V4iUnoWO2VUcinFm85A== X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.125,FMLib:17.12.100.49 definitions=2026-07-03_01,2026-06-26_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 lowpriorityscore=0 bulkscore=0 phishscore=0 suspectscore=0 malwarescore=0 adultscore=0 clxscore=1015 impostorscore=0 spamscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2606150000 definitions=main-2607030045 This series introduces Qualcomm Messaging Interface based Thermal Mitigation Device (QMI TMD) support to control thermal mitigation on remote subsystems such as the Modem and CDSP. The QMI TMD is an interface that instructs a remote subsystem to adjust the performance level of the devices it manages, reducing power consumption in response to critically low battery charge, overcurrent alerts, or overheating conditions. The series is organized as follows: - Add a shared dt-bindings header mapping TMD device indices for use in DT cooling-maps, ensuring a consistent binding between the thermal zone and the QMI TMD driver. - Extend the remoteproc PAS binding with the optional #cooling-cells property to allow remoteproc nodes to be referenced as cooling devices. - Add QMI TMD support in the remoteproc PAS framework, hooking into the probe/unregister lifecycle to register and unregister cooling devices with the thermal framework. - Enable CDSP and Modem cooling on kodiak, lemans, talos, monaco and hamoa platforms using the new binding. This work revives the earlier QMI cooling series by Casey Connolly [1], with the following key differences: - Uses an id based API for cooling-device binding - Integrates QMI TMD directly into the remoteproc PAS framework and hooks into the probe/unregister lifecycle. - Removes unused code and cleans up macro names This series depends on cooling device id support from Daniel Lezcano [2]. [1] https://lore.kernel.org/linux-devicetree/20230905-caleb-qmi_cooling-v1-0-5aa39d4164a7@linaro.org/ [2] https://lore.kernel.org/all/20260526140802.1059293-12-daniel.lezcano@oss.qualcomm.com/ --- Changes in v4: - Drop the tmd-names DT property. - Move TMD instance id and tmd device name into PAS platform data. - Add a shared dt-bindings header to define numeric constant for TMD id. - Add mutex documentation comments for get/set state callbacks. - Link to v3: https://lore.kernel.org/r/20260609-qmi-tmd-v3-0-291a2ff4c634@oss.qualcomm.com Changes in v3: - Removed the remoteproc-cooling abstraction approach. - Integerated QMI TMD with remoteproc core framework. - Cleaned the macro names and removed unused code. - Switched to index-based thermal_of_cooling_device_register() api. - Link to v2: https://lore.kernel.org/linux-devicetree/20260127155722.2797783-1-gaurav.kohli@oss.qualcomm.com/ Changes in v2: - Update Remoreproc thermal config to tristate and removed unnecessary NULL checks. - Fixed dt binding file format and added generic name support for cdsp. - Fixed memory leak and cleaned up qmi-cooling driver file. - Corrected DT formatting errors and commit descriptions for all targets. - Link to v1: https://lore.kernel.org/linux-devicetree/20251223123227.1317244-1-gaurav.kohli@oss.qualcomm.com/ --- --- Casey Connolly (1): soc: qcom: Add QMI TMD support for remote thermal mitigation Dipa Ramesh Mantre (1): arm64: dts: qcom: hamoa: Enable CDSP cooling Gaurav Kohli (8): dt-bindings: firmware: qcom: tmd: add TMD device type constants dt-bindings: remoteproc: qcom,pas: add #cooling-cells property remoteproc: qcom: pas: add support for TMD thermal cooling devices remoteproc: qcom_q6v5_pas: enable QMI TMD cooling support arm64: dts: qcom: kodiak: Enable CDSP & Modem cooling arm64: dts: qcom: lemans: Enable CDSP cooling arm64: dts: qcom: talos: Enable CDSP cooling arm64: dts: qcom: monaco: Enable CDSP cooling .../bindings/remoteproc/qcom,pas-common.yaml | 39 ++ MAINTAINERS | 7 + arch/arm64/boot/dts/qcom/hamoa.dtsi | 63 +++ arch/arm64/boot/dts/qcom/kodiak.dtsi | 134 ++++- arch/arm64/boot/dts/qcom/lemans.dtsi | 125 ++++- arch/arm64/boot/dts/qcom/monaco.dtsi | 99 ++++ .../boot/dts/qcom/qcs6490-radxa-dragon-q6a.dts | 17 + arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts | 17 + .../dts/qcom/qcs6490-thundercomm-minipc-g1iot.dts | 17 + .../boot/dts/qcom/qcs6490-thundercomm-rubikpi3.dts | 17 + .../boot/dts/qcom/sc7280-herobrine-lte-sku.dtsi | 17 + .../boot/dts/qcom/sc7280-herobrine-wifi-sku.dtsi | 16 + arch/arm64/boot/dts/qcom/talos.dtsi | 19 + drivers/remoteproc/Kconfig | 1 + drivers/remoteproc/qcom_q6v5_pas.c | 120 ++++- drivers/soc/qcom/Kconfig | 10 + drivers/soc/qcom/Makefile | 1 + drivers/soc/qcom/qmi_tmd.c | 581 +++++++++++++++++++++ include/dt-bindings/firmware/qcom,qmi-tmd.h | 20 + include/linux/soc/qcom/qmi.h | 1 + include/linux/soc/qcom/qmi_tmd.h | 23 + 21 files changed, 1327 insertions(+), 17 deletions(-) --- base-commit: a87737435cfa134f9cdcc696ba3080759d04cf72 change-id: 20260609-qmi-tmd-383d30e1a60a Best regards, -- Gaurav Kohli