interconnect: qcom: sc8180x: Mark MM0 BCM keepalive
Subsystems (2)
PATCH 1/1 interconnect: qcom: sc8180x: Mark MM0 BCM keepalive
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 GICqcom_rpmh Completion is not doneqcom_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.
---
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(+)
drivers/interconnect/qcom/sc8180x.c +1 -0
@@ -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 } };
Signature · 1 line
2.56.0