You are not logged in.

#1 2015-02-10 08:26:46

c2the3rd
Member
Registered: 2014-08-21
Posts: 3

[Solved] Atheros AR9271 802.11n usb wifi disconnect with 3.18.5 kernel

After moderate network traffic, wi-fi will disconnect and the adapter becomes unresponsive.
I fixed the problem by downgrading to 3.17.6 kernel. This topic is to determine if this is a kernel
bug or a problem with my setup.

I am using the ath9k_htc driver.
The text that floods dmesg is different depending on usb port version.

usb 2:

[ 2919.568142] ------------[ cut here ]------------
[ 2919.568148] WARNING: CPU: 7 PID: 110 at drivers/usb/core/urb.c:450 usb_submit_urb+0x265/0x5f0 [usbcore]()
[ 2919.568150] usb 10-1: BOGUS urb xfer, pipe 1 != type 3
[ 2919.568150] Modules linked in: ctr ccm arc4 nls_iso8859_1 nls_cp437 vfat fat kvm_amd snd_virtuoso snd_oxygen_lib radeon ath9k_htc kvm snd_mpu401_uart ath9k_common ath9k_hw ath crct10dif_pclmul crc32_pclmul ghash_clmulni_intel aesni_intel mac80211 snd_rawmidi aes_x86_64 lrw gf128mul glue_helper ablk_helper cryptd snd_seq_device snd_pcm ttm snd_timer drm_kms_helper snd cfg80211 eeepc_wmi asus_wmi sparse_keymap led_class rfkill video serio_raw psmouse mxm_wmi soundcore tpm_infineon drm tpm_tis r8169 pcspkr sp5100_tco fam15h_power i2c_algo_bit edac_core edac_mce_amd joydev evdev mousedev mii k10temp hwmon tpm processor mac_hid i2c_piix4 i2c_core wmi shpchp button sch_fq_codel btrfs xor raid6_pq sr_mod cdrom sd_mod hid_generic usbhid hid atkbd libps2 crc32c_intel ahci ohci_pci libahci xhci_pci ohci_hcd
[ 2919.568176]  ehci_pci xhci_hcd ehci_hcd libata usbcore usb_common scsi_mod i8042 serio
[ 2919.568180] CPU: 7 PID: 110 Comm: kworker/7:1 Tainted: G        W      3.18.5-1-ARCH #1
[ 2919.568181] Hardware name: To be filled by O.E.M. To be filled by O.E.M./SABERTOOTH 990FX R2.0, BIOS 1503 01/11/2013
[ 2919.568183] Workqueue: events request_firmware_work_func
[ 2919.568184]  0000000000000000 00000000f44d72ca ffff8804268d79e8 ffffffff8154f844
[ 2919.568186]  0000000000000000 ffff8804268d7a40 ffff8804268d7a28 ffffffff81072c11
[ 2919.568188]  0000000000000092 ffff8803f301e840 00000000000000d0 0000000000000002
[ 2919.568189] Call Trace:
[ 2919.568192]  [<ffffffff8154f844>] dump_stack+0x4e/0x71
[ 2919.568194]  [<ffffffff81072c11>] warn_slowpath_common+0x81/0xa0
[ 2919.568196]  [<ffffffff81072c85>] warn_slowpath_fmt+0x55/0x70
[ 2919.568205]  [<ffffffffa00a6e75>] usb_submit_urb+0x265/0x5f0 [usbcore]
[ 2919.568211]  [<ffffffffa00a66ae>] ? usb_alloc_urb+0x1e/0x50 [usbcore]
[ 2919.568214]  [<ffffffffa05a98cc>] hif_usb_send+0xec/0x370 [ath9k_htc]
[ 2919.568216]  [<ffffffffa05a7058>] htc_issue_send.constprop.2+0x58/0x70 [ath9k_htc]
[ 2919.568218]  [<ffffffffa05a7468>] htc_send_epid+0x18/0x20 [ath9k_htc]
[ 2919.568221]  [<ffffffffa05aa1f1>] ath9k_wmi_cmd+0x121/0x1d0 [ath9k_htc]
[ 2919.568224]  [<ffffffffa05b0100>] ath9k_regwrite+0x70/0x110 [ath9k_htc]
[ 2919.568226]  [<ffffffffa05b01d6>] ath9k_reg_rmw+0x36/0x50 [ath9k_htc]
[ 2919.568229]  [<ffffffffa05ec105>] ath9k_hw_set_gpio+0x55/0x90 [ath9k_hw]
[ 2919.568232]  [<ffffffffa05b11b6>] ath9k_configure_leds+0x36/0x40 [ath9k_htc]
[ 2919.568234]  [<ffffffffa05b1213>] ath9k_init_leds+0x53/0x130 [ath9k_htc]
[ 2919.568237]  [<ffffffffa05b09e3>] ath9k_htc_probe_device+0x7f3/0x920 [ath9k_htc]
[ 2919.568239]  [<ffffffff814462ad>] ? __alloc_skb+0x9d/0x210
[ 2919.568241]  [<ffffffffa05a8097>] ? ath9k_hif_usb_alloc_urbs+0x417/0x520 [ath9k_htc]
[ 2919.568244]  [<ffffffffa05a7941>] ath9k_htc_hw_init+0x11/0x30 [ath9k_htc]
[ 2919.568246]  [<ffffffffa05a8aeb>] ath9k_hif_usb_firmware_cb+0x9b/0x1c0 [ath9k_htc]
[ 2919.568248]  [<ffffffff813ce5af>] request_firmware_work_func+0x3f/0x80
[ 2919.568250]  [<ffffffff8108b815>] process_one_work+0x145/0x400
[ 2919.568252]  [<ffffffff8108bddb>] worker_thread+0x6b/0x480
[ 2919.568255]  [<ffffffff8108bd70>] ? init_pwq.part.22+0x10/0x10
[ 2919.568256]  [<ffffffff81090e3a>] kthread+0xea/0x100
[ 2919.568258]  [<ffffffff81090d50>] ? kthread_create_on_node+0x1c0/0x1c0
[ 2919.568260]  [<ffffffff815552fc>] ret_from_fork+0x7c/0xb0
[ 2919.568262]  [<ffffffff81090d50>] ? kthread_create_on_node+0x1c0/0x1c0
[ 2919.568264] ---[ end trace f8aa515ffa814ab7 ]---

