interconnect: qcom: Don't read back BCMs without an RPMh address
Subsystems (2)
PATCH v2 1/1 interconnect: qcom: Don't read back BCMs without an RPMh address
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.
---
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.
---
Changes in v2:
- Drop the Assisted-by trailers and the LLM notes from the commit
messages, the LLM use is stated in this cover letter.
- Pick up the Reviewed-by of Neil.
- Link to v1: https://patch.msgid.link/[email protected]
--- drivers/interconnect/qcom/icc-rpmh.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/interconnect/qcom/icc-rpmh.c +3 -1
@@ -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,
Signature · 1 line
Venkat Yadlapati <[email protected]>