From patchwork Fri Apr 14 11:37:17 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 673199 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 64FD0C77B72 for ; Fri, 14 Apr 2023 11:37:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229879AbjDNLh1 (ORCPT ); Fri, 14 Apr 2023 07:37:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41116 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230373AbjDNLhY (ORCPT ); Fri, 14 Apr 2023 07:37:24 -0400 Received: from mail-lf1-x12b.google.com (mail-lf1-x12b.google.com [IPv6:2a00:1450:4864:20::12b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8E6667ECB for ; Fri, 14 Apr 2023 04:37:22 -0700 (PDT) Received: by mail-lf1-x12b.google.com with SMTP id i26so23326538lfc.6 for ; Fri, 14 Apr 2023 04:37:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1681472241; x=1684064241; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=pjBdsofLs3+4G8st7nvJWY7fIQpctrGr3PE8MEm6BzQ=; b=hzBrlhIvvN0RTsEhtWNx+QObaZS+HtMR7hvASL5X7M4Cka95Zh5IcSJ9AHEeqWuTbe gahQC08KkM7RGtu2FyPu7TZ4/XJLl6+ts3mraEf2g9mqKvavi2z46+eRA7LG/N8T+ByF 41uiuEFyGE4bNjJyHXfhDOBJOe1DZWbpYzNU/+0aoopz0KpwplaUi3dwqcGst/Js8/cy uVPM9GToWGAiElnqsuQtjY3o+Bgbc7qB4R/5fsODUttHg2WrduNW5+6XZGzEJG32a3WN bskJFl6oIsh9sh6MCnEJPmA1dbJToIIvmuQXv/JaCG7wZCKGI5ewvQLygaI9CKq8L6Lt XBpg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681472241; x=1684064241; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=pjBdsofLs3+4G8st7nvJWY7fIQpctrGr3PE8MEm6BzQ=; b=Bk4LCS49MlAlHyaldcOJHTtVdgXoUQxkAVvir8urQZN8ABhNFlwhDV93RekjhQ8SnO 5PDthlLCgP2dT95a7NNXSTtBkBDNuRgXgFt6gibEBUxtYOqoerGXa1KlEJw/EpmGcupL 9Hg8chflwNwIsfSIx208vEJ/hHmjvJLfFEqea12ysEoeuOLFXOrGGKjFNzo+ixVAsYLJ /MuSMI4DT9hzo5GtbbhTw08v+xBFXYkFWog9/9eFub99PaDQBTp4biwwVP2VnLvLbFGa g4lW3fYp7bz8eCGEZnXu+PoRVVDewM7V5LJ3CbIkfBtfsnX2gNLk+V26nj/fbt4ZfYQu SUgw== X-Gm-Message-State: AAQBX9eb6ok/3NYehEI2kwi4ij3o5k8gv0/tISzFohagyMxzX7+jIUfy q0TcS0rhIhGMR7jt8HcuLLqjag== X-Google-Smtp-Source: AKy350a8UFvi0ALlRJcb1lA0q+2SLkQixgXy3apO9rO+ZLS1exRSo+TH5mffAezgjNgDDuSuLyrTFg== X-Received: by 2002:a05:6512:511:b0:4eb:4160:7ca9 with SMTP id o17-20020a056512051100b004eb41607ca9mr1500868lfb.16.1681472240817; Fri, 14 Apr 2023 04:37:20 -0700 (PDT) Received: from [192.168.1.101] (abyl123.neoplus.adsl.tpnet.pl. [83.9.31.123]) by smtp.gmail.com with ESMTPSA id y5-20020ac24e65000000b004ec83bc3e43sm756946lfs.192.2023.04.14.04.37.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Apr 2023 04:37:20 -0700 (PDT) From: Konrad Dybcio Date: Fri, 14 Apr 2023 13:37:17 +0200 Subject: [PATCH v3 1/2] dt-bindings: soc: qcom: Add RPM Master stats MIME-Version: 1.0 Message-Id: <20230405-topic-master_stats-v3-1-2cb2ba4f2092@linaro.org> References: <20230405-topic-master_stats-v3-0-2cb2ba4f2092@linaro.org> In-Reply-To: <20230405-topic-master_stats-v3-0-2cb2ba4f2092@linaro.org> To: Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski Cc: Marijn Suijten , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1681472238; l=2174; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=TH1zgnCa8zRbU3KMG+EVZMt/V85Or/9zrfIZNwaDzLA=; b=P45AxPiiNgpI9Zd/uzJUdSIwikCqiN0AsWEGmaeP0EgoKO/c4S8+MZiWRWa8DXYOruEbYAFvNtT5 cM+ZFzqOBJNDIeUrg17h1Su9k8HVu9S1lnBNSncGlZSV9zxlPY/t X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org The RPM MSG RAM contains per-RPM-master (e.g. APPS, ADSP etc.) sleep statistics. They let one assess which core is actively preventing the system from entering a true low-power mode. Signed-off-by: Konrad Dybcio --- .../bindings/soc/qcom/qcom,rpm-master-stats.yaml | 53 ++++++++++++++++++++++ 1 file changed, 53 insertions(+) diff --git a/Documentation/devicetree/bindings/soc/qcom/qcom,rpm-master-stats.yaml b/Documentation/devicetree/bindings/soc/qcom/qcom,rpm-master-stats.yaml new file mode 100644 index 000000000000..d7e58cbd3344 --- /dev/null +++ b/Documentation/devicetree/bindings/soc/qcom/qcom,rpm-master-stats.yaml @@ -0,0 +1,53 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/soc/qcom/qcom,rpm-master-stats.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm Technologies, Inc. (QTI) RPM Master Stats + +maintainers: + - Konrad Dybcio + +description: + Per-RPM-Master (e.g. APSS, ADSP, etc.) sleep statistics. + +properties: + compatible: + const: qcom,rpm-master-stats + + qcom,rpm-msg-ram: + $ref: /schemas/types.yaml#/definitions/phandle-array + description: Phandle to an RPM MSG RAM slice containing the master stats + minItems: 1 + maxItems: 5 + + qcom,master-names: + $ref: /schemas/types.yaml#/definitions/string-array + description: RPM Master name + minItems: 1 + maxItems: 5 + +required: + - compatible + - qcom,rpm-msg-ram + - qcom,master-names + +additionalProperties: false + +examples: + - | + stats { + compatible = "qcom,rpm-master-stats"; + qcom,rpm-msg-ram = <&apss_master_stats>, + <&mpss_master_stats>, + <&adsp_master_stats>, + <&cdsp_master_stats>, + <&tz_master_stats>; + qcom,master-names = "APSS", + "MPSS", + "ADSP", + "CDSP", + "TZ"; + }; +...