[PATCH ath12k-ng] wifi: ath12k: move firmware stats request outside of atomic context

Jeff Johnson jeff.johnson at oss.qualcomm.com
Wed Nov 19 11:53:14 PST 2025


On Wed, 19 Nov 2025 10:24:47 +0800, Baochen Qiang wrote:
> In ath12k_mac_op_link_sta_statistics(), the atomic context scope
> introduced by dp_lock also covers firmware stats request. Since that
> request could block, below issue is hit:
> 
> BUG: sleeping function called from invalid context at kernel/locking/mutex.c:575
> in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 6866, name: iw
> preempt_count: 201, expected: 0
> RCU nest depth: 0, expected: 0
> 3 locks held by iw/6866:
>  #0:[...]
>  #1:[...]
>  #2: ffff9748f43230c8 (&dp->dp_lock){+.-.}-{3:3}, at:
> ath12k_mac_op_link_sta_statistics+0xc6/0x380 [ath12k]
> Preemption disabled at:
> [<ffffffffc0349656>] ath12k_mac_op_link_sta_statistics+0xc6/0x380 [ath12k]
> Call Trace:
>  <TASK>
>  show_stack
>  dump_stack_lvl
>  dump_stack
>  __might_resched.cold
>  __might_sleep
>  __mutex_lock
>  mutex_lock_nested
>  ath12k_mac_get_fw_stats
>  ath12k_mac_op_link_sta_statistics
>  </TASK>
> 
> [...]

Applied, thanks!

[1/1] wifi: ath12k: move firmware stats request outside of atomic context
      commit: a1e19289932aeef26085feb97597d624da6302ab

Best regards,
-- 
Jeff Johnson <jeff.johnson at oss.qualcomm.com>




More information about the ath12k mailing list