From: sashiko-bot@kernel.org
To: "Manaf Meethalavalappu Pallikunhi" <manaf.pallikunhi@oss.qualcomm.com>
Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH v4 3/3] arm64: dts: qcom: glymur: Enable SPEL powercap driver
Date: Sun, 06 Dec 2026 12:04:40 +0000 [thread overview]
Message-ID: <sashiko-outbox-252397@kernel.org> (raw)
In-Reply-To: <20261206-qcom_spel_driver_upstream-v4-3-168697736e95@oss.qualcomm.com>
Thank you for your contribution! Sashiko AI review found 2 potential
issues to consider:
- [Medium] arm64: dts: qcom: Mahua and Kalambo inherit Glymur 3-cluster
SPEL node
- [Low] arm64: dts: qcom: commit title and body misdescribe adding SPEL
DT node
--
commit 93629abacfb084bb47c17ce980cc267a7fbbec50
Author: Manaf Meethalavalappu Pallikunhi <manaf.pallikunhi@oss.qualcomm.com>
> arm64: dts: qcom: glymur: Enable SPEL powercap driver
>
> The Qualcomm SoC Power and Electrical Limits (SPEL) provides hardware
> based power monitoring and limiting capabilities for various power
> domains including System, SoC, CPU clusters, GPU, and various other
> subsystems for glymur.
>
> Signed-off-by: Manaf Meethalavalappu Pallikunhi <manaf.pallikunhi@oss.qualcomm.com>
[Severity: Low]
The subject talks about enabling the SPEL powercap driver, whereas this
patch adds a new SPEL hardware node to glymur.dtsi, and the body only
describes what SPEL is without stating what the patch changes. Could the
subject and message be updated to describe adding the SPEL node?
> diff --git a/arch/arm64/boot/dts/qcom/glymur.dtsi b/arch/arm64/boot/dts/qcom/glymur.dtsi
> index 9cb7506656fba..a4dfa01e55f0f 100644
> --- a/arch/arm64/boot/dts/qcom/glymur.dtsi
> +++ b/arch/arm64/boot/dts/qcom/glymur.dtsi
> @@ -6302,6 +6302,16 @@ spmi_bus2: spmi@c448000 {
> };
> };
>
> + power-limits@ef3b000 {
> + compatible = "qcom,glymur-spel";
> + reg = <0x0 0x0ef3b000 0x0 0x1000>,
> + <0x0 0x0ef3d000 0x0 0x1000>,
> + <0x0 0x0ef3e000 0x0 0x1000>;
> + reg-names = "config",
> + "constraints",
> + "nodes";
> + };
[Severity: Medium]
Should power-limits@ef3b000 be labeled here and deleted or disabled in
mahua.dtsi?
mahua.dtsi includes glymur.dtsi via glymur-cob.dtsi and removes CPU
cluster 2, while kalambo.dtsi includes mahua.dtsi and also removes CPU
cluster 0. Because this node is enabled and neither file overrides it,
spel_probe() in drivers/powercap/qcom/spel.c binds on both SoCs.
It then unconditionally registers all three CPU clusters (cl0, cl1, cl2)
from glymur_spel_hierarchy_nodes[], exposing nonexistent cluster domains
in sysfs with hardcoded offsets for absent clusters and risking invalid
MMIO reads at 0x0ef3b000 until Mahua and Kalambo have their own support.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261206-qcom_spel_driver_upstream-v4-0-168697736e95@oss.qualcomm.com?part=3
prev parent reply other threads:[~2026-12-06 12:04 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-06 11:56 [PATCH v4 0/3] Add Qualcomm SPEL powercap driver Manaf Meethalavalappu Pallikunhi
2026-12-06 11:56 ` [PATCH v4 1/3] dt-bindings: soc: qcom: Describe Qualcomm SPEL hardware Manaf Meethalavalappu Pallikunhi
2026-12-06 11:56 ` [PATCH v4 2/3] powercap: qcom: Add SPEL powercap driver Manaf Meethalavalappu Pallikunhi
2026-12-06 12:13 ` sashiko-bot
2026-12-06 11:56 ` [PATCH v4 3/3] arm64: dts: qcom: glymur: Enable " Manaf Meethalavalappu Pallikunhi
2026-12-06 12:04 ` sashiko-bot [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=sashiko-outbox-252397@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=manaf.pallikunhi@oss.qualcomm.com \
--cc=robh@kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox