<div dir="ltr"><div>Hi,</div><div><br></div><div>This is a follow up on the recently discussed issue with EM7511 and the AUTO-SIM feature. When the carrier is set to AUTO_SIM, the modem will automatically set the appropriate profile, and reboot for this profile to take effect.</div><div><br></div><div>A recent version of MM temporarily switches to every installed SIM during probing, in order to retrieve SIM information. The logic is summarized in the commit message <a href="https://github.com/freedesktop/ModemManager/commit/7c76450c15555204d14a8ce0550dc2c639d288b3">https://github.com/freedesktop/ModemManager/commit/7c76450c15555204d14a8ce0550dc2c639d288b3</a>.</div><div><br></div><div>Unfortunately, what we observe is these two features together seem to cause an infinite reboot loop after a SIM switch. <br></div><div><br></div><div>1. Suppose, the SIM 1 is active now and the profile set to AUTO-SIM.<br></div><div>2. We ask the MM to switch to SIM 2.</div><div>3. The modem reboots, on its own. The MM detects the modem disappearing and has to cancel whatever it was doing to it.<br></div><div>4. When the modem comes back up, MM retrieves the slot status list and initiates the switching loop (see uim_get_slot_status_ready()). It first switches to SIM 1...</div><div>5. Repeat starting with step 3.</div><div><br></div><div>I hope there is something I am missing, but this is what it looks like.</div><div><br></div><div>I wonder if this is a general issue affecting any users with AUTO-SIM enabled and also what could be a right approach to address this. Currently, we are trying a "solution" that would disable the AUTO-SIM (switch to the current profile) before the SIM enumeration loop, and re-enable it again afterwards. By patching the MM.<br></div><div><br></div><div>Any ideas are appreciated.</div><div><br></div><div>Regards,</div><div>Alexey Karyakin<br></div><div><br></div><div><br></div></div>