From patchwork Thu Nov 30 14:58:20 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 17337 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:bcd1:0:b0:403:3b70:6f57 with SMTP id r17csp445380vqy; Thu, 30 Nov 2023 06:58:45 -0800 (PST) X-Google-Smtp-Source: AGHT+IHNz537xybwVxZTh3fLlQINx0f/7ZyasYrCnFBl43zGZVCssuQ9Gea/WGAyC3VF04R3ZaQI X-Received: by 2002:a17:90b:38d2:b0:285:b687:b82b with SMTP id nn18-20020a17090b38d200b00285b687b82bmr19749474pjb.1.1701356324836; Thu, 30 Nov 2023 06:58:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701356324; cv=none; d=google.com; s=arc-20160816; b=oajVSOjbL4vGX+lxRLu+kF5t2N/4rcZxs6TjwL37aJs0X+zhAOM2IzljbwFRmMhxc6 oOce3xs6LIVp+G348xy/QTyx8su7fMANIlNAmqPhMunb0YO4FV5Su11uHPMVsAeLg8ci yKjEF1we46cIxs+4iyRzkpduLCtHD9ZQtXrDIK7/CDIFjp5FtW9P0BQNwuhbD/MfTJ+A xt5Du00XYrmQoyKVucrcopw4LXeAycF6Weg5m8aTu6Mn1QGeItb4Yy/B5LCxoC6yL14d 37UC+3ivT7AQ+2z3rEmNynPVe01OH85LdxIdab2uqM7pIVhtE42XeZCPVi1QPy4tO330 FdTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:content-transfer-encoding:mime-version :message-id:date:subject:from:dkim-signature; bh=2gKqlKiSO7Qz+6qp1ezAI25UfE5cdt5rvX+Xa1fyEdA=; fh=hXnaC5mvBa1lAyt+9YMdqgJPlSfEfXcUZbLK0Lo9wS8=; b=BXDSY0ti0AYwWMzEN0wC5raAzXDfw6BBd5j5g3WGYc2IcKFRLYn4vjqCy3Z7v/uCBF cqipm7f72FZt1iq/D84M7v0D5wIch6xkD9Jv7tOfz1QM0BmlsdTIKAuqT/88f4Rfl2mN wf7bf4txmB2XumrZR46FxQL+1FwUmKtIZCTXijZ8UUw/et99rZTKhnI0E5o0bwrH2hRY fFP0d5kzYoMIxV0/OHJs8/PRe68vTOQZ/fs3ASBe/CmfC629L2MHk24OYP3+YNXwtRMw HNkCS8AFCmV73lVAG12dSwKw69uZGU3nJHT8QrYpcGgPYMHV8jiK3XA4QCUHa93BWiOf uNAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Y4NApfZW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 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 agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id lw5-20020a17090b180500b0028511e48364si1533694pjb.176.2023.11.30.06.58.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Nov 2023 06:58:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Y4NApfZW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 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 agentk.vger.email (Postfix) with ESMTP id 78BAD8030A3B; Thu, 30 Nov 2023 06:58:39 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346140AbjK3O6U (ORCPT + 99 others); Thu, 30 Nov 2023 09:58:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42488 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346124AbjK3O6T (ORCPT ); Thu, 30 Nov 2023 09:58:19 -0500 Received: from mail-ed1-x534.google.com (mail-ed1-x534.google.com [IPv6:2a00:1450:4864:20::534]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0DE0D1A4 for ; Thu, 30 Nov 2023 06:58:26 -0800 (PST) Received: by mail-ed1-x534.google.com with SMTP id 4fb4d7f45d1cf-5488bf9e193so1128089a12.2 for ; Thu, 30 Nov 2023 06:58:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1701356304; x=1701961104; 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=2gKqlKiSO7Qz+6qp1ezAI25UfE5cdt5rvX+Xa1fyEdA=; b=Y4NApfZWj8Kr9Gj3KL9lcrwCRSjpxrsYugTCKk+HJCxwiF4S2qy6c0DgOZVVkvjewj 7NVffLOaiG4we5q8cuzeA9vIabuoZ7KfMeF2Fmpu3GqU9xGFpPSQNV7tQXwP2K/MPUgP GiG3JF9ETiFyUQ0X4nwc4t778Qvg2/vh/zC/h0Kvsk46HFnXmqPZtAE8Lfx6Nw6Z1Y3o ZGaG+HYkynAuu9smBvUV3dn0CYZxU1saxnfDh4PTKnUTWDtZN+Gewg7hRGaD3eZemoVv FFZHvAHKsiUnXwYqb9hNpvEJr7Ts46Ert4E0Fk1VV/UTYokRdn9MpalcG3Ni4rtsDUn9 xFAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701356304; x=1701961104; 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=2gKqlKiSO7Qz+6qp1ezAI25UfE5cdt5rvX+Xa1fyEdA=; b=hVZEIBRVVspW81cA9WqyqbTsXrcchP8A7F1YOWAsdldHQbeImpbUr5MxPkf88FrgHH vBtXZs0jLJGEyFmx/UuH5O4QfWReGRvzMFt1fA+whqzRRcrNv/Ipw4mxhXEC2hkPnv83 3cHkfzLeha5+U3QXaOUyqENFHhAscbvoudKezGHpGHZYS/Hf/0uPfobyqf9/1ytftgDy 8b9Z5Bb53LauYY0hlUaJKw19doFbCh3ljzRlelspPMd/HdO+UR6QkJyxkmu1Wgil16lF S6/EJMas+AMY9KvQX3UNzfkgsSRihtceww23bWejfdejK6yEc514eWnzZHmsnRVWIZiu oYcg== X-Gm-Message-State: AOJu0Yzks7leTLN9Rgb+mZVI7v1aizq7wdehuJL80EBPcFIH7YlK3evU PJT5wknDcqd5520eQV1r0Fv5Sg== X-Received: by 2002:a17:906:5299:b0:a00:8706:c82e with SMTP id c25-20020a170906529900b00a008706c82emr17109255ejm.18.1701356304549; Thu, 30 Nov 2023 06:58:24 -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.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Nov 2023 06:58:24 -0800 (PST) From: Konrad Dybcio Subject: [PATCH 0/3] Add DDR sleep stats Date: Thu, 30 Nov 2023 15:58:20 +0100 Message-Id: <20231130-topic-ddr_sleep_stats-v1-0-5981c2e764b6@linaro.org> MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIAAyjaGUC/x2NWwrCMBAAr1L220AeINGriJQ0We1CSMNuKkLp3 V38nIFhDhBkQoH7dADjh4S2puAuE+Q1tTcaKsrgrQ/OBWvG1imbUniWithnGWmIKbdrRI8+2hh A2yUJmoVTy6vWba9VZWd80fc/ezzP8wc8j49HfAAAAA== To: Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Maulik Shah 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=1701356302; l=866; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=CddnBWy6kyIHBoyHL4aoTyt3leaSKLaRXMq2BFoXf1k=; b=6rfxbRnAT2Y6gq53GyYzJQEVXxFTA+vKb7IWHYcqQavUajPt17o0lboWaJOTSVtwfCK30AAaW bRviUlE1wXzCmv3V0qx9VZnR6FlIV5DOMZJSoNyYcrbqNIc2vQpceyx 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 agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Thu, 30 Nov 2023 06:58:39 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1784001409409615978 X-GMAIL-MSGID: 1784001409409615978 RPMh LPM stats are quite extensive, but we can extract even more data by poking the AOSS QMP. This series adds DDR stats using this approach, setting it up on 8280 as an example. Signed-off-by: Konrad Dybcio --- Konrad Dybcio (3): dt-bindings: soc: qcom: stats: Add QMP handle soc: qcom: stats: Add DDR sleep stats arm64: dts: qcom: sc8280xp: Add QMP handle to RPMh stats .../devicetree/bindings/soc/qcom/qcom-stats.yaml | 14 ++ arch/arm64/boot/dts/qcom/sc8280xp.dtsi | 1 + drivers/soc/qcom/qcom_stats.c | 186 ++++++++++++++++++++- 3 files changed, 200 insertions(+), 1 deletion(-) --- base-commit: 1f5c003694fab4b1ba6cbdcc417488b975c088d0 change-id: 20231130-topic-ddr_sleep_stats-d968e2e28083 Best regards,