Message ID | 20230405-topic-master_stats-v3-0-2cb2ba4f2092@linaro.org |
---|---|
Headers | show
Return-Path: <devicetree-owner@vger.kernel.org> 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 75F8BC77B72 for <linux-devicetree@archiver.kernel.org>; Fri, 14 Apr 2023 11:37:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229450AbjDNLhY (ORCPT <rfc822;linux-devicetree@archiver.kernel.org>); Fri, 14 Apr 2023 07:37:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41110 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230131AbjDNLhX (ORCPT <rfc822;devicetree@vger.kernel.org>); Fri, 14 Apr 2023 07:37:23 -0400 Received: from mail-lf1-x129.google.com (mail-lf1-x129.google.com [IPv6:2a00:1450:4864:20::129]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8985D76A7 for <devicetree@vger.kernel.org>; Fri, 14 Apr 2023 04:37:21 -0700 (PDT) Received: by mail-lf1-x129.google.com with SMTP id i6so11250137lfp.1 for <devicetree@vger.kernel.org>; Fri, 14 Apr 2023 04:37:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1681472240; x=1684064240; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=r/9ZLcQ7BaIQmTGagXCMoy3R4toJhTlvDVJPYTyT18w=; b=eaH9mu67mR8FHIL79HcP2KJtJ4i0A2CcT5NCb/0Ii04uADgGxmvKvn4YtKB1Q/yZ3C BX6heWk3grnEISo0XLULllzGOgwEfCNOwCwujDwXDObJa/cnsjuChBrlNq2XNMczp0YV T5NtK5OJbtqXSIm8BubNDhOT1sdGmqdK73vkStY4eZx2ROpEcCW2vhFLEQNCIdg72G8h 41ijLSngS9dRPGkIIKEzvU2Llx8AdoGuuctvNkovnkNigdpaA273NefQkDW+QMtXiPFq I9MIroyKTZh1coEnLSK13WXRjb/hoY5zVYDYNwClhKMAgWN+kF/Ded7hjGp+86SW1MKN gnrQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681472240; x=1684064240; 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=r/9ZLcQ7BaIQmTGagXCMoy3R4toJhTlvDVJPYTyT18w=; b=jjLQbdohcdWbvaonthL199NjUasyIEeosYmx5RJ1J6esluDGFO/YS1nQiLE68V9v7F FeSvpqTn1qw+wFJXBOgbH8KEnC/lKqEs/C+7EXv0UHdqE3ERaK5eY58lBb9Xs+9t1BD1 brJ74hKzWerxVH7Vz7tWlWnJkjo5AiFAeUAquG0q9i52sLjgxDmYZ9MeIgvDqaOEXSBu v1vhYLoOafSeb8cyIBhHDp17V1mEWjoc5PQRa+p+E4YVmxSH9zCCpzYbE6+NHGrea8oi 3d4VSSk8dmZbc/6Ph4kJRV2bLHsh+Xf7Bi0kRnrR5qFLWzfeDab6OhBUNxFeRyA/+wsS oa2Q== X-Gm-Message-State: AAQBX9fCAwvxComwOQNipgmwX5uMk/1CsPZPzaz2dk7Cvu3XGsocZmXc pSaUBH9w9NynI/3sYP6rBcldDA== X-Google-Smtp-Source: AKy350YmsiMkHBJ6TVyaK80sSphJltOAGMDo07HkTL4x5Oj8Tpydm+QB4hdQ1CH69U2GoTyxcZ5hJw== X-Received: by 2002:a05:6512:1319:b0:4dd:9eb6:5b4c with SMTP id x25-20020a056512131900b004dd9eb65b4cmr2213540lfu.0.1681472239744; Fri, 14 Apr 2023 04:37:19 -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.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Apr 2023 04:37:19 -0700 (PDT) From: Konrad Dybcio <konrad.dybcio@linaro.org> Subject: [PATCH v3 0/2] Introduce RPM Master stats Date: Fri, 14 Apr 2023 13:37:16 +0200 Message-Id: <20230405-topic-master_stats-v3-0-2cb2ba4f2092@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAOw6OWQC/4WNyw6CMBREf4V0bU0fosGV/2GMuS0FmmBLbmujI fy7F3ZudDmTmXNmlhx6l9i5mhm64pOPgYLeVcwOEHrHfUuZKaG0OIia5zh5yx+QssN7ypATN6C EhAa6RreMjgaS4wYh2IGu4TmOVE7oOv/aTNcb5cGnHPG9iYtc25+OIrng0sgO1Ek3Ta0vow+Ac R+xZyuvqP8MRYxaWho4a45SfDGWZfkAwH0mZg4BAAA= To: Andy Gross <agross@kernel.org>, Bjorn Andersson <andersson@kernel.org>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org> 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=1681472238; l=1607; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=bYhUT+QZfTHYEXm+V8m5IT1o+SVPkkDJanucj8gz9sI=; b=QfjJWk1kN4OUM7t/aBRyvtZK/1Fuxetu8pG1e4EuE2nH3qkvC4FR/KoTmb7iwt2ftxIYCv36PrJN Bs0z+rBgA6YGIAgRlMPr3ByNcaXF2ms3zCqCRra+hs/F8I+8Hqqa X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= Precedence: bulk List-ID: <devicetree.vger.kernel.org> X-Mailing-List: devicetree@vger.kernel.org |
Series |
Introduce RPM Master stats
|
expand
|
v2 -> v3: - rename rpm-master-stats.yaml to qcom,rpm-master-stats.yaml v2: https://lore.kernel.org/r/20230405-topic-master_stats-v2-0-51c304ecb610@linaro.org v1 -> v2: - Drop the `-` in /properties/compatible to make our entry be of the correct type [1/2] - Change %s to %d for printing out the iterator [2/2] v1: https://lore.kernel.org/r/20230405-topic-master_stats-v1-0-1b1fa2739953@linaro.org The RPM MSG ram includes per-subsystem low-power mode entry/exit/ residence/etc. statistics which are very useful for trying to debug what I'd call "SoC insomnia", or IOW the plaftorm refusing to drop the voltage rails to a minimum and gate the non-critical clocks. This series adds a very short and simple driver to query that data and expose it through debugfs. The base used for writing this driver is: https://github.com/sonyxperiadev/kernel/blob/aosp/LA.UM.9.14.r1/drivers/soc/qcom/rpm_master_stat.c Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org> --- Konrad Dybcio (2): dt-bindings: soc: qcom: Add RPM Master stats soc: qcom: Introduce RPM master stats driver .../bindings/soc/qcom/qcom,rpm-master-stats.yaml | 53 +++++++ drivers/soc/qcom/Kconfig | 11 ++ drivers/soc/qcom/Makefile | 1 + drivers/soc/qcom/rpm_master_stats.c | 160 +++++++++++++++++++++ 4 files changed, 225 insertions(+) --- base-commit: e3342532ecd39bbd9c2ab5b9001cec1589bc37e9 change-id: 20230405-topic-master_stats-ba201a9af93d Best regards,