From nobody@FreeBSD.org  Fri Aug 28 23:06:44 2009
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id E2AC31065676
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 28 Aug 2009 23:06:44 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id D13178FC1F
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 28 Aug 2009 23:06:44 +0000 (UTC)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n7SN6imV070141
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 28 Aug 2009 23:06:44 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id n7SN6iP4070140;
	Fri, 28 Aug 2009 23:06:44 GMT
	(envelope-from nobody)
Message-Id: <200908282306.n7SN6iP4070140@www.freebsd.org>
Date: Fri, 28 Aug 2009 23:06:44 GMT
From: Samuel Boivie <samuel@boivie.org>
To: freebsd-gnats-submit@FreeBSD.org
Subject: "zyd0: device timeout" with ZyXEL G-202
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         138292
>Category:       kern
>Synopsis:       [zyd] [usb8] "zyd0: device timeout" with ZyXEL G-202
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    freebsd-usb
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Aug 28 23:10:05 UTC 2009
>Closed-Date:    
>Last-Modified:  Wed Jul 03 01:41:33 UTC 2013
>Originator:     Samuel Boivie
>Release:        8.0-BETA3 amd64, freshly installed
>Organization:
>Environment:
FreeBSD willamette.boivie.org 8.0-BETA3 FreeBSD 8.0-BETA3 #0: Sat Aug 22 02:00:45 UTC 2009     root@mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  amd64
>Description:
The problem appeared after Weongyo Jeong made the device, ZyXEL G-202,
work in May. The device works fine for a while after being configured
and then suddenly stops with "kernel: zyd0: device timeout" in
/var/less/messages. A soft reboot appears not to help, the device will
still not work after reboot. Cutting power will make it work again.

from dmesg:
zyd0: <ZyDAS ZyXEL G-202, rev 2.00/48.10, addr 2> on usbus4

>How-To-Repeat:
Just using the device for a while, eventually it will fail. A csup of
ports appears to trigger the timeout quickly and reliably (haven't
failed to reproduce timeout yet with 5+ tries).
>Fix:


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->freebsd-net 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Sat Aug 29 13:45:10 UTC 2009 
Responsible-Changed-Why:  
Over to maintainer(s). 

http://www.freebsd.org/cgi/query-pr.cgi?pr=138292 

From: "Paul A. Procacci" <pprocacci@datapipe.net>
To: <bug-followup@FreeBSD.org>, <samuel@boivie.org>
Cc:  
Subject: Re: kern/138292: [zyd] [usb8] "zyd0: device timeout" with ZyXEL G-202
Date: Tue, 1 Sep 2009 00:02:58 -0500

 I've got the same problem here for what it's worth.
 
 zyd0: <Belkin USB2.0 WLAN, rev 2.00/48.10, addr 2> on usbus0
 
 This is Freebsd 9.0-Current.
 
 Same timeout problems.  (was trying to download/install fluxbox)
 
 This message may contain confidential or privileged information.  If you ar=
 e not the intended recipient, please advise us immediately and delete this =
 message.  See http://www.datapipe.com/emaildisclaimer.aspx for further info=
 rmation on confidentiality and the risks of non-secure electronic communica=
 tion. If you cannot access these links, please notify us by reply message a=
 nd we will send the contents to you.
Responsible-Changed-From-To: freebsd-net->weongyo 
Responsible-Changed-By: weongyo 
Responsible-Changed-When: Tue Sep 8 20:39:37 UTC 2009 
Responsible-Changed-Why:  
grap. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=138292 

