From 87ef682fd16e7ea6213fb456376912ed2111815c Mon Sep 17 00:00:00 2001 From: Josh Boyer Date: Wed, 6 Feb 2013 09:57:47 -0500 Subject: [PATCH] Add patch to fix ath9k dma stop checks (rhbz 892811) --- ath9k_rx_dma_stop_check.patch | 28 ++++++++++++++++++++++++++++ kernel.spec | 11 ++++++++++- 2 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 ath9k_rx_dma_stop_check.patch diff --git a/ath9k_rx_dma_stop_check.patch b/ath9k_rx_dma_stop_check.patch new file mode 100644 index 000000000..606eb1c63 --- /dev/null +++ b/ath9k_rx_dma_stop_check.patch @@ -0,0 +1,28 @@ +--- a/drivers/net/wireless/ath/ath9k/mac.c ++++ b/drivers/net/wireless/ath/ath9k/mac.c +@@ -689,7 +689,7 @@ bool ath9k_hw_stopdmarecv(struct ath_hw + { + #define AH_RX_STOP_DMA_TIMEOUT 10000 /* usec */ + struct ath_common *common = ath9k_hw_common(ah); +- u32 mac_status, last_mac_status = 0; ++ u32 mac_status = 0, last_mac_status = 0; + int i; + + /* Enable access to the DMA observation bus */ +@@ -719,6 +719,16 @@ bool ath9k_hw_stopdmarecv(struct ath_hw + } + + if (i == 0) { ++ if (!AR_SREV_9300_20_OR_LATER(ah) && ++ (mac_status & 0x700) == 0) { ++ /* ++ * DMA is idle but the MAC is still stuck ++ * processing events ++ */ ++ *reset = true; ++ return true; ++ } ++ + ath_err(common, + "DMA failed to stop in %d ms AR_CR=0x%08x AR_DIAG_SW=0x%08x DMADBG_7=0x%08x\n", + AH_RX_STOP_DMA_TIMEOUT / 1000, diff --git a/kernel.spec b/kernel.spec index b2f23cb8d..c18bd7991 100644 --- a/kernel.spec +++ b/kernel.spec @@ -54,7 +54,7 @@ Summary: The Linux kernel # For non-released -rc kernels, this will be appended after the rcX and # gitX tags, so a 3 here would become part of release "0.rcX.gitX.3" # -%global baserelease 102 +%global baserelease 103 %global fedora_build %{baserelease} # base_sublevel is the kernel version we're starting with and patching @@ -757,6 +757,9 @@ Patch21242: Input-add-support-for-Cypress-PS2-Trackpads.patch #rhbz 903881 Patch21246: rtlwifi-Fix-scheduling-while-atomic-bug.patch +#rhbz 892811 +Patch21247: ath9k_rx_dma_stop_check.patch + # END OF PATCH DEFINITIONS %endif @@ -1463,6 +1466,9 @@ ApplyPatch Input-add-support-for-Cypress-PS2-Trackpads.patch #rhbz 903881 ApplyPatch rtlwifi-Fix-scheduling-while-atomic-bug.patch +#rhbz 892811 +ApplyPatch ath9k_rx_dma_stop_check.patch + # END OF PATCH APPLICATIONS %endif @@ -2318,6 +2324,9 @@ fi # '-' | | # '-' %changelog +* Wed Feb 06 2013 Josh Boyer +- Add patch to fix ath9k dma stop checks (rhbz 892811) + * Mon Feb 04 2013 Josh Boyer - 3.7.6-102 - Fix rtlwifi scheduling while atomic from Larry Finger (rhbz 903881)