usb 3:

[24296.501698] xhci_hcd 0000:0c:00.0: PCI-DMA: Out of IOMMU space for 16 bytes
[24296.501711] xhci_hcd 0000:0c:00.0: PCI-DMA: Out of IOMMU space for 16 bytes
[24296.501724] xhci_hcd 0000:0c:00.0: PCI-DMA: Out of IOMMU space for 16 bytes
[24296.501737] xhci_hcd 0000:0c:00.0: PCI-DMA: Out of IOMMU space for 16 bytes
[24296.501750] xhci_hcd 0000:0c:00.0: PCI-DMA: Out of IOMMU space for 16 bytes
[24296.501763] xhci_hcd 0000:0c:00.0: PCI-DMA: Out of IOMMU space for 16 bytes
[24296.501776] xhci_hcd 0000:0c:00.0: PCI-DMA: Out of IOMMU space for 16 bytes
[24296.501789] xhci_hcd 0000:0c:00.0: PCI-DMA: Out of IOMMU space for 16 bytes
[24296.501802] xhci_hcd 0000:0c:00.0: PCI-DMA: Out of IOMMU space for 16 bytes
[24296.501815] xhci_hcd 0000:0c:00.0: PCI-DMA: Out of IOMMU space for 16 bytes
[24296.501828] xhci_hcd 0000:0c:00.0: PCI-DMA: Out of IOMMU space for 16 bytes
[24296.501841] xhci_hcd 0000:0c:00.0: PCI-DMA: Out of IOMMU space for 16 bytes
[24296.501854] xhci_hcd 0000:0c:00.0: PCI-DMA: Out of IOMMU space for 16 bytes
[24296.501867] xhci_hcd 0000:0c:00.0: PCI-DMA: Out of IOMMU space for 16 bytes
[24296.501875] systemd-journald[213]: /dev/kmsg buffer overrun, some messages lost.
[24296.501880] xhci_hcd 0000:0c:00.0: PCI-DMA: Out of IOMMU space for 16 bytes
[24296.501883] ath: phy0: Chip reset failed
[24296.501884] ath: phy0: Unable to reset hardware; reset status -22 (freq 2412 MHz)
[24296.502133] systemd-journald[213]: /dev/kmsg buffer overrun, some messages lost.

