From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ee0-f54.google.com (mail-ee0-f54.google.com [74.125.83.54]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by huchra.bufferbloat.net (Postfix) with ESMTPS id 6F07221F1D7 for ; Fri, 13 Dec 2013 01:49:02 -0800 (PST) Received: by mail-ee0-f54.google.com with SMTP id e51so636305eek.13 for ; Fri, 13 Dec 2013 01:48:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=UL4ifo2HIwIJwVEPZ4xCjClYZUbfpa4nj3BvRnnXxC8=; b=Y0PWCLb/1J1VqiXEz6bHcPByFFdZp2tdtrwT7o2smsPWwOIB5lWQhs1hmpVtwewknO X0Ad+W9u5+XtbvxXdp5a1qWlxwNdR5Zc44EjEnjUtjBFr17ckg8JeTTmiuj6D6glgPJi fPjucjpFimo7048vs3IozApFSqJyT2qiDUxEmSW4WImlWZSd4SUo39Ez9hMV4FJAHmcO pm/ebIlEDWQTuNQbkSwNwxB2A3urYRoNzBgK9EDw3XrTZLSRn17aza6n7w/e/6/6Tg2J vNLIluTK/zs6e3Td6oticbe5ryaLkyvgHTgkRYSXQyVOw8hmTFKmimu+vRZHHERabvfa /65g== X-Received: by 10.14.93.197 with SMTP id l45mr1766204eef.53.1386928105144; Fri, 13 Dec 2013 01:48:25 -0800 (PST) Received: from u-081-c132.eap.uni-tuebingen.de (u-081-c132.eap.uni-tuebingen.de. [134.2.81.132]) by mx.google.com with ESMTPSA id v7sm4825324eel.2.2013.12.13.01.48.23 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Dec 2013 01:48:24 -0800 (PST) Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Mac OS X Mail 6.6 \(1510\)) From: Sebastian Moeller In-Reply-To: <21162.54025.118938.614891@gargle.gargle.HOWL> Date: Fri, 13 Dec 2013 10:48:24 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: <24E1A6F1-E642-43D3-8FB1-B6C27B6D8E24@gmail.com> References: <20131211174519.34966001@nehalam.linuxnetplumber.net> <21161.18818.926049.511664@gargle.gargle.HOWL> <21162.54025.118938.614891@gargle.gargle.HOWL> To: Sujith Manoharan X-Mailer: Apple Mail (2.1510) X-Mailman-Approved-At: Fri, 13 Dec 2013 10:39:36 -0800 Cc: ath9k-devel@lists.ath9k.org, linux-wireless@vger.kernel.org, cerowrt-devel@lists.bufferbloat.net Subject: Re: [Cerowrt-devel] Wireless failures 3.10.17-3 X-BeenThere: cerowrt-devel@lists.bufferbloat.net X-Mailman-Version: 2.1.13 Precedence: list List-Id: Development issues regarding the cerowrt test router project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Dec 2013 09:49:02 -0000 Hi Sujith, On Dec 13, 2013, at 10:27 , Sujith Manoharan wrote: > Sebastian Moeller wrote: >> It is a net gear WNDR3700 v2, so according to: >> http://wiki.openwrt.org/toh/netgear/wndr3700 it is a Atheros AR7161 = rev 2 680 >> MHz soc with the following wireless parts: Atheros AR9223 802.11bgn / = Atheros >> AR9220 802.11an. >>=20 >> Sure, I hope I got the right one. Now this is not from the same boot = as the >> one with the errors, but I assume that does not make a difference=85 = Since I am >> located in Germany I set the regulatory domain to DE. please let me = know if I >> you need any additional information or testing (note I am not set up = to build >> cerowrt myself, so I would need Dave T=E4ht's help to build a = modified firmware) >=20 > Can you try this patch ? I will, but it will take some time, as I cannot build the = firmware for this device myself, but need help. So I let you know once I = tested the patched kernel. Best Regards & many thanks Sebastian >=20 > diff --git a/drivers/net/wireless/ath/ath9k/ar9002_mac.c = b/drivers/net/wireless/ath/ath9k/ar9002_mac.c > index 8d78253..0337de7 100644 > --- a/drivers/net/wireless/ath/ath9k/ar9002_mac.c > +++ b/drivers/net/wireless/ath/ath9k/ar9002_mac.c > @@ -76,9 +76,16 @@ static bool ar9002_hw_get_isr(struct ath_hw *ah, = enum ath9k_int *masked) > mask2 |=3D ATH9K_INT_CST; > if (isr2 & AR_ISR_S2_TSFOOR) > mask2 |=3D ATH9K_INT_TSFOOR; > + > + if (!(pCap->hw_caps & = ATH9K_HW_CAP_RAC_SUPPORTED)) { > + REG_WRITE(ah, AR_ISR_S2, isr2); > + isr &=3D ~AR_ISR_BCNMISC; > + } > } >=20 > - isr =3D REG_READ(ah, AR_ISR_RAC); > + if (pCap->hw_caps & ATH9K_HW_CAP_RAC_SUPPORTED) > + isr =3D REG_READ(ah, AR_ISR_RAC); > + > if (isr =3D=3D 0xffffffff) { > *masked =3D 0; > return false; > @@ -97,11 +104,23 @@ static bool ar9002_hw_get_isr(struct ath_hw *ah, = enum ath9k_int *masked) >=20 > *masked |=3D ATH9K_INT_TX; >=20 > - s0_s =3D REG_READ(ah, AR_ISR_S0_S); > + if (pCap->hw_caps & ATH9K_HW_CAP_RAC_SUPPORTED) = { > + s0_s =3D REG_READ(ah, AR_ISR_S0_S); > + s1_s =3D REG_READ(ah, AR_ISR_S1_S); > + } else { > + s0_s =3D REG_READ(ah, AR_ISR_S0); > + REG_WRITE(ah, AR_ISR_S0, s0_s); > + s1_s =3D REG_READ(ah, AR_ISR_S1); > + REG_WRITE(ah, AR_ISR_S1, s1_s); > + > + isr &=3D ~(AR_ISR_TXOK | > + AR_ISR_TXDESC | > + AR_ISR_TXERR | > + AR_ISR_TXEOL); > + } > + > ah->intr_txqs |=3D MS(s0_s, AR_ISR_S0_QCU_TXOK); > ah->intr_txqs |=3D MS(s0_s, = AR_ISR_S0_QCU_TXDESC); > - > - s1_s =3D REG_READ(ah, AR_ISR_S1_S); > ah->intr_txqs |=3D MS(s1_s, = AR_ISR_S1_QCU_TXERR); > ah->intr_txqs |=3D MS(s1_s, = AR_ISR_S1_QCU_TXEOL); > } > @@ -120,7 +139,12 @@ static bool ar9002_hw_get_isr(struct ath_hw *ah, = enum ath9k_int *masked) > if (isr & AR_ISR_GENTMR) { > u32 s5_s; >=20 > - s5_s =3D REG_READ(ah, AR_ISR_S5_S); > + if (pCap->hw_caps & ATH9K_HW_CAP_RAC_SUPPORTED) { > + s5_s =3D REG_READ(ah, AR_ISR_S5_S); > + } else { > + s5_s =3D REG_READ(ah, AR_ISR_S5); > + } > + > ah->intr_gen_timer_trigger =3D > MS(s5_s, AR_ISR_S5_GENTIMER_TRIG); >=20 > @@ -133,6 +157,16 @@ static bool ar9002_hw_get_isr(struct ath_hw *ah, = enum ath9k_int *masked) > if ((s5_s & AR_ISR_S5_TIM_TIMER) && > !(pCap->hw_caps & ATH9K_HW_CAP_AUTOSLEEP)) > *masked |=3D ATH9K_INT_TIM_TIMER; > + > + if (!(pCap->hw_caps & ATH9K_HW_CAP_RAC_SUPPORTED)) { > + REG_WRITE(ah, AR_ISR_S5, s5_s); > + isr &=3D ~AR_ISR_GENTMR; > + } > + } > + > + if (!(pCap->hw_caps & ATH9K_HW_CAP_RAC_SUPPORTED)) { > + REG_WRITE(ah, AR_ISR, isr); > + REG_READ(ah, AR_ISR); > } >=20 > if (sync_cause) { >=20 >=20 > A version that applies over OpenWrt trunk is here: > = http://msujith.org/dir/patches/wl/Dec-13-2013/0001-ath9k-Interrupt-handlin= g-fix-for-AR9002-family.patch >=20 > Sujith --=20 Sandra, Okko, Joris, & Sebastian Moeller Telefon: +49 7071 96 49 783, +49 7071 96 49 784, +49 7071 96 49 785 GSM: +49-1577-190 31 41 GSM: +49-1517-00 70 355 Moltkestrasse 6 72072 Tuebingen Deutschland