From: Cedric Anderson <jintxo@gmail.com>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: kern/138292: [zyd] [usb8] "zyd0: device timeout" with ZyXEL G-202
Date: Mon, 30 Aug 2010 10:55:44 +0200

 This is a multi-part message in MIME format.
 --------------060106010000000402030808
 Content-Type: text/plain; charset=ISO-8859-1; format=flowed
 Content-Transfer-Encoding: 7bit
 
   Hello,
 
 Just wanted to note that I have the exact some behaviour with SMC 
 EzConnect g (vendor 0x083a product 0x4505) on FreeBSD 8.1
 
 Conects fine, works for a while and then I get "zyd0: device timeout" 
 and must unplug the USB stick and plug it back in to get it to work.
 
 usbconfig -dugen1.2 power_off
 
 and then
 
 usbconfig -dugen1.2 power_on
 
 does not solve the issue, I have to actually unplug it, which makes me 
 thing the hardware itself is "locking up" sort of.
 
 During normal functioning of the device I am getting "zyd0: unsupported 
 rate 0" all the time in dmesg, although it works fine until the timeout 
 message appears.
 
 >  [root@peqs ~]# usbconfig -d 1.2 dump_device_desc
 >  ugen1.2: <USB2.0 WLAN SMC> at usbus1, cfg=0 md=HOST spd=HIGH (480Mbps)
 >  pwr=ON
 >
 >    bLength = 0x0012
 >    bDescriptorType = 0x0001
 >    bcdUSB = 0x0200
 >    bDeviceClass = 0x00ff
 >    bDeviceSubClass = 0x00ff
 >    bDeviceProtocol = 0x00ff
 >    bMaxPacketSize0 = 0x0040
 >    idVendor = 0x083a
 >    idProduct = *0x4505*
 >    bcdDevice = 0x4810
 >    iManufacturer = 0x0010 <SMC>
 >    iProduct = 0x0020 <USB2.0 WLAN>
 >    iSerialNumber = 0x0000 <no string>
 >    bNumConfigurations = 0x0001
 
 If I can help in some way, please let me know. I am unable to "dive in" 
 to the code but am happy to do any testing/patching necessary.
 
 Cedric
 
 
 --------------060106010000000402030808
 Content-Type: text/html; charset=ISO-8859-1
 Content-Transfer-Encoding: 7bit
 
 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
 <html>
   <head>
 
     <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
   </head>
   <body bgcolor="#ffffff" text="#000000">
     Hello, <br>
     <br>
     Just wanted to note that I have the exact some behaviour with SMC
     EzConnect g (vendor 0x083a product <span class="highlight">0x4505</span>)
     on FreeBSD 8.1<br>
     <br>
     Conects fine, works for a while and then I get "zyd0: device
     timeout" and must unplug the USB stick and plug it back in to get it
     to work.<br>
     <br>
     usbconfig -dugen1.2 power_off<br>
     <br>
     and then<br>
     <br>
     usbconfig -dugen1.2 power_on<br>
     <br>
     does not solve the issue, I have to actually unplug it, which makes
     me thing the hardware itself is "locking up" sort of.<br>
     <br>
     During normal functioning of the device I am getting "zyd0:
     unsupported rate 0" all the time in dmesg, although it works fine
     until the timeout message appears.<br>
     <br>
     <span>&nbsp;&gt; [root@peqs ~]# usbconfig -d 1.2 dump_device_desc
     </span><br>
     <span>&nbsp;&gt; ugen1.2: &lt;USB2.0 WLAN SMC&gt; at usbus1, cfg=0
       md=HOST spd=HIGH (480Mbps)
     </span><br>
     <span>&nbsp;&gt; pwr=ON
     </span><br>
     <span>&nbsp;&gt; </span><br>
     <span>&nbsp;&gt; &nbsp; bLength = 0x0012
     </span><br>
     <span>&nbsp;&gt; &nbsp; bDescriptorType = 0x0001
     </span><br>
     <span>&nbsp;&gt; &nbsp; bcdUSB = 0x0200
     </span><br>
     <span>&nbsp;&gt; &nbsp; bDeviceClass = 0x00ff
     </span><br>
     <span>&nbsp;&gt; &nbsp; bDeviceSubClass = 0x00ff
     </span><br>
     <span>&nbsp;&gt; &nbsp; bDeviceProtocol = 0x00ff
     </span><br>
     <span>&nbsp;&gt; &nbsp; bMaxPacketSize0 = 0x0040
     </span><br>
     <span>&nbsp;&gt; &nbsp; idVendor = 0x083a
     </span><br>
     <span>&nbsp;&gt; &nbsp; idProduct = <b class="highlight">0x4505</b>
     </span><br>
     <span>&nbsp;&gt; &nbsp; bcdDevice = 0x4810
     </span><br>
     <span>&nbsp;&gt; &nbsp; iManufacturer = 0x0010 &nbsp;&lt;SMC&gt;
     </span><br>
     <span>&nbsp;&gt; &nbsp; iProduct = 0x0020 &nbsp;&lt;USB2.0 WLAN&gt;
     </span><br>
     <span>&nbsp;&gt; &nbsp; iSerialNumber = 0x0000 &nbsp;&lt;no string&gt;
     </span><br>
     <span>&nbsp;&gt; &nbsp; bNumConfigurations = 0x0001
       <br>
       <br>
       If I can help in some way, please let me know. I am unable to
       "dive in" to the code but am happy to do any testing/patching
       necessary.<br>
       <br>
       Cedric<br>
     </span><br>
   </body>
 </html>
 
 --------------060106010000000402030808--