Dumping module and hardware info.

lsmod:

Module                  Size  Used by
ctr                    12927  3 
ccm                    17534  3 
nls_iso8859_1          12461  1 
nls_cp437              16553  1 
arc4                   12536  2 
vfat                   21231  1 
fat                    61984  1 vfat
eeepc_wmi              12600  0 
asus_wmi               22781  1 eeepc_wmi
sparse_keymap          12818  1 asus_wmi
video                  18043  1 asus_wmi
kvm_amd                59131  0 
serio_raw              12849  0 
psmouse               107214  0 
mousedev               17272  0 
joydev                 17063  0 
kvm                   421519  1 kvm_amd
snd_virtuoso           43046  0 
snd_oxygen_lib         36709  1 snd_virtuoso
snd_mpu401_uart        13507  1 snd_oxygen_lib
evdev                  21544  9 
snd_rawmidi            26806  1 snd_mpu401_uart
r8169                  68207  0 
radeon               1461558  2 
ttm                    73743  1 radeon
sp5100_tco             12864  0 
drm_kms_helper         80934  1 radeon
edac_core              47125  0 
drm                   259106  5 ttm,drm_kms_helper,radeon
crct10dif_pclmul       13394  0 
crc32_pclmul           12915  0 
ghash_clmulni_intel    12978  0 
aesni_intel           163855  6 
aes_x86_64             16719  1 aesni_intel
lrw                    12757  1 aesni_intel
gf128mul               12970  1 lrw
edac_mce_amd           21166  0 
glue_helper            12649  1 aesni_intel
ablk_helper            12572  1 aesni_intel
cryptd                 18553  3 ghash_clmulni_intel,aesni_intel,ablk_helper
snd_seq_device         13132  1 snd_rawmidi
pcspkr                 12595  0 
mxm_wmi                12515  0 
snd_pcm                88487  1 snd_oxygen_lib
snd_timer              26614  1 snd_pcm
snd                    73436  7 snd_timer,snd_pcm,snd_rawmidi,snd_virtuoso,snd_oxygen_lib,snd_mpu401_uart,snd_seq_device
i2c_piix4              20857  0 
i2c_algo_bit           12744  1 radeon
soundcore              13031  1 snd
k10temp                12618  0 
ath9k_htc              64528  0 
ath9k_common           21746  1 ath9k_htc
ath9k_hw              424382  2 ath9k_common,ath9k_htc
ath                    26067  3 ath9k_common,ath9k_htc,ath9k_hw
led_class              12859  2 ath9k_htc,asus_wmi
mac80211              604448  1 ath9k_htc
cfg80211              445286  4 ath,ath9k_common,mac80211,ath9k_htc
rfkill                 18867  3 cfg80211,asus_wmi
fam15h_power           12654  0 
hwmon                  12930  4 fam15h_power,k10temp,radeon,asus_wmi
mac_hid                12633  0 
i2c_core               50152  5 drm,i2c_piix4,drm_kms_helper,i2c_algo_bit,radeon
mii                    12675  1 r8169
shpchp                 35210  0 
tpm_infineon           16882  0 
tpm_tis                17182  0 
tpm                    31467  2 tpm_tis,tpm_infineon
wmi                    17339  2 mxm_wmi,asus_wmi
processor              27777  8 
button                 12953  0 
sch_fq_codel           17343  5 
hid_generic            12393  0 
usbhid                 48595  0 
hid                   102220  2 hid_generic,usbhid
btrfs                 895564  1 
xor                    21040  1 btrfs
raid6_pq               99334  1 btrfs
sd_mod                 44398  3 
sr_mod                 21903  0 
crc_t10dif             12431  1 sd_mod
cdrom                  47479  1 sr_mod
crct10dif_common       12356  2 crct10dif_pclmul,crc_t10dif
atkbd                  22254  0 
libps2                 12739  2 atkbd,psmouse
crc32c_intel           21809  1 
ohci_pci               12808  0 
ohci_hcd               43006  1 ohci_pci
ehci_pci               12512  0 
xhci_hcd              152911  0 
ahci                   33291  2 
ehci_hcd               69939  1 ehci_pci
libahci                27158  1 ahci
libata                181518  2 ahci,libahci
usbcore               199381  7 ohci_hcd,ohci_pci,ehci_hcd,ehci_pci,usbhid,ath9k_htc,xhci_hcd
usb_common             12440  1 usbcore
scsi_mod              147543  3 libata,sd_mod,sr_mod
i8042                  18002  1 libps2
serio                  18282  6 serio_raw,atkbd,i8042,psmouse

