mirror of
https://github.com/dikeckaan/mu300-linux.git
synced 2026-12-05 16:03:51 +00:00
sipa_dele's conn_thread opens SIPC channel 120 as its first act, with smsg_ch_open(dst, chan, -1), and that is the only attempt it ever makes. With the modem not up it either waits for ever for an OPEN that never comes, or smsg_recv errors out, smsg_ch_open frees the channel, and the thread logs "sipa_delegator failed to open dst 5 channel 120" and returns. The SMSG_TYPE_OPEN handling further down - which does survive a modem restart - only runs after that first open has succeeded. And there is no retry: sipa_dele is [permanent], so it cannot be removed and inserted again. Our boot order made that the likely outcome. The initramfs loaded sipa-dele.ko with the rest of the modem stack at about twenty seconds, while modem_control does not have the CP talking until about sixty - on this device "sprd-sbuf: channel 5-*" and "sbuf ready for pmic wdt init" both land at 60.8 s. Android loads it the other way round, and Android is the one whose modem asks permission to send downlink. sipa-dele-start waits for either of those lines and then inserts the module, in the background so that Wi-Fi, the GPU and the sound card do not wait a minute for the modem, and it reports straight away whether "channel 5-120 send open msg" reached the log. The two module-order lists no longer carry the delegate. This is reasoned from the source and our own timestamps, not yet confirmed on the device - one boot with a rebuilt image and "dmesg | grep -E '5-120|sipa_dele'" settles it. Nothing regresses if it is wrong: sipa_core creates every consumer resource itself and the delegator only adds PROD_CP and the CONS_WWAN_UL -> PROD_CP edge, so sipa_eth0 opens exactly as before. It does need a rebuilt boot image to do anything at all, since an image that still loads the delegate early leaves sipa-dele-start with nothing to do. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017Z17MBkdHmZPvNPNSLxcHk