fantec db 229 U3

2012-02-22 Thread zulu


Hi,

I can't use my external HDD attached to my laptop. The drive enclosure
is a Fantec db 229 U3 case (USB3). My laptop has only USB2 ports.

I have tested this with both FreeBSD 9.0 RELEASE and FreeBSD 9 STABLE
- same issues.

Tested with linux too on the same hardware and it is working fine. The
manual which came with the drive enclosure states Linux, Mac OSX and
Windows support.

Can someone please point me to the right direction? I have included
some dumps bellow.

Many thanks,

Peter

dmesg:

usb_alloc_device: set address 2 failed (USB_ERR_STALLED, ignored)

usbd_setup_device_desc: getting device descriptor at addr 2 failed,
USB_ERR_STALLED
usbd_req_re_enumerate: addr=2, set address failed! (USB_ERR_STALLED,
ignored)
usbd_setup_device_desc: getting device descriptor at addr 2 failed,
USB_ERR_STALLED
usbd_req_re_enumerate: addr=2, set address failed! (USB_ERR_STALLED,
ignored)
usbd_setup_device_desc: getting device descriptor at addr 2 failed,
USB_ERR_STALLED
ugen1.2:  at usbus1 (disconnected)

uhub_reattach_port: could not allocate new device

usbconfig output:

ugen0.1:  at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=SAVE
ugen1.1:  at usbus1, cfg=0 md=HOST spd=FULL (12Mbps) pwr=SAVE
ugen2.1:  at usbus2, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE
ugen3.1:  at usbus3, cfg=0 md=HOST spd=FULL (12Mbps) pwr=SAVE
ugen4.1:  at usbus4, cfg=0 md=HOST spd=FULL (12Mbps) pwr=SAVE
ugen5.1:  at usbus5, cfg=0 md=HOST spd=FULL (12Mbps) pwr=SAVE
ugen6.1:  at usbus6, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE
ugen0.2:  at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON
ugen0.3:  at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON
ugen4.2:  at usbus4, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON

pciconf:

uhci2@pci0:0:29:0:class=0x0c0300 card=0x20aa17aa chip=0x28308086
rev=0x03 hdr=0x00
vendor = 'Intel Corporation'
device = '82801H (ICH8 Family) USB UHCI Controller'
class = serial bus
subclass = USB
bar [20] = type I/O Port, range 32, base 0x18a0, size 32, enabled
uhci3@pci0:0:29:1:class=0x0c0300 card=0x20aa17aa chip=0x28318086
rev=0x03 hdr=0x00
vendor = 'Intel Corporation'
device = '82801H (ICH8 Family) USB UHCI Controller'
class = serial bus
subclass = USB
bar [20] = type I/O Port, range 32, base 0x18c0, size 32, enabled
uhci4@pci0:0:29:2:class=0x0c0300 card=0x20aa17aa chip=0x28328086
rev=0x03 hdr=0x00
vendor = 'Intel Corporation'
device = '82801H (ICH8 Family) USB UHCI Controller'
class = serial bus
subclass = USB
bar [20] = type I/O Port, range 32, base 0x18e0, size 32, enabled
ehci1@pci0:0:29:7:class=0x0c0320 card=0x20ab17aa chip=0x28368086
rev=0x03 hdr=0x00
vendor = 'Intel Corporation'
device = '82801H (ICH8 Family) USB2 EHCI Controller'
class = serial bus
subclass = USB
bar [10] = type Memory, range 32, base 0xfe227000, size 1024, enabled
cap 01[50] = powerspec 2 supports D0 D3 current D0
cap 0a[58] = EHCI Debug Port at offset 0xa0 in map 0x14


___
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to freebsd-usb-unsubscr...@freebsd.org


Re: fantec db 229 U3