lsusb:

Bus 009 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 013 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 008 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 007 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 004 Device 002: ID 0cf3:9271 Atheros Communications, Inc. AR9271 802.11n
Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 012 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 011 Device 002: ID 046d:c52f Logitech, Inc. Unifying Receiver
Bus 011 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 010 Device 002: ID 2516:0005  
Bus 010 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

lspci:

00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD/ATI] RD890 PCI to PCI bridge (external gfx0 port B) (rev 02)
00:02.0 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] RD890 PCI to PCI bridge (PCI express gpp port B)
00:04.0 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] RD890 PCI to PCI bridge (PCI express gpp port D)
00:05.0 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] RD890 PCI to PCI bridge (PCI express gpp port E)
00:09.0 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] RD890 PCI to PCI bridge (PCI express gpp port H)
00:0a.0 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] RD890 PCI to PCI bridge (external gfx1 port A)
00:0b.0 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] RD890 PCI to PCI bridge (NB-SB link)
00:0d.0 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] RD890 PCI to PCI bridge (external gfx1 port B)
00:11.0 SATA controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 SATA Controller [AHCI mode] (rev 40)
00:12.0 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB OHCI0 Controller
00:12.2 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB EHCI Controller
00:13.0 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB OHCI0 Controller
00:13.2 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB EHCI Controller
00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD/ATI] SBx00 SMBus Controller (rev 42)
00:14.2 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] SBx00 Azalia (Intel HDA) (rev 40)
00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 LPC host controller (rev 40)
00:14.4 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] SBx00 PCI to PCI Bridge (rev 40)
00:14.5 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB OHCI2 Controller
00:15.0 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] SB700/SB800/SB900 PCI to PCI bridge (PCIE port 0)
00:15.1 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] SB700/SB800/SB900 PCI to PCI bridge (PCIE port 1)
00:15.2 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] SB900 PCI to PCI bridge (PCIE port 2)
00:15.3 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] SB900 PCI to PCI bridge (PCIE port 3)
00:16.0 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB OHCI0 Controller
00:16.2 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB EHCI Controller
00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 15h Processor Function 0
00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 15h Processor Function 1
00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 15h Processor Function 2
00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 15h Processor Function 3
00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 15h Processor Function 4
00:18.5 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 15h Processor Function 5
01:00.0 PCI bridge: ASMedia Technology Inc. ASM1083/1085 PCIe to PCI Bridge (rev 03)
02:00.0 Multimedia audio controller: C-Media Electronics Inc CMI8788 [Oxygen HD Audio]
03:00.0 SATA controller: ASMedia Technology Inc. ASM1062 Serial ATA Controller (rev 01)
04:00.0 SATA controller: ASMedia Technology Inc. ASM1062 Serial ATA Controller (rev 01)
05:00.0 USB controller: ASMedia Technology Inc. ASM1042 SuperSpeed USB Host Controller
08:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Turks XT [Radeon HD 6670/7670]
08:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Turks/Whistler HDMI Audio [Radeon HD 6000 Series]
0b:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 09)
0c:00.0 USB controller: ASMedia Technology Inc. ASM1042 SuperSpeed USB Host Controller
0d:00.0 USB controller: ASMedia Technology Inc. ASM1042 SuperSpeed USB Host Controller

