From: Venkat Yadlapati via B4 Relay <devnull+venkat.yadlapati.yahoo.com@kernel.org>
To: Georgi Djakov <djakov@kernel.org>,
Neil Armstrong <neil.armstrong@linaro.org>,
Abel Vesa <abel.vesa@oss.qualcomm.com>
Cc: linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org,
linux-kernel@vger.kernel.org,
Venkat Yadlapati <venkat.yadlapati@yahoo.com>
Subject: [PATCH] interconnect: qcom: Don't read back BCMs without an RPMh address
Date: Mon, 16 Nov 2026 01:49:07 +0530 [thread overview]
Message-ID: <20261116-icc-bcm-readback-v1-1-36b533d66a69@yahoo.com> (raw)
From: Venkat Yadlapati <venkat.yadlapati@yahoo.com>
qcom_icc_rpmh_probe() ignores the return value of qcom_icc_bcm_init()
and reads the initial vote of every BCM back with rpmh_read(). When the
command DB has no entry for a BCM, qcom_icc_bcm_init() fails before
setting the address, so the read goes to RPMh address 0. On Molokai
(SM8845), whose command DB lacks the QPC0 BCM of the Kaanapali gem_noc,
that read never completes and every later RPMh request times out, so the
regulators fail to probe and the boot stalls:
qnoc-kaanapali 31100000.interconnect: QPC0 could not find RPMh address
qcom-rpmh-regulator 18900000.rsc:regulators-2: failed to read ENABLE status ret = -110
Error sending AMC RPMH requests (-110)
Skip the read back for a BCM that failed to initialize, like before the
read back was added, when such a BCM was simply never voted.
Fixes: 11a44c6087c6 ("interconnect: qcom: implement get_bw with rpmh_read")
Assisted-by: LLM
Signed-off-by: Venkat Yadlapati <venkat.yadlapati@yahoo.com>
---
Found while bringing up the Motorola Signature (Qualcomm Molokai, SM8845)
on next-20261113: the boot stalled in the regulator probe and every RPMh
request timed out after the first one. The Molokai command DB has no QPC0
entry, so qcom_icc_bcm_init() fails for it, and the read back added in
commit 11a44c6087c6 then reads RPMh address 0, which never completes.
Tested on the Motorola Signature: no RPMh timeouts, the regulators and
the interconnect providers probe, and the rest of the boot is unchanged.
I used an LLM (Claude) to help write this patch and its commit message.
I reviewed it and tested the result on the device.
---
drivers/interconnect/qcom/icc-rpmh.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/drivers/interconnect/qcom/icc-rpmh.c b/drivers/interconnect/qcom/icc-rpmh.c
index 4a2a746a4e59..1fbf4c960e1e 100644
--- a/drivers/interconnect/qcom/icc-rpmh.c
+++ b/drivers/interconnect/qcom/icc-rpmh.c
@@ -332,7 +332,9 @@ int qcom_icc_rpmh_probe(struct platform_device *pdev)
return PTR_ERR(qp->voter);
for (i = 0; i < qp->num_bcms; i++) {
- qcom_icc_bcm_init(qp->bcms[i], dev);
+ /* Don't read back a BCM without an RPMh address */
+ if (qcom_icc_bcm_init(qp->bcms[i], dev))
+ continue;
qcom_icc_bcm_get_bw(qp->voter, qp->bcms[i]);
}
---
base-commit: 3fd56a2833c22f62eb84297d0dbd47739632f1a0
change-id: 20261116-icc-bcm-readback-a339f8caeb09
Best regards,
--
Venkat Yadlapati <venkat.yadlapati@yahoo.com>
next reply other threads:[~2026-11-15 20:19 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-15 20:19 Venkat Yadlapati via B4 Relay [this message]
2026-11-16 21:23 ` Neil Armstrong
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=20261116-icc-bcm-readback-v1-1-36b533d66a69@yahoo.com \
--to=devnull+venkat.yadlapati.yahoo.com@kernel.org \
--cc=abel.vesa@oss.qualcomm.com \
--cc=djakov@kernel.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=neil.armstrong@linaro.org \
--cc=venkat.yadlapati@yahoo.com \
/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
all inboxes | Powered by JetHome®