athn0: device timeout

classic Classic list List threaded Threaded
12 messages Options
Reply | Threaded
Open this post in threaded view
|

athn0: device timeout

bluesun08
Hi,

i have a TP-Link TL-WN722N Wlan-Stick.

dmesg says: athn0: AR9271 rev 1 (1T1R), ROM rev 13, address c4:e9:84:dc:44:ba

But after booting i get the following error message and the stick don't work any more:

athn0: device timeout

What could be the problem here?


Reply | Threaded
Open this post in threaded view
|

Re: athn0: device timeout

bluesun08
Hi again,

here are more error-messages:

Nov 28 20:34:23 openbsd /bsd: athn0 detached
Nov 28 20:34:25 openbsd /bsd: athn0 at uhub0
Nov 28 20:34:25 openbsd /bsd:  port 1 configuration 1 interface 0 "ATHEROS USB2.0 WLAN" rev 2.00/1.08 addr 2
Nov 28 20:34:26 openbsd /bsd: athn0: AR9271 rev 1 (1T1R), ROM rev 13, address c4:e9:84:dc:44:ba
Nov 28 20:34:26 openbsd /bsd: athn0 detached
Nov 28 20:34:27 openbsd /bsd: usbd_fill_iface_data: bad max packet size
Nov 28 20:34:27 openbsd /bsd: usbd_fill_iface_data: bad max packet size
Nov 28 20:34:27 openbsd /bsd: athn0 at uhub0
Nov 28 20:34:27 openbsd /bsd:  port 1 configuration 1 interface 0 "ATHEROS USB2.0 WLAN" rev 2.00/1.08 addr 2
Nov 28 20:34:37 openbsd /bsd: athn0: firmware command 0x18 timed out
Nov 28 20:34:47 openbsd /bsd: athn0: firmware command 0x17 timed out
Nov 28 20:34:57 openbsd /bsd: athn0: firmware command 0x18 timed out
Nov 28 20:35:07 openbsd /bsd: athn0: firmware command 0x17 timed out
Reply | Threaded
Open this post in threaded view
|

Re: athn0: device timeout

Stefan Sperling-5
On Sat, Nov 28, 2015 at 03:59:08AM -0700, bluesun08 wrote:

> Hi again,
>
> here are more error-messages:
>
> Nov 28 20:34:23 openbsd /bsd: athn0 detached
> Nov 28 20:34:25 openbsd /bsd: athn0 at uhub0
> Nov 28 20:34:25 openbsd /bsd:  port 1 configuration 1 interface 0 "ATHEROS
> USB2.0 WLAN" rev 2.00/1.08 addr 2
> Nov 28 20:34:26 openbsd /bsd: athn0: AR9271 rev 1 (1T1R), ROM rev 13,
> address c4:e9:84:dc:44:ba
> Nov 28 20:34:26 openbsd /bsd: athn0 detached
> Nov 28 20:34:27 openbsd /bsd: usbd_fill_iface_data: bad max packet size
> Nov 28 20:34:27 openbsd /bsd: usbd_fill_iface_data: bad max packet size
> Nov 28 20:34:27 openbsd /bsd: athn0 at uhub0
> Nov 28 20:34:27 openbsd /bsd:  port 1 configuration 1 interface 0 "ATHEROS
> USB2.0 WLAN" rev 2.00/1.08 addr 2
> Nov 28 20:34:37 openbsd /bsd: athn0: firmware command 0x18 timed out
> Nov 28 20:34:47 openbsd /bsd: athn0: firmware command 0x17 timed out
> Nov 28 20:34:57 openbsd /bsd: athn0: firmware command 0x18 timed out
> Nov 28 20:35:07 openbsd /bsd: athn0: firmware command 0x17 timed out
>

This is probably related to
http://marc.info/?l=openbsd-bugs&m=144335205811632&w=2
and http://marc.info/?l=openbsd-tech&m=143645936727569&w=2

Can you confirm that your athn device works fine on a different
USB host controller (perhaps in a different machine)?

Why didn't you include a full dmesg in your report?

Reply | Threaded
Open this post in threaded view
|

Re: athn0: device timeout