2012-02-22 Thread Hans Petter Selasky
On Wednesday 22 February 2012 13:36:20 zulu wrote:
 Hi,
 
 I can't use my external HDD attached to my laptop. The drive enclosure
 is a Fantec db 229 U3 case (USB3). My laptop has only USB2 ports.
 
 I have tested this with both FreeBSD 9.0 RELEASE and FreeBSD 9 STABLE
 - same issues.
 
 Tested with linux too on the same hardware and it is working fine. The
 manual which came with the drive enclosure states Linux, Mac OSX and
 Windows support.
 
 Can someone please point me to the right direction? I have included
 some dumps bellow.
 
 Many thanks,
 
 Peter
 
 dmesg:
 
 usb_alloc_device: set address 2 failed (USB_ERR_STALLED, ignored)
 
 usbd_setup_device_desc: getting device descriptor at addr 2 failed,
 USB_ERR_STALLED
 usbd_req_re_enumerate: addr=2, set address failed! (USB_ERR_STALLED,
 ignored)
 usbd_setup_device_desc: getting device descriptor at addr 2 failed,
 USB_ERR_STALLED
 usbd_req_re_enumerate: addr=2, set address failed! (USB_ERR_STALLED,
 ignored)
 usbd_setup_device_desc: getting device descriptor at addr 2 failed,
 USB_ERR_STALLED
 ugen1.2:  at usbus1 (disconnected)
 
 uhub_reattach_port: could not allocate new device
 
 usbconfig output:
 
 ugen0.1:  at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=SAVE
 ugen1.1:  at usbus1, cfg=0 md=HOST spd=FULL (12Mbps) pwr=SAVE
 ugen2.1:  at usbus2, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE
 ugen3.1:  at usbus3, cfg=0 md=HOST spd=FULL (12Mbps) pwr=SAVE
 ugen4.1:  at usbus4, cfg=0 md=HOST spd=FULL (12Mbps) pwr=SAVE
 ugen5.1:  at usbus5, cfg=0 md=HOST spd=FULL (12Mbps) pwr=SAVE
 ugen6.1:  at usbus6, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE
 ugen0.2:  at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON
 ugen0.3:  at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON
 ugen4.2:  at usbus4, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON
 
 pciconf:
 
 uhci2@pci0:0:29:0:class=0x0c0300 card=0x20aa17aa chip=0x28308086
 rev=0x03 hdr=0x00
 vendor = 'Intel Corporation'
 device = '82801H (ICH8 Family) USB UHCI Controller'
 class = serial bus
 subclass = USB
 bar [20] = type I/O Port, range 32, base 0x18a0, size 32, enabled
 uhci3@pci0:0:29:1:class=0x0c0300 card=0x20aa17aa chip=0x28318086
 rev=0x03 hdr=0x00
 vendor = 'Intel Corporation'
 device = '82801H (ICH8 Family) USB UHCI Controller'
 class = serial bus
 subclass = USB
 bar [20] = type I/O Port, range 32, base 0x18c0, size 32, enabled
 uhci4@pci0:0:29:2:class=0x0c0300 card=0x20aa17aa chip=0x28328086
 rev=0x03 hdr=0x00
 vendor = 'Intel Corporation'
 device = '82801H (ICH8 Family) USB UHCI Controller'
 class = serial bus
 subclass = USB
 bar [20] = type I/O Port, range 32, base 0x18e0, size 32, enabled
 ehci1@pci0:0:29:7:class=0x0c0320 card=0x20ab17aa chip=0x28368086
 rev=0x03 hdr=0x00
 vendor = 'Intel Corporation'
 device = '82801H (ICH8 Family) USB2 EHCI Controller'
 class = serial bus
 subclass = USB
 bar [10] = type Memory, range 32, base 0xfe227000, size 1024, enabled
 cap 01[50] = powerspec 2 supports D0 D3 current D0
 cap 0a[58] = EHCI Debug Port at offset 0xa0 in map 0x14
 

Have you tried to kldload xhci?

--HPS
___
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to freebsd-usb-unsubscr...@freebsd.org


Re: fantec db 229 U3

2012-02-22 Thread Hans Petter Selasky
On Wednesday 22 February 2012 18:22:47 Hans Petter Selasky wrote:
 On Wednesday 22 February 2012 13:36:20 zulu wrote:
  Hi,
  
  I can't use my external HDD attached to my laptop. The drive enclosure
  is a Fantec db 229 U3 case (USB3). My laptop has only USB2 ports.
  
  I have tested this with both FreeBSD 9.0 RELEASE and FreeBSD 9 STABLE
  - same issues.
  
  Tested with linux too on the same hardware and it is working fine. The
  manual which came with the drive enclosure states Linux, Mac OSX and
  Windows support.
  
  Can someone please point me to the right direction? I have included
  some dumps bellow.
  
  Many thanks,
  
  Peter
  
  dmesg:
  
  usb_alloc_device: set address 2 failed (USB_ERR_STALLED, ignored)
  
  usbd_setup_device_desc: getting device descriptor at addr 2 failed,
  USB_ERR_STALLED
  usbd_req_re_enumerate: addr=2, set address failed! (USB_ERR_STALLED,
  ignored)
  usbd_setup_device_desc: getting device descriptor at addr 2 failed,
  USB_ERR_STALLED
  usbd_req_re_enumerate: addr=2, set address failed! (USB_ERR_STALLED,
  ignored)
  usbd_setup_device_desc: getting device descriptor at addr 2 failed,
  USB_ERR_STALLED
  ugen1.2:  at usbus1 (disconnected)

