From: sashiko-bot@kernel.org
To: "Jie Gan" <jie.gan@oss.qualcomm.com>
Cc: conor+dt@kernel.org, devicetree@vger.kernel.org, robh@kernel.org
Subject: Re: [PATCH v4 3/5] arm64: dts: qcom: kaanapali: fix traceNoC probe issue
Date: Wed, 01 Jul 2026 02:07:57 +0000 [thread overview]
Message-ID: <20260701020757.B90331F000E9@smtp.kernel.org> (raw)
In-Reply-To: <20260701-fix-tracenoc-probe-issue-v4-3-aefab449a470@oss.qualcomm.com>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
Pre-existing issues:
- [High] Switching the Trace NOC from an AMBA device to a platform device exposes a double clock disable bug during driver unbind due to mixing devm-managed clocks with manual PM runtime callbacks.
--
commit dec424aa5c224444a6c7946ea25210a9094f968f
Author: Jie Gan <jie.gan@oss.qualcomm.com>
arm64: dts: qcom: kaanapali: fix traceNoC probe issue
This commit switches the traceNoC node from an AMBA device to a platform
device to fix an issue where the device is stuck in deferred probe due to
missing CID registers.
> diff --git a/arch/arm64/boot/dts/qcom/kaanapali.dtsi b/arch/arm64/boot/dts/qcom/kaanapali.dtsi
> --- a/arch/arm64/boot/dts/qcom/kaanapali.dtsi
> +++ b/arch/arm64/boot/dts/qcom/kaanapali.dtsi
[ ... ]
> @@ -5004,7 +5004,7 @@ tpdm_pcie_rscc_out: endpoint {
> };
>
> tn@111b8000 {
> - compatible = "qcom,coresight-tnoc", "arm,primecell";
> + compatible = "qcom,coresight-agtnoc";
[Severity: High]
This isn't a bug introduced by this patch, but does migrating this node to
the platform driver expose a double clock disable issue during unbind?
When the driver binds via the platform device, if a user unbinds the driver
via sysfs while the device is runtime suspended, it seems to trigger an
unbalanced clk_disable_unprepare() call.
Looking at tnoc_platform_remove() in drivers/hwtracing/coresight/coresight-tnoc.c:
static void tnoc_platform_remove(struct platform_device *pdev)
{
struct trace_noc_drvdata *drvdata = platform_get_drvdata(pdev);
coresight_unregister(drvdata->csdev);
pm_runtime_disable(&pdev->dev);
if (drvdata->atid > 0)
coresight_trace_id_put_system_id(drvdata->atid);
}
Since tnoc_platform_remove() calls pm_runtime_disable() without first
waking the device (e.g. via pm_runtime_get_sync()), the device remains
suspended and its clock remains disabled by tnoc_runtime_suspend().
When the driver finishes unbinding, the devres framework executes the
cleanup action for devm_clk_get_optional_enabled(), which calls
clk_disable_unprepare() a second time.
Could this lead to a clock subsystem underflow?
> reg = <0x0 0x111b8000 0x0 0x4200>;
>
> clocks = <&aoss_qmp>;
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260701-fix-tracenoc-probe-issue-v4-0-aefab449a470@oss.qualcomm.com?part=3
next prev parent reply other threads:[~2026-07-01 2:07 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-01 1:53 [PATCH v4 0/5] Fix traceNoC probe issue on multiple QCOM platforms Jie Gan
2026-07-01 1:53 ` [PATCH v4 1/5] dt-bindings: arm: coresight-tnoc: Add standalone qcom,coresight-agtnoc compatible Jie Gan
2026-07-01 6:57 ` Krzysztof Kozlowski
2026-07-01 7:16 ` Jie Gan
2026-07-01 7:26 ` Krzysztof Kozlowski
2026-07-01 7:31 ` Jie Gan
2026-07-01 11:02 ` Konrad Dybcio
2026-07-01 12:54 ` Jie Gan
2026-07-01 13:09 ` Konrad Dybcio
2026-07-01 13:30 ` Krzysztof Kozlowski
2026-07-02 0:51 ` Jie Gan
2026-07-01 1:53 ` [PATCH v4 2/5] coresight: tnoc: add AG tnoc standalone compatible to the platform driver Jie Gan
2026-07-01 2:08 ` sashiko-bot
2026-07-01 6:58 ` Krzysztof Kozlowski
2026-07-01 1:53 ` [PATCH v4 3/5] arm64: dts: qcom: kaanapali: fix traceNoC probe issue Jie Gan
2026-07-01 2:07 ` sashiko-bot [this message]
2026-07-01 1:53 ` [PATCH v4 4/5] arm64: dts: qcom: sm8750: " Jie Gan
2026-07-01 2:06 ` sashiko-bot
2026-07-01 1:53 ` [PATCH v4 5/5] arm64: dts: qcom: glymur: use Aggregator TNOC compatible Jie Gan
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=20260701020757.B90331F000E9@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=jie.gan@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