bluesun08
ok, i try it on another machine but now i get the error message:

athn0: could not load firmware

Despite:

ls /etc/firmware
-r--r--r--   1 root  bin     70624 Aug  9 01:05 athn-ar7010
-r--r--r--   1 root  bin     70624 Aug  9 01:05 athn-ar7010-11
-r--r--r--   1 root  bin     51280 Aug  9 01:05 athn-ar9271


Reply | Threaded
Open this post in threaded view
|

Re: athn0: device timeout

bluesun08
In reply to this post by Stefan Sperling-5
sorry, i forgot:

dmesg

OpenBSD 5.8 (GENERIC.MP) #1236: Sun Aug 16 02:31:04 MDT 2015
    deraadt@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 3965698048 (3781MB)
avail mem = 3841617920 (3663MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.8 @ 0xebd40 (19 entries)
bios0: vendor American Megatrends Inc. version "P1.30" date 07/07/2014
bios0: ASRock Q1900-ITX
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP APIC FPDT MCFG LPIT AAFT HPET SSDT SSDT SSDT UEFI
acpi0: wakeup devices PS2K(S4) PS2M(S4) UAR1(S4) XHC1(S4) EHC1(S4) PXSX(S4) PXSX(S4) PXSX(S4) PXSX(S4) PWRB(S0) BRCM(S0) BRC3(S0)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Celeron(R) CPU J1900 @ 1.99GHz, 2000.46 MHz
cpu0: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,MOVBE,POPCNT,DEADLINE,RDRAND,NXE,LONG,LAHF,3DNOWP,PERF,ITSC,SMEP,ERMS,SENSOR,ARAT
cpu0: 1MB 64b/line 16-way L2 cache
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
cpu0: apic clock running at 83MHz
cpu0: mwait min=64, max=64, C-substates=0.2.0.0.0.0.3.3, IBE
cpu1 at mainbus0: apid 2 (application processor)
cpu1: Intel(R) Celeron(R) CPU J1900 @ 1.99GHz, 2000.01 MHz
cpu1: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,MOVBE,POPCNT,DEADLINE,RDRAND,NXE,LONG,LAHF,3DNOWP,PERF,ITSC,SMEP,ERMS,SENSOR,ARAT
cpu1: 1MB 64b/line 16-way L2 cache
cpu1: smt 0, core 1, package 0
cpu2 at mainbus0: apid 4 (application processor)
cpu2: Intel(R) Celeron(R) CPU J1900 @ 1.99GHz, 2000.01 MHz
cpu2: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,MOVBE,POPCNT,DEADLINE,RDRAND,NXE,LONG,LAHF,3DNOWP,PERF,ITSC,SMEP,ERMS,SENSOR,ARAT
cpu2: 1MB 64b/line 16-way L2 cache
cpu2: smt 0, core 2, package 0
cpu3 at mainbus0: apid 6 (application processor)
cpu3: Intel(R) Celeron(R) CPU J1900 @ 1.99GHz, 2000.01 MHz
cpu3: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,MOVBE,POPCNT,DEADLINE,RDRAND,NXE,LONG,LAHF,3DNOWP,PERF,ITSC,SMEP,ERMS,SENSOR,ARAT
cpu3: 1MB 64b/line 16-way L2 cache
cpu3: smt 0, core 3, package 0
ioapic0 at mainbus0: apid 1 pa 0xfec00000, version 20, 87 pins
acpimadt0: bogus nmi for apid 0
acpimadt0: bogus nmi for apid 2
acpimadt0: bogus nmi for apid 4
acpimadt0: bogus nmi for apid 6
acpimcfg0 at acpi0 addr 0xe0000000, bus 0-255
acpihpet0 at acpi0: 14318179 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 1 (RP01)
acpiprt2 at acpi0: bus 2 (RP02)
acpiprt3 at acpi0: bus 3 (RP03)
acpiprt4 at acpi0: bus 4 (RP04)
acpiec0 at acpi0: not present
acpicpu0 at acpi0: !C3(10@1500 mwait.1@0x52), C2(10@500 mwait.1@0x51), C1(1000@1 mwait.1), PSS
acpicpu1 at acpi0: !C3(10@1500 mwait.1@0x52), C2(10@500 mwait.1@0x51), C1(1000@1 mwait.1), PSS
acpicpu2 at acpi0: !C3(10@1500 mwait.1@0x52), C2(10@500 mwait.1@0x51), C1(1000@1 mwait.1), PSS
acpicpu3 at acpi0: !C3(10@1500 mwait.1@0x52), C2(10@500 mwait.1@0x51), C1(1000@1 mwait.1), PSS
acpipwrres0 at acpi0: PLPE
acpipwrres1 at acpi0: PLPE
acpipwrres2 at acpi0: USBC, resource for EHC1, OTG1
acpipwrres3 at acpi0: CLK0, resource for CAM1
acpipwrres4 at acpi0: CLK1, resource for CAM0, CAM2
acpipwrres5 at acpi0: FN00, resource for FAN0
acpitz0 at acpi0: critical temperature is 90 degC
acpibat0 at acpi0: BAT0 not present
acpibat1 at acpi0: BAT1 not present
acpibat2 at acpi0: BAT2 not present
acpibtn0 at acpi0: LID0
acpibtn1 at acpi0: PWRB
acpibtn2 at acpi0: SLPB
acpivideo0 at acpi0: GFX0
acpivout0 at acpivideo0: DD1F
cpu0: Enhanced SpeedStep 2000 MHz: speeds: 1993, 1992, 1909, 1826, 1743, 1660, 1577, 1494, 1411, 1328 MHz
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "Intel Bay Trail Host" rev 0x0c
vga1 at pci0 dev 2 function 0 "Intel Bay Trail Video" rev 0x0c
intagp at vga1 not configured
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
ahci0 at pci0 dev 19 function 0 "Intel Bay Trail AHCI" rev 0x0c: msi, AHCI 1.3
ahci0: port 1: 1.5Gb/s
scsibus1 at ahci0: 32 targets
cd0 at scsibus1 targ 1 lun 0: <TSSTcorp, CDDVDW SN-208FB, SB00> ATAPI 5/cdrom removable
xhci0 at pci0 dev 20 function 0 "Intel Bay Trail xHCI" rev 0x0c: msi
usb0 at xhci0: USB revision 3.0
uhub0 at usb0 "Intel xHCI root hub" rev 3.00/1.00 addr 1
"Intel Bay Trail TXE" rev 0x0c at pci0 dev 26 function 0 not configured
azalia0 at pci0 dev 27 function 0 "Intel Bay Trail HD Audio" rev 0x0c: msi
azalia0: codecs: Realtek/0x0892, Intel/0x2882, using Realtek/0x0892
audio0 at azalia0
ppb0 at pci0 dev 28 function 0 "Intel Bay Trail I2C" rev 0x0c: msi
pci1 at ppb0 bus 1
ppb1 at pci0 dev 28 function 1 "Intel Bay Trail PCIE" rev 0x0c: msi
pci2 at ppb1 bus 2
athn0 at pci2 dev 0 function 0 "Atheros AR9287" rev 0x01: apic 1 int 17
athn0: AR9287 rev 2 (2T2R), ROM rev 4, address 04:f0:21:14:43:af
ppb2 at pci0 dev 28 function 2 "Intel Bay Trail PCIE" rev 0x0c: msi
pci3 at ppb2 bus 3
re0 at pci3 dev 0 function 0 "Realtek 8168" rev 0x11: RTL8168G/8111G (0x4c00), msi, address d0:50:99:2b:aa:d7
rgephy0 at re0 phy 7: RTL8251 PHY, rev. 0
ppb3 at pci0 dev 28 function 3 "Intel Bay Trail PCIE" rev 0x0c: msi
pci4 at ppb3 bus 4
ahci1 at pci4 dev 0 function 0 "ASMedia ASM1061 AHCI" rev 0x02: msi, AHCI 1.2
ahci1: port 0: 6.0Gb/s
scsibus2 at ahci1: 32 targets
sd0 at scsibus2 targ 0 lun 0: <ATA, KINGSTON SMS200S, 541A> SCSI3 0/direct fixed naa.50026b7251144d35
sd0: 57241MB, 512 bytes/sector, 117231408 sectors, thin
pcib0 at pci0 dev 31 function 0 "Intel Bay Trail LPC" rev 0x0c
ichiic0 at pci0 dev 31 function 3 "Intel Bay Trail SMBus" rev 0x0c: apic 1 int 18
iic0 at ichiic0
spdmem0 at iic0 addr 0x50: 4GB DDR3 SDRAM PC3-12800 SO-DIMM
isa0 at pcib0
isadma0 at isa0
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
pckbc0 at isa0 port 0x60/5 irq 1 irq 12
pckbd0 at pckbc0 (kbd slot)
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
wbsio0 at isa0 port 0x2e/2: NCT6776F rev 0x33
lm1 at wbsio0 port 0x290/8: NCT6776F
uhub1 at uhub0 port 1 "ASRock ASM107x" rev 2.10/1.00 addr 2
uhub2 at uhub0 port 2 "Genesys Logic USB2.0 Hub" rev 2.00/85.37 addr 3
uhub3 at uhub2 port 1 "Terminus Technology USB 2.0 Hub" rev 2.00/1.11 addr 4
ulpt0 at uhub3 port 1 configuration 1 interface 0 "Hewlett-Packard hp LaserJet 1320 series" rev 1.10/1.00 addr 5
ulpt0: using bi-directional mode
athn1 at uhub2 port 2 configuration 1 interface 0 "ATHEROS USB2.0 WLAN" rev 2.00/1.08 addr 6
vscsi0 at root
scsibus3 at vscsi0: 256 targets
softraid0 at root
scsibus4 at softraid0: 256 targets
root on sd0a (84a821b54c978b8b.a) swap on sd0b dump on sd0b
athn1: could not load firmware
Reply | Threaded
Open this post in threaded view
|

Re: athn0: device timeout

Stefan Sperling-5
On Sat, Nov 28, 2015 at 07:35:00AM -0700, bluesun08 wrote:
> xhci0 at pci0 dev 20 function 0 "Intel Bay Trail xHCI" rev 0x0c: msi
> usb0 at xhci0: USB revision 3.0
> uhub0 at usb0 "Intel xHCI root hub" rev 3.00/1.00 addr 1
> uhub2 at uhub0 port 2 "Genesys Logic USB2.0 Hub" rev 2.00/85.37 addr 3
> athn1 at uhub2 port 2 configuration 1 interface 0 "ATHEROS USB2.0 WLAN" rev
> 2.00/1.08 addr 6
> athn1: could not load firmware

I believe your problems are rooted in xhci(4) not athn(4).
There are several known problems with xhci, some of which
don't have a known fix yet.

To confirm this theory, could you try this athn adapter in a
machine with USB ports driven by ehci(4) instead of xhci(4)?

Reply | Threaded
Open this post in threaded view
|

Re: athn0: device timeout

bluesun08
In reply to this post by Stefan Sperling-5
So now i can test my athn device on
a) a different host controller and
b) on a different machine.

