aboutsummaryrefslogtreecommitdiffstats
path: root/package/kernel/mac80211/patches
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2015-09-13 20:46:00 +0000
committerFelix Fietkau <nbd@openwrt.org>2015-09-13 20:46:00 +0000
commit916dfa7c9282abfe9e66b58f83a7da33d74c86c2 (patch)
treef4b3491f75775074243d4395fac7c406583d8bad /package/kernel/mac80211/patches
parent7c573c8758e941de9337a242855472ef0d4a5d54 (diff)
downloadupstream-916dfa7c9282abfe9e66b58f83a7da33d74c86c2.tar.gz
upstream-916dfa7c9282abfe9e66b58f83a7da33d74c86c2.tar.bz2
upstream-916dfa7c9282abfe9e66b58f83a7da33d74c86c2.zip
ath10k: reduce dma burst size on newer firmware to fix crashes
Signed-off-by: Felix Fietkau <nbd@openwrt.org> Backport of r46900 git-svn-id: svn://svn.openwrt.org/openwrt/branches/chaos_calmer@46901 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/kernel/mac80211/patches')
-rw-r--r--package/kernel/mac80211/patches/396-ath10k-fix-DMA-related-firmware-crashes-on-multiple-.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/package/kernel/mac80211/patches/396-ath10k-fix-DMA-related-firmware-crashes-on-multiple-.patch b/package/kernel/mac80211/patches/396-ath10k-fix-DMA-related-firmware-crashes-on-multiple-.patch
new file mode 100644
index 0000000000..f7b3e40b66
--- /dev/null
+++ b/package/kernel/mac80211/patches/396-ath10k-fix-DMA-related-firmware-crashes-on-multiple-.patch
@@ -0,0 +1,24 @@
+From: Felix Fietkau <nbd@openwrt.org>
+Date: Sun, 13 Sep 2015 22:26:10 +0200
+Subject: [PATCH] ath10k: fix DMA related firmware crashes on multiple devices
+
+Some platforms really don't like DMA bursts of 256 bytes, and this
+causes the firmware to crash when sending beacons.
+Also, changing this based on the firmware version does not seem to make
+much sense, so use 128 bytes for all versions.
+
+Cc: stable@vger.kernel.org
+Signed-off-by: Felix Fietkau <nbd@openwrt.org>
+---
+
+--- a/drivers/net/wireless/ath/ath10k/hw.h
++++ b/drivers/net/wireless/ath/ath10k/hw.h
+@@ -253,7 +253,7 @@ struct ath10k_pktlog_hdr {
+ #define TARGET_10X_MAX_FRAG_ENTRIES 0
+
+ /* 10.2 parameters */
+-#define TARGET_10_2_DMA_BURST_SIZE 1
++#define TARGET_10_2_DMA_BURST_SIZE 0
+
+ /* Target specific defines for WMI-TLV firmware */
+ #define TARGET_TLV_NUM_VDEVS 3