* [PATCH] interconnect: qcom: sc8180x: Mark MM0 BCM keepalive
@ 2026-11-16 13:29 Val Packett
0 siblings, 0 replies; only message in thread
From: Val Packett @ 2026-11-16 13:29 UTC (permalink / raw)
To: Georgi Djakov
Cc: Val Packett, Dmitry Baryshkov, Konrad Dybcio, Bjorn Andersson,
linux-arm-msm, linux-pm, linux-kernel
The MM0 BCM needs to be up at all times, otherwise (especially after
enabling camss support) on some boot attempts AOSS can hang:
qcom_rpmh TCS=0 [ctrlr-sts:BUSY amc-mode:0x1010000 irq-sts:WAITING]
qcom_rpmh CMD=3 [addr=0x50084(BCM/MM0) data=0x600001df resp-required sts=triggered+sent-to-aoss] (..)
qcom_rpmh HW IRQ 37 is NOT PENDING at GIC
qcom_rpmh Completion is not done
qcom_rpmh ERROR: Accelerator(s) at AOSS did not respond
SM8250, SM8350, SC7280, etc. all use keepalive on MM0 so this seems
like the right solution.
Signed-off-by: Val Packett <val@packett.cool>
---
Maybe camss is a red herring even (despite the only thing linked
to the BCM being SLAVE_MNOC_HF_MEM_NOC which is linked to camss
things.. well, also mdp0 and mdp1), I've had occasional boot
"freezes" (blank screen and not connected to WiFi) for much longer
on the Surface Pro X. Looking now at a `journalctl -b-1` after such a
freeze though I've discovered that RPMh debug output from above.
I don't have internal knowledge but I've seen that people have
added keepalive to BCMs to fix hangs, and this log implicated
BCM/MM0 directly while all the newer SoC interconnect drivers
did have keepalive on MM0...
Can't say I've had the time to *extensively* test this, that'll
take some time, but hopefully someone w/ HW knowledge can quickly
confirm or deny whether this is correct :)
Thanks,
~val
---
drivers/interconnect/qcom/sc8180x.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/interconnect/qcom/sc8180x.c b/drivers/interconnect/qcom/sc8180x.c
index fef77cd2bf69..9031e49e6564 100644
--- a/drivers/interconnect/qcom/sc8180x.c
+++ b/drivers/interconnect/qcom/sc8180x.c
@@ -1365,6 +1365,7 @@ static struct qcom_icc_bcm bcm_sh0 = {
static struct qcom_icc_bcm bcm_mm0 = {
.name = "MM0",
+ .keepalive = true,
.num_nodes = 1,
.nodes = { &slv_qns_mem_noc_hf }
};
--
2.56.0
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-16 13:38 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-16 13:29 [PATCH] interconnect: qcom: sc8180x: Mark MM0 BCM keepalive Val Packett
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®