Hi,

If you have a kernel compiled with debugging support, you can tun the 
following sysctls:

hw.usb.pr_recovery_delay: 250
hw.usb.pr_poll_delay: 50

Also make sure:

Device is self powered.

Tried to connect using external HUB.

--HPS
___
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to freebsd-usb-unsubscr...@freebsd.org


Re: usb/165154: commit references a PR

2012-02-22 Thread dfilter service
The following reply was made to PR usb/165154; it has been noted by GNATS.

From: dfil...@freebsd.org (dfilter service)
To: bug-follo...@freebsd.org
Cc:  
Subject: Re: usb/165154: commit references a PR
Date: Thu, 23 Feb 2012 07:27:13 + (UTC)

 Author: hselasky
 Date: Thu Feb 23 07:26:58 2012
 New Revision: 232036
 URL: http://svn.freebsd.org/changeset/base/232036
 
 Log:
   MFC r231713:
   Add new USB device ID.
   
   PR:  usb/165154
 
 Modified:
   stable/9/sys/dev/usb/serial/u3g.c
   stable/9/sys/dev/usb/usbdevs
 Directory Properties:
   stable/9/sys/   (props changed)
 
 Modified: stable/9/sys/dev/usb/serial/u3g.c
 ==
 --- stable/9/sys/dev/usb/serial/u3g.c  Thu Feb 23 07:23:33 2012
(r232035)
 +++ stable/9/sys/dev/usb/serial/u3g.c  Thu Feb 23 07:26:58 2012
(r232036)
 @@ -432,6 +432,7 @@ static const STRUCT_USB_HOST_ID u3g_devs
U3G_DEV(QUANTA, Q111, 0),
U3G_DEV(SIERRA, AC402, 0),
U3G_DEV(SIERRA, AC595U, 0),
 +  U3G_DEV(SIERRA, AC313U, 0),
U3G_DEV(SIERRA, AC597E, 0),
U3G_DEV(SIERRA, AC875E, 0),
U3G_DEV(SIERRA, AC875U, 0),
 
 Modified: stable/9/sys/dev/usb/usbdevs
 ==
 --- stable/9/sys/dev/usb/usbdevs   Thu Feb 23 07:23:33 2012
(r232035)
 +++ stable/9/sys/dev/usb/usbdevs   Thu Feb 23 07:26:58 2012
(r232036)
 @@ -3000,6 +3000,7 @@ product SIERRA E6892 0x6892  E6892
  product SIERRA E6893  0x6893  E6893
  product SIERRA MC8700 0x68A3  MC8700
  product SIERRA AIRCARD875 0x6820  Aircard 875 HSDPA
 +product SIERRA AC313U 0x68aa  Sierra Wireless AirCard 313U
  product SIERRA TRUINSTALL 0x0fff  Aircard Tru Installer
  
  /* Sigmatel products */
 ___
 svn-src-...@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-src-all
 To unsubscribe, send any mail to svn-src-all-unsubscr...@freebsd.org
 
___
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to freebsd-usb-unsubscr...@freebsd.org


Re: usb/164090: commit references a PR

2012-02-22 Thread dfilter service
The following reply was made to PR usb/164090; it has been noted by GNATS.

From: dfil...@freebsd.org (dfilter service)
To: bug-follo...@freebsd.org
Cc:  
Subject: Re: usb/164090: commit references a PR
Date: Thu, 23 Feb 2012 07:35:17 + (UTC)

 Author: hselasky
 Date: Thu Feb 23 07:34:53 2012
 New Revision: 232038
 URL: http://svn.freebsd.org/changeset/base/232038
 
 Log:
   MFC r230204 and r230209:
   Export information about USB serial port unit and port numbers
   directly via the sysctl interface.
   
   PR:  usb/164090
 
 Modified:
   stable/9/sys/dev/usb/serial/usb_serial.c
   stable/9/sys/dev/usb/serial/usb_serial.h
 Directory Properties:
   stable/9/sys/   (props changed)
 
 Modified: stable/9/sys/dev/usb/serial/usb_serial.c
 ==
 --- stable/9/sys/dev/usb/serial/usb_serial.c   Thu Feb 23 07:27:20 2012
(r232037)
 +++ stable/9/sys/dev/usb/serial/usb_serial.c   Thu Feb 23 07:34:53 2012
(r232038)
 @@ -248,10 +248,16 @@ ucom_attach(struct ucom_super_softc *ssc
return (EINVAL);
}
  
 +  /* allocate a uniq unit number */
