Message ID | 20231130-topic-ddr_sleep_stats-v1-1-5981c2e764b6@linaro.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:bcd1:0:b0:403:3b70:6f57 with SMTP id r17csp445276vqy; Thu, 30 Nov 2023 06:58:36 -0800 (PST) X-Google-Smtp-Source: AGHT+IGTDiVI0MOroUSw3bwEs/g+KMlst16tsYrFvEiqiKZXOwAytC1xjKuwlKThb+vafuh0awi/ X-Received: by 2002:a17:90b:3910:b0:286:64d:ad7 with SMTP id ob16-20020a17090b391000b00286064d0ad7mr7876159pjb.4.1701356316207; Thu, 30 Nov 2023 06:58:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701356316; cv=none; d=google.com; s=arc-20160816; b=USpUED/qQPiUS4nG9RG0mwsemFU1PhR/a/Ea+IJbkAXAr5Bwd1P4i+bJl9trlxlPLG pF06q+bQGV/aBus0wa/7d0jPYciMqClyNCDoc602TdyzdlBwQ1J8cIFukcInRajLS/36 X2JBngPAHgYXjGx9qs8lUIRYZOEeM31BK8MILVtVPwveGCNdV2CRHhmbJgbpybk7+j6r c7hI6O8RDN7gPiWmDzsilnzt4mrZiRpJVJAIfG/Kzl0Axrn7HbJVvnQbbSK4bMhRD748 KZupCvY2cNLTCFiSpTFsLOSFzugv+3Qw8eVohbF3nab8g5UQKTsyx5ZefQCtPMe2aYPW 2BkQ== 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=iJgElm+2FKgOiklOOlflaWJ/HuIwIWorSVJS04oX4jw=; fh=hXnaC5mvBa1lAyt+9YMdqgJPlSfEfXcUZbLK0Lo9wS8=; b=WsFAxb51pj64SwLV/RsD35Iz4tW3XlJh4HSKVWulLiF8ZShJt5gcCYfFMFdzhyU8rM CHKCMB6Fjbsj8H3ZPhfmvrNz2oHmz8ufEhZCdVo9gt9z89/gujKiPGEhN2N/BUUTM30y zrdRsRdLz2G7pQXwcCGyAaQwniNAhhxNL/D0jy3UQH81BYMknRAuNb4fGZTdNo4abXi8 khwhDgnrFEtNN6dsFMlz8I1WJqbIP9G10SNB4kjKJ6M8CSLkm4xxD5IL1ENsPoVi3slA hZ/Ws/92o1B3tZRs/AfxeH4bNXdsJVQ/mOzsx87sXqaD75rNAlo5ysrrBRXWezlL1lAZ P9lw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="R0U85/pe"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id n1-20020a17090a9f0100b0027686905e79si1493075pjp.146.2023.11.30.06.58.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Nov 2023 06:58:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="R0U85/pe"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 271F18031D43; Thu, 30 Nov 2023 06:58:31 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346149AbjK3O6W (ORCPT <rfc822;ruipengqi7@gmail.com> + 99 others); Thu, 30 Nov 2023 09:58:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42490 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346145AbjK3O6V (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 30 Nov 2023 09:58:21 -0500 Received: from mail-ej1-x636.google.com (mail-ej1-x636.google.com [IPv6:2a00:1450:4864:20::636]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B0CCF1A4 for <linux-kernel@vger.kernel.org>; Thu, 30 Nov 2023 06:58:27 -0800 (PST) Received: by mail-ej1-x636.google.com with SMTP id a640c23a62f3a-9ffb5a4f622so141570866b.0 for <linux-kernel@vger.kernel.org>; Thu, 30 Nov 2023 06:58:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1701356306; x=1701961106; darn=vger.kernel.org; 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=iJgElm+2FKgOiklOOlflaWJ/HuIwIWorSVJS04oX4jw=; b=R0U85/pecA9j/yCPCDmWFg3tN+okjwsQW1/PKjWB/mU7gYk33oN2vnNunD5oIcvcTs AMwPbS9Uz8zrE61ilPsR7ePJKxLDthFe1IHiSaAy5Qgx1k/nJLGDfQTWWQfU+BOkCg58 ixWUDPLL2LY024BJrA1zhWkX4fAym01TBLX/cKsmqGUDbSUEGdP96ghkaPcH32AIMtXh D/6dlNBL4nn2NkcKCu3ek5wyCA/6MwZIV/taliob/5Qpnfrzse8sQOY/C3WkNYHCkbbl X4bY744CYpqo1xesBgoiUHN+oi9EkSTlPJgyfHPAah9LDCVM1OM9fTwVQbkw5ySPeBPt R4Xg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701356306; x=1701961106; 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=iJgElm+2FKgOiklOOlflaWJ/HuIwIWorSVJS04oX4jw=; b=nb3er/L0BUnAh0x9UNUQMrIJ2pM98DD8q8jPUeIFD1pQCX8pk816pDwjuNYrbJQBcP MWsiUtuwaLW73HwZrv7nZjv9cPJ1JlD/R2IbwjPHcCFZ58nlttqvXaEvLalcOtTWoFvn WOGvPdre+l95/iV6gCxAP38N4VSWOAb7mns2kEjJlaQwhiu5SBWYTHG7X4BaxEJtaBZD XJZE1Z1URzc9Qw6O4z0XTEkBcGpOyCMe9PL8BUkPQSI9EOP3n6Rl5Q2/tXVZUJM8WrWu q1Dde0/muhX3oAW5kinh904BbQZEs+9uorZZi4QCfKjdRg23q05amL8kX2HH3KyKHINF Rvuw== X-Gm-Message-State: AOJu0YyxvejFSAtG/5VjS71J+wT+jOuKWiyKoHCNbaGlUAYxaOX6H3j4 5exx4DWg21hh+P91VHXd6cre/w== X-Received: by 2002:a17:906:eb01:b0:9ff:53b6:f951 with SMTP id mb1-20020a170906eb0100b009ff53b6f951mr14942949ejb.23.1701356306058; Thu, 30 Nov 2023 06:58:26 -0800 (PST) Received: from [10.167.154.1] (178235187166.dynamic-4-waw-k-2-3-0.vectranet.pl. [178.235.187.166]) by smtp.gmail.com with ESMTPSA id a5-20020a17090640c500b009e50ea0a05asm756753ejk.99.2023.11.30.06.58.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Nov 2023 06:58:25 -0800 (PST) From: Konrad Dybcio <konrad.dybcio@linaro.org> Date: Thu, 30 Nov 2023 15:58:21 +0100 Subject: [PATCH 1/3] dt-bindings: soc: qcom: stats: Add QMP handle MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20231130-topic-ddr_sleep_stats-v1-1-5981c2e764b6@linaro.org> References: <20231130-topic-ddr_sleep_stats-v1-0-5981c2e764b6@linaro.org> In-Reply-To: <20231130-topic-ddr_sleep_stats-v1-0-5981c2e764b6@linaro.org> To: Andy Gross <agross@kernel.org>, Bjorn Andersson <andersson@kernel.org>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Conor Dooley <conor+dt@kernel.org>, Maulik Shah <quic_mkshah@quicinc.com> Cc: Marijn Suijten <marijn.suijten@somainline.org>, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio <konrad.dybcio@linaro.org> X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1701356302; l=1104; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=L/mYPSgVkQwlDWwgGCvsNga37g+6iaiq7t+BzLPdK7I=; b=u8N2CiHIzoLaEuBNc2Ib2FMbPuylVaP8j1vXJq18nkVLtgx4wKQyBeLNjMjamEX2RVstAuZZS Vig5YSRSe0gBB29M/aSZzjgbcOI+1kcdqSPJggbLSturZQ9MPss/3Re X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Thu, 30 Nov 2023 06:58:31 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1784001400947535467 X-GMAIL-MSGID: 1784001400947535467 |
Series |
Add DDR sleep stats
|
|
Commit Message
Konrad Dybcio
Nov. 30, 2023, 2:58 p.m. UTC
The stats can be expanded by poking the Always-On Subsystem through QMP.
Allow passing a QMP handle for configurations that support it.
Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org>
---
Documentation/devicetree/bindings/soc/qcom/qcom-stats.yaml | 14 ++++++++++++++
1 file changed, 14 insertions(+)
Comments
On 30/11/2023 15:58, Konrad Dybcio wrote: > The stats can be expanded by poking the Always-On Subsystem through QMP. > Allow passing a QMP handle for configurations that support it. > > Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org> > --- > Documentation/devicetree/bindings/soc/qcom/qcom-stats.yaml | 14 ++++++++++++++ > 1 file changed, 14 insertions(+) Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Best regards, Krzysztof
On Thu, Nov 30, 2023 at 03:58:21PM +0100, Konrad Dybcio wrote: > The stats can be expanded by poking the Always-On Subsystem through QMP. > Allow passing a QMP handle for configurations that support it. I know Qualcomm likes their opaque acronyms, but how about mentioning what QMP stands for here and in the binding below? Especially since we also have QMP PHYs (Qualcomm Multi PHY?), which I doubt this is related to. > Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org> > --- > Documentation/devicetree/bindings/soc/qcom/qcom-stats.yaml | 14 ++++++++++++++ > 1 file changed, 14 insertions(+) > > diff --git a/Documentation/devicetree/bindings/soc/qcom/qcom-stats.yaml b/Documentation/devicetree/bindings/soc/qcom/qcom-stats.yaml > index 96a7f1822022..686a7ef2f48a 100644 > --- a/Documentation/devicetree/bindings/soc/qcom/qcom-stats.yaml > +++ b/Documentation/devicetree/bindings/soc/qcom/qcom-stats.yaml > @@ -31,10 +31,24 @@ properties: > reg: > maxItems: 1 > > + qcom,qmp: > + $ref: /schemas/types.yaml#/definitions/phandle > + description: Reference to the AOSS side-channel message RAM Johan
On 1.12.2023 10:44, Johan Hovold wrote: > On Thu, Nov 30, 2023 at 03:58:21PM +0100, Konrad Dybcio wrote: >> The stats can be expanded by poking the Always-On Subsystem through QMP. >> Allow passing a QMP handle for configurations that support it. > > I know Qualcomm likes their opaque acronyms, but how about mentioning > what QMP stands for here and in the binding below? I'll amend the commit message for v2. > Especially since we also have QMP PHYs (Qualcomm Multi PHY?), which I > doubt this is related to. There's only so many three-letter acronyms that begin with a Q ;) QMP stands for Qualcomm Messaging Protocol, which is a JSON-like way to communicate with the Always-On Subsystem (which is responsible for things such as managing low-power states and general SoC building blocks housekeeping) Konrad
diff --git a/Documentation/devicetree/bindings/soc/qcom/qcom-stats.yaml b/Documentation/devicetree/bindings/soc/qcom/qcom-stats.yaml index 96a7f1822022..686a7ef2f48a 100644 --- a/Documentation/devicetree/bindings/soc/qcom/qcom-stats.yaml +++ b/Documentation/devicetree/bindings/soc/qcom/qcom-stats.yaml @@ -31,10 +31,24 @@ properties: reg: maxItems: 1 + qcom,qmp: + $ref: /schemas/types.yaml#/definitions/phandle + description: Reference to the AOSS side-channel message RAM + required: - compatible - reg +allOf: + - if: + not: + properties: + compatible: + const: qcom,rpmh-stats + then: + properties: + qcom,qmp: false + additionalProperties: false examples: