From: mtbottle Date: Thu, 25 Jun 2009 16:20:08 -0400 Subject: [ath9k-devel] ath9k - AR5416/5133 card DMA issues Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ath9k-devel@lists.ath9k.org Ok, stared some more at the code, I'm now wondering if it's an endian-ness issue. the board I'm working with is an IXP425 based one, which is Big endian. The driver does detect check the eeprom the does the swap, and does set AR_CFG_SWRD and AR_CFG_SWTD. What seems to be happening is when the scan changes channels and receives a packet, it gets to the ath9k_hw_stopdmarecv.It then sets AR_CR_RXD (diable RX), but the RX is not disbled (i.e. AR_CR_RXE is still set, hence AR_CR=0x24), hence the timeout messages. This only happens when it receives a response, as empirically demonstrated by turning off the AP nearby and counting the errors. I've tried increasing the timeout to larger numbers, with no avail. I observed that the AR_CR status does return to 0x0 after around 45 seconds of inactivity, but I'm assuming that's more powersaving related. Can anyone enlighten me as to what AR_DIAG_SW_DIS_RX is/should be showing? It seems that AR_DIAG_SW_DIS_TX is set, i.e. transmit is diabled, but RX is still enabled. Thanks mtb On Wed, Jun 24, 2009 at 2:10 PM, mtbottle wrote: > Hi, > I'm trying to get an AR5416/AR5133 card working on the latest trunk of > openwrt, with todays compat-wireless. The card is recognized, however I > can't scan or associate. Here's a dmesg from iw list scan > > > cfg80211: Calling CRDA to update world regulatory domain > ath: Country alpha2 being used: AM > ath: Regpair detected: 0x30 > phy0: Selected rate control algorithm 'ath9k_rate_control' > Registered led device: ath9k-phy0::radio > Registered led device: ath9k-phy0::assoc > Registered led device: ath9k-phy0::tx > Registered led device: ath9k-phy0::rx > phy0: Atheros AR5416 MAC/BB Rev:2 AR5133 RF Rev:81: mem=0xc49e0000, irq=0 > cfg80211: Calling CRDA for country: AM > PPP generic driver version 2.4.2 > ip_tables: (C) 2000-2006 Netfilter Core Team > nf_conntrack version 0.5.0 (1024 buckets, 4096 max) > phy0: device now idle > phy0: device no longer idle - scanning > ath9k: DMA failed to stop in 100 ms AR_CR=0x00000024 AR_DIAG_SW=0x40000020 > wlan0: dropped data frame to not associated station c3c16644 > phy0: device now idle > phy0: device no longer idle - scanning > ath9k: DMA failed to stop in 100 ms AR_CR=0x00000024 AR_DIAG_SW=0x40000020 > ath9k: DMA failed to stop in 100 ms AR_CR=0x00000024 AR_DIAG_SW=0x40000020 > ath9k: DMA failed to stop in 100 ms AR_CR=0x00000024 AR_DIAG_SW=0x40000020 > ath9k: DMA failed to stop in 100 ms AR_CR=0x00000024 AR_DIAG_SW=0x40000020 > wlan0: dropped data frame to not associated station c3c16444 > phy0: device now idle > > > > Note, in the second scan I turned on a linysys ap close by. So the power is > turned on ;) I also had changed the DMA timeout to 100ms from 10, just to > see if there was a timeout. > Similar results occur when attempting to associate. > Can anyone point me in the right direction? I'm not particularly familiar > with ath9k yet, so I don;t really know where to start! I did step back from > the stop DMA error, but I can;t seem to make the connection. > > Regards > MTB > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ath9k.org/pipermail/ath9k-devel/attachments/20090625/41266a68/attachment.htm