From patchwork Thu Apr 6 14:49: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: 80306 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1090507vqo; Thu, 6 Apr 2023 08:01:11 -0700 (PDT) X-Google-Smtp-Source: AKy350Y/Y+uH3q6sdpX6A95WoM5E5Q79jYyT3p89fi9RE9a4unUjMcV0lz9a9adovkzJcmca6eNq X-Received: by 2002:a17:90b:1bcf:b0:23d:39e0:142 with SMTP id oa15-20020a17090b1bcf00b0023d39e00142mr11912461pjb.42.1680793271328; Thu, 06 Apr 2023 08:01:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680793271; cv=none; d=google.com; s=arc-20160816; b=MyuYydOLuORLjdgG5FTSE83LX+tDsEVCAWmn7GDtBiFu46yYXID3yKv2qxZ7R+HKxS AmgP7UxC5OLobCqahrFzTxhNomC9+Al3ZsbyNdp+oEYlh3NsqA/RzctlGfXsE4NAo1Bk jkdJAj9pqYyYyxncqGqZNwtTuUc8VcgJ+52WH+VPm3XRa1IV9z/GJWZ6SpILvSXXom22 MKDS+JRH9C9NHBuueyqU49ad9/HPfhMbk1vqgXe94XJXfB7udajFsXteFLwYV9FO4Xml brLG5S7kjNeykePigYwft0i/uZsoLi5F3sZAaQujkn0wo1CQPNzZrl1x/m53eiNLl4Pk xkTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=Ft7kjU4G4EGx0zy/5R74WdAFRhnHqVLzykdVApX9NyA=; b=ARVs8pCQX4bXnv8wv6K+YnvAnu9agiAKSKNms3LmcY6otHzn0nxWXjfLwVPSUZiMrK Ff1V26LBzhhaKf9pupJuKX4oetsG7JHvIqCroRswzIDCXfYNPpbqmRneNOcYBNjuHUCe fiEvW02dyVrrNZaJ8ZiEeKInXXAfIYYscOk0X9o+SGI1XagFIbqGMC2Kqt7lM9SpapnC AAF98YVj2HRhiKlkyzFrsiAg9nQ3lcZR9yZuzkml+MFqfL36+hGKSWoX4KXhSiaEPOO0 a6IFlTIeNg4aGi5p2joV4J6nd2thX7xRMUH/lfTSnmUKH981d2TwNCFiIZKwZ1VjkfIH BbJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RskBn9ON; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q14-20020a17090a68ce00b002333adf6321si4065077pjj.47.2023.04.06.08.00.22; Thu, 06 Apr 2023 08:01:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RskBn9ON; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238816AbjDFOuw (ORCPT + 99 others); Thu, 6 Apr 2023 10:50:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51400 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239493AbjDFOu1 (ORCPT ); Thu, 6 Apr 2023 10:50:27 -0400 Received: from mail-lj1-x229.google.com (mail-lj1-x229.google.com [IPv6:2a00:1450:4864:20::229]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 43D579755 for ; Thu, 6 Apr 2023 07:49:27 -0700 (PDT) Received: by mail-lj1-x229.google.com with SMTP id x20so40921833ljq.9 for ; Thu, 06 Apr 2023 07:49:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1680792565; 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=Ft7kjU4G4EGx0zy/5R74WdAFRhnHqVLzykdVApX9NyA=; b=RskBn9ONNJF4qCqAS3MW+DCx+fLnQQcNx+N9R/0XPAClVia+FrpJrCIT9tfQoa9sMr 5cnvhZDF5YA+jshlEg7+QbwB35v0cWSibrhHtIuRKnWdqheX0OBtUjQ9YxqsdTwsw7o/ sG25S+jQCPGZVck6aLs0HjT5JLy0sahR6Ol3+OBisAcFqz4Q9LaDvfZT2NVETN6RrxW1 vRD0swxKf8/enTSi/wEMz8AhLKgQwabiqwF97e8CEcWXTlk3Dyt28IQOVE7jHL6Q04Pa CCFfT4LhfjCz38ThaKWzqv9EmAmFzLgT9UB3zwd744Mw/HuW5BhEIcyMQtFq6UetIvQa W5bg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680792565; 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=Ft7kjU4G4EGx0zy/5R74WdAFRhnHqVLzykdVApX9NyA=; b=zMdicfW3HUDi18GR++keRSn/tAyUgxSVcwsK9x+/JUJU0HoRTJZjasnQ0ZoWUE4sF+ NCty1u+/lzfDMgs3lhseDO7TYCDhM0PIHnGccKEkQlhqfaelqDVZePXNGhxPF0UQnDkB 03/TdnshnA6DDo+JCDST5j7CoKJP+/6wDwhdCXqylkHR3SdkVRGVJt4mklftMSeXdBnu dJXqZdchYuxYm88lp0X3mFDqCeCZ+UkvAM5edlg0AjnjGj2PpCldx+0wYOjg9USNQBX+ 7s0DHh9WWqbv2bIKRXf2O6hmu0QzzNMdhMjXMIIb/1lpKOqzTit2Pl/oc8PYLvVeAOqh 48hg== X-Gm-Message-State: AAQBX9dy/brStAR2wIGvhyfpb83zdm18/PdeVS80xsGX4o/fD9ppRIdd 4bvBLaepvfvCyx+E7+oSj/TWVYV9arXdVwWTjkk= X-Received: by 2002:a2e:9d0c:0:b0:29b:4f87:c7cf with SMTP id t12-20020a2e9d0c000000b0029b4f87c7cfmr2613194lji.26.1680792565326; Thu, 06 Apr 2023 07:49:25 -0700 (PDT) Received: from [192.168.1.101] (abxh37.neoplus.adsl.tpnet.pl. [83.9.1.37]) by smtp.gmail.com with ESMTPSA id w24-20020a2e9598000000b002945b851ea5sm313864ljh.21.2023.04.06.07.49.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Apr 2023 07:49:25 -0700 (PDT) From: Konrad Dybcio Date: Thu, 06 Apr 2023 16:49:17 +0200 Subject: [PATCH v2 1/2] dt-bindings: soc: qcom: Add RPM Master stats MIME-Version: 1.0 Message-Id: <20230405-topic-master_stats-v2-1-51c304ecb610@linaro.org> References: <20230405-topic-master_stats-v2-0-51c304ecb610@linaro.org> In-Reply-To: <20230405-topic-master_stats-v2-0-51c304ecb610@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=1680792561; l=2154; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=ElCnIUYxGJbzmv8fonT+78Z6yzpbG7zdv2M4WxEElMk=; b=24L55Di9UeNO/+RsP3P/EAnmdsa804gJ3zohqj+el3eHnfHY1sgKMx3oVpb1M7H8rw+QQEkpjKiW vxoFSrOzCaQ4BDgQ2V2CP3vzoXyhs/T9W0EL7H7SiXKpttnzrM3S X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1762439485246963376?= X-GMAIL-MSGID: =?utf-8?q?1762439485246963376?= 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..d2d6a2a39fef --- /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"; + }; +...