Bug 171197

Summary: ADATA Classic CH11 USB HDD doesn't work in FreeBSD 9.1-RC1
Product: Base System Reporter: Bartek Krawczyk <bbartlomiej>
Component: usbAssignee: freebsd-usb (Nobody) <usb>
Status: Closed Overcome By Events    
Severity: Affects Only Me CC: emaste
Priority: Normal    
Version: Unspecified   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
add_set_address_delay.diff none

Description Bartek Krawczyk 2012-08-31 09:30:08 UTC
Hi, I recently bought a 1TB ADATA Classic CH11 USB HDD and it doesn't seem to be recognized by FreeBSD 9.1-RC1 (it works in Windows and Linux though). I can provide more debugging information if you tell me how to do it.
This is what I get in messages:

Aug 31 10:04:12 xbmc kernel: usb_alloc_device: set address 2 failed (USB_ERR_STALLED, ignored)
Aug 31 10:04:12 xbmc kernel: usbd_setup_device_desc: getting device descriptor at addr 2 failed, USB_ERR_STALLED
Aug 31 10:04:12 xbmc kernel: usbd_req_re_enumerate: addr=2, set address failed! (USB_ERR_STALLED, ignored)
Aug 31 10:04:12 xbmc kernel: usbd_setup_device_desc: getting device descriptor at addr 2 failed, USB_ERR_STALLED
Aug 31 10:04:13 xbmc kernel: usbd_req_re_enumerate: addr=2, set address failed! (USB_ERR_STALLED, ignored)
Aug 31 10:04:13 xbmc kernel: usbd_setup_device_desc: getting device descriptor at addr 2 failed, USB_ERR_STALLED
Aug 31 10:04:13 xbmc kernel: ugen1.2: <Unknown> at usbus1 (disconnected)
Aug 31 10:04:13 xbmc kernel: uhub_reattach_port: could not allocate new device

And this is from usbconfig:
ugen4.2: <product 0x3323 vendor 0x13d3> at usbus4, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON




If it helps I'm posting also logs from Linux box:
Aug 31 10:13:08 asus kernel: [184055.333341] usb 2-1.2: new high-speed USB device number 10 using ehci_hcd
Aug 31 10:13:08 asus kernel: [184055.538945] usb 2-1.2: New USB device found, idVendor=125f, idProduct=a11a
Aug 31 10:13:08 asus kernel: [184055.538952] usb 2-1.2: New USB device strings: Mfr=2, Product=3, SerialNumber=1
Aug 31 10:13:08 asus kernel: [184055.538957] usb 2-1.2: Product: CH11
Aug 31 10:13:08 asus kernel: [184055.538960] usb 2-1.2: Manufacturer: ADATA
Aug 31 10:13:08 asus kernel: [184055.538963] usb 2-1.2: SerialNumber: C11A023201207180022E
Aug 31 10:13:08 asus kernel: [184055.539941] scsi30 : usb-storage 2-1.2:1.0
Aug 31 10:13:11 asus kernel: [184058.568744] scsi 30:0:0:0: Direct-Access     ADATA    CH11             2AR1 PQ: 0 ANSI: 5
Aug 31 10:13:11 asus kernel: [184058.569484] sd 30:0:0:0: Attached scsi generic sg3 type 0
Aug 31 10:13:11 asus kernel: [184058.570506] sd 30:0:0:0: [sdd] 1953525168 512-byte logical blocks: (1.00 TB/931 GiB)
Aug 31 10:13:11 asus kernel: [184058.571208] sd 30:0:0:0: [sdd] Write Protect is off
Aug 31 10:13:11 asus kernel: [184058.571211] sd 30:0:0:0: [sdd] Mode Sense: 23 00 00 00
Aug 31 10:13:11 asus kernel: [184058.571973] sd 30:0:0:0: [sdd] No Caching mode page present
Aug 31 10:13:11 asus kernel: [184058.571977] sd 30:0:0:0: [sdd] Assuming drive cache: write through
Aug 31 10:13:11 asus kernel: [184058.574196] sd 30:0:0:0: [sdd] No Caching mode page present
Aug 31 10:13:11 asus kernel: [184058.574199] sd 30:0:0:0: [sdd] Assuming drive cache: write through
Aug 31 10:13:11 asus kernel: [184058.595845]  sdd: sdd1
Aug 31 10:13:11 asus kernel: [184058.598645] sd 30:0:0:0: [sdd] No Caching mode page present
Aug 31 10:13:11 asus kernel: [184058.598651] sd 30:0:0:0: [sdd] Assuming drive cache: write through
Aug 31 10:13:11 asus kernel: [184058.598655] sd 30:0:0:0: [sdd] Attached SCSI disk
Aug 31 10:13:11 asus kernel: [184058.664878] xhci_hcd 0000:07:00.0: BAR 0: set to [mem 0xd4c00000-0xd4c0ffff] (PCI address [0xd4c00000-0xd4c0ffff])
Aug 31 10:13:11 asus kernel: [184058.664976] xhci_hcd 0000:07:00.0: PME# disabled
Aug 31 10:13:11 asus kernel: [184058.664995] xhci_hcd 0000:07:00.0: PCI INT A -> GSI 19 (level, low) -> IRQ 19
Aug 31 10:13:11 asus kernel: [184058.665005] xhci_hcd 0000:07:00.0: setting latency timer to 64
Aug 31 10:13:11 asus kernel: [184058.665025] usb usb3: root hub lost power or was reset
Aug 31 10:13:11 asus kernel: [184058.665028] usb usb4: root hub lost power or was reset
Aug 31 10:13:18 asus kernel: [184065.256685] xhci_hcd 0000:07:00.0: PCI INT A disabled
Aug 31 10:13:18 asus kernel: [184065.256759] xhci_hcd 0000:07:00.0: PME# enabled


