On 4/30/2024 5:24 PM, Kalle Valo wrote:
47] WARNING: possible circular locking dependency detected [ 147.211599] 6.9.0-rc5-wt-ath+ #1403 Not tainted
Thank you, Kalle, for sharing the full logs. Unfortunately, I did not see this warning in my testbed with QCN9274.
Seems like during rmmod case, ath12k_core_soc_destroy() is invoked with ag->mutex lock which in-turn invokes ath12k_qmi_deinit_service() where cancel_work_sync for qmi events are called. So, if ATH12K_QMI_EVENT_FW_READY was in queue during rmmod, it would hit a deadlock as in core start it requires ag->mutex lock. But, this scenario is quite unlikely to occur where rmmod and FW_READY event are going to be in parallel. Nevertheless, it has to be addressed. I will check further on this warning and see how to address this.
Thanks, Harshitha