Skip to contentSkip to conversation

ath9k: add additional checks for the baseband hang detection

PATCH New Felix Fietkau 1 participant 1 message Feb 4, 2011 Qualcomm Atheros ATH9K wireless driver

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 ath9k: add additional checks for the baseband hang detection

Since even with the latest changes the false positive issue of the baseband hang check is not fully solved yet, additional checks are needed. If the baseband hang occurs, the rx_clear signal will be stuck to high, so we can use the cycle counters to confirm it.
With this patch, a hardware reset is only triggered if the baseband hang check returned true three times in a row, with a beacon interval between each check and if the busy time was also 99% or more during the check intervals.

---
 drivers/net/wireless/ath/ath9k/ath9k.h |    2 +
 drivers/net/wireless/ath/ath9k/main.c  |   45 +++++++++++++++++++++++++------
 2 files changed, 38 insertions(+), 9 deletions(-)
drivers/net/wireless/ath/ath9k/ath9k.h +2 -0
index bd85e31..7c8409e 100644
@@ -602,6 +602,8 @@ struct ath_softc {
 	struct completion paprd_complete;
 	bool paprd_pending;
 
+	unsigned int hw_busy_count;
+
 	u32 intrstatus;
 	u32 sc_flags; /* SC_OP_* */
 	u16 ps_flags; /* PS_* */
drivers/net/wireless/ath/ath9k/main.c +36 -9

90 lines not on this page · raw message

Signature · 1 line
1.7.3.2