From patchwork Wed Apr 5 15:01:35 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 671637 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 5102BC77B6E for ; Wed, 5 Apr 2023 15:01:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229879AbjDEPBt (ORCPT ); Wed, 5 Apr 2023 11:01:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46686 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238489AbjDEPBr (ORCPT ); Wed, 5 Apr 2023 11:01:47 -0400 Received: from mail-lf1-x133.google.com (mail-lf1-x133.google.com [IPv6:2a00:1450:4864:20::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0DDEB46B3 for ; Wed, 5 Apr 2023 08:01:44 -0700 (PDT) Received: by mail-lf1-x133.google.com with SMTP id k37so47090637lfv.0 for ; Wed, 05 Apr 2023 08:01:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1680706902; 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=W6Ju8CIEzaK87pEwl0n+uObDKxQlL1nqcBRnevkvACM=; b=JRvSWIp443spOoJuL6PTNeuwtXvRS6XHYbUUPBsNdAHtzGw2jkQyJ7l+3YXPUtQxl+ OBqcPq3uKdvvGVDzZv3aNeKulgqxNJCpTdTs+TvBgt6DxAGD6VbRgkuCdxjAR+6VYZuW 1Srm7vpHBj7+Ib5KVQ9y2YGCpJGcMDhun8T2D09XJA8If6I7Eqgmd6SO8/NI+ZEIK0Hp Zia5c68jkFMGBPX/nOp8bWyWSLqijzwXv6RPVfFFgc/RytgFoaz73nwqAXHibFs9+JjQ ERUC1XBUMMm3dxk30VyafZahz08HnSgqWJ9crWNk77p/IWQauIUIGJSxBgXgVjyHPTBY cnNw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680706902; 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=W6Ju8CIEzaK87pEwl0n+uObDKxQlL1nqcBRnevkvACM=; b=BurzqxP0bl1VSJl3WML9QQkTtJ9a/tL1HGrCMFUH6cNLy/t7KL8SmUBgAUnmLPsCEw xF0Ur7nToqC9C75mUZ3PGcbBUVqZ3aryvDGQf92sUHnuY/iSm4/xghiNoZF1rFp6yi0G +ZWa7tyAk9YLu4xTuFP8nYChzBJljs5PpCIO6swYR9xgimowPSTgCmMqDMzeeL6TGaja uhMoWD1tnoaDn3hED/ClMdIjomIkzDoh8zzWIgiAxHMyKP3/x+vAwCgnVsMeZ/N1FQ3/ NNCB1hWzcP4MNt1uSfHZzjAw9rSmjMcZ08cZaQ9iulj8oqkGX/mSI/a5VXQ+V/UwpuSN MOKA== X-Gm-Message-State: AAQBX9f1cFYOWQpA1frOuFJzu5HLqSDNsFXIH4PMrZ0BKNU7jx9/e39a 9kiO0k1Ytfu8W0zDHJ+1ypNaSw== X-Google-Smtp-Source: AKy350bcrLsgvnZEp83uglMTecfngvgNLBjJJ0rdOZ+HUySu3Xduj0QVb2DSDf6+BKt89TbZ3lKSjQ== X-Received: by 2002:ac2:43db:0:b0:4cb:4374:cc78 with SMTP id u27-20020ac243db000000b004cb4374cc78mr1825915lfl.26.1680706901595; Wed, 05 Apr 2023 08:01:41 -0700 (PDT) Received: from [192.168.1.101] (abxh37.neoplus.adsl.tpnet.pl. [83.9.1.37]) by smtp.gmail.com with ESMTPSA id 16-20020ac25690000000b004e84896253asm2833994lfr.251.2023.04.05.08.01.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Apr 2023 08:01:41 -0700 (PDT) From: Konrad Dybcio Date: Wed, 05 Apr 2023 17:01:35 +0200 Subject: [PATCH 1/2] dt-bindings: soc: qcom: Add RPM Master stats MIME-Version: 1.0 Message-Id: <20230405-topic-master_stats-v1-1-1b1fa2739953@linaro.org> References: <20230405-topic-master_stats-v1-0-1b1fa2739953@linaro.org> In-Reply-To: <20230405-topic-master_stats-v1-0-1b1fa2739953@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=1680706899; l=2156; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=pOnWKQ9D5V1MjOyO4kKJpCciYdrkhMQtlWjnxKSUZfQ=; b=kgxETiISULWaSx50jp87qTXp6E9fgC29ravRA/S3GQbrjwlyxn37Hl8hhyYJffco835ubl/035zo o6vZrtGmAjlrRXgy2U4TnUyqjvt//XxEvqlDAN1x793Uyp1UgsSp X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@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/rpm-master-stats.yaml | 53 ++++++++++++++++++++++ 1 file changed, 53 insertions(+) diff --git a/Documentation/devicetree/bindings/soc/qcom/rpm-master-stats.yaml b/Documentation/devicetree/bindings/soc/qcom/rpm-master-stats.yaml new file mode 100644 index 000000000000..e8e71e75d161 --- /dev/null +++ b/Documentation/devicetree/bindings/soc/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/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"; + }; +...