All of lore.kernel.org
 help / color / mirror / Atom feed
* [ath9k-devel] A bad case of resetting the chip
@ 2010-09-28 11:35 Björn Smedman
  2010-09-28 18:15 ` Luis R. Rodriguez
  0 siblings, 1 reply; 4+ messages in thread
From: Björn Smedman @ 2010-09-28 11:35 UTC (permalink / raw)
  To: ath9k-devel

Hi all,

I recently updated some AR913x based routers (with AR9100 MAC/BB Rev:0
AR2133 RF Rev:a2) with ath9k from compat-wireless-2010-07-29.
Performance in HT20 is very good and stability is much improved. :)

However, once in a while under high load (about every 15-30 minutes)
the driver gets into a loop resetting the chip over and over. It does
this for a minute or two, with both RX and TX stuck, and then snaps
out of it. The log below shows a typical scenario of seemingly endless
looping and then a sudden recovery. While in the reset loop it seems
RX is completely broken (nothing coming in on monitor interface).

What do the hex codes AR_CR=0x00000024 AR_DIAG_SW=0x42000020 mean?

Is there some way to reset the chip that is sure to work the first time?

Thanks for any help!

/Bj?rn

?ath: Failed to stop TX DMA in 100 msec after killing last frame
?ath: Failed to stop TX DMA in 100 msec after killing last frame
?ath: Failed to stop TX DMA. Resetting hardware!
?ath: DMA failed to stop in 10 ms AR_CR=0x00000024 AR_DIAG_SW=0x42000020
?ath: Failed to stop receive dma
?ath: ah->misc_mode 0xc
?ath: Setting CFG 0x10a
?ath: TX complete: skb: 80afc240
?ath: ah->misc_mode 0xc
?ath: Setting CFG 0x10a
?ath: transmitting packet, skb: 80810840
?ath: TXDP[3] = 1ed34bc (a1ed34bc)
?ath: Failed to stop TX DMA in 100 msec after killing last frame
?ath: Failed to stop TX DMA in 100 msec after killing last frame
?ath: Failed to stop TX DMA. Resetting hardware!
?ath: DMA failed to stop in 10 ms AR_CR=0x00000024 AR_DIAG_SW=0x42000020
?ath: Failed to stop receive dma
?ath: ah->misc_mode 0xc
?ath: Setting CFG 0x10a
?ath: TX complete: skb: 80810840
?ath: ah->misc_mode 0xc
?ath: Setting CFG 0x10a
?ath: Failed to stop TX DMA in 100 msec after killing last frame
?ath: DMA failed to stop in 10 ms AR_CR=0x00000024 AR_DIAG_SW=0x40000020
?ath: DMA failed to stop in 10 ms AR_CR=0x00000024 AR_DIAG_SW=0x42000020
?ath: Failed to stop receive dma
?ath: ah->misc_mode 0xc
?ath: Setting CFG 0x10a
?ath: transmitting packet, skb: 809d4240
?ath: TXDP[3] = 1ed3520 (a1ed3520)
?ath: Failed to stop TX DMA in 100 msec after killing last frame
?ath: Failed to stop TX DMA in 100 msec after killing last frame
?ath: Failed to stop TX DMA. Resetting hardware!
?ath: DMA failed to stop in 10 ms AR_CR=0x00000024 AR_DIAG_SW=0x42000020
?ath: Failed to stop receive dma
?ath: ah->misc_mode 0xc
?ath: Setting CFG 0x10a
?ath: TX complete: skb: 809d4240
?ath: ah->misc_mode 0xc
?ath: Setting CFG 0x10a
?ath: transmitting packet, skb: 80fdfcc0
?ath: TXDP[3] = 1ed35e8 (a1ed35e8)
?ath: Failed to stop TX DMA in 100 msec after killing last frame
?ath: Failed to stop TX DMA in 100 msec after killing last frame
?ath: Failed to stop TX DMA. Resetting hardware!
?ath: DMA failed to stop in 10 ms AR_CR=0x00000024 AR_DIAG_SW=0x42000020
?ath: Failed to stop receive dma
?ath: ah->misc_mode 0xc
?ath: Setting CFG 0x10a
?ath: TX complete: skb: 80fdfcc0
?ath: ah->misc_mode 0xc
?ath: Setting CFG 0x10a
?ath: Failed to stop TX DMA in 100 msec after killing last frame
?ath: DMA failed to stop in 10 ms AR_CR=0x00000024 AR_DIAG_SW=0x40000020
?ath: DMA failed to stop in 10 ms AR_CR=0x00000024 AR_DIAG_SW=0x42000020
?ath: Failed to stop receive dma
?ath: ah->misc_mode 0xc
?ath: Setting CFG 0x10a
?ath: transmitting packet, skb: 817e6c00
?ath: TXDP[3] = 1ed364c (a1ed364c)
?ath: Failed to stop TX DMA in 100 msec after killing last frame
?ath: Failed to stop TX DMA in 100 msec after killing last frame
?ath: Failed to stop TX DMA. Resetting hardware!
?ath: DMA failed to stop in 10 ms AR_CR=0x00000024 AR_DIAG_SW=0x42000020
?ath: Failed to stop receive dma
?ath: ah->misc_mode 0xc
?ath: Setting CFG 0x10a
?ath: TX complete: skb: 817e6c00
?ath: ah->misc_mode 0xc
?ath: Setting CFG 0x10a
?ath: transmitting packet, skb: 80afd300
?ath: TXDP[3] = 1ed36b0 (a1ed36b0)
?ath: Failed to stop TX DMA in 100 msec after killing last frame
?ath: Failed to stop TX DMA in 100 msec after killing last frame
?ath: Failed to stop TX DMA. Resetting hardware!
?ath: DMA failed to stop in 10 ms AR_CR=0x00000024 AR_DIAG_SW=0x42000020
?ath: Failed to stop receive dma
?ath: ah->misc_mode 0xc
?ath: Setting CFG 0x10a
?ath: TX complete: skb: 80afd300
?ath: ah->misc_mode 0xc
?ath: Setting CFG 0x10a
?ath: Failed to stop TX DMA in 100 msec after killing last frame
?ath: DMA failed to stop in 10 ms AR_CR=0x00000024 AR_DIAG_SW=0x40000020
?ath: DMA failed to stop in 10 ms AR_CR=0x00000024 AR_DIAG_SW=0x42000020
?ath: Failed to stop receive dma
?ath: ah->misc_mode 0xc
?ath: Setting CFG 0x10a
?ath: transmitting packet, skb: 81e063c0
?ath: TXDP[3] = 1ed3714 (a1ed3714)
?ath: Failed to stop TX DMA in 100 msec after killing last frame
?ath: Failed to stop TX DMA in 100 msec after killing last frame
?ath: Failed to stop TX DMA. Resetting hardware!
?ath: DMA failed to stop in 10 ms AR_CR=0x00000024 AR_DIAG_SW=0x42000020
?ath: Failed to stop receive dma
?ath: ah->misc_mode 0xc
?ath: Setting CFG 0x10a
?ath: TX complete: skb: 81e063c0
?ath: ah->misc_mode 0xc
?ath: Setting CFG 0x10a
?ath: transmitting packet, skb: 81e06240
?ath: TXDP[3] = 1ed3778 (a1ed3778)
?ath: Failed to stop TX DMA in 100 msec after killing last frame
?ath: Failed to stop TX DMA in 100 msec after killing last frame
?ath: Failed to stop TX DMA. Resetting hardware!
?ath: DMA failed to stop in 10 ms AR_CR=0x00000024 AR_DIAG_SW=0x42000020
?ath: Failed to stop receive dma
?ath: ah->misc_mode 0xc
?ath: Setting CFG 0x10a
?ath: TX complete: skb: 81e06240
?ath: ah->misc_mode 0xc
?ath: Setting CFG 0x10a
?ath: transmitting packet, skb: 80811480
?ath: TXDP[3] = 1ed37dc (a1ed37dc)
?ath: Failed to stop TX DMA in 100 msec after killing last frame
?ath: Failed to stop TX DMA in 100 msec after killing last frame
?ath: Failed to stop TX DMA. Resetting hardware!
?ath: DMA failed to stop in 10 ms AR_CR=0x00000024 AR_DIAG_SW=0x42000020
?ath: Failed to stop receive dma
?ath: ah->misc_mode 0xc
?ath: Setting CFG 0x10a
?ath: TX complete: skb: 80811480
?ath: ah->misc_mode 0xc
?ath: Setting CFG 0x10a
?ath: transmitting packet, skb: 80a14f00
?ath: TXDP[3] = 1ed3840 (a1ed3840)
?ath: Failed to stop TX DMA in 100 msec after killing last frame
?ath: Failed to stop TX DMA in 100 msec after killing last frame
?ath: Failed to stop TX DMA. Resetting hardware!
?ath: DMA failed to stop in 10 ms AR_CR=0x00000024 AR_DIAG_SW=0x42000020
?ath: Failed to stop receive dma
?ath: ah->misc_mode 0xc
?ath: Setting CFG 0x10a
?ath: TX complete: skb: 80a14f00
?ath: ah->misc_mode 0xc
?ath: Setting CFG 0x10a
?ath: transmitting packet, skb: 80fdf300
?ath: TXDP[3] = 1ed38a4 (a1ed38a4)
?ath: Failed to stop TX DMA in 100 msec after killing last frame
?ath: Failed to stop TX DMA in 100 msec after killing last frame
?ath: Failed to stop TX DMA. Resetting hardware!
?ath: DMA failed to stop in 10 ms AR_CR=0x00000024 AR_DIAG_SW=0x42000020
?ath: Failed to stop receive dma
?ath: ah->misc_mode 0xc
?ath: Setting CFG 0x10a
?ath: TX complete: skb: 80fdf300
?ath: ah->misc_mode 0xc
?ath: Setting CFG 0x10a
?ath: Failed to stop TX DMA in 100 msec after killing last frame
?ath: DMA failed to stop in 10 ms AR_CR=0x00000024 AR_DIAG_SW=0x40000020
?ath: DMA failed to stop in 10 ms AR_CR=0x00000024 AR_DIAG_SW=0x42000020
?ath: Failed to stop receive dma
?ath: ah->misc_mode 0xc
?ath: Setting CFG 0x10a
?ath: transmitting packet, skb: 80fdf600
?ath: TXDP[3] = 1ed3908 (a1ed3908)
?ath: transmitting packet, skb: 80a2a6c0
?ath: link[3] (a1ed3908)=1ed396c (a1ed396c)
?ath: Failed to stop TX DMA in 100 msec after killing last frame
?ath: Failed to stop TX DMA in 100 msec after killing last frame
?ath: Failed to stop TX DMA. Resetting hardware!
?ath: DMA failed to stop in 10 ms AR_CR=0x00000024 AR_DIAG_SW=0x42000020
?ath: Failed to stop receive dma
?ath: ah->misc_mode 0xc
?ath: Setting CFG 0x10a
?ath: TX complete: skb: 80fdf600
?ath: TX complete: skb: 80a2a6c0
?ath: ah->misc_mode 0xc
?ath: Setting CFG 0x10a
?ath: transmitting packet, skb: 80a2ad80
?ath: TXDP[3] = 1ed39d0 (a1ed39d0)
?ath: transmitting packet, skb: 80d66900
?ath: link[3] (a1ed39d0)=1ed3a34 (a1ed3a34)
?ath: tx hung, resetting the chip
?ath: Failed to stop TX DMA in 100 msec after killing last frame
?ath: Failed to stop TX DMA. Resetting hardware!
?ath: DMA failed to stop in 10 ms AR_CR=0x00000024 AR_DIAG_SW=0x42000020
?ath: Failed to stop receive dma
?ath: ah->misc_mode 0xc
?ath: Setting CFG 0x10a
?ath: TX complete: skb: 80a2ad80
?ath: TX complete: skb: 80d66900
?ath: ah->misc_mode 0xc
?ath: Setting CFG 0x10a
?ath: transmitting packet, skb: 81e496c0
?ath: TXDP[3] = 1ed3afc (a1ed3afc)
?ath: transmitting packet, skb: 80d72600
?ath: link[3] (a1ed3afc)=1ed3b60 (a1ed3b60)
?ath: tx hung, resetting the chip
?ath: Failed to stop TX DMA in 100 msec after killing last frame
?ath: Failed to stop TX DMA. Resetting hardware!
?ath: DMA failed to stop in 10 ms AR_CR=0x00000024 AR_DIAG_SW=0x42000020
?ath: Failed to stop receive dma
?ath: ah->misc_mode 0xc
?ath: Setting CFG 0x10a
?ath: TX complete: skb: 81e496c0
?ath: TX complete: skb: 80d72600
?ath: ah->misc_mode 0xc
?ath: Setting CFG 0x10a
?ath: transmitting packet, skb: 81e063c0
?ath: TXDP[3] = 1ed3c28 (a1ed3c28)
?ath: Failed to stop TX DMA in 100 msec after killing last frame
?ath: Failed to stop TX DMA in 100 msec after killing last frame
?ath: Failed to stop TX DMA. Resetting hardware!
?ath: DMA failed to stop in 10 ms AR_CR=0x00000024 AR_DIAG_SW=0x42000020
?ath: Failed to stop receive dma
?ath: ah->misc_mode 0xc
?ath: Setting CFG 0x10a
?ath: TX complete: skb: 81e063c0
?ath: ah->misc_mode 0xc
?ath: Setting CFG 0x10a
?ath: transmitting packet, skb: 80811e40
?ath: TXDP[3] = 1ed3cf0 (a1ed3cf0)
?ath: Failed to stop TX DMA in 100 msec after killing last frame
?ath: Failed to stop TX DMA in 100 msec after killing last frame
?ath: Failed to stop TX DMA. Resetting hardware!
?ath: DMA failed to stop in 10 ms AR_CR=0x00000024 AR_DIAG_SW=0x42000020
?ath: Failed to stop receive dma
?ath: ah->misc_mode 0xc
?ath: Setting CFG 0x10a
?ath: TX complete: skb: 80811e40
?ath: ah->misc_mode 0xc
?ath: Setting CFG 0x10a
?ath: transmitting packet, skb: 81e48780
?ath: TXDP[3] = 1ed3d54 (a1ed3d54)
?ath: Failed to stop TX DMA in 100 msec after killing last frame
?ath: Failed to stop TX DMA in 100 msec after killing last frame
?ath: Failed to stop TX DMA. Resetting hardware!
?ath: DMA failed to stop in 10 ms AR_CR=0x00000024 AR_DIAG_SW=0x42000020
?ath: Failed to stop receive dma
?ath: ah->misc_mode 0xc
?ath: Setting CFG 0x10a
?ath: TX complete: skb: 81e48780
?ath: ah->misc_mode 0xc
?ath: Setting CFG 0x10a
?ath: Failed to stop TX DMA in 100 msec after killing last frame
?ath: DMA failed to stop in 10 ms AR_CR=0x00000024 AR_DIAG_SW=0x40000020
?ath: DMA failed to stop in 10 ms AR_CR=0x00000024 AR_DIAG_SW=0x42000020
?ath: Failed to stop receive dma
?ath: ah->misc_mode 0xc
?ath: Setting CFG 0x10a
?ath: transmitting packet, skb: 80d7df00
?ath: TXDP[3] = 1ed3e1c (a1ed3e1c)
?ath: Failed to stop TX DMA in 100 msec after killing last frame
?ath: Failed to stop TX DMA in 100 msec after killing last frame
?ath: Failed to stop TX DMA. Resetting hardware!
?ath: DMA failed to stop in 10 ms AR_CR=0x00000024 AR_DIAG_SW=0x42000020
?ath: Failed to stop receive dma
?ath: ah->misc_mode 0xc
?ath: Setting CFG 0x10a
?ath: TX complete: skb: 80d7df00
?ath: ah->misc_mode 0xc
?ath: Setting CFG 0x10a
?ath: transmitting packet, skb: 80d7d300
?ath: TXDP[3] = 1ed3a98 (a1ed3a98)
?ath: Failed to stop TX DMA in 100 msec after killing last frame
?ath: Failed to stop TX DMA in 100 msec after killing last frame
?ath: Failed to stop TX DMA. Resetting hardware!
?ath: DMA failed to stop in 10 ms AR_CR=0x00000024 AR_DIAG_SW=0x42000020
?ath: Failed to stop receive dma
?ath: ah->misc_mode 0xc
?ath: Setting CFG 0x10a
?ath: TX complete: skb: 80d7d300
?ath: ah->misc_mode 0xc
?ath: Setting CFG 0x10a
?ath: transmitting packet, skb: 81e6e240
?ath: TXDP[3] = 1ed3bc4 (a1ed3bc4)
?ath: Failed to stop TX DMA in 100 msec after killing last frame
?ath: Failed to stop TX DMA in 100 msec after killing last frame
?ath: Failed to stop TX DMA. Resetting hardware!
?ath: DMA failed to stop in 10 ms AR_CR=0x00000024 AR_DIAG_SW=0x42000020
?ath: Failed to stop receive dma
?ath: ah->misc_mode 0xc
?ath: Setting CFG 0x10a
?ath: TX complete: skb: 81e6e240
?ath: ah->misc_mode 0xc
?ath: Setting CFG 0x10a
?ath: transmitting packet, skb: 80bba0c0
?ath: TXDP[3] = 1ed3c8c (a1ed3c8c)
?ath: transmitting packet, skb: 80bbae40
?ath: link[3] (a1ed3c8c)=1ed3ee4 (a1ed3ee4)
?ath: transmitting packet, skb: 80bbaa80
?ath: link[3] (a1ed3ee4)=1ed3f48 (a1ed3f48)
?ath: TX complete: skb: 80bba0c0
?ath: TX complete: skb: 80bbae40
?ath: TX complete: skb: 80bbaa80
?ath: transmitting packet, skb: 80bbb6c0
?ath: link[3] (a1ed3f48)=1ed4010 (a1ed4010)
?ath: transmitting packet, skb: 80bbba80
?ath: link[3] (a1ed4010)=1ed3db8 (a1ed3db8)
?ath: transmitting packet, skb: 80bbb600
?ath: link[3] (a1ed3db8)=1ed3e80 (a1ed3e80)
?ath: TX complete: skb: 80bbb6c0
?ath: TX complete: skb: 80bbba80
?ath: transmitting packet, skb: 80d70180
?ath: link[3] (a1ed3e80)=1ed3fac (a1ed3fac)
?ath: transmitting packet, skb: 80d70b40
?ath: link[3] (a1ed3fac)=1ed4074 (a1ed4074)
?ath: transmitting packet, skb: 80d70f00
?ath: link[3] (a1ed4074)=1ed413c (a1ed413c)
?ath: TX complete: skb: 80bbb600
?ath: transmitting packet, skb: 80a2a600
?ath: link[3] (a1ed413c)=1ed40d8 (a1ed40d8)
?ath: transmitting packet, skb: 80a2ad80
?ath: link[3] (a1ed40d8)=1ed41a0 (a1ed41a0)
?ath: transmitting packet, skb: 80a2a000
?ath: link[3] (a1ed41a0)=1ed4204 (a1ed4204)
?ath: TX complete: skb: 80d70180
?ath: TX complete: skb: 80d70b40
?ath: TX complete: skb: 80d70f00
?ath: TX complete: skb: 80a2a600
?ath: TX complete: skb: 80a2ad80
?ath: transmitting packet, skb: 81e48780
?ath: link[3] (a1ed4204)=1ed4268 (a1ed4268)
?ath: transmitting packet, skb: 81e48000
?ath: link[3] (a1ed4268)=1ed42cc (a1ed42cc)
?ath: transmitting packet, skb: 81e48f00
?ath: link[3] (a1ed42cc)=1ed4330 (a1ed4330)
?ath: TX complete: skb: 80a2a000
?ath: TX complete: skb: 81e48780
?ath: TX complete: skb: 81e48000
?ath: TX complete: skb: 81e48f00

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

end of thread, other threads:[~2010-09-28 20:15 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-28 11:35 [ath9k-devel] A bad case of resetting the chip Björn Smedman
2010-09-28 18:15 ` Luis R. Rodriguez
2010-09-28 19:14   ` Björn Smedman
2010-09-28 20:15     ` Luis R. Rodriguez

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.