No WiFi: remoteproc remoteproc0: a204000.wcnss is available

Below is the kernel log showing the error. This occurs on some boot ups (and reboots) while other times the subsystem just comes up normally. I am unable to figure out exactly what is causing this issue but when this happens there is no wifi or Bluetooth. The fix is to reboot, sometime several times. This occurs on both 18.01 and 19.01 releases.

[ +2.517434] qcom-wcnss-pil a204000.wcnss: a204000.wcnss supply vddcx not found, using dummy regulator
[ +0.020509] remoteproc remoteproc0: a204000.wcnss is available
[ +0.063807] remoteproc remoteproc0: powering up a204000.wcnss
[ +0.000033] remoteproc remoteproc0: Booting fw image wcnss.mdt, size 7260
[ +0.059070] qcom-wcnss-pil a204000.wcnss: no iris registered
[ +0.000029] remoteproc remoteproc0: can’t start rproc a204000.wcnss: -22

Could you please share full dmesg log (e.g. via pastebin)?

Actually I solved the issue finally. It ends up being a race condition. Sometimes the wncss module would call start before the wncss_iris module was finished initializing and other times wncss_iris would finish before wncss called start. I used the pre-existing mutex shared between the drivers to ensure start never runs until after the iris has completed.

I can post more details later if someone wants to know the specifics.

Well, if it’s an issue we would happy to get a patch to fix it in upcoming releases.