From: John Merryweather Cooper <j.m.cooper@borgsdemons.com>
To: bug-followup@FreeBSD.org, samuel@boivie.org
Cc:  
Subject: kern/138292: [zyd][usb8] "zyd0: device timeout" with ZyXEL G-202
Date: Thu, 07 Jun 2012 18:42:12 -0500

 I am getting identical behavior from a Belkin Wireless Adapter on 
 9.0-STABLE:
 
 Copyright (c) 1992-2012 The FreeBSD Project.
 Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
          The Regents of the University of California. All rights reserved.
 FreeBSD is a registered trademark of The FreeBSD Foundation.
 FreeBSD 9.0-STABLE #4: Thu May 31 07:12:27 CDT 2012
      root@g7-HP.borgsdemons.com:/usr/obj/usr/src/sys/G7 amd64
 CPU: AMD A4-3305M APU with Radeon(tm) HD Graphics (1896.59-MHz K8-class CPU)
    Origin = "AuthenticAMD"  Id = 0x300f10  Family = 12  Model = 1  
 Stepping = 0
    
 Features=0x178bfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2,HTT>
    Features2=0x802009<SSE3,MON,CX16,POPCNT>
    AMD 
 Features=0xee500800<SYSCALL,NX,MMX+,FFXSR,Page1GB,RDTSCP,LM,3DNow!+,3DNow!>
    AMD 
 Features2=0x37ff<LAHF,CMP,SVM,ExtAPIC,CR8,ABM,SSE4A,MAS,Prefetch,OSVW,IBS,SKINIT,WDT>
    TSC: P-state invariant, performance statistics
 real memory  = 5368709120 (5120 MB)
 avail memory = 4596224000 (4383 MB)
 Event timer "LAPIC" quality 400
 ACPI APIC Table: <HP     INSYDE >
 FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
 FreeBSD/SMP: 1 package(s) x 2 core(s)
   cpu0 (BSP): APIC ID:  0
   cpu1 (AP): APIC ID:  1
 ioapic0: Changing APIC ID to 4
 ioapic0 <Version 2.1> irqs 0-23 on motherboard
 
 * * *
 
 ugen1.2: <Belkin> at usbus1
 zyd0: <Belkin USB2.0 WLAN, rev 2.00/48.10, addr 2> on usbus1
 
 Power cycling (pulling the dongle out and pushing it back in) gets 
 things started again, but it is a pain.
 
 --
 John M. Cooper
State-Changed-From-To: open->open 
State-Changed-By: linimon 
State-Changed-When: Wed Jul 3 00:50:32 UTC 2013 
State-Changed-Why:  
commit bit has been taken in for safekeeping. 


Responsible-Changed-From-To: weongyo->freebsd-usb 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Wed Jul 3 00:50:32 UTC 2013 
Responsible-Changed-Why:  

http://www.freebsd.org/cgi/query-pr.cgi?pr=138292 
>Unformatted:
