From: sashiko-bot@kernel.org
To: "Bibek Kumar Patro" <bibek.patro@oss.qualcomm.com>
Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH RESEND v4 02/20] iommu/arm-smmu: Add interconnect bandwidth voting support
Date: Fri, 20 Nov 2026 13:59:14 +0000 [thread overview]
Message-ID: <sashiko-outbox-225309@kernel.org> (raw)
In-Reply-To: <20261120-smmu_interconnect_addition-v4-2-be30526391d9@oss.qualcomm.com>
Thank you for your contribution! Sashiko AI review found 2 potential
issues to consider:
- [High] iommu/arm-smmu: clocks left disabled on
arm_smmu_runtime_suspend() error
- [Medium] iommu/arm-smmu: missing runtime_suspend and clk cleanup on
probe error
--
commit 8c75f1c42f79338d6f97167ba97ee3051a422cca
Author: Bibek Kumar Patro <bibek.patro@oss.qualcomm.com>
iommu/arm-smmu: Add interconnect bandwidth voting support
This commit adds optional interconnect bandwidth voting support to the
arm-smmu driver and wires it up for Qualcomm Adreno SMMU-500 instances
across probe and runtime PM transitions.
> diff --git a/drivers/iommu/arm/arm-smmu/arm-smmu.c b/drivers/iommu/arm/arm-smmu/arm-smmu.c
> index 8d50a4ad221dd..f015985cbb8ef 100644
> --- a/drivers/iommu/arm/arm-smmu/arm-smmu.c
> +++ b/drivers/iommu/arm/arm-smmu/arm-smmu.c
> @@ -2183,6 +2183,14 @@ static int arm_smmu_device_probe(struct platform_device *pdev)
> if (err)
> return err;
>
> + if (smmu->impl && smmu->impl->runtime_resume) {
> + err = smmu->impl->runtime_resume(smmu);
> + if (err) {
> + clk_bulk_disable_unprepare(smmu->num_clks, smmu->clks);
> + return err;
> + }
> + }
> +
> err = arm_smmu_device_cfg_probe(smmu);
> if (err)
> return err;
[Severity: Medium]
If arm_smmu_device_cfg_probe() or any later step in arm_smmu_device_probe()
fails, does this return without calling smmu->impl->runtime_suspend() and
clk_bulk_disable_unprepare()?
Because devm_clk_bulk_get_all() only releases the clock handles on probe
failure without disabling or unpreparing them, a later failure or probe
deferral leaves the clocks enabled and prepared while devres teardown of
qsmmu->icc_path drops the interconnect bandwidth vote.
[ ... ]
> @@ -2301,6 +2321,9 @@ static int __maybe_unused arm_smmu_runtime_suspend(struct device *dev)
>
> clk_bulk_disable(smmu->num_clks, smmu->clks);
>
> + if (smmu->impl && smmu->impl->runtime_suspend)
> + return smmu->impl->runtime_suspend(smmu);
> +
> return 0;
> }
[Severity: High]
Does arm_smmu_runtime_suspend() leave smmu->clks disabled when
smmu->impl->runtime_suspend() returns an error?
When runtime_suspend fails (for example, if icc_set_bw() fails in
qcom_adreno_smmu_runtime_suspend()), the PM core aborts the suspend and
keeps the device runtime-active. With the clocks already disabled, later
SMMU register accesses will fault or hang on unclocked hardware.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261120-smmu_interconnect_addition-v4-0-be30526391d9@oss.qualcomm.com?part=2
next prev parent reply other threads:[~2026-11-20 13:59 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-20 13:41 [PATCH RESEND v4 00/20] iommu/arm-smmu: Add interconnect bandwidth voting support Bibek Kumar Patro
2026-11-20 13:41 ` [PATCH RESEND v4 01/20] dt-bindings: iommu: arm,smmu: Document interconnects property Bibek Kumar Patro
2026-11-20 13:41 ` [PATCH RESEND v4 02/20] iommu/arm-smmu: Add interconnect bandwidth voting support Bibek Kumar Patro
2026-11-20 13:59 ` sashiko-bot [this message]
2026-11-20 13:41 ` [PATCH RESEND v4 03/20] arm64: dts: qcom: kodiak: Add GEM_NOC interconnect for adreno SMMU Bibek Kumar Patro
2026-11-20 13:41 ` [PATCH RESEND v4 04/20] arm64: dts: qcom: lemans: " Bibek Kumar Patro
2026-11-20 13:56 ` sashiko-bot
2026-11-20 13:41 ` [PATCH RESEND v4 05/20] arm64: dts: qcom: monaco: " Bibek Kumar Patro
2026-11-20 13:41 ` [PATCH RESEND v4 06/20] arm64: dts: qcom: talos: " Bibek Kumar Patro
2026-11-20 13:41 ` [PATCH RESEND v4 07/20] arm64: dts: qcom: sm8150: " Bibek Kumar Patro
2026-11-20 13:41 ` [PATCH RESEND v4 08/20] arm64: dts: qcom: sm8250: " Bibek Kumar Patro
2026-11-20 13:41 ` [PATCH RESEND v4 09/20] arm64: dts: qcom: sm8350: " Bibek Kumar Patro
2026-11-20 13:41 ` [PATCH RESEND v4 10/20] arm64: dts: qcom: sc8180x: " Bibek Kumar Patro
2026-11-20 13:41 ` [PATCH RESEND v4 11/20] arm64: dts: qcom: sc8280xp: " Bibek Kumar Patro
2026-11-20 13:41 ` [PATCH RESEND v4 12/20] arm64: dts: qcom: sm8450: " Bibek Kumar Patro
2026-11-20 13:41 ` [PATCH RESEND v4 13/20] arm64: dts: qcom: sm8550: " Bibek Kumar Patro
2026-11-20 13:41 ` [PATCH RESEND v4 14/20] arm64: dts: qcom: sm8650: " Bibek Kumar Patro
2026-11-20 13:41 ` [PATCH RESEND v4 15/20] arm64: dts: qcom: hamoa: " Bibek Kumar Patro
2026-11-20 13:41 ` [PATCH RESEND v4 16/20] arm64: dts: qcom: kaanapali: " Bibek Kumar Patro
2026-11-20 13:41 ` [PATCH RESEND v4 17/20] arm64: dts: qcom: glymur: Add HSC_NOC " Bibek Kumar Patro
2026-11-20 13:41 ` [PATCH RESEND v4 18/20] arm64: dts: qcom: milos: Add GEM_NOC " Bibek Kumar Patro
2026-11-20 13:41 ` [PATCH RESEND v4 19/20] arm64: dts: qcom: hawi: " Bibek Kumar Patro
2026-11-20 13:41 ` [PATCH RESEND v4 20/20] arm64: dts: qcom: sar2130p: " Bibek Kumar Patro
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-225309@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=bibek.patro@oss.qualcomm.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--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