Skip to contentSkip to conversation

ath10k: fix DMA related firmware crashes on multiple devices

PATCH RESEND Applied Felix Fietkau 2 participants 2 messages Sep 14, 2015 – Sep 26, 2015 Qualcomm Atheros ATH10K wireless driver

lore
Share & tools
lore
#0 lore raw

PATCH RESEND 1/1 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.

---
 drivers/net/wireless/ath/ath10k/hw.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/net/wireless/ath/ath10k/hw.h +2 -2
index 23afcda..678d72a 100644
@@ -337,7 +337,7 @@ enum ath10k_hw_rate_cck {
 #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			4
@@ -391,7 +391,7 @@ enum ath10k_hw_rate_cck {
 
 #define TARGET_10_4_TX_DBG_LOG_SIZE		1024
 #define TARGET_10_4_NUM_WDS_ENTRIES		32
-#define TARGET_10_4_DMA_BURST_SIZE		1
+#define TARGET_10_4_DMA_BURST_SIZE		0
 #define TARGET_10_4_MAC_AGGR_DELIM		0
 #define TARGET_10_4_RX_SKIP_DEFRAG_TIMEOUT_DUP_DETECTION_CHECK 1
 #define TARGET_10_4_VOW_CONFIG			0
Signature · 1 line
2.2.2
Applied
#1 lore raw
Quoted 7 lines · Felix Fietkau

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.

Thanks, applied to ath-current branch in ath.git.

Signature · 1 line
Kalle Valo