* [PATCH] interconnect: qcom: Don't read back BCMs without an RPMh address
@ 2026-11-15 20:19 Venkat Yadlapati via B4 Relay
2026-11-16 21:23 ` Neil Armstrong
2026-11-25 9:45 ` Konrad Dybcio
0 siblings, 2 replies; 7+ messages in thread
From: Venkat Yadlapati via B4 Relay @ 2026-11-15 20:19 UTC (permalink / raw)
To: Georgi Djakov, Neil Armstrong, Abel Vesa
Cc: linux-arm-msm, linux-pm, linux-kernel, Venkat Yadlapati
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>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] interconnect: qcom: Don't read back BCMs without an RPMh address
2026-11-15 20:19 [PATCH] interconnect: qcom: Don't read back BCMs without an RPMh address Venkat Yadlapati via B4 Relay
@ 2026-11-16 21:23 ` Neil Armstrong
2026-11-25 9:45 ` Konrad Dybcio
1 sibling, 0 replies; 7+ messages in thread
From: Neil Armstrong @ 2026-11-16 21:23 UTC (permalink / raw)
To: venkat.yadlapati, Georgi Djakov, Abel Vesa
Cc: linux-arm-msm, linux-pm, linux-kernel
On 11/15/26 21:19, Venkat Yadlapati via B4 Relay wrote:
> 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>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Thanks,
Neil
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] interconnect: qcom: Don't read back BCMs without an RPMh address
2026-11-15 20:19 [PATCH] interconnect: qcom: Don't read back BCMs without an RPMh address Venkat Yadlapati via B4 Relay
2026-11-16 21:23 ` Neil Armstrong
@ 2026-11-25 9:45 ` Konrad Dybcio
2026-11-25 16:53 ` Venkat Yadlapati
1 sibling, 1 reply; 7+ messages in thread
From: Konrad Dybcio @ 2026-11-25 9:45 UTC (permalink / raw)
To: venkat.yadlapati, Georgi Djakov, Neil Armstrong, Abel Vesa
Cc: linux-arm-msm, linux-pm, linux-kernel
On 11/15/26 9:19 PM, Venkat Yadlapati via B4 Relay wrote:
> 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)
Fix the driver instead, please.
Konrad
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] interconnect: qcom: Don't read back BCMs without an RPMh address
2026-11-25 9:45 ` Konrad Dybcio
@ 2026-11-25 16:53 ` Venkat Yadlapati
2026-11-27 11:05 ` Konrad Dybcio
0 siblings, 1 reply; 7+ messages in thread
From: Venkat Yadlapati @ 2026-11-25 16:53 UTC (permalink / raw)
To: konrad.dybcio
Cc: Georgi Djakov, Neil Armstrong, Abel Vesa, linux-arm-msm,
linux-pm, linux-kernel
On Wed, Nov 25, 2026 at 10:45:29AM +0100, Konrad Dybcio wrote:
> Fix the driver instead, please.
You mean a separate Molokai icc driver instead of reusing the
Kaanapali one? Molokai also lacks QUP4, splits aggre_noc into
aggre1/aggre2 and has different QoS offsets, so that would be a new
binding + driver rather than just dropping QPC0.
Or should qcom_icc_rpmh_probe() fail when qcom_icc_bcm_init() fails?
Thanks,
Venkat
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] interconnect: qcom: Don't read back BCMs without an RPMh address
2026-11-25 16:53 ` Venkat Yadlapati
@ 2026-11-27 11:05 ` Konrad Dybcio
2026-11-27 18:42 ` [PATCH v2] " Venkat Yadlapati
0 siblings, 1 reply; 7+ messages in thread
From: Konrad Dybcio @ 2026-11-27 11:05 UTC (permalink / raw)
To: Venkat Yadlapati
Cc: Georgi Djakov, Neil Armstrong, Abel Vesa, linux-arm-msm,
linux-pm, linux-kernel
On 11/25/26 5:53 PM, Venkat Yadlapati wrote:
> On Wed, Nov 25, 2026 at 10:45:29AM +0100, Konrad Dybcio wrote:
>> Fix the driver instead, please.
>
> You mean a separate Molokai icc driver instead of reusing the
> Kaanapali one? Molokai also lacks QUP4, splits aggre_noc into
> aggre1/aggre2 and has different QoS offsets, so that would be a new
> binding + driver rather than just dropping QPC0.
Well, you made a great case for it being separate!
Konrad
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH v2] interconnect: qcom: Don't read back BCMs without an RPMh address
2026-11-27 11:05 ` Konrad Dybcio
@ 2026-11-27 18:42 ` Venkat Yadlapati
0 siblings, 0 replies; 7+ messages in thread
From: Venkat Yadlapati @ 2026-11-27 18:42 UTC (permalink / raw)
To: Konrad Dybcio
Cc: Georgi Djakov, Neil Armstrong, Abel Vesa, linux-arm-msm,
linux-pm, linux-kernel, phone-devel
On Fri, Nov 27, 2026 at 12:05:29PM +0100, Konrad Dybcio wrote:
> Well, you made a great case for it being separate!
Thanks. The separate Molokai interconnect driver is out:
https://lore.kernel.org/all/20261128-molokai-icc-v1-0-a5e1754f086d@yahoo.com/
It replaces this patch, so please drop it.
Thanks,
Venkat
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH v2] interconnect: qcom: Don't read back BCMs without an RPMh address
@ 2026-11-22 19:20 Venkat Yadlapati via B4 Relay
0 siblings, 0 replies; 7+ messages in thread
From: Venkat Yadlapati via B4 Relay @ 2026-11-22 19:20 UTC (permalink / raw)
To: Georgi Djakov, Neil Armstrong, Abel Vesa
Cc: linux-arm-msm, linux-pm, linux-kernel, phone-devel, Venkat Yadlapati
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")
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
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.
---
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/20261116-icc-bcm-readback-v1-1-36b533d66a69@yahoo.com
---
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>
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2026-11-27 18:42 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-15 20:19 [PATCH] interconnect: qcom: Don't read back BCMs without an RPMh address Venkat Yadlapati via B4 Relay
2026-11-16 21:23 ` Neil Armstrong
2026-11-25 9:45 ` Konrad Dybcio
2026-11-25 16:53 ` Venkat Yadlapati
2026-11-27 11:05 ` Konrad Dybcio
2026-11-27 18:42 ` [PATCH v2] " Venkat Yadlapati
2026-11-22 19:20 Venkat Yadlapati via B4 Relay
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®