and an output from lsusb:
Bus 002 Device 010: ID 125f:a11a A-DATA Technology Co., Ltd

How-To-Repeat: Connect an ADATA Classic CH11 HDD to a FreeBSD 9.1-RC1 system.
Comment 1 Hans Petter Selasky 2012-09-02 09:14:51 UTC
On Friday 31 August 2012 10:22:22 Bartek Krawczyk wrote:
> >Number:         171197
> >Category:       usb
> >Synopsis:       ADATA Classic CH11 USB HDD doesn't work in FreeBSD 9.1-RC1
> >Confidential:   no
> >Severity:       non-critical
> >Priority:       low
> >Responsible:    freebsd-usb
> >State:          open
> >Quarter:
> >Keywords:
> >Date-Required:
> >Class:          sw-bug
> >Submitter-Id:   current-users
> >Arrival-Date:   Fri Aug 31 08:30:08 UTC 2012
> >Closed-Date:
> >Last-Modified:
> >Originator:     Bartek Krawczyk
> >Release:        9.1-RC1
> >Organization:
> 
> >Environment:
> FreeBSD xbmc 9.1-RC1 FreeBSD 9.1-RC1 #0: Tue Aug 14 04:25:06 UTC 2012    
> root@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  amd64
> 
> >Description:
> Hi, I recently bought a 1TB ADATA Classic CH11 USB HDD and it doesn't seem
> to be recognized by FreeBSD 9.1-RC1 (it works in Windows and Linux
> though). I can provide more debugging information if you tell me how to do
> it. This is what I get in messages:
> 
> Aug 31 10:04:12 xbmc kernel: usb_alloc_device: set address 2 failed
> (USB_ERR_STALLED, ignored) Aug 31 10:04:12 xbmc kernel:
> usbd_setup_device_desc: getting device descriptor at addr 2 failed,
> USB_ERR_STALLED Aug 31 10:04:12 xbmc kernel: usbd_req_re_enumerate:
> addr=2, set address failed! (USB_ERR_STALLED, ignored) Aug 31 10:04:12
> xbmc kernel: usbd_setup_device_desc: getting device descriptor at addr 2
> failed, USB_ERR_STALLED Aug 31 10:04:13 xbmc kernel:
> usbd_req_re_enumerate: addr=2, set address failed! (USB_ERR_STALLED,
> ignored) Aug 31 10:04:13 xbmc kernel: usbd_setup_device_desc: getting
> device descriptor at addr 2 failed, USB_ERR_STALLED Aug 31 10:04:13 xbmc
> kernel: ugen1.2: <Unknown> at usbus1 (disconnected) Aug 31 10:04:13 xbmc
> kernel: uhub_reattach_port: could not allocate new device
> 
> And this is from usbconfig:
> ugen4.2: <product 0x3323 vendor 0x13d3> at usbus4, cfg=0 md=HOST spd=HIGH
> (480Mbps) pwr=ON
> 

Hi,

Could you send the device to me for debugging?

Have you tried using an external HUB in between?

Is the device properly powered?

Can you try the attached patch?

--HPS
Comment 2 Ed Maste freebsd_committer freebsd_triage 2015-09-25 17:52:49 UTC
Closed due to lack of feedback on followup questions. If you can still reproduce this issue and are willing to try the patch please reopen.