linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ath5k: Fix IMR init
@ 2008-11-03 22:25 Nick Kossifidis
  2008-11-03 22:44 ` [ath5k-devel] " Luis R. Rodriguez
  0 siblings, 1 reply; 4+ messages in thread
From: Nick Kossifidis @ 2008-11-03 22:25 UTC (permalink / raw)
  To: ath5k-devel, linux-wireless; +Cc: linville, jirislaby, mcgrof, me, nbd

 *On a previous patch i splitted AR5K_INT_TX to multiple different TX 
 interrupt flags for better handling but i forgot to unmask the new 
 TXDESC and TXEOL interrupts on ath5k_init and only left TXOK. However 
 for each queue we enable TXDESC and TXEOL interrupts, not TXOK so we don't 
 handle TX interrupts at all (because these interrupts remain masked on 
 PISR) and under load it results packet loss. Fix the problem by 
 unmasking TXDESC and TXEOL on ath5k_init.


 Signed-Off-by: Nick Kossifidis <mickflemm@gmail.com>

---
diff --git a/drivers/net/wireless/ath5k/base.c b/drivers/net/wireless/ath5k/base.c
index 5ef8cc4..f5f46fe 100644
--- a/drivers/net/wireless/ath5k/base.c
+++ b/drivers/net/wireless/ath5k/base.c
@@ -2219,9 +2219,9 @@ ath5k_init(struct ath5k_softc *sc, bool is_resume)
 	 */
 	sc->curchan = sc->hw->conf.channel;
 	sc->curband = &sc->sbands[sc->curchan->band];
-	sc->imask = AR5K_INT_RXOK | AR5K_INT_TXOK | AR5K_INT_RXEOL |
-		AR5K_INT_RXORN | AR5K_INT_FATAL | AR5K_INT_GLOBAL |
-		AR5K_INT_MIB;
+	sc->imask = AR5K_INT_RXOK | AR5K_INT_RXERR | AR5K_INT_RXEOL |
+		AR5K_INT_RXORN | AR5K_INT_TXDESC | AR5K_INT_TXEOL |
+		AR5K_INT_FATAL | AR5K_INT_GLOBAL | AR5K_INT_MIB;
 	ret = ath5k_reset(sc, false, false);
 	if (ret)
 		goto done;

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [ath5k-devel] [PATCH] ath5k: Fix IMR init
  2008-11-03 22:25 [PATCH] ath5k: Fix IMR init Nick Kossifidis
@ 2008-11-03 22:44 ` Luis R. Rodriguez
  2008-11-03 22:48   ` Bob Copeland
  0 siblings, 1 reply; 4+ messages in thread
From: Luis R. Rodriguez @ 2008-11-03 22:44 UTC (permalink / raw)
  To: ath5k-devel, linux-wireless, linville, jirislaby, mcgrof, me, nbd

On Mon, Nov 03, 2008 at 02:25:54PM -0800, Nick Kossifidis wrote:
>  *On a previous patch i splitted AR5K_INT_TX to multiple different TX
>  interrupt flags for better handling but i forgot to unmask the new
>  TXDESC and TXEOL interrupts on ath5k_init and only left TXOK. However
>  for each queue we enable TXDESC and TXEOL interrupts, not TXOK so we don't
>  handle TX interrupts at all (because these interrupts remain masked on
>  PISR) and under load it results packet loss. Fix the problem by
>  unmasking TXDESC and TXEOL on ath5k_init.
> 
> 
>  Signed-Off-by: Nick Kossifidis <mickflemm@gmail.com>

ACK

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [ath5k-devel] [PATCH] ath5k: Fix IMR init
  2008-11-03 22:44 ` [ath5k-devel] " Luis R. Rodriguez
@ 2008-11-03 22:48   ` Bob Copeland
  2008-11-06 23:13     ` Nick Kossifidis
  0 siblings, 1 reply; 4+ messages in thread
From: Bob Copeland @ 2008-11-03 22:48 UTC (permalink / raw)
  To: Luis R. Rodriguez
  Cc: ath5k-devel, linux-wireless, linville, jirislaby, mcgrof, nbd

On Mon, Nov 3, 2008 at 5:44 PM, Luis R. Rodriguez
<lrodriguez@atheros.com> wrote:
> On Mon, Nov 03, 2008 at 02:25:54PM -0800, Nick Kossifidis wrote:
>>  PISR) and under load it results packet loss. Fix the problem by
>>  unmasking TXDESC and TXEOL on ath5k_init.
>>
>>  Signed-Off-by: Nick Kossifidis <mickflemm@gmail.com>
>
> ACK

Yes, please - worked great here.

-- 
Bob Copeland %% www.bobcopeland.com

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [ath5k-devel] [PATCH] ath5k: Fix IMR init
  2008-11-03 22:48   ` Bob Copeland
@ 2008-11-06 23:13     ` Nick Kossifidis
  0 siblings, 0 replies; 4+ messages in thread
From: Nick Kossifidis @ 2008-11-06 23:13 UTC (permalink / raw)
  To: Bob Copeland
  Cc: Luis R. Rodriguez, jirislaby, ath5k-devel, linux-wireless,
	linville

2008/11/4 Bob Copeland <me@bobcopeland.com>:
> On Mon, Nov 3, 2008 at 5:44 PM, Luis R. Rodriguez
> <lrodriguez@atheros.com> wrote:
>> On Mon, Nov 03, 2008 at 02:25:54PM -0800, Nick Kossifidis wrote:
>>>  PISR) and under load it results packet loss. Fix the problem by
>>>  unmasking TXDESC and TXEOL on ath5k_init.
>>>
>>>  Signed-Off-by: Nick Kossifidis <mickflemm@gmail.com>
>>
>> ACK
>
> Yes, please - worked great here.
>

John any news on this ? Is it ok for inclusion or you want me to
respin/rebase it ?

-- 
GPG ID: 0xD21DB2DB
As you read this post global entropy rises. Have Fun ;-)
Nick

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-11-06 23:13 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-03 22:25 [PATCH] ath5k: Fix IMR init Nick Kossifidis
2008-11-03 22:44 ` [ath5k-devel] " Luis R. Rodriguez
2008-11-03 22:48   ` Bob Copeland
2008-11-06 23:13     ` Nick Kossifidis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).