Re: [linux-next] next-20101207: Better now, but modinfo ath5k

From: Sedat Dilek
Date: Tue Dec 07 2010 - 06:28:56 EST


On Tue, Dec 7, 2010 at 12:24 PM, Sedat Dilek <sedat.dilek@xxxxxxxxxxxxxx> wrote:
> Hi,
>
> I just compiled linux-next (next-20101207) which also includes
> wireless-next-2.6 (master-2010-12-06) [1].
>
> I have already reported on linux-wireless (short: l-w) ML that after
> especially the merge of "AHB Bus support" patchset (see [2]) my ath5k
> was not working as expected in daily use (also modinfo).
>
> I am not sure if it is the driver but reverting the 9 commits in my
> local linux-next GIT seemed to "stabilize" a bit the Internet
> connection.
> The patchset from Nick (see below) definitely helped to stabilize ath5k.
>
> What means "daily use"?
> Quassel IRC-client (around 20 channels), Iceweasel (Debian's answer to
> firefox) with sometimes 20 tabs open and radio live-stream in VLC.
>
> Here and there I have still audio-dropouts or when typing emails in
> web-based email-service, it stalls when "stressing" with for example
> parallelly creating a tarball (that's normally no huge workload) the
> probability for audio-dropouts increases.
>
> As I said I am not sure what is causing these hangs, it's ath5k
> driver? Is it sth. else?
> How to dig into it?
>
> Unfortunately, modinfo does not list aliases with pci-id matching (I
> have already reported to l-w ML, see below).
> With reverting "AHB Bus support" patchset modinfo works as expected.
>
> As a workaround I added ath5k to /etc/modules (see below), otherwise I
> have to stop networking, unload + reload ath5k and start networking
> again.
>
> I also added an iw station dump (see below) and outputs of filtered
> lspci and dmesg commands.
>
> Not sure if this is helpful to mention, I use crda and wireless-regdb
> (see below).
>
> BTW, I have these two patches in addition to linux-next:
> Â(+) OK Â mac80211-fix/mac80211-fix-a-compiler-warning.patch
> Â(+) OK Â ath5k-fix/ath5k-Use-capabilities-information-for-the-number-of-TX-queues.patch
>
> Any ideas/help appreciated, Thanks in advance.
>
> Kind Regards,
> - Sedat -
>
> [1] http://git.kernel.org/?p=linux/kernel/git/linville/wireless-next-2.6.git
> [2] http://wireless.kernel.org/en/users/Drivers/ath5k
>
> P.S.: Patchset from Nick Kossifidis
>
> $ ls -l ath5k-fix/*-6-*
> -rw-r--r-- 1 sd sd 3439 Â3. Dez 06:52
> ath5k-fix/1-6-ath5k-Always-write-tx-powertable-on-hw.patch
> -rw-r--r-- 1 sd sd 1725 Â3. Dez 06:51
> ath5k-fix/2-6-ath5k-Always-free-tx-buffers-before-reset.patch
> -rw-r--r-- 1 sd sd 2132 Â3. Dez 06:52
> ath5k-fix/3-6-ath5k-Disable-ANI-during-reset.patch
> -rw-r--r-- 1 sd sd 1360 Â3. Dez 06:52
> ath5k-fix/4-6-ath5k-Fix-reporting-of-RX-dma-stop-failure.patch
> -rw-r--r-- 1 sd sd 1735 Â3. Dez 06:52
> ath5k-fix/5-6-ath5k-Update-version-string.patch
> -rw-r--r-- 1 sd sd 1744 Â3. Dez 06:53
> ath5k-fix/6-6-ath5k-Include-tx-ack-reporting-on-hw-flags.patch
>
> # modinfo ath5k
> filename:
> /lib/modules/2.6.37-rc4-686/kernel/drivers/net/wireless/ath/ath5k/ath5k.ko
> version: Â Â Â Â0.6.0 (EXPERIMENTAL)
> license: Â Â Â ÂDual BSD/GPL
> description: Â ÂSupport for 5xxx series of Atheros 802.11 wireless LAN cards.
> author: Â Â Â Â Nick Kossifidis
> author: Â Â Â Â Jiri Slaby
> srcversion: Â Â 49DBF0BE975A1F9917151F4
> depends: Â Â Â Âmac80211,cfg80211,ath
> vermagic: Â Â Â 2.6.37-rc4-686 SMP mod_unload modversions 686
> parm: Â Â Â Â Â debug:uint
> parm: Â Â Â Â Â nohwcrypt:Disable hardware encryption. (bool)
> parm: Â Â Â Â Â all_channels:Expose all channels the device can use. (bool)
>
> # grep ath5k /etc/modules
> ath5k
>
> # iw wlan0 station dump
> Station 00:04:0e:e4:00:3d (on wlan0)
> Â Â Â Âinactive time: Â48 ms
> Â Â Â Ârx bytes: Â Â Â 60460696
> Â Â Â Ârx packets: Â Â 95331
> Â Â Â Âtx bytes: Â Â Â 5034456
> Â Â Â Âtx packets: Â Â 50165
> Â Â Â Âsignal: Â Â Â Â -50 dBm
> Â Â Â Âtx bitrate: Â Â 36.0 MBit/s
>
> # lspci -nnvv | grep -i ath
> 02:02.0 Ethernet controller [0200]: Atheros Communications Inc. AR5212
> 802.11abg NIC [168c:1014] (rev 01)
> Â Â Â ÂKernel driver in use: ath5k
>
> # dmesg | egrep -i 'ath|80211|wlan'
> [ Â 14.444118] cfg80211: Calling CRDA to update world regulatory domain
> [ Â 14.725757] ath5k 0000:02:02.0: PCI INT A -> Link[LNKC] -> GSI 11
> (level, low) -> IRQ 11
> [ Â 14.736940] ath5k 0000:02:02.0: registered as 'phy0'
> [ Â 15.036636] ath: EEPROM regdomain: 0x61
> [ Â 15.036640] ath: EEPROM indicates we should expect a direct regpair map
> [ Â 15.036646] ath: Country alpha2 being used: 00
> [ Â 15.036648] ath: Regpair used: 0x61
> [ Â 15.665415] cfg80211: World regulatory domain updated:
> [ Â 15.676274] cfg80211: Â Â (start_freq - end_freq @ bandwidth),
> (max_antenna_gain, max_eirp)
> [ Â 15.687303] cfg80211: Â Â (2402000 KHz - 2472000 KHz @ 40000 KHz),
> (300 mBi, 2000 mBm)
> [ Â 15.698413] cfg80211: Â Â (2457000 KHz - 2482000 KHz @ 20000 KHz),
> (300 mBi, 2000 mBm)
> [ Â 15.709461] cfg80211: Â Â (2474000 KHz - 2494000 KHz @ 20000 KHz),
> (300 mBi, 2000 mBm)
> [ Â 15.720489] cfg80211: Â Â (5170000 KHz - 5250000 KHz @ 40000 KHz),
> (300 mBi, 2000 mBm)
> [ Â 15.731526] cfg80211: Â Â (5735000 KHz - 5835000 KHz @ 40000 KHz),
> (300 mBi, 2000 mBm)
> [ Â 15.754490] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
> [ Â 15.755482] Registered led device: ath5k-phy0::rx
> [ Â 15.755516] Registered led device: ath5k-phy0::tx
> [ Â 15.755529] ath5k phy0: Atheros AR5212 chip found (MAC: 0x56, PHY: 0x41)
> [ Â 15.766686] ath5k phy0: RF5111 5GHz radio found (0x17)
> [ Â 15.777870] ath5k phy0: RF2111 2GHz radio found (0x23)
> [ Â 17.374647] ADDRCONF(NETDEV_UP): wlan0: link is not ready
> [ Â 22.596104] wlan0: authenticate with 00:04:0e:e4:00:3d (try 1)
> [ Â 22.597531] wlan0: authenticated
> [ Â 22.597549] wlan0: associate with 00:04:0e:e4:00:3d (try 1)
> [ Â 22.602095] wlan0: RX AssocResp from 00:04:0e:e4:00:3d (capab=0x411
> status=0 aid=1)
> [ Â 22.602100] wlan0: associated
> [ Â 22.602986] ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
> [ Â 33.312034] wlan0: no IPv6 routers present
> [ Â215.317105] cfg80211: Calling CRDA to update world regulatory domain
> [ Â215.346333] cfg80211: World regulatory domain updated:
> [ Â215.346341] cfg80211: Â Â (start_freq - end_freq @ bandwidth),
> (max_antenna_gain, max_eirp)
> [ Â215.346346] cfg80211: Â Â (2402000 KHz - 2472000 KHz @ 40000 KHz),
> (300 mBi, 2000 mBm)
> [ Â215.346350] cfg80211: Â Â (2457000 KHz - 2482000 KHz @ 20000 KHz),
> (300 mBi, 2000 mBm)
> [ Â215.346354] cfg80211: Â Â (2474000 KHz - 2494000 KHz @ 20000 KHz),
> (300 mBi, 2000 mBm)
> [ Â215.346358] cfg80211: Â Â (5170000 KHz - 5250000 KHz @ 40000 KHz),
> (300 mBi, 2000 mBm)
> [ Â215.346362] cfg80211: Â Â (5735000 KHz - 5835000 KHz @ 40000 KHz),
> (300 mBi, 2000 mBm)
> [ Â219.627199] wlan0: authenticate with 00:04:0e:e4:00:3d (try 1)
> [ Â219.629321] wlan0: authenticated
> [ Â219.629365] wlan0: associate with 00:04:0e:e4:00:3d (try 1)
> [ Â219.635825] wlan0: RX AssocResp from 00:04:0e:e4:00:3d (capab=0x411
> status=0 aid=1)
> [ Â219.635836] wlan0: associated
>
> # dpkg -l | egrep 'crda|wireless-regdb' | cut -c-80
> ii Âcrda                      Â1.1.1-0~svnr1515.3
> ii Âwireless-regdb                 Â2010.11.24-1
>

Might also be interesting to know:

# wpa_cli -i wlan0 status
bssid=00:04:0e:e4:00:3d
ssid=myCastle-WLAN WPA (Wireless LAN)
id=0
pairwise_cipher=CCMP
group_cipher=TKIP
key_mgmt=WPA2-PSK
wpa_state=COMPLETED
ip_address=192.168.178.25

- Sedat -
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/