Re: [PATCH] ath9k_htc: add adaptive usb receive flow control to repair soft lockup with monitor mode

2015-02-11 Thread Yuwei Zheng
On 三, 2015-02-11 at 11:20 +0200, Kalle Valo wrote: > Yuwei Zheng writes: > > > The ath9k_hif_usb_rx_cb function excute on the interrupt context, and > > ath9k_rx_tasklet excute > > on the soft irq context. In other words, the ath9k_hif_usb_rx_cb have more &

[PATCHv2] ath9k_htc: add adaptive usb receive flow control to repair soft lockup with monitor mode

2015-02-11 Thread Yuwei Zheng
message in the ath9k_hif_usb_rx_cb function may trigger this bug quickly. Signed-off-by: Yuwei Zheng --- Changes since v1: - Add aurfc_active flag to stop delayed submit while ath9k_hif_usb_dealloc_rx_urbs called. - Add spinlock aurfc_lock to protect aurfc_delayed_work and aurfc_active. - Add

Re: [PATCH] ath9k_htc: add adaptive usb receive flow control to repair soft lockup with monitor mode

2015-02-11 Thread Yuwei Zheng
On 三, 2015-02-11 at 11:20 +0200, Kalle Valo wrote: Yuwei Zheng yuweizh...@139.com writes: The ath9k_hif_usb_rx_cb function excute on the interrupt context, and ath9k_rx_tasklet excute on the soft irq context. In other words, the ath9k_hif_usb_rx_cb have more chance to excute than

[PATCHv2] ath9k_htc: add adaptive usb receive flow control to repair soft lockup with monitor mode

2015-02-11 Thread Yuwei Zheng
](__irq_svc+0x3b/0x5c) This bug can be see with low performance board, such as uniprocessor beagle bone board. Add some debug message in the ath9k_hif_usb_rx_cb function may trigger this bug quickly. Signed-off-by: Yuwei Zheng yuweizh...@139.com --- Changes since v1: - Add aurfc_active flag to stop

[PATCH] ath9k_htc: add adaptive usb receive flow control to repair soft lockup with monitor mode

2015-02-10 Thread Yuwei Zheng
message in the ath9k_hif_usb_rx_cb function may trigger this bug quickly. Signed-off-by: Yuwei Zheng --- drivers/net/wireless/ath/ath9k/hif_usb.c | 78 +++--- drivers/net/wireless/ath/ath9k/hif_usb.h | 13 + drivers/net/wireless/ath/ath9k/htc.h | 19

[PATCH] ath9k_htc: add adaptive usb receive flow control to repair soft lockup with monitor mode

2015-02-10 Thread Yuwei Zheng
](__irq_svc+0x3b/0x5c) This bug can be see with low performance board, such as uniprocessor beagle bone board. Add some debug message in the ath9k_hif_usb_rx_cb function may trigger this bug quickly. Signed-off-by: Yuwei Zheng yuweizh...@139.com --- drivers/net/wireless/ath/ath9k/hif_usb.c

Re: [PATCH] ath9k_htc: add adaptive usb receive flow control to repair soft lockup with monitor mode

2015-02-09 Thread Yuwei Zheng
ormat. The check result is total: 0 errors, 0 warnings, 1 checks, 310 lines checked > > > Am 06.02.2015 um 11:46 schrieb yuweizh...@139.com: > > From: Yuwei Zheng > > > > In the environment with heavy wifi traffic, set the ar9271 into monitor > > mode, will > &

Re: [PATCH] ath9k_htc: add adaptive usb receive flow control to repair soft lockup with monitor mode

2015-02-09 Thread Yuwei Zheng
errors, 0 warnings, 1 checks, 310 lines checked Am 06.02.2015 um 11:46 schrieb yuweizh...@139.com: From: Yuwei Zheng yuweizh...@139.com In the environment with heavy wifi traffic, set the ar9271 into monitor mode, will trigger a deadloop panic. The ath9k_hif_usb_rx_cb

Re: [PATCH] Repair soft lockup with monitor mode of ath9k_htc card

2015-01-30 Thread Yuwei Zheng
You mean tasklet_schedule ? The normal tasklet does not support delayed schedule. um, I will try normal timer or delayed workqueue later. On 五, 2015-01-30 at 11:55 +0100, Oleksij Rempel wrote: > Am 29.01.2015 um 00:14 schrieb yuweizh...@139.com: > > From: Yu

Re: [PATCH] Repair soft lockup with monitor mode of ath9k_htc card

2015-01-30 Thread Yuwei Zheng
You mean tasklet_schedule ? The normal tasklet does not support delayed schedule. um, I will try normal timer or delayed workqueue later. On 五, 2015-01-30 at 11:55 +0100, Oleksij Rempel wrote: Am 29.01.2015 um 00:14 schrieb yuweizh...@139.com: From: Yuwei Zheng yuweizh...@139.com