From patchwork Fri Sep 29 16:16:16 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Caleb Connolly X-Patchwork-Id: 13404584 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1C5D8E728C7 for ; Fri, 29 Sep 2023 16:16:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233599AbjI2QQx (ORCPT ); Fri, 29 Sep 2023 12:16:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37894 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233485AbjI2QQw (ORCPT ); Fri, 29 Sep 2023 12:16:52 -0400 Received: from mail-wr1-x42b.google.com (mail-wr1-x42b.google.com [IPv6:2a00:1450:4864:20::42b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 56CFC1BC for ; Fri, 29 Sep 2023 09:16:49 -0700 (PDT) Received: by mail-wr1-x42b.google.com with SMTP id ffacd0b85a97d-325e9cd483eso555639f8f.2 for ; Fri, 29 Sep 2023 09:16:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1696004208; x=1696609008; darn=vger.kernel.org; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=6B/E0C5Y9HDPBbLwfMxu8cDXR2QSrQXT/5EMKQgQGJ4=; b=BAGQf3yyO0U2OtiTf0LytRB0aBiel7sgp4djboO0IWyA5cWsbTAxfGI+VwvhDgBQiM KuU+HVg8NquenS8iUlDPUzEj+wX7Liv+q6FiGsLobkcNGLH0x53NDDqxmz1NKycBq5Dz EO3ohET57qZ9cPXV/K/8oHz+oIhEsrqcCfGAce+ntOB30KjlKAIEp/JaksySO99pB+5Y LqQYL1JSB71dRNLcvk2q69LgabbT/GNjRs2ONYT2dOcWnBTpFLS/0dz0tXOLPXYSWYR3 RwTa8sEih+0Ldgz5riPpwLIG/hl+I4Urdd2Py7mURZH0kjq5vo9C2NozfwBmRDmhhzD2 +uyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696004208; x=1696609008; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=6B/E0C5Y9HDPBbLwfMxu8cDXR2QSrQXT/5EMKQgQGJ4=; b=tnBLqd7zn1kRCMi10FBdNv5cOH2/0LsZAz6N0TaXbqoUb31TALrOj6zYyq1cLg5SP/ 4q5terpfgkEJLTBpbGdIHV/AOY+9VTQAvi1KmTZ2PJK9e2r3oOF7lXf7MfXCo/pqyeuv VoLuOK/+aefPooyWmUFkzEkSXeD0IpY9y48bolYbtZICuAOGsXQnTS1WmylsnkB3gQlo A+xaIWkJEcYCWHg949C+aS8I6tHpjFbM6el25kN2cXHEsOaNcJT1AcK0e6OiYz81/oQZ 3JnygUKeleYQ1NzDIl8cybeDgTlkWKoYAn9mKHDswXxZ5Qvq+eXDf+oJI3PpON1RW8XJ PfaQ== X-Gm-Message-State: AOJu0YzZ+FKGq7o6YsbewCe2b6ULQsn1/lNknVKOB8him2vPnCK+WeSs FQnM/6exHjrAJFH1vbwRFOyv/g== X-Google-Smtp-Source: AGHT+IEURs7bInoQ81f7TxnaWBu2zV/xWMNibaPJeamfCDb/iMreoEFs2yEUilVfvFeJeX7kmmcn5g== X-Received: by 2002:a5d:6687:0:b0:317:5b32:b2c3 with SMTP id l7-20020a5d6687000000b003175b32b2c3mr4321868wru.6.1696004207465; Fri, 29 Sep 2023 09:16:47 -0700 (PDT) Received: from lion.localdomain (host-2-99-112-229.as13285.net. [2.99.112.229]) by smtp.gmail.com with ESMTPSA id x15-20020adfcc0f000000b0032330e43590sm10226848wrh.22.2023.09.29.09.16.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Sep 2023 09:16:47 -0700 (PDT) From: Caleb Connolly Subject: [PATCH 0/4] thermal: Introduce Qualcomm Thermal Mitigation Device support Date: Fri, 29 Sep 2023 17:16:16 +0100 Message-Id: <20230905-caleb-qmi_cooling-v1-0-5aa39d4164a7@linaro.org> MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIAFD4FmUC/x2N0QqDMAwAf0XyvLK2Q8X9yhgjzTINaOvSKQPx3 1f3eBzHbZBZhTNcqw2UV8mSYgF3qoAGjD0beRYGb/3FdrY2hCMH857kQSmNEntTN65pkbo2OA+ lC5jZBMVIw1Eu83nC/GE93Kz8ku//d7vv+w9mbY5tfwAAAA== To: Andy Gross , Bhupesh Sharma , Bjorn Andersson , Konrad Dybcio , Mathieu Poirier , Rob Herring , Krzysztof Kozlowski , Conor Dooley , "Rafael J. Wysocki" , Daniel Lezcano , Amit Kucheria , Zhang Rui , Sibi Sankar , Manivannan Sadhasivam , Thara Gopinath Cc: linux-arm-msm@vger.kernel.org, linux-remoteproc@vger.kernel.org, devicetree@vger.kernel.org, linux-pm@vger.kernel.org, Caleb Connolly X-Mailer: b4 0.13-dev-46309 X-Developer-Signature: v=1; a=openpgp-sha256; l=1836; i=caleb.connolly@linaro.org; h=from:subject:message-id; bh=VEPqvD4CC9Ro8CIyvLwYQ44Yqd1l9r+l5d1hnsJWdDY=; b=owGbwMvMwCFYaeA6f6eBkTjjabUkhlSxH3klzcXeAlrxp/SMEmubHvy+v/Pz6aIZZnN/z4yqb XgWwRTTUcrCIMjBICumyCJ+Ypll09rL9hrbF1yAmcPKBDKEgYtTACYy9yvD/4JJz5Q/nWj62xgR 9/veg2NzQgtiTpUePXFx0n2llyb7r29g+J8llnla/JdiqdPm+b+vziv6oz+D5/ieSTuev+lQn/B Rfl49AA== X-Developer-Key: i=caleb.connolly@linaro.org; a=openpgp; fpr=83B24DA7FE145076BC38BB250CD904EB673A7C47 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org The Thermal Mitigation Device (TMD) Service is a QMI service that runs on remote subsystems (the modem and DSPs) on Qualcomm SoCs. It exposes various mitigations including passive thermal controls and rail voltage restrictions. This series introduces support for exposing TMDs as cooling devices in the kernel through the thermal framework, using the QMI interface. Each TMD client is described as a child of the remoteproc node in devicetree. With subnodes for each control. This series is based on previous work by Bhupesh Sharma which can be found at [1]. I'm sending this as a fresh series as it has been a year since the original version and I have rewritten most of the driver. [1]: https://lore.kernel.org/linux-arm-msm/20220912085049.3517140-1-bhupesh.sharma@linaro.org/ --- Caleb Connolly (4): remoteproc: qcom: probe all child devices dt-bindings: thermal: Add qcom,qmi-cooling yaml bindings thermal: qcom: add qmi-cooling driver MAINTAINERS: Add entry for Qualcomm Cooling Driver .../bindings/remoteproc/qcom,msm8996-mss-pil.yaml | 13 + .../bindings/remoteproc/qcom,pas-common.yaml | 6 + .../bindings/thermal/qcom,qmi-cooling.yaml | 168 +++++++ MAINTAINERS | 8 + drivers/remoteproc/qcom_q6v5.c | 4 + drivers/remoteproc/qcom_q6v5_mss.c | 8 - drivers/thermal/qcom/Kconfig | 13 + drivers/thermal/qcom/Makefile | 1 + drivers/thermal/qcom/qmi-cooling.c | 520 +++++++++++++++++++++ drivers/thermal/qcom/qmi-cooling.h | 428 +++++++++++++++++ 10 files changed, 1161 insertions(+), 8 deletions(-) --- base-commit: 9067f80db58bbce81d5f0703aa2fd261e88bc812 // Caleb (they/them)