The results: The athn device won't work on a) and won't work on b).

Reply | Threaded
Open this post in threaded view
|

Re: athn0: device timeout

bluesun08
In reply to this post by Stefan Sperling-5
ok, now i tested my adapter on
a) another machine
b) another usb port.

Result: The adapter don't work on a) and don't work on b).

Is there any other Wifi-USB-adapter which work reasonably reliable on OpenBSD in HostAP mode?

regards

Alex
Reply | Threaded
Open this post in threaded view
|

Re: athn0: device timeout

Bryan Vyhmeister-3
On Sat, Nov 28, 2015 at 09:24:23AM -0700, bluesun08 wrote:
> ok, now i tested my adapter on
> a) another machine
> b) another usb port.
>
> Result: The adapter don't work on a) and don't work on b).
>
> Is there any other Wifi-USB-adapter which work reasonably reliable on
> OpenBSD in HostAP mode?

I have what I believe is the exact same device you do (TP-Link
TL-WN722N) and I just plugged it in to my MacBookAir7,2 where uhub0 is
attached to usb0 which is attached to xhci0 and, after running fw_update
to get the athn(4) firmware, was able to reattach and bring it up in
hostap mode without any issues.

athn0 at uhub0 port 1 configuration 1 interface 0 "ATHEROS USB2.0 WLAN"
rev 2.00/1.08 addr 8
athn0: AR9271 rev 1 (1T1R), ROM rev 13, address f8:1a:67:1f:cc:89

