diff options
author | Roman Yeryomin <roman@advem.lv> | 2016-08-19 14:03:26 +0300 |
---|---|---|
committer | Roman Yeryomin <roman@advem.lv> | 2016-08-19 14:03:26 +0300 |
commit | 5eb2bdd1752059437b956c701ff399c54b7e7600 (patch) | |
tree | 70d3d88ed1fdc73c5002a73526e49c3f0338b009 /package/kernel/mac80211/patches/951-ath10k-fix-get-rx_status-from-htt-context.patch | |
parent | 5a17ceb0ab6cdc554adc3a3bf1a59429f900a9c7 (diff) | |
download | master-187ad058-5eb2bdd1752059437b956c701ff399c54b7e7600.tar.gz master-187ad058-5eb2bdd1752059437b956c701ff399c54b7e7600.tar.bz2 master-187ad058-5eb2bdd1752059437b956c701ff399c54b7e7600.zip |
mac80211: add QCA9984 related patches and fixes
Signed-off-by: Roman Yeryomin <roman@advem.lv>
Diffstat (limited to 'package/kernel/mac80211/patches/951-ath10k-fix-get-rx_status-from-htt-context.patch')
-rw-r--r-- | package/kernel/mac80211/patches/951-ath10k-fix-get-rx_status-from-htt-context.patch | 75 |
1 files changed, 75 insertions, 0 deletions
diff --git a/package/kernel/mac80211/patches/951-ath10k-fix-get-rx_status-from-htt-context.patch b/package/kernel/mac80211/patches/951-ath10k-fix-get-rx_status-from-htt-context.patch new file mode 100644 index 0000000000..f4e874e06a --- /dev/null +++ b/package/kernel/mac80211/patches/951-ath10k-fix-get-rx_status-from-htt-context.patch @@ -0,0 +1,75 @@ +From e809ea07e9edefc3678ad0b356a95f0c4c7f27e7 Mon Sep 17 00:00:00 2001 +From: Ashok Raj Nagarajan <arnagara@qti.qualcomm.com> +Date: Tue, 26 Jul 2016 22:15:52 +0530 +Subject: ath10k: fix get rx_status from htt context + +On handling amsdu on rx path, get the rx_status from htt context. Without this +fix, we are seeing warnings when running DBDC traffic like this. + +WARNING: CPU: 0 PID: 0 at net/mac80211/rx.c:4105 ieee80211_rx_napi+0x88/0x7d8 [mac80211]() + +[ 1715.878248] CPU: 0 PID: 0 Comm: swapper/0 Tainted: G W 3.18.21 #1 +[ 1715.878273] [<c001d3f4>] (unwind_backtrace) from [<c001a4b0>] (show_stack+0x10/0x14) +[ 1715.878293] [<c001a4b0>] (show_stack) from [<c01bee64>] (dump_stack+0x70/0xbc) +[ 1715.878315] [<c01bee64>] (dump_stack) from [<c002a61c>] (warn_slowpath_common+0x64/0x88) +[ 1715.878339] [<c002a61c>] (warn_slowpath_common) from [<c002a6d0>] (warn_slowpath_null+0x18/0x20) +[ 1715.878395] [<c002a6d0>] (warn_slowpath_null) from [<bf4caa98>] (ieee80211_rx_napi+0x88/0x7d8 [mac80211]) +[ 1715.878474] [<bf4caa98>] (ieee80211_rx_napi [mac80211]) from [<bf568658>] (ath10k_htt_t2h_msg_handler+0xb48/0xbfc [ath10k_core]) +[ 1715.878535] [<bf568658>] (ath10k_htt_t2h_msg_handler [ath10k_core]) from [<bf568708>] (ath10k_htt_t2h_msg_handler+0xbf8/0xbfc [ath10k_core]) +[ 1715.878597] [<bf568708>] (ath10k_htt_t2h_msg_handler [ath10k_core]) from [<bf569160>] (ath10k_htt_txrx_compl_task+0xa54/0x1170 [ath10k_core]) +[ 1715.878639] [<bf569160>] (ath10k_htt_txrx_compl_task [ath10k_core]) from [<c002db14>] (tasklet_action+0xb4/0x130) +[ 1715.878659] [<c002db14>] (tasklet_action) from [<c002d110>] (__do_softirq+0xe0/0x210) +[ 1715.878678] [<c002d110>] (__do_softirq) from [<c002d4b4>] (irq_exit+0x84/0xe0) +[ 1715.878700] [<c002d4b4>] (irq_exit) from [<c005a544>] (__handle_domain_irq+0x98/0xd0) +[ 1715.878722] [<c005a544>] (__handle_domain_irq) from [<c00085f4>] (gic_handle_irq+0x38/0x5c) +[ 1715.878741] [<c00085f4>] (gic_handle_irq) from [<c0009680>] (__irq_svc+0x40/0x74) +[ 1715.878753] Exception stack(0xc05f9f50 to 0xc05f9f98) +[ 1715.878767] 9f40: ffffffed 00000000 00399e1e c000a220 +[ 1715.878786] 9f60: 00000000 c05f6780 c05f8000 00000000 c05f5db8 ffffffed c05f8000 c04d1980 +[ 1715.878802] 9f80: 00000000 c05f9f98 c0018110 c0018114 60000013 ffffffff +[ 1715.878822] [<c0009680>] (__irq_svc) from [<c0018114>] (arch_cpu_idle+0x2c/0x50) +[ 1715.878844] [<c0018114>] (arch_cpu_idle) from [<c00530d4>] (cpu_startup_entry+0x108/0x234) +[ 1715.878866] [<c00530d4>] (cpu_startup_entry) from [<c05c7be0>] (start_kernel+0x33c/0x3b8) +[ 1715.878879] ---[ end trace 6d5e1cc0fef8ed6a ]--- +[ 1715.878899] ------------[ cut here ]------------ + +Fixes: 18235664e7f9 ("ath10k: cleanup amsdu processing for rx indication") +Signed-off-by: Ashok Raj Nagarajan <arnagara@qti.qualcomm.com> +Patchwork-Id: 9248457 +Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com> +--- + drivers/net/wireless/ath/ath10k/htt_rx.c | 10 +++++----- + 1 file changed, 5 insertions(+), 5 deletions(-) + +diff --git a/drivers/net/wireless/ath/ath10k/htt_rx.c b/drivers/net/wireless/ath/ath10k/htt_rx.c +index 78db5d6..24c8d65 100644 +--- a/drivers/net/wireless/ath/ath10k/htt_rx.c ++++ b/drivers/net/wireless/ath/ath10k/htt_rx.c +@@ -1525,7 +1525,7 @@ static void ath10k_htt_rx_h_filter(struct ath10k *ar, + static int ath10k_htt_rx_handle_amsdu(struct ath10k_htt *htt) + { + struct ath10k *ar = htt->ar; +- static struct ieee80211_rx_status rx_status; ++ struct ieee80211_rx_status *rx_status = &htt->rx_status; + struct sk_buff_head amsdu; + int ret; + +@@ -1549,11 +1549,11 @@ static int ath10k_htt_rx_handle_amsdu(struct ath10k_htt *htt) + return ret; + } + +- ath10k_htt_rx_h_ppdu(ar, &amsdu, &rx_status, 0xffff); ++ ath10k_htt_rx_h_ppdu(ar, &amsdu, rx_status, 0xffff); + ath10k_htt_rx_h_unchain(ar, &amsdu, ret > 0); +- ath10k_htt_rx_h_filter(ar, &amsdu, &rx_status); +- ath10k_htt_rx_h_mpdu(ar, &amsdu, &rx_status); +- ath10k_htt_rx_h_deliver(ar, &amsdu, &rx_status); ++ ath10k_htt_rx_h_filter(ar, &amsdu, rx_status); ++ ath10k_htt_rx_h_mpdu(ar, &amsdu, rx_status); ++ ath10k_htt_rx_h_deliver(ar, &amsdu, rx_status); + + return 0; + } +-- +cgit v0.12 + |