ssc-sc_unit = ucom_unit_alloc();
if (ssc-sc_unit == -1)
return (ENOMEM);
  
 +  /* generate TTY name string */
 +  snprintf(ssc-sc_ttyname, sizeof(ssc-sc_ttyname),
 +  UCOM_TTY_PREFIX %d, ssc-sc_unit);
 +
 +  /* create USB request handling process */
error = usb_proc_create(ssc-sc_tq, mtx, ucom, USB_PRI_MED);
if (error) {
ucom_unit_free(ssc-sc_unit);
 @@ -292,6 +298,16 @@ ucom_detach(struct ucom_super_softc *ssc
if (ssc-sc_subunits == 0)
return; /* not initialized */
  
 +  if (ssc-sc_sysctl_ttyname != NULL) {
 +  sysctl_remove_oid(ssc-sc_sysctl_ttyname, 1, 0);
 +  ssc-sc_sysctl_ttyname = NULL;
 +  }
 +
 +  if (ssc-sc_sysctl_ttyports != NULL) {
 +  sysctl_remove_oid(ssc-sc_sysctl_ttyports, 1, 0);
 +  ssc-sc_sysctl_ttyports = NULL;
 +  }
 +
usb_proc_drain(ssc-sc_tq);
  
for (subunit = 0; subunit  ssc-sc_subunits; subunit++) {
 @@ -420,19 +436,36 @@ ucom_detach_tty(struct ucom_softc *sc)
  void
  ucom_set_pnpinfo_usb(struct ucom_super_softc *ssc, device_t dev)
  {
 -char buf[64];
 -uint8_t iface_index;
 -struct usb_attach_arg *uaa;
 -
 -snprintf(buf, sizeof(buf), ttyname=%s%d ttyports=%d,
 -   UCOM_TTY_PREFIX, ssc-sc_unit, ssc-sc_subunits);
 -
 -/* Store the PNP info in the first interface for the dev */
 -uaa = device_get_ivars(dev);
 -iface_index = uaa-info.bIfaceIndex;
 +  char buf[64];
 +  uint8_t iface_index;
 +  struct usb_attach_arg *uaa;
 +
 +  snprintf(buf, sizeof(buf), ttyname= UCOM_TTY_PREFIX
 +  %d ttyports=%d, ssc-sc_unit, ssc-sc_subunits);
 +
 +  /* Store the PNP info in the first interface for the device */
 +  uaa = device_get_ivars(dev);
 +  iface_index = uaa-info.bIfaceIndex;
  
 -if (usbd_set_pnpinfo(uaa-device, iface_index, buf) != 0)
 -  device_printf(dev, Could not set PNP info\n);
 +  if (usbd_set_pnpinfo(uaa-device, iface_index, buf) != 0)
 +  device_printf(dev, Could not set PNP info\n);
 +
 +  /*
 +   * The following information is also replicated in the PNP-info
 +   * string which is registered above:
 +   */
 +  if (ssc-sc_sysctl_ttyname == NULL) {
 +  ssc-sc_sysctl_ttyname = SYSCTL_ADD_STRING(NULL,
 +  SYSCTL_CHILDREN(device_get_sysctl_tree(dev)),
 +  OID_AUTO, ttyname, CTLFLAG_RD, ssc-sc_ttyname, 0,
 +  TTY device basename);
 +  }
 +  if (ssc-sc_sysctl_ttyports == NULL) {
 +  ssc-sc_sysctl_ttyports = SYSCTL_ADD_INT(NULL,
 +  SYSCTL_CHILDREN(device_get_sysctl_tree(dev)),
 +  OID_AUTO, ttyports, CTLFLAG_RD,
 +  NULL, ssc-sc_subunits, Number of ports);
 +  }
  }
  
  static void
 
 Modified: stable/9/sys/dev/usb/serial/usb_serial.h
 ==
 --- stable/9/sys/dev/usb/serial/usb_serial.h   Thu Feb 23 07:27:20 2012
(r232037)
 +++ stable/9/sys/dev/usb/serial/usb_serial.h   Thu Feb 23 07:34:53 2012
(r232038)
 @@ -70,6 +70,7 @@
  #include sys/tty.h
  #include sys/serial.h
  #include sys/fcntl.h
 +#include sys/sysctl.h
  
  /* Module interface related macros */
  #define   UCOM_MODVER 1
 @@ -132,8 +133,11 @@ struct ucom_param_task {
  
  struct ucom_super_softc {
struct usb_process sc_tq;
 -  uint32_t sc_unit;
 -  uint32_t sc_subunits;
 +  int sc_unit;
 +  int sc_subunits;
 +  struct sysctl_oid *sc_sysctl_ttyname;
 +  struct sysctl_oid *sc_sysctl_ttyports;
 +  char sc_ttyname[16];
  };
  
  struct ucom_softc {
 ___