athn0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        lladdr f8:1a:67:1f:cc:89
        priority: 4
        groups: wlan
        media: IEEE802.11 autoselect (autoselect hostap)
        status: active
        ieee80211: nwid "hostap test" chan 1 bssid f8:1a:67:1f:cc:89


I think stsp@ is correct that something else is going on with xhci(4) on
your machine since this USB device works pretty well. I also tested an
older rum(4) device I have as well and that also works.

Bryan

Reply | Threaded
Open this post in threaded view
|

Re: athn0: device timeout

Adam Wolk-2
On Sat, 28 Nov 2015 22:30:03 -0800
Bryan Vyhmeister <[hidden email]> wrote:

> On Sat, Nov 28, 2015 at 09:24:23AM -0700, bluesun08 wrote:
> > ok, now i tested my adapter on
> > a) another machine
> > b) another usb port.
> >
> > Result: The adapter don't work on a) and don't work on b).
> >
> > Is there any other Wifi-USB-adapter which work reasonably reliable
> > on OpenBSD in HostAP mode?
>
> I have what I believe is the exact same device you do (TP-Link
> TL-WN722N) and I just plugged it in to my MacBookAir7,2 where uhub0 is
> attached to usb0 which is attached to xhci0 and, after running
> fw_update to get the athn(4) firmware, was able to reattach and bring
> it up in hostap mode without any issues.
>
> athn0 at uhub0 port 1 configuration 1 interface 0 "ATHEROS USB2.0
> WLAN" rev 2.00/1.08 addr 8
> athn0: AR9271 rev 1 (1T1R), ROM rev 13, address f8:1a:67:1f:cc:89
>
> athn0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
>         lladdr f8:1a:67:1f:cc:89
>         priority: 4
>         groups: wlan
>         media: IEEE802.11 autoselect (autoselect hostap)
>         status: active
>         ieee80211: nwid "hostap test" chan 1 bssid f8:1a:67:1f:cc:89
>
>
> I think stsp@ is correct that something else is going on with xhci(4)
> on your machine since this USB device works pretty well. I also
> tested an older rum(4) device I have as well and that also works.
>
> Bryan
>

