On Sun, Apr 26, 2015 at 10:07:19AM +0200, Stefan Sperling wrote:
> On Sun, Apr 26, 2015 at 09:36:06AM +0200, Remi Locherer wrote:
> >     Since a couple of month every now and then I'm getting a 
> >     "urtwn0: device timeout". Usually I deal with it by unlugging the 
> >     urtwn device and plug it in again, then run "sh /etc/netstart urtwn0".
> 
> Is ifconfig down/up (or just 'sh /etc/netstart urtwn0') not enough?

No, it's not enough. After the first timeout message on the console I
executed "sh /etc/netstart urtwn0". The result was:

Console log for mistral.relo.ch
urtwn0: device timeout
usb_transfer_complete: actlen > len 4294951684 > 4
usb_transfer_complete: actlen > len 4294951044 > 4
usb_transfer_complete: actlen > len 4294951300 > 4
usb_transfer_complete: actlen > len 4294951308 > 4
urtwn0: device timeout
usb_transfer_complete: actlen > len 4294951300 > 4
urtwn0: device timeout
usb_transfer_complete: actlen > len 4294951308 > 4
urtwn0: device timeout
usb_transfer_complete: actlen > len 4294951948 > 4
usb_transfer_complete: actlen > len 4294951684 > 4
urtwn0: device timeout
usb_transfer_complete: actlen > len 4294951304 > 2
urtwn0: device timeout
usb_transfer_complete: actlen > len 4294951300 > 4
urtwn0: device timeout
usb_transfer_complete: actlen > len 4294951682 > 2
usb_transfer_complete: actlen > len 4294951300 > 4
urtwn0: device timeout
usb_transfer_complete: actlen > len 4294951300 > 4
usb_transfer_complete: actlen > len 4294951172 > 4
urtwn0: device timeout

My /etc/hostname.urtwn0:

nwid tsunami wpakey XXXXXXX
dhcp
inet6 autoconf
!pkill -9 -lf wifinwid
!/etc/wifinwid \$if &

The script is the one from here:
http://undeadly.org/cgi?action=article&sid=20130208141628


> That is essentially what the driver should be doing in this situation.
> However, USB wifi drivers which need to load firmware currently don't
> reset properly when transmit times out -- they simply do nothing instead
> of resetting the interface.
> 
> 
> >     Sometimes the systems crashes when I unplug the urtwn device. 
> > 
> >     Photos from ddb after such a crash:
> > 
> >     https://relo.ch/crash_on_urtwn_removal-trace_part1.jpg
> >     https://relo.ch/crash_on_urtwn_removal-trace_part2.jpg
> >     https://relo.ch/crash_on_urtwn_removal-ps_part1.jpg
> >     https://relo.ch/crash_on_urtwn_removal-ps_part2.jpg
> >     https://relo.ch/crash_on_urtwn_removal-ps_part3.jpg
> 
> Can you please recompile your kernel with
>   makeoptions DEBUG="-g"
> in the config when reproducing crashes? That's slightly more convenient
> for us to debug since ddb output will contain line numbers.

I'll do that and report back.

> 
> Something is going wrong in the IPv6 code. This problem is not specific
> to urtwn(4). The relevant part of the trace is:
> 
> Stopped at find_pfxlist_reachable_router+0x15: movq 0x10(%eax),%rdi
> 
> find_pfxlist_reachable_router()
> pfxlist_onlink_check()
> prelist_remove()
> nd6_purge()
> in6_ifdetach()
> if_detach()
> urtwn_detach()
> config_detach()
> usbd_detach()
> uhub_explore()
> uhub_explore()
> usb_explore()
> usb_task_thread()

Reply via email to