Last edited by c2the3rd (2015-02-15 23:28:33)

Offline

#2 2015-02-11 04:25:47

jbreizh
Member
Registered: 2012-10-20
Posts: 44

Re: [Solved] Atheros AR9271 802.11n usb wifi disconnect with 3.18.5 kernel

Same problem with :

01:06.0 Network controller: Qualcomm Atheros AR5416 Wireless Network Adapter [AR5008 802.11(a)bgn] (rev 01)

This is a dlink PCI card that i use during 2 years without problem until recently with the last 3.18 kernel. It begin with some error -5 and after error -22. I have to reboot my computer to have wifi back.
I try to reload the ath9k module with :

modprobe -r ath9k
modprobe  ath9k

But the module refuse to load back due to an impossibility to reset hardware (!)
If someone have a solution
JB

Offline

#3 2015-02-11 07:47:25

c2the3rd
Member
Registered: 2014-08-21
Posts: 3

Re: [Solved] Atheros AR9271 802.11n usb wifi disconnect with 3.18.5 kernel

Update:

After two days of remaining connected to the network, I had the same problem with the 3.17.6 kernel.
Over that period, I noticed connection bandwidth decrease steadily. q

I have now upgraded to 3.18.6 and have been connected to wi-fi all day. I will monitor my system closely
over the next several days to see if it holds.

Offline

#4 2015-02-11 14:55:24

nomorewindows
Member
Registered: 2010-04-03
Posts: 3,362

Re: [Solved] Atheros AR9271 802.11n usb wifi disconnect with 3.18.5 kernel

ATM, not sure that wireless is connecting to wifi router.


I may have to CONSOLE you about your usage of ridiculously easy graphical interfaces...
Look ma, no mouse.

Offline

#5 2015-02-14 15:30:09

nomorewindows
Member
Registered: 2010-04-03
Posts: 3,362

Re: [Solved] Atheros AR9271 802.11n usb wifi disconnect with 3.18.5 kernel

Correction, was finally able to connect to a wifi router, things are picky.  Still not able to figure out why it doesn't show up with n-routers with n-speeds, only g-speed when doing iwlist <wireless> scan.  Can't figure out if this is the router or the wifi.  Just realized that OP has USB dongle, and I have PCI-E board.

Last edited by nomorewindows (2015-02-14 15:31:28)


I may have to CONSOLE you about your usage of ridiculously easy graphical interfaces...
Look ma, no mouse.

Offline

#6 2015-02-15 10:46:19

jbreizh
Member
Registered: 2012-10-20
Posts: 44

Re: [Solved] Atheros AR9271 802.11n usb wifi disconnect with 3.18.5 kernel

seems to be resolve for me at the moment, don't know what update do this but anyway ... cool

Offline

#7 2015-02-15 23:27:28

c2the3rd
Member
Registered: 2014-08-21
Posts: 3

Re: [Solved] Atheros AR9271 802.11n usb wifi disconnect with 3.18.5 kernel

My network has been up almost continuously since upgrading to 3.18.6 kernel.

Will mark as solved.

Offline

Board footer

Powered by FluxBB