I recently bought the exact same TP-LINK USB wireless (TL-WN722N). It
brings the interface nicely up and the connection works but times out
quite regularly but I am able to reconnect it back with doas
sh /etc/netstart.

Though in my case it's just athn0: device timed out without any
firmware info.

Tested on OpenBSD -current amd64 snapshots from: 31 Oct & 25 November
on a Lenovo G50-70.

Now to be precise. I can use this dongle quite fine. It sometimes goes
up to 1 hour of usage without any timeouts. When it does timeout it's
usually in rapid succession (like 2-3 times in next 10 minutes). Each
time after a timeout I can restart the connection with netstart
*without* unplugging the device.

OpenBSD 5.8-current (GENERIC.MP) #1663: Wed Nov 25 13:59:58 MST 2015
    [hidden email]:/usr/src/sys/arch/amd64/compile/GENERIC.MP
RTC BIOS diagnostic error 80<clock_battery>
real mem = 8464887808 (8072MB)
avail mem = 8204222464 (7824MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.7 @ 0xe6e40 (38 entries)
bios0: vendor LENOVO version "9ACN29WW" date 10/20/2014
bios0: LENOVO 20351
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP SLIC UEFI FPDT POAT ASF! HPET APIC MCFG WDAT SSDT BOOT LPIT ASPT DBGP SSDT SSDT SSDT SSDT
acpi0: wakeup devices P0P1(S4) UAR1(S3) EHC1(S3) XHC_(S3) HDEF(S4) TPD4(S4) TPD7(S0) TPD8(S0) PXSX(S4) RP01(S4) PXSX(S4) RP02(S4) PXSX(S4) RP03(S4) PXSX(S4) RP04(S4) [...]
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpihpet0 at acpi0: 14318179 Hz
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM) i7-4510U CPU @ 2.00GHz, 1895.87 MHz
cpu0: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,LONG,LAHF,ABM,PERF,ITSC,FSGSBASE,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,SENSOR,ARAT
cpu0: 256KB 64b/line 8-way L2 cache
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 10 var ranges, 88 fixed ranges
cpu0: apic clock running at 99MHz
cpu0: mwait min=64, max=64, C-substates=0.2.1.2.4.1.1.1, IBE
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Core(TM) i7-4510U CPU @ 2.00GHz, 1895.62 MHz
cpu1: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,LONG,LAHF,ABM,PERF,ITSC,FSGSBASE,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,SENSOR,ARAT
cpu1: 256KB 64b/line 8-way L2 cache
cpu1: smt 1, core 0, package 0
cpu2 at mainbus0: apid 2 (application processor)
cpu2: Intel(R) Core(TM) i7-4510U CPU @ 2.00GHz, 1895.62 MHz
cpu2: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,LONG,LAHF,ABM,PERF,ITSC,FSGSBASE,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,SENSOR,ARAT
cpu2: 256KB 64b/line 8-way L2 cache
cpu2: smt 0, core 1, package 0
cpu3 at mainbus0: apid 3 (application processor)
cpu3: Intel(R) Core(TM) i7-4510U CPU @ 2.00GHz, 1895.62 MHz
cpu3: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,LONG,LAHF,ABM,PERF,ITSC,FSGSBASE,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,SENSOR,ARAT
cpu3: 256KB 64b/line 8-way L2 cache
cpu3: smt 1, core 1, package 0
ioapic0 at mainbus0: apid 2 pa 0xfec00000, version 20, 40 pins
acpimcfg0 at acpi0 addr 0xe0000000, bus 0-255
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus -1 (P0P1)
acpiprt2 at acpi0: bus 1 (RP03)
acpiprt3 at acpi0: bus 2 (RP04)
acpiprt4 at acpi0: bus 3 (RP05)
acpiprt5 at acpi0: bus -1 (PEG0)
acpiprt6 at acpi0: bus -1 (PEG1)
acpiprt7 at acpi0: bus -1 (PEG2)
acpiec0 at acpi0
acpicpu0 at acpi0: C3(200@506 mwait.1@0x60), C2(200@148 mwait.1@0x33), C1(1000@1 mwait.1), PSS
acpicpu1 at acpi0: C3(200@506 mwait.1@0x60), C2(200@148 mwait.1@0x33), C1(1000@1 mwait.1), PSS
acpicpu2 at acpi0: C3(200@506 mwait.1@0x60), C2(200@148 mwait.1@0x33), C1(1000@1 mwait.1), PSS
acpicpu3 at acpi0: C3(200@506 mwait.1@0x60), C2(200@148 mwait.1@0x33), C1(1000@1 mwait.1), PSS
acpipwrres0 at acpi0: AMD3, resource for RP05
acpipwrres1 at acpi0: AMD2, resource for RP05
acpibat0 at acpi0: BAT0 serial BAT20101001 oem "Lenovo IdeaPad"
acpiac0 at acpi0: AC unit online
acpibtn0 at acpi0: LID0
acpibtn1 at acpi0: PWRB
acpivideo0 at acpi0: GFX0
acpivout0 at acpivideo0: DD1F
cpu0: Enhanced SpeedStep 1895 MHz: speeds: 2601, 2600, 2500, 2300, 2200, 2000, 1900, 1800, 1600, 1500, 1400, 1200, 1100, 1000, 800, 754 MHz
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "Intel Core 4G Host" rev 0x0b
inteldrm0 at pci0 dev 2 function 0 "Intel HD Graphics" rev 0x0b
drm0 at inteldrm0
inteldrm0: msi
inteldrm0: 1366x768
wsdisplay0 at inteldrm0 mux 1: console (std, vt100 emulation)
wsdisplay0: screen 1-5 added (std, vt100 emulation)
azalia0 at pci0 dev 3 function 0 "Intel Core 4G HD Audio" rev 0x0b: msi
xhci0 at pci0 dev 20 function 0 "Intel 8 Series xHCI" rev 0x04: msi
usb0 at xhci0: USB revision 3.0
uhub0 at usb0 "Intel xHCI root hub" rev 3.00/1.00 addr 1
"Intel 8 Series MEI" rev 0x04 at pci0 dev 22 function 0 not configured
azalia1 at pci0 dev 27 function 0 "Intel 8 Series HD Audio" rev 0x04: msi
azalia1: codecs: Conexant/0x510f
audio0 at azalia1
ppb0 at pci0 dev 28 function 0 "Intel 8 Series PCIE" rev 0xe4: msi
pci1 at ppb0 bus 1
re0 at pci1 dev 0 function 0 "Realtek 8168" rev 0x10: RTL8168GU/8111GU (0x5080), msi, address 68:f7:28:39:b2:85
rgephy0 at re0 phy 7: RTL8251 PHY, rev. 0
ppb1 at pci0 dev 28 function 3 "Intel 8 Series PCIE" rev 0xe4: msi
pci2 at ppb1 bus 2
"Atheros AR9565" rev 0x01 at pci2 dev 0 function 0 not configured
ppb2 at pci0 dev 28 function 4 "Intel 8 Series PCIE" rev 0xe4: msi
pci3 at ppb2 bus 3
3:0:0: mem address conflict 0xfffe0000/0x20000
"ATI Radeon HD 8500M" rev 0x00 at pci3 dev 0 function 0 not configured
ehci0 at pci0 dev 29 function 0 "Intel 8 Series USB" rev 0x04: apic 2 int 23
usb1 at ehci0: USB revision 2.0
uhub1 at usb1 "Intel EHCI root hub" rev 2.00/1.00 addr 1
pcib0 at pci0 dev 31 function 0 "Intel 8 Series LPC" rev 0x04
ahci0 at pci0 dev 31 function 2 "Intel 8 Series AHCI" rev 0x04: msi, AHCI 1.3
ahci0: port 0: 6.0Gb/s
ahci0: port 1: 1.5Gb/s
scsibus1 at ahci0: 32 targets
sd0 at scsibus1 targ 0 lun 0: <ATA, WDC WD10JPCX-24U, 01.0> SCSI3 0/direct fixed naa.50014ee60528f927
sd0: 953869MB, 512 bytes/sector, 1953525168 sectors
cd0 at scsibus1 targ 1 lun 0: <PLDS, DVD-RW DA8A6SH, GL61> ATAPI 5/cdrom removable
ichiic0 at pci0 dev 31 function 3 "Intel 8 Series SMBus" rev 0x04: apic 2 int 18
iic0 at ichiic0
spdmem0 at iic0 addr 0x50: 4GB DDR3 SDRAM PC3-12800 SO-DIMM
spdmem1 at iic0 addr 0x52: 4GB DDR3 SDRAM PC3-12800 SO-DIMM
isa0 at pcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5 irq 1 irq 12
pckbd0 at pckbc0 (kbd slot)
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pms0 at pckbc0 (aux slot)
wsmouse0 at pms0 mux 0
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
error: [drm:pid0:intel_uncore_check_errors] *ERROR* Unclaimed register before interrupt
ugen0 at uhub0 port 4 "Generic USB2.0-CRW" rev 2.00/39.60 addr 2
uvideo0 at uhub0 port 6 configuration 1 interface 0 "J58E8R30X Lenovo EasyCamera" rev 2.00/0.06 addr 3
video0 at uvideo0
ugen1 at uhub0 port 7 "Atheros Communications product 0x3004" rev 1.10/0.01 addr 4
uhub2 at uhub1 port 1 "Intel Rate Matching Hub" rev 2.00/0.04 addr 2
vscsi0 at root
scsibus2 at vscsi0: 256 targets
softraid0 at root
scsibus3 at softraid0: 256 targets
root on sd0a (ec584bbe45ede0d3.a) swap on sd0b dump on sd0b
WARNING: / was not properly unmounted
uhidev0 at uhub0 port 2 configuration 1 interface 0 "Sunplus USB Optical Mouse" rev 2.00/0.14 addr 5
uhidev0: iclass 3/1, 1 report id
ums0 at uhidev0 reportid 1: 5 buttons, Z and W dir
wsmouse1 at ums0 mux 0
wsmouse1 detached
ums0 detached
uhidev0 detached
uhidev0 at uhub0 port 2 configuration 1 interface 0 "Sunplus USB Optical Mouse" rev 2.00/0.14 addr 5
uhidev0: iclass 3/1, 1 report id
ums0 at uhidev0 reportid 1: 5 buttons, Z and W dir
wsmouse1 at ums0 mux 0
wsmouse1 detached
ums0 detached
uhidev0 detached
athn0 at uhub0 port 2 configuration 1 interface 0 "ATHEROS USB2.0 WLAN" rev 2.00/1.08 addr 5
athn0: AR9271 rev 1 (1T1R), ROM rev 13, address 60:e3:27:0e:6d:bb

Reply | Threaded
Open this post in threaded view
|

Re: athn0: device timeout

Gonzalo L. Rodriguez
In reply to this post by Stefan Sperling-5
I have the same problem with a new macbookpro12,1 my urtwn adapter work
just fine in a regular ehci(4) machine, but on xhci(4)'s macbookpro I
need to reconnect like 10 times, and even that way, doesn't work. :/

On 28/11, Stefan Sperling wrote:
; On Sat, Nov 28, 2015 at 07:35:00AM -0700, bluesun08 wrote:
; > xhci0 at pci0 dev 20 function 0 "Intel Bay Trail xHCI" rev 0x0c: msi
; > usb0 at xhci0: USB revision 3.0
; > uhub0 at usb0 "Intel xHCI root hub" rev 3.00/1.00 addr 1
; > uhub2 at uhub0 port 2 "Genesys Logic USB2.0 Hub" rev 2.00/85.37 addr 3
; > athn1 at uhub2 port 2 configuration 1 interface 0 "ATHEROS USB2.0 WLAN" rev
; > 2.00/1.08 addr 6
; > athn1: could not load firmware
;
; I believe your problems are rooted in xhci(4) not athn(4).
; There are several known problems with xhci, some of which
; don't have a known fix yet.
;
; To confirm this theory, could you try this athn adapter in a
; machine with USB ports driven by ehci(4) instead of xhci(4)?
;

--
Sending from my toaster.

Reply | Threaded
Open this post in threaded view
|

Re: athn0: device timeout

Stefan Sperling-5
In reply to this post by Adam Wolk-2
On Sun, Nov 29, 2015 at 02:52:15PM +0100, Adam Wolk wrote:
> Now to be precise. I can use this dongle quite fine. It sometimes goes
> up to 1 hour of usage without any timeouts. When it does timeout it's
> usually in rapid succession (like 2-3 times in next 10 minutes). Each
> time after a timeout I can restart the connection with netstart
> *without* unplugging the device.

If transmission of a frame times out (e.g. because of environmental
reasons like distortion or like parts moving out of radio range), the
hardware doesn't signal "transfer complete" and a watchdog handler
is triggered to handle the situation.

Usually, this watchdog will reset the hardware (down/up the interface)
and hope that things will work afterwards.
However, this is currently not implemented for most USB drivers where
you'll find an XXX comment in the watchdog code:

                if (--sc->sc_tx_timer == 0) {
                        printf("%s: device timeout\n", sc->sc_dev.dv_xname);
                        /* urtwn_init(ifp); XXX needs a process context! */
                        ifp->if_oerrors++;
                        return;
                }

So... USB drivers don't recover from transmit errors :(
This needs to be fixed to solve your issue.
Most drivers for PCI devices already do the right thing here.

Note that the watchdog runs in interrupt context and filesystem access
(ie. loading firmware) is impossible in this context. One PCI driver which
has the same problem is iwm(4). Look there for an approach that should also
work for USB drivers: Using the task API (task_add(9), task_del(9), etc.)
to reset the hardware from process context.

All other people in this thread had attachment problems which are not
related to the watchdog at all.