Re: USB 3.0 Fails To Attach Western Digital My Book 3.0

2010-11-12 Thread Hans Petter Selasky
On Saturday 06 November 2010 17:48:41 Michael Martin wrote:
 On 11/06/2010 10:26, Hans Petter Selasky wrote:
  On Saturday 06 November 2010 17:00:46 Michael Martin wrote:
  On 11/06/2010 03:31, Hans Petter Selasky wrote:
  Hi,
  
  Can you revert the last patch I sent an apply the attached one?
  
  Then repeat the testing like last time.
  
  --HPS
  
  Here are the results:
  http://appliedtechnicalknowledge.com/freebsd/usb_30_hub_patch/
  
  I used one drive/port for the testing.  da0 not recognized on first
  boot, but came up after an unplug cable/plug cable.
  
  Hi,
  
  I will have a closer look into this tomorrow. Does your device work when
  first recognized? What read/write speeds do you get?
  
  --HPS
 
 The device doesn't work when I try to import the zfs pool on the drive.
 The drive shows up in camcontrol ok.  I initially exported the zfs file
 system to avoid attempts to mount it on boot.  Once da0 is recognized by
 the kernel and camcontrol devlist shows it, I try a zpool import on the
 file system.  The zpool import command hangs--sometimes the entire
 computer locks up, and I hard reboot the computer.  I captured the usb
 logs during the zpool import for you there which captures some zfs i/o
 errors.

Hi,

I'm not sure what exacatly the issue is about. Maybe the hardware is 
incompatible. Is is possible that I could be given SSH and root access to this 
hardware setup for a limited time to debug this issue?

--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 3.0 Fails To Attach Western Digital My Book 3.0

2010-11-06 Thread Hans Petter Selasky
Hi,

Can you revert the last patch I sent an apply the attached one?

Then repeat the testing like last time.

--HPS

 
 I captured several debug outputs here:
 http://appliedtechnicalknowledge.com/freebsd/usb3-patch-214808/ .  Maybe
 something in these can help.
=== usb_hub.c
==
--- usb_hub.c   (revision 214808)
+++ usb_hub.c   (local)
@@ -126,9 +126,10 @@
 
 static usb_callback_t uhub_intr_callback;
 
-static void usb_dev_resume_peer(struct usb_device *udev);
-static void usb_dev_suspend_peer(struct usb_device *udev);
-static uint8_t usb_peer_should_wakeup(struct usb_device *udev);
+static void usb_dev_resume_peer(struct usb_device *);
+static void usb_dev_suspend_peer(struct usb_device *);
+static uint8_t usb_peer_should_wakeup(struct usb_device *);
+static uint8_t usb_device_20_compatible(struct usb_device *);
 
 static const struct usb_config uhub_config[UHUB_N_TRANSFER] = {
 
@@ -394,13 +395,29 @@
usb_pause_mtx(NULL, 
USB_MS_TO_TICKS(USB_PORT_POWERUP_DELAY));
 
-   /* reset port, which implies enabling it */
+   if (usb_device_20_compatible(udev)) {
+   /* reset port, which implies enabling it */
+   err = usbd_req_reset_port(udev, NULL, portno);
+   } else {
+   switch (UPS_PORT_LINK_STATE_GET(sc-sc_st.port_status)) 
{
+   case UPS_PORT_LS_U0:
+   case UPS_PORT_LS_U1:
+   case UPS_PORT_LS_U2:
+   case UPS_PORT_LS_U3:
+   /* no reset needed, link is already UP */
+   break;
+   case UPS_PORT_LS_SS_INA:
+   /* try to recover link using a warm reset */
+   goto error;
+   default:
+   /* reset port, which implies enabling it */
+   err = usbd_req_reset_port(udev, NULL, portno);
+   break;
+   }
+   }
 
-   err = usbd_req_reset_port(udev, NULL, portno);
-
if (err) {
-   DPRINTFN(0, port %d reset 
-   failed, error=%s\n,
+   DPRINTFN(0, port %d reset failed, error=%s\n,
portno, usbd_errstr(err));
goto error;
}
@@ -517,17 +534,43 @@
usb_free_device(child, 0);
child = NULL;
}
-   if (err == 0) {
+   if (err) {
+   DPRINTFN(0, device problem (%s), 
+   port %u\n, usbd_errstr(err), portno);
+   goto error_ret;
+   }
+   if (usb_device_20_compatible(udev)) {
+   /* disable the port, if enabled */
if (sc-sc_st.port_status  UPS_PORT_ENABLED) {
err = usbd_req_clear_port_feature(
-   sc-sc_udev, NULL,
-   portno, UHF_PORT_ENABLE);
+   udev, NULL, portno, UHF_PORT_ENABLE);
}
+   } else {
+   /* get fresh status again */
+   err = uhub_read_port_status(sc, portno);
+   if (err)
+   goto error_ret;
+
+   switch (UPS_PORT_LINK_STATE_GET(sc-sc_st.port_status)) {
+   case UPS_PORT_LS_SS_INA:
+   /* Try a warm port reset to recover the port. */
+   err = usbd_req_warm_reset_port(udev, NULL, portno);
+   if (err) {
+   DPRINTF(warm port reset failed.\n);
+   goto error_ret;
+   }
+   break;
+   default:
+   /* disable the port, if enabled */
+   if (sc-sc_st.port_status  UPS_PORT_ENABLED) {
+   err = usbd_req_clear_port_feature(
+ udev, NULL, portno, UHF_PORT_ENABLE);
+   }
+   break;
+   }
}
-   if (err) {
-   DPRINTFN(0, device problem (%s), 
-   disabling port %d\n, usbd_errstr(err), portno);
-   }
+
+error_ret:
return (err);
 }
 
___
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 3.0 Fails To Attach Western Digital My Book 3.0

2010-11-06 Thread Hans Petter Selasky
On Saturday 06 November 2010 17:00:46 Michael Martin wrote:
 On 11/06/2010 03:31, Hans Petter Selasky wrote:
  Hi,
  
  Can you revert the last patch I sent an apply the attached one?
  
  Then repeat the testing like last time.
  
  --HPS
 
 Here are the results:
 http://appliedtechnicalknowledge.com/freebsd/usb_30_hub_patch/
 
 I used one drive/port for the testing.  da0 not recognized on first
 boot, but came up after an unplug cable/plug cable.

Hi,

I will have a closer look into this tomorrow. Does your device work when first 
recognized? What read/write speeds do you get?

--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 3.0 Fails To Attach Western Digital My Book 3.0

2010-11-06 Thread Michael Martin

On 11/06/2010 10:26, Hans Petter Selasky wrote:

On Saturday 06 November 2010 17:00:46 Michael Martin wrote:

On 11/06/2010 03:31, Hans Petter Selasky wrote:

Hi,

Can you revert the last patch I sent an apply the attached one?

Then repeat the testing like last time.

--HPS

Here are the results:
http://appliedtechnicalknowledge.com/freebsd/usb_30_hub_patch/

I used one drive/port for the testing.  da0 not recognized on first
boot, but came up after an unplug cable/plug cable.

Hi,

I will have a closer look into this tomorrow. Does your device work when first
recognized? What read/write speeds do you get?

--HPS
The device doesn't work when I try to import the zfs pool on the drive.  
The drive shows up in camcontrol ok.  I initially exported the zfs file 
system to avoid attempts to mount it on boot.  Once da0 is recognized by 
the kernel and camcontrol devlist shows it, I try a zpool import on the 
file system.  The zpool import command hangs--sometimes the entire 
computer locks up, and I hard reboot the computer.  I captured the usb 
logs during the zpool import for you there which captures some zfs i/o 
errors.


mm
___
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 3.0 Fails To Attach Western Digital My Book 3.0

2010-11-05 Thread Michael Martin


On 11/04/2010 13:37, Hans Petter Selasky wrote:

On Saturday 23 October 2010 15:37:55 Michael Martin wrote:

   On 10/23/2010 00:23, Hans Petter Selasky wrote:

On Saturday 23 October 2010 02:07:59 Michael Martin wrote:

On 10/21/2010 01:29, Michael Martin wrote:

   Thanks for the new USB 3.0 effort!

I'm testing it out on 9.0-CURRENT amd64.  The controller seems to find
a 2.0 usb stick fine.  However, when I plug in a Western Digital 3.0
drive, the device fails to attach.  The WD drive attaches fine when
plugging into a 2.0 port on the motherboard.

Controller info:

xh...@pci0:5:0:0:   class=0x0c0330 card=0x chip=0x01941033
rev=0x03 hdr=0x00

  vendor = 'NEC Electronics Hong Kong'
  class  = serial bus
  subclass   = USB
  bar   [10] = type Memory, range 64, base 0xfbbfe000, size 8192,

enabled

  cap 01[50] = powerspec 3  supports D0 D3  current D0
  cap 05[70] = MSI supports 8 messages, 64 bit
  cap 11[90] = MSI-X supports 8 messages in map 0x10
  cap 10[a0] = PCI-Express 2 endpoint max data 128(128) link x1(x1)

ecap 0001[100] = AER 1 0 fatal 0 non-fatal 0 corrected
ecap 0003[140] = Serial 1 
ecap 0018[150] = unknown 1

WD 3.0 Drive Info ( while plugged into the 2.0 port ):

ugen3.4:My Book 3.0 Western Digital   at usbus3, cfg=0 md=HOST
spd=HIGH (480Mbps) pwr=ON

bLength = 0x0012
bDescriptorType = 0x0001
bcdUSB = 0x0210
bDeviceClass = 0x
bDeviceSubClass = 0x
bDeviceProtocol = 0x
bMaxPacketSize0 = 0x0040
idVendor = 0x1058
idProduct = 0x1123
bcdDevice = 0x1010
iManufacturer = 0x0001Western Digital
iProduct = 0x0002My Book 3.0
iSerialNumber = 0x0003XXXRemovedXXX
bNumConfigurations = 0x0001

Output when plugging in the Western Digital 3.0 into the 3.0 port:

Oct 21 01:03:54 gandalf root: Unknown USB device: vendor 0x1058
product 0x1123 bus uhub4
Oct 21 01:03:54 gandalf kernel: ugen4.2:Western Digital   at usbus4
Oct 21 01:03:54 gandalf kernel: umass0:Western Digital My Book 3.0,
class 0/0, rev 3.00/10.10, addr 1   on usbus4
Oct 21 01:03:54 gandalf kernel: umass0:  SCSI over Bulk-Only; quirks =
0x
Oct 21 01:03:55 gandalf kernel: umass0:9:0:-1: Attached to scbus9
Oct 21 01:03:57 gandalf root: ZFS: zpool I/O failure, zpool=wd3.1
error=28
Oct 21 01:03:57 gandalf last message repeated 2 times
Oct 21 01:03:57 gandalf root: ZFS: vdev I/O failure, zpool=wd3.1 path=
offset= size= error=
Oct 21 01:04:03 gandalf kernel: ugen4.2:Western Digital   at usbus4
(disconnected)
Oct 21 01:04:03 gandalf kernel: umass0: at uhub4, port 2, addr 1
(disconnected)
Oct 21 01:04:03 gandalf kernel: (da0:umass-sim0:0:0:0): lost device
Oct 21 01:04:03 gandalf kernel: (da0:umass-sim0:0:0:0): got CAM status
0xa
Oct 21 01:04:03 gandalf kernel: (da0:umass-sim0:0:0:0): fatal error,
failed to attach to device
Oct 21 01:04:03 gandalf kernel: (da0:umass-sim0:0:
Oct 21 01:04:03 gandalf kernel: 0:0): removing device entry
Oct 21 01:04:14 gandalf root: ZFS: zpool I/O failure, zpool=wd3.1
error=28
Oct 21 01:04:14 gandalf last message repeated 2 times
Oct 21 01:04:14 gandalf root: ZFS: vdev I/O failure, zpool=wd3.1 path=
offset= size= error=

Output when plugging in the WD 3.0 into the 2.0 port:

Oct 21 01:15:20 gandalf root: Unknown USB device: vendor 0x1058
product 0x1123 bus uhub3
Oct 21 01:15:20 gandalf kernel: ugen3.4:Western Digital   at usbus3
Oct 21 01:15:20 gandalf kernel: umass0:Western Digital My Book 3.0,
class 0/0, rev 2.10/10.10, addr 4   on usbus3
Oct 21 01:15:20 gandalf kernel: umass0:  SCSI over Bulk-Only; quirks =
0x
Oct 21 01:15:21 gandalf kernel: umass0:9:0:-1: Attached to scbus9
Oct 21 01:15:28 gandalf kernel: da0 at umass-sim0 bus 0 scbus9 target
0 lun 0
Oct 21 01:15:28 gandalf kernel: da0:WD My Book 3.0 1123 1010   Fixed
Direct Access SCSI-4 device
Oct 21 01:15:28 gandalf kernel: da0: 40.000MB/s transfers
Oct 21 01:15:28 gandalf kernel: da0: 953867MB (1953519616 512 byte
sectors: 255H 63S/T 121600C)

Output when plugging in 2.0 device into the 3.0 port:

Oct 21 01:09:54 gandalf root: Unknown USB device: vendor 0x090c
product 0x1000 bus uhub4
Oct 21 01:09:54 gandalf kernel: ugen4.2:USB   at usbus4
Oct 21 01:09:54 gandalf kernel: umass1:USB Flash Disk, class 0/0,
rev 2.00/11.00, addr 1   on usbus4
Oct 21 01:09:54 gandalf kernel: umass1:  SCSI over Bulk-Only; quirks =
0x
Oct 21 01:09:55 gandalf kernel: umass1:10:1:-1: Attached to scbus10
Oct 21 01:09:56 gandalf kernel: (probe0:umass-sim1:1:0:0): TEST UNIT
READY. CDB: 0 0 0 0 0 0
Oct 21 01:09:56 gandalf kernel: (probe0:umass-sim1:1:0:0): CAM status:
SCSI Status Error
Oct 21 01:09:56 gandalf kernel: (probe0:umass-sim1:1:0:0): SCSI
status: Check Condition
Oct 21 01:09:56 gandalf kernel: (probe0:umass-sim1:1:0:0): SCSI sense:
UNIT ATTENTION asc:28,0 (Not ready to ready change, medium may have
changed)
Oct 21 01:09:56 gandalf kernel: da1 at umass-sim1 bus 1 scbus10 target
0 lun 0
Oct 21 01:09:56 gandalf kernel: da1:USB Flash Disk 

Re: USB 3.0 Fails To Attach Western Digital My Book 3.0

2010-11-04 Thread Hans Petter Selasky
On Saturday 23 October 2010 15:37:55 Michael Martin wrote:
   On 10/23/2010 00:23, Hans Petter Selasky wrote:
  On Saturday 23 October 2010 02:07:59 Michael Martin wrote:
 On 10/21/2010 01:29, Michael Martin wrote:
Thanks for the new USB 3.0 effort!
  
  I'm testing it out on 9.0-CURRENT amd64.  The controller seems to find
  a 2.0 usb stick fine.  However, when I plug in a Western Digital 3.0
  drive, the device fails to attach.  The WD drive attaches fine when
  plugging into a 2.0 port on the motherboard.
  
  Controller info:
  
  xh...@pci0:5:0:0:   class=0x0c0330 card=0x chip=0x01941033
  rev=0x03 hdr=0x00
  
   vendor = 'NEC Electronics Hong Kong'
   class  = serial bus
   subclass   = USB
   bar   [10] = type Memory, range 64, base 0xfbbfe000, size 8192,
  
  enabled
  
   cap 01[50] = powerspec 3  supports D0 D3  current D0
   cap 05[70] = MSI supports 8 messages, 64 bit
   cap 11[90] = MSI-X supports 8 messages in map 0x10
   cap 10[a0] = PCI-Express 2 endpoint max data 128(128) link x1(x1)
  
  ecap 0001[100] = AER 1 0 fatal 0 non-fatal 0 corrected
  ecap 0003[140] = Serial 1 
  ecap 0018[150] = unknown 1
  
  WD 3.0 Drive Info ( while plugged into the 2.0 port ):
  
  ugen3.4:My Book 3.0 Western Digital  at usbus3, cfg=0 md=HOST
  spd=HIGH (480Mbps) pwr=ON
  
 bLength = 0x0012
 bDescriptorType = 0x0001
 bcdUSB = 0x0210
 bDeviceClass = 0x
 bDeviceSubClass = 0x
 bDeviceProtocol = 0x
 bMaxPacketSize0 = 0x0040
 idVendor = 0x1058
 idProduct = 0x1123
 bcdDevice = 0x1010
 iManufacturer = 0x0001Western Digital
 iProduct = 0x0002My Book 3.0
 iSerialNumber = 0x0003XXXRemovedXXX
 bNumConfigurations = 0x0001
  
  Output when plugging in the Western Digital 3.0 into the 3.0 port:
  
  Oct 21 01:03:54 gandalf root: Unknown USB device: vendor 0x1058
  product 0x1123 bus uhub4
  Oct 21 01:03:54 gandalf kernel: ugen4.2:Western Digital  at usbus4
  Oct 21 01:03:54 gandalf kernel: umass0:Western Digital My Book 3.0,
  class 0/0, rev 3.00/10.10, addr 1  on usbus4
  Oct 21 01:03:54 gandalf kernel: umass0:  SCSI over Bulk-Only; quirks =
  0x
  Oct 21 01:03:55 gandalf kernel: umass0:9:0:-1: Attached to scbus9
  Oct 21 01:03:57 gandalf root: ZFS: zpool I/O failure, zpool=wd3.1
  error=28
  Oct 21 01:03:57 gandalf last message repeated 2 times
  Oct 21 01:03:57 gandalf root: ZFS: vdev I/O failure, zpool=wd3.1 path=
  offset= size= error=
  Oct 21 01:04:03 gandalf kernel: ugen4.2:Western Digital  at usbus4
  (disconnected)
  Oct 21 01:04:03 gandalf kernel: umass0: at uhub4, port 2, addr 1
  (disconnected)
  Oct 21 01:04:03 gandalf kernel: (da0:umass-sim0:0:0:0): lost device
  Oct 21 01:04:03 gandalf kernel: (da0:umass-sim0:0:0:0): got CAM status
  0xa
  Oct 21 01:04:03 gandalf kernel: (da0:umass-sim0:0:0:0): fatal error,
  failed to attach to device
  Oct 21 01:04:03 gandalf kernel: (da0:umass-sim0:0:
  Oct 21 01:04:03 gandalf kernel: 0:0): removing device entry
  Oct 21 01:04:14 gandalf root: ZFS: zpool I/O failure, zpool=wd3.1
  error=28
  Oct 21 01:04:14 gandalf last message repeated 2 times
  Oct 21 01:04:14 gandalf root: ZFS: vdev I/O failure, zpool=wd3.1 path=
  offset= size= error=
  
  Output when plugging in the WD 3.0 into the 2.0 port:
  
  Oct 21 01:15:20 gandalf root: Unknown USB device: vendor 0x1058
  product 0x1123 bus uhub3
  Oct 21 01:15:20 gandalf kernel: ugen3.4:Western Digital  at usbus3
  Oct 21 01:15:20 gandalf kernel: umass0:Western Digital My Book 3.0,
  class 0/0, rev 2.10/10.10, addr 4  on usbus3
  Oct 21 01:15:20 gandalf kernel: umass0:  SCSI over Bulk-Only; quirks =
  0x
  Oct 21 01:15:21 gandalf kernel: umass0:9:0:-1: Attached to scbus9
  Oct 21 01:15:28 gandalf kernel: da0 at umass-sim0 bus 0 scbus9 target
  0 lun 0
  Oct 21 01:15:28 gandalf kernel: da0:WD My Book 3.0 1123 1010  Fixed
  Direct Access SCSI-4 device
  Oct 21 01:15:28 gandalf kernel: da0: 40.000MB/s transfers
  Oct 21 01:15:28 gandalf kernel: da0: 953867MB (1953519616 512 byte
  sectors: 255H 63S/T 121600C)
  
  Output when plugging in 2.0 device into the 3.0 port:
  
  Oct 21 01:09:54 gandalf root: Unknown USB device: vendor 0x090c
  product 0x1000 bus uhub4
  Oct 21 01:09:54 gandalf kernel: ugen4.2:USB  at usbus4
  Oct 21 01:09:54 gandalf kernel: umass1:USB Flash Disk, class 0/0,
  rev 2.00/11.00, addr 1  on usbus4
  Oct 21 01:09:54 gandalf kernel: umass1:  SCSI over Bulk-Only; quirks =
  0x
  Oct 21 01:09:55 gandalf kernel: umass1:10:1:-1: Attached to scbus10
  Oct 21 01:09:56 gandalf kernel: (probe0:umass-sim1:1:0:0): TEST UNIT
  READY. CDB: 0 0 0 0 0 0
  Oct 21 01:09:56 gandalf kernel: (probe0:umass-sim1:1:0:0): CAM status:
  SCSI Status Error
  Oct 21 01:09:56 gandalf kernel: (probe0:umass-sim1:1:0:0): SCSI
  status: Check Condition
  Oct 21 01:09:56 gandalf kernel: (probe0:umass-sim1:1:0:0): SCSI sense:
  UNIT ATTENTION asc:28,0 (Not ready to ready change, medium 

Re: USB 3.0 Fails To Attach Western Digital My Book 3.0

2010-10-24 Thread Michael Martin


On 10/23/2010 23:12, Julian Elischer wrote:

On 10/23/10 7:33 AM, Michael Martin wrote:

  On 10/23/2010 00:23, Hans Petter Selasky wrote:

On Saturday 23 October 2010 02:07:59 Michael Martin wrote:

   On 10/21/2010 01:29, Michael Martin wrote:

  Thanks for the new USB 3.0 effort!

I'm testing it out on 9.0-CURRENT amd64.  The controller seems to 
find

a 2.0 usb stick fine.  However, when I plug in a Western Digital 3.0
drive, the device fails to attach.  The WD drive attaches fine when
plugging into a 2.0 port on the motherboard.

Controller info:

xh...@pci0:5:0:0:   class=0x0c0330 card=0x 
chip=0x01941033

rev=0x03 hdr=0x00

 vendor = 'NEC Electronics Hong Kong'
 class  = serial bus
 subclass   = USB
 bar   [10] = type Memory, range 64, base 0xfbbfe000, size 8192,

enabled

 cap 01[50] = powerspec 3  supports D0 D3  current D0
 cap 05[70] = MSI supports 8 messages, 64 bit
 cap 11[90] = MSI-X supports 8 messages in map 0x10
 cap 10[a0] = PCI-Express 2 endpoint max data 128(128) link 
x1(x1)


ecap 0001[100] = AER 1 0 fatal 0 non-fatal 0 corrected
ecap 0003[140] = Serial 1 
ecap 0018[150] = unknown 1

WD 3.0 Drive Info ( while plugged into the 2.0 port ):

ugen3.4:My Book 3.0 Western Digital  at usbus3, cfg=0 md=HOST
spd=HIGH (480Mbps) pwr=ON

   bLength = 0x0012
   bDescriptorType = 0x0001
   bcdUSB = 0x0210
   bDeviceClass = 0x
   bDeviceSubClass = 0x
   bDeviceProtocol = 0x
   bMaxPacketSize0 = 0x0040
   idVendor = 0x1058
   idProduct = 0x1123
   bcdDevice = 0x1010
   iManufacturer = 0x0001Western Digital
   iProduct = 0x0002My Book 3.0
   iSerialNumber = 0x0003XXXRemovedXXX
   bNumConfigurations = 0x0001

Output when plugging in the Western Digital 3.0 into the 3.0 port:

Oct 21 01:03:54 gandalf root: Unknown USB device: vendor 0x1058
product 0x1123 bus uhub4
Oct 21 01:03:54 gandalf kernel: ugen4.2:Western Digital  at usbus4
Oct 21 01:03:54 gandalf kernel: umass0:Western Digital My Book 3.0,
class 0/0, rev 3.00/10.10, addr 1  on usbus4
Oct 21 01:03:54 gandalf kernel: umass0:  SCSI over Bulk-Only; 
quirks =

0x
Oct 21 01:03:55 gandalf kernel: umass0:9:0:-1: Attached to scbus9
Oct 21 01:03:57 gandalf root: ZFS: zpool I/O failure, zpool=wd3.1
error=28
Oct 21 01:03:57 gandalf last message repeated 2 times
Oct 21 01:03:57 gandalf root: ZFS: vdev I/O failure, zpool=wd3.1 
path=

offset= size= error=
Oct 21 01:04:03 gandalf kernel: ugen4.2:Western Digital  at usbus4
(disconnected)
Oct 21 01:04:03 gandalf kernel: umass0: at uhub4, port 2, addr 1
(disconnected)
Oct 21 01:04:03 gandalf kernel: (da0:umass-sim0:0:0:0): lost device
Oct 21 01:04:03 gandalf kernel: (da0:umass-sim0:0:0:0): got CAM 
status

0xa
Oct 21 01:04:03 gandalf kernel: (da0:umass-sim0:0:0:0): fatal error,
failed to attach to device
Oct 21 01:04:03 gandalf kernel: (da0:umass-sim0:0:
Oct 21 01:04:03 gandalf kernel: 0:0): removing device entry
Oct 21 01:04:14 gandalf root: ZFS: zpool I/O failure, zpool=wd3.1
error=28
Oct 21 01:04:14 gandalf last message repeated 2 times
Oct 21 01:04:14 gandalf root: ZFS: vdev I/O failure, zpool=wd3.1 
path=

offset= size= error=

Output when plugging in the WD 3.0 into the 2.0 port:

Oct 21 01:15:20 gandalf root: Unknown USB device: vendor 0x1058
product 0x1123 bus uhub3
Oct 21 01:15:20 gandalf kernel: ugen3.4:Western Digital  at usbus3
Oct 21 01:15:20 gandalf kernel: umass0:Western Digital My Book 3.0,
class 0/0, rev 2.10/10.10, addr 4  on usbus3
Oct 21 01:15:20 gandalf kernel: umass0:  SCSI over Bulk-Only; 
quirks =

0x
Oct 21 01:15:21 gandalf kernel: umass0:9:0:-1: Attached to scbus9
Oct 21 01:15:28 gandalf kernel: da0 at umass-sim0 bus 0 scbus9 target
0 lun 0
Oct 21 01:15:28 gandalf kernel: da0:WD My Book 3.0 1123 1010  Fixed
Direct Access SCSI-4 device
Oct 21 01:15:28 gandalf kernel: da0: 40.000MB/s transfers
Oct 21 01:15:28 gandalf kernel: da0: 953867MB (1953519616 512 byte
sectors: 255H 63S/T 121600C)

Output when plugging in 2.0 device into the 3.0 port:

Oct 21 01:09:54 gandalf root: Unknown USB device: vendor 0x090c
product 0x1000 bus uhub4
Oct 21 01:09:54 gandalf kernel: ugen4.2:USB  at usbus4
Oct 21 01:09:54 gandalf kernel: umass1:USB Flash Disk, class 0/0,
rev 2.00/11.00, addr 1  on usbus4
Oct 21 01:09:54 gandalf kernel: umass1:  SCSI over Bulk-Only; 
quirks =

0x
Oct 21 01:09:55 gandalf kernel: umass1:10:1:-1: Attached to scbus10
Oct 21 01:09:56 gandalf kernel: (probe0:umass-sim1:1:0:0): TEST UNIT
READY. CDB: 0 0 0 0 0 0
Oct 21 01:09:56 gandalf kernel: (probe0:umass-sim1:1:0:0): CAM 
status:

SCSI Status Error
Oct 21 01:09:56 gandalf kernel: (probe0:umass-sim1:1:0:0): SCSI
status: Check Condition
Oct 21 01:09:56 gandalf kernel: (probe0:umass-sim1:1:0:0): SCSI 
sense:

UNIT ATTENTION asc:28,0 (Not ready to ready change, medium may have
changed)
Oct 21 01:09:56 gandalf kernel: da1 at umass-sim1 bus 1 scbus10 
target

0 lun 0
Oct 21 01:09:56 gandalf kernel: da1:USB Flash Disk 1100  Fixed
Direct Access 

Re: USB 3.0 Fails To Attach Western Digital My Book 3.0

2010-10-23 Thread Hans Petter Selasky
On Saturday 23 October 2010 02:07:59 Michael Martin wrote:
   On 10/21/2010 01:29, Michael Martin wrote:
   Thanks for the new USB 3.0 effort!
  
  I'm testing it out on 9.0-CURRENT amd64.  The controller seems to find
  a 2.0 usb stick fine.  However, when I plug in a Western Digital 3.0
  drive, the device fails to attach.  The WD drive attaches fine when
  plugging into a 2.0 port on the motherboard.
  
  Controller info:
  
  xh...@pci0:5:0:0:   class=0x0c0330 card=0x chip=0x01941033
  rev=0x03 hdr=0x00
  
  vendor = 'NEC Electronics Hong Kong'
  class  = serial bus
  subclass   = USB
  bar   [10] = type Memory, range 64, base 0xfbbfe000, size 8192,
  
  enabled
  
  cap 01[50] = powerspec 3  supports D0 D3  current D0
  cap 05[70] = MSI supports 8 messages, 64 bit
  cap 11[90] = MSI-X supports 8 messages in map 0x10
  cap 10[a0] = PCI-Express 2 endpoint max data 128(128) link x1(x1)
  
  ecap 0001[100] = AER 1 0 fatal 0 non-fatal 0 corrected
  ecap 0003[140] = Serial 1 
  ecap 0018[150] = unknown 1
  
  WD 3.0 Drive Info ( while plugged into the 2.0 port ):
  
  ugen3.4: My Book 3.0 Western Digital at usbus3, cfg=0 md=HOST
  spd=HIGH (480Mbps) pwr=ON
  
bLength = 0x0012
bDescriptorType = 0x0001
bcdUSB = 0x0210
bDeviceClass = 0x
bDeviceSubClass = 0x
bDeviceProtocol = 0x
bMaxPacketSize0 = 0x0040
idVendor = 0x1058
idProduct = 0x1123
bcdDevice = 0x1010
iManufacturer = 0x0001 Western Digital
iProduct = 0x0002 My Book 3.0
iSerialNumber = 0x0003 XXXRemovedXXX
bNumConfigurations = 0x0001
  
  Output when plugging in the Western Digital 3.0 into the 3.0 port:
  
  Oct 21 01:03:54 gandalf root: Unknown USB device: vendor 0x1058
  product 0x1123 bus uhub4
  Oct 21 01:03:54 gandalf kernel: ugen4.2: Western Digital at usbus4
  Oct 21 01:03:54 gandalf kernel: umass0: Western Digital My Book 3.0,
  class 0/0, rev 3.00/10.10, addr 1 on usbus4
  Oct 21 01:03:54 gandalf kernel: umass0:  SCSI over Bulk-Only; quirks =
  0x
  Oct 21 01:03:55 gandalf kernel: umass0:9:0:-1: Attached to scbus9
  Oct 21 01:03:57 gandalf root: ZFS: zpool I/O failure, zpool=wd3.1
  error=28
  Oct 21 01:03:57 gandalf last message repeated 2 times
  Oct 21 01:03:57 gandalf root: ZFS: vdev I/O failure, zpool=wd3.1 path=
  offset= size= error=
  Oct 21 01:04:03 gandalf kernel: ugen4.2: Western Digital at usbus4
  (disconnected)
  Oct 21 01:04:03 gandalf kernel: umass0: at uhub4, port 2, addr 1
  (disconnected)
  Oct 21 01:04:03 gandalf kernel: (da0:umass-sim0:0:0:0): lost device
  Oct 21 01:04:03 gandalf kernel: (da0:umass-sim0:0:0:0): got CAM status
  0xa
  Oct 21 01:04:03 gandalf kernel: (da0:umass-sim0:0:0:0): fatal error,
  failed to attach to device
  Oct 21 01:04:03 gandalf kernel: (da0:umass-sim0:0:
  Oct 21 01:04:03 gandalf kernel: 0:0): removing device entry
  Oct 21 01:04:14 gandalf root: ZFS: zpool I/O failure, zpool=wd3.1
  error=28
  Oct 21 01:04:14 gandalf last message repeated 2 times
  Oct 21 01:04:14 gandalf root: ZFS: vdev I/O failure, zpool=wd3.1 path=
  offset= size= error=
  
  Output when plugging in the WD 3.0 into the 2.0 port:
  
  Oct 21 01:15:20 gandalf root: Unknown USB device: vendor 0x1058
  product 0x1123 bus uhub3
  Oct 21 01:15:20 gandalf kernel: ugen3.4: Western Digital at usbus3
  Oct 21 01:15:20 gandalf kernel: umass0: Western Digital My Book 3.0,
  class 0/0, rev 2.10/10.10, addr 4 on usbus3
  Oct 21 01:15:20 gandalf kernel: umass0:  SCSI over Bulk-Only; quirks =
  0x
  Oct 21 01:15:21 gandalf kernel: umass0:9:0:-1: Attached to scbus9
  Oct 21 01:15:28 gandalf kernel: da0 at umass-sim0 bus 0 scbus9 target
  0 lun 0
  Oct 21 01:15:28 gandalf kernel: da0: WD My Book 3.0 1123 1010 Fixed
  Direct Access SCSI-4 device
  Oct 21 01:15:28 gandalf kernel: da0: 40.000MB/s transfers
  Oct 21 01:15:28 gandalf kernel: da0: 953867MB (1953519616 512 byte
  sectors: 255H 63S/T 121600C)
  
  Output when plugging in 2.0 device into the 3.0 port:
  
  Oct 21 01:09:54 gandalf root: Unknown USB device: vendor 0x090c
  product 0x1000 bus uhub4
  Oct 21 01:09:54 gandalf kernel: ugen4.2: USB at usbus4
  Oct 21 01:09:54 gandalf kernel: umass1: USB Flash Disk, class 0/0,
  rev 2.00/11.00, addr 1 on usbus4
  Oct 21 01:09:54 gandalf kernel: umass1:  SCSI over Bulk-Only; quirks =
  0x
  Oct 21 01:09:55 gandalf kernel: umass1:10:1:-1: Attached to scbus10
  Oct 21 01:09:56 gandalf kernel: (probe0:umass-sim1:1:0:0): TEST UNIT
  READY. CDB: 0 0 0 0 0 0
  Oct 21 01:09:56 gandalf kernel: (probe0:umass-sim1:1:0:0): CAM status:
  SCSI Status Error
  Oct 21 01:09:56 gandalf kernel: (probe0:umass-sim1:1:0:0): SCSI
  status: Check Condition
  Oct 21 01:09:56 gandalf kernel: (probe0:umass-sim1:1:0:0): SCSI sense:
  UNIT ATTENTION asc:28,0 (Not ready to ready change, medium may have
  changed)
  Oct 21 01:09:56 gandalf kernel: da1 at umass-sim1 bus 1 scbus10 target
  0 lun 0
  Oct 21 01:09:56 gandalf 

Re: USB 3.0 Fails To Attach Western Digital My Book 3.0

2010-10-23 Thread Michael Martin

  On 10/23/2010 00:23, Hans Petter Selasky wrote:

On Saturday 23 October 2010 02:07:59 Michael Martin wrote:

   On 10/21/2010 01:29, Michael Martin wrote:

  Thanks for the new USB 3.0 effort!

I'm testing it out on 9.0-CURRENT amd64.  The controller seems to find
a 2.0 usb stick fine.  However, when I plug in a Western Digital 3.0
drive, the device fails to attach.  The WD drive attaches fine when
plugging into a 2.0 port on the motherboard.

Controller info:

xh...@pci0:5:0:0:   class=0x0c0330 card=0x chip=0x01941033
rev=0x03 hdr=0x00

 vendor = 'NEC Electronics Hong Kong'
 class  = serial bus
 subclass   = USB
 bar   [10] = type Memory, range 64, base 0xfbbfe000, size 8192,

enabled

 cap 01[50] = powerspec 3  supports D0 D3  current D0
 cap 05[70] = MSI supports 8 messages, 64 bit
 cap 11[90] = MSI-X supports 8 messages in map 0x10
 cap 10[a0] = PCI-Express 2 endpoint max data 128(128) link x1(x1)

ecap 0001[100] = AER 1 0 fatal 0 non-fatal 0 corrected
ecap 0003[140] = Serial 1 
ecap 0018[150] = unknown 1

WD 3.0 Drive Info ( while plugged into the 2.0 port ):

ugen3.4:My Book 3.0 Western Digital  at usbus3, cfg=0 md=HOST
spd=HIGH (480Mbps) pwr=ON

   bLength = 0x0012
   bDescriptorType = 0x0001
   bcdUSB = 0x0210
   bDeviceClass = 0x
   bDeviceSubClass = 0x
   bDeviceProtocol = 0x
   bMaxPacketSize0 = 0x0040
   idVendor = 0x1058
   idProduct = 0x1123
   bcdDevice = 0x1010
   iManufacturer = 0x0001Western Digital
   iProduct = 0x0002My Book 3.0
   iSerialNumber = 0x0003XXXRemovedXXX
   bNumConfigurations = 0x0001

Output when plugging in the Western Digital 3.0 into the 3.0 port:

Oct 21 01:03:54 gandalf root: Unknown USB device: vendor 0x1058
product 0x1123 bus uhub4
Oct 21 01:03:54 gandalf kernel: ugen4.2:Western Digital  at usbus4
Oct 21 01:03:54 gandalf kernel: umass0:Western Digital My Book 3.0,
class 0/0, rev 3.00/10.10, addr 1  on usbus4
Oct 21 01:03:54 gandalf kernel: umass0:  SCSI over Bulk-Only; quirks =
0x
Oct 21 01:03:55 gandalf kernel: umass0:9:0:-1: Attached to scbus9
Oct 21 01:03:57 gandalf root: ZFS: zpool I/O failure, zpool=wd3.1
error=28
Oct 21 01:03:57 gandalf last message repeated 2 times
Oct 21 01:03:57 gandalf root: ZFS: vdev I/O failure, zpool=wd3.1 path=
offset= size= error=
Oct 21 01:04:03 gandalf kernel: ugen4.2:Western Digital  at usbus4
(disconnected)
Oct 21 01:04:03 gandalf kernel: umass0: at uhub4, port 2, addr 1
(disconnected)
Oct 21 01:04:03 gandalf kernel: (da0:umass-sim0:0:0:0): lost device
Oct 21 01:04:03 gandalf kernel: (da0:umass-sim0:0:0:0): got CAM status
0xa
Oct 21 01:04:03 gandalf kernel: (da0:umass-sim0:0:0:0): fatal error,
failed to attach to device
Oct 21 01:04:03 gandalf kernel: (da0:umass-sim0:0:
Oct 21 01:04:03 gandalf kernel: 0:0): removing device entry
Oct 21 01:04:14 gandalf root: ZFS: zpool I/O failure, zpool=wd3.1
error=28
Oct 21 01:04:14 gandalf last message repeated 2 times
Oct 21 01:04:14 gandalf root: ZFS: vdev I/O failure, zpool=wd3.1 path=
offset= size= error=

Output when plugging in the WD 3.0 into the 2.0 port:

Oct 21 01:15:20 gandalf root: Unknown USB device: vendor 0x1058
product 0x1123 bus uhub3
Oct 21 01:15:20 gandalf kernel: ugen3.4:Western Digital  at usbus3
Oct 21 01:15:20 gandalf kernel: umass0:Western Digital My Book 3.0,
class 0/0, rev 2.10/10.10, addr 4  on usbus3
Oct 21 01:15:20 gandalf kernel: umass0:  SCSI over Bulk-Only; quirks =
0x
Oct 21 01:15:21 gandalf kernel: umass0:9:0:-1: Attached to scbus9
Oct 21 01:15:28 gandalf kernel: da0 at umass-sim0 bus 0 scbus9 target
0 lun 0
Oct 21 01:15:28 gandalf kernel: da0:WD My Book 3.0 1123 1010  Fixed
Direct Access SCSI-4 device
Oct 21 01:15:28 gandalf kernel: da0: 40.000MB/s transfers
Oct 21 01:15:28 gandalf kernel: da0: 953867MB (1953519616 512 byte
sectors: 255H 63S/T 121600C)

Output when plugging in 2.0 device into the 3.0 port:

Oct 21 01:09:54 gandalf root: Unknown USB device: vendor 0x090c
product 0x1000 bus uhub4
Oct 21 01:09:54 gandalf kernel: ugen4.2:USB  at usbus4
Oct 21 01:09:54 gandalf kernel: umass1:USB Flash Disk, class 0/0,
rev 2.00/11.00, addr 1  on usbus4
Oct 21 01:09:54 gandalf kernel: umass1:  SCSI over Bulk-Only; quirks =
0x
Oct 21 01:09:55 gandalf kernel: umass1:10:1:-1: Attached to scbus10
Oct 21 01:09:56 gandalf kernel: (probe0:umass-sim1:1:0:0): TEST UNIT
READY. CDB: 0 0 0 0 0 0
Oct 21 01:09:56 gandalf kernel: (probe0:umass-sim1:1:0:0): CAM status:
SCSI Status Error
Oct 21 01:09:56 gandalf kernel: (probe0:umass-sim1:1:0:0): SCSI
status: Check Condition
Oct 21 01:09:56 gandalf kernel: (probe0:umass-sim1:1:0:0): SCSI sense:
UNIT ATTENTION asc:28,0 (Not ready to ready change, medium may have
changed)
Oct 21 01:09:56 gandalf kernel: da1 at umass-sim1 bus 1 scbus10 target
0 lun 0
Oct 21 01:09:56 gandalf kernel: da1:USB Flash Disk 1100  Fixed
Direct Access SCSI-0 device
Oct 21 01:09:56 gandalf kernel: da1: 40.000MB/s transfers
Oct 21 01:09:56 gandalf kernel: da1: 956MB 

Re: USB 3.0 Fails To Attach Western Digital My Book 3.0

2010-10-23 Thread Hans Petter Selasky
On Saturday 23 October 2010 15:37:55 Michael Martin wrote:
   On 10/23/2010 00:23, Hans Petter Selasky wrote:
  On Saturday 23 October 2010 02:07:59 Michael Martin wrote:
 On 10/21/2010 01:29, Michael Martin wrote:
Thanks for the new USB 3.0 effort!
  
  I'm testing it out on 9.0-CURRENT amd64.  The controller seems to find
  a 2.0 usb stick fine.  However, when I plug in a Western Digital 3.0
  drive, the device fails to attach.  The WD drive attaches fine when
  plugging into a 2.0 port on the motherboard.
  
  Controller info:
  

Hi,

From the logs you sent me I see that the super-speed inactive state is 
reached. There is currently no recovery from this state. I will send you a 
patch which you can try.

--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 3.0 Fails To Attach Western Digital My Book 3.0

2010-10-22 Thread Michael Martin

 On 10/21/2010 01:29, Michael Martin wrote:

 Thanks for the new USB 3.0 effort!

I'm testing it out on 9.0-CURRENT amd64.  The controller seems to find 
a 2.0 usb stick fine.  However, when I plug in a Western Digital 3.0 
drive, the device fails to attach.  The WD drive attaches fine when 
plugging into a 2.0 port on the motherboard.


Controller info:

xh...@pci0:5:0:0:   class=0x0c0330 card=0x chip=0x01941033 
rev=0x03 hdr=0x00

vendor = 'NEC Electronics Hong Kong'
class  = serial bus
subclass   = USB
bar   [10] = type Memory, range 64, base 0xfbbfe000, size 8192, 
enabled

cap 01[50] = powerspec 3  supports D0 D3  current D0
cap 05[70] = MSI supports 8 messages, 64 bit
cap 11[90] = MSI-X supports 8 messages in map 0x10
cap 10[a0] = PCI-Express 2 endpoint max data 128(128) link x1(x1)
ecap 0001[100] = AER 1 0 fatal 0 non-fatal 0 corrected
ecap 0003[140] = Serial 1 
ecap 0018[150] = unknown 1

WD 3.0 Drive Info ( while plugged into the 2.0 port ):

ugen3.4: My Book 3.0 Western Digital at usbus3, cfg=0 md=HOST 
spd=HIGH (480Mbps) pwr=ON


  bLength = 0x0012
  bDescriptorType = 0x0001
  bcdUSB = 0x0210
  bDeviceClass = 0x
  bDeviceSubClass = 0x
  bDeviceProtocol = 0x
  bMaxPacketSize0 = 0x0040
  idVendor = 0x1058
  idProduct = 0x1123
  bcdDevice = 0x1010
  iManufacturer = 0x0001 Western Digital
  iProduct = 0x0002 My Book 3.0
  iSerialNumber = 0x0003 XXXRemovedXXX
  bNumConfigurations = 0x0001

Output when plugging in the Western Digital 3.0 into the 3.0 port:

Oct 21 01:03:54 gandalf root: Unknown USB device: vendor 0x1058 
product 0x1123 bus uhub4

Oct 21 01:03:54 gandalf kernel: ugen4.2: Western Digital at usbus4
Oct 21 01:03:54 gandalf kernel: umass0: Western Digital My Book 3.0, 
class 0/0, rev 3.00/10.10, addr 1 on usbus4
Oct 21 01:03:54 gandalf kernel: umass0:  SCSI over Bulk-Only; quirks = 
0x

Oct 21 01:03:55 gandalf kernel: umass0:9:0:-1: Attached to scbus9
Oct 21 01:03:57 gandalf root: ZFS: zpool I/O failure, zpool=wd3.1 
error=28

Oct 21 01:03:57 gandalf last message repeated 2 times
Oct 21 01:03:57 gandalf root: ZFS: vdev I/O failure, zpool=wd3.1 path= 
offset= size= error=
Oct 21 01:04:03 gandalf kernel: ugen4.2: Western Digital at usbus4 
(disconnected)
Oct 21 01:04:03 gandalf kernel: umass0: at uhub4, port 2, addr 1 
(disconnected)

Oct 21 01:04:03 gandalf kernel: (da0:umass-sim0:0:0:0): lost device
Oct 21 01:04:03 gandalf kernel: (da0:umass-sim0:0:0:0): got CAM status 
0xa
Oct 21 01:04:03 gandalf kernel: (da0:umass-sim0:0:0:0): fatal error, 
failed to attach to device

Oct 21 01:04:03 gandalf kernel: (da0:umass-sim0:0:
Oct 21 01:04:03 gandalf kernel: 0:0): removing device entry
Oct 21 01:04:14 gandalf root: ZFS: zpool I/O failure, zpool=wd3.1 
error=28

Oct 21 01:04:14 gandalf last message repeated 2 times
Oct 21 01:04:14 gandalf root: ZFS: vdev I/O failure, zpool=wd3.1 path= 
offset= size= error=


Output when plugging in the WD 3.0 into the 2.0 port:

Oct 21 01:15:20 gandalf root: Unknown USB device: vendor 0x1058 
product 0x1123 bus uhub3

Oct 21 01:15:20 gandalf kernel: ugen3.4: Western Digital at usbus3
Oct 21 01:15:20 gandalf kernel: umass0: Western Digital My Book 3.0, 
class 0/0, rev 2.10/10.10, addr 4 on usbus3
Oct 21 01:15:20 gandalf kernel: umass0:  SCSI over Bulk-Only; quirks = 
0x

Oct 21 01:15:21 gandalf kernel: umass0:9:0:-1: Attached to scbus9
Oct 21 01:15:28 gandalf kernel: da0 at umass-sim0 bus 0 scbus9 target 
0 lun 0
Oct 21 01:15:28 gandalf kernel: da0: WD My Book 3.0 1123 1010 Fixed 
Direct Access SCSI-4 device

Oct 21 01:15:28 gandalf kernel: da0: 40.000MB/s transfers
Oct 21 01:15:28 gandalf kernel: da0: 953867MB (1953519616 512 byte 
sectors: 255H 63S/T 121600C)


Output when plugging in 2.0 device into the 3.0 port:

Oct 21 01:09:54 gandalf root: Unknown USB device: vendor 0x090c 
product 0x1000 bus uhub4

Oct 21 01:09:54 gandalf kernel: ugen4.2: USB at usbus4
Oct 21 01:09:54 gandalf kernel: umass1: USB Flash Disk, class 0/0, 
rev 2.00/11.00, addr 1 on usbus4
Oct 21 01:09:54 gandalf kernel: umass1:  SCSI over Bulk-Only; quirks = 
0x

Oct 21 01:09:55 gandalf kernel: umass1:10:1:-1: Attached to scbus10
Oct 21 01:09:56 gandalf kernel: (probe0:umass-sim1:1:0:0): TEST UNIT 
READY. CDB: 0 0 0 0 0 0
Oct 21 01:09:56 gandalf kernel: (probe0:umass-sim1:1:0:0): CAM status: 
SCSI Status Error
Oct 21 01:09:56 gandalf kernel: (probe0:umass-sim1:1:0:0): SCSI 
status: Check Condition
Oct 21 01:09:56 gandalf kernel: (probe0:umass-sim1:1:0:0): SCSI sense: 
UNIT ATTENTION asc:28,0 (Not ready to ready change, medium may have 
changed)
Oct 21 01:09:56 gandalf kernel: da1 at umass-sim1 bus 1 scbus10 target 
0 lun 0
Oct 21 01:09:56 gandalf kernel: da1: USB Flash Disk 1100 Fixed 
Direct Access SCSI-0 device

Oct 21 01:09:56 gandalf kernel: da1: 40.000MB/s transfers
Oct 21 01:09:56 gandalf kernel: da1: 956MB (1957888 512 byte sectors: 
64H 32S/T 956C)


--Michael


( I never got the last list 

USB 3.0 Fails To Attach Western Digital My Book 3.0

2010-10-21 Thread Michael Martin

 Thanks for the new USB 3.0 effort!

I'm testing it out on 9.0-CURRENT amd64.  The controller seems to find a 
2.0 usb stick fine.  However, when I plug in a Western Digital 3.0 
drive, the device fails to attach.  The WD drive attaches fine when 
plugging into a 2.0 port on the motherboard.


Controller info:

xh...@pci0:5:0:0:   class=0x0c0330 card=0x chip=0x01941033 
rev=0x03 hdr=0x00

vendor = 'NEC Electronics Hong Kong'
class  = serial bus
subclass   = USB
bar   [10] = type Memory, range 64, base 0xfbbfe000, size 8192, enabled
cap 01[50] = powerspec 3  supports D0 D3  current D0
cap 05[70] = MSI supports 8 messages, 64 bit
cap 11[90] = MSI-X supports 8 messages in map 0x10
cap 10[a0] = PCI-Express 2 endpoint max data 128(128) link x1(x1)
ecap 0001[100] = AER 1 0 fatal 0 non-fatal 0 corrected
ecap 0003[140] = Serial 1 
ecap 0018[150] = unknown 1

WD 3.0 Drive Info ( while plugged into the 2.0 port ):

ugen3.4: My Book 3.0 Western Digital at usbus3, cfg=0 md=HOST spd=HIGH 
(480Mbps) pwr=ON


  bLength = 0x0012
  bDescriptorType = 0x0001
  bcdUSB = 0x0210
  bDeviceClass = 0x
  bDeviceSubClass = 0x
  bDeviceProtocol = 0x
  bMaxPacketSize0 = 0x0040
  idVendor = 0x1058
  idProduct = 0x1123
  bcdDevice = 0x1010
  iManufacturer = 0x0001 Western Digital
  iProduct = 0x0002 My Book 3.0
  iSerialNumber = 0x0003 XXXRemovedXXX
  bNumConfigurations = 0x0001

Output when plugging in the Western Digital 3.0 into the 3.0 port:

Oct 21 01:03:54 gandalf root: Unknown USB device: vendor 0x1058 product 
0x1123 bus uhub4

Oct 21 01:03:54 gandalf kernel: ugen4.2: Western Digital at usbus4
Oct 21 01:03:54 gandalf kernel: umass0: Western Digital My Book 3.0, 
class 0/0, rev 3.00/10.10, addr 1 on usbus4
Oct 21 01:03:54 gandalf kernel: umass0:  SCSI over Bulk-Only; quirks = 
0x

Oct 21 01:03:55 gandalf kernel: umass0:9:0:-1: Attached to scbus9
Oct 21 01:03:57 gandalf root: ZFS: zpool I/O failure, zpool=wd3.1 error=28
Oct 21 01:03:57 gandalf last message repeated 2 times
Oct 21 01:03:57 gandalf root: ZFS: vdev I/O failure, zpool=wd3.1 path= 
offset= size= error=
Oct 21 01:04:03 gandalf kernel: ugen4.2: Western Digital at usbus4 
(disconnected)
Oct 21 01:04:03 gandalf kernel: umass0: at uhub4, port 2, addr 1 
(disconnected)

Oct 21 01:04:03 gandalf kernel: (da0:umass-sim0:0:0:0): lost device
Oct 21 01:04:03 gandalf kernel: (da0:umass-sim0:0:0:0): got CAM status 0xa
Oct 21 01:04:03 gandalf kernel: (da0:umass-sim0:0:0:0): fatal error, 
failed to attach to device

Oct 21 01:04:03 gandalf kernel: (da0:umass-sim0:0:
Oct 21 01:04:03 gandalf kernel: 0:0): removing device entry
Oct 21 01:04:14 gandalf root: ZFS: zpool I/O failure, zpool=wd3.1 error=28
Oct 21 01:04:14 gandalf last message repeated 2 times
Oct 21 01:04:14 gandalf root: ZFS: vdev I/O failure, zpool=wd3.1 path= 
offset= size= error=


Output when plugging in the WD 3.0 into the 2.0 port:

Oct 21 01:15:20 gandalf root: Unknown USB device: vendor 0x1058 product 
0x1123 bus uhub3

Oct 21 01:15:20 gandalf kernel: ugen3.4: Western Digital at usbus3
Oct 21 01:15:20 gandalf kernel: umass0: Western Digital My Book 3.0, 
class 0/0, rev 2.10/10.10, addr 4 on usbus3
Oct 21 01:15:20 gandalf kernel: umass0:  SCSI over Bulk-Only; quirks = 
0x

Oct 21 01:15:21 gandalf kernel: umass0:9:0:-1: Attached to scbus9
Oct 21 01:15:28 gandalf kernel: da0 at umass-sim0 bus 0 scbus9 target 0 
lun 0
Oct 21 01:15:28 gandalf kernel: da0: WD My Book 3.0 1123 1010 Fixed 
Direct Access SCSI-4 device

Oct 21 01:15:28 gandalf kernel: da0: 40.000MB/s transfers
Oct 21 01:15:28 gandalf kernel: da0: 953867MB (1953519616 512 byte 
sectors: 255H 63S/T 121600C)


Output when plugging in 2.0 device into the 3.0 port:

Oct 21 01:09:54 gandalf root: Unknown USB device: vendor 0x090c product 
0x1000 bus uhub4

Oct 21 01:09:54 gandalf kernel: ugen4.2: USB at usbus4
Oct 21 01:09:54 gandalf kernel: umass1: USB Flash Disk, class 0/0, rev 
2.00/11.00, addr 1 on usbus4
Oct 21 01:09:54 gandalf kernel: umass1:  SCSI over Bulk-Only; quirks = 
0x

Oct 21 01:09:55 gandalf kernel: umass1:10:1:-1: Attached to scbus10
Oct 21 01:09:56 gandalf kernel: (probe0:umass-sim1:1:0:0): TEST UNIT 
READY. CDB: 0 0 0 0 0 0
Oct 21 01:09:56 gandalf kernel: (probe0:umass-sim1:1:0:0): CAM status: 
SCSI Status Error
Oct 21 01:09:56 gandalf kernel: (probe0:umass-sim1:1:0:0): SCSI status: 
Check Condition
Oct 21 01:09:56 gandalf kernel: (probe0:umass-sim1:1:0:0): SCSI sense: 
UNIT ATTENTION asc:28,0 (Not ready to ready change, medium may have changed)
Oct 21 01:09:56 gandalf kernel: da1 at umass-sim1 bus 1 scbus10 target 0 
lun 0
Oct 21 01:09:56 gandalf kernel: da1: USB Flash Disk 1100 Fixed Direct 
Access SCSI-0 device

Oct 21 01:09:56 gandalf kernel: da1: 40.000MB/s transfers
Oct 21 01:09:56 gandalf kernel: da1: 956MB (1957888 512 byte sectors: 
64H 32S/T 956C)


--Michael
___
freebsd-usb@freebsd.org mailing list

Re: USB 3.0 Fails To Attach Western Digital My Book 3.0

2010-10-21 Thread Hans Petter Selasky
On Thursday 21 October 2010 09:29:57 Michael Martin wrote:
   Thanks for the new USB 3.0 effort!
 
 I'm testing it out on 9.0-CURRENT amd64.  The controller seems to find a
 2.0 usb stick fine.  However, when I plug in a Western Digital 3.0
 drive, the device fails to attach.  The WD drive attaches fine when
 plugging into a 2.0 port on the motherboard.
 
 Controller info:
 
 xh...@pci0:5:0:0:   class=0x0c0330 card=0x chip=0x01941033
 rev=0x03 hdr=0x00
  vendor = 'NEC Electronics Hong Kong'
  class  = serial bus
  subclass   = USB
  bar   [10] = type Memory, range 64, base 0xfbbfe000, size 8192,
 enabled cap 01[50] = powerspec 3  supports D0 D3  current D0
  cap 05[70] = MSI supports 8 messages, 64 bit
  cap 11[90] = MSI-X supports 8 messages in map 0x10
  cap 10[a0] = PCI-Express 2 endpoint max data 128(128) link x1(x1)
 ecap 0001[100] = AER 1 0 fatal 0 non-fatal 0 corrected
 ecap 0003[140] = Serial 1 
 ecap 0018[150] = unknown 1
 
 WD 3.0 Drive Info ( while plugged into the 2.0 port ):
 
 ugen3.4: My Book 3.0 Western Digital at usbus3, cfg=0 md=HOST spd=HIGH
 (480Mbps) pwr=ON
 
bLength = 0x0012
bDescriptorType = 0x0001
bcdUSB = 0x0210
bDeviceClass = 0x
bDeviceSubClass = 0x
bDeviceProtocol = 0x
bMaxPacketSize0 = 0x0040
idVendor = 0x1058
idProduct = 0x1123
bcdDevice = 0x1010
iManufacturer = 0x0001 Western Digital
iProduct = 0x0002 My Book 3.0
iSerialNumber = 0x0003 XXXRemovedXXX
bNumConfigurations = 0x0001
 
 Output when plugging in the Western Digital 3.0 into the 3.0 port:
 
 Oct 21 01:03:54 gandalf root: Unknown USB device: vendor 0x1058 product
 0x1123 bus uhub4
 Oct 21 01:03:54 gandalf kernel: ugen4.2: Western Digital at usbus4
 Oct 21 01:03:54 gandalf kernel: umass0: Western Digital My Book 3.0,
 class 0/0, rev 3.00/10.10, addr 1 on usbus4
 Oct 21 01:03:54 gandalf kernel: umass0:  SCSI over Bulk-Only; quirks =
 0x
 Oct 21 01:03:55 gandalf kernel: umass0:9:0:-1: Attached to scbus9
 Oct 21 01:03:57 gandalf root: ZFS: zpool I/O failure, zpool=wd3.1 error=28
 Oct 21 01:03:57 gandalf last message repeated 2 times
 Oct 21 01:03:57 gandalf root: ZFS: vdev I/O failure, zpool=wd3.1 path=
 offset= size= error=
 Oct 21 01:04:03 gandalf kernel: ugen4.2: Western Digital at usbus4
 (disconnected)
 Oct 21 01:04:03 gandalf kernel: umass0: at uhub4, port 2, addr 1
 (disconnected)
 Oct 21 01:04:03 gandalf kernel: (da0:umass-sim0:0:0:0): lost device
 Oct 21 01:04:03 gandalf kernel: (da0:umass-sim0:0:0:0): got CAM status 0xa
 Oct 21 01:04:03 gandalf kernel: (da0:umass-sim0:0:0:0): fatal error,
 failed to attach to device
 Oct 21 01:04:03 gandalf kernel: (da0:umass-sim0:0:
 Oct 21 01:04:03 gandalf kernel: 0:0): removing device entry
 Oct 21 01:04:14 gandalf root: ZFS: zpool I/O failure, zpool=wd3.1 error=28
 Oct 21 01:04:14 gandalf last message repeated 2 times
 Oct 21 01:04:14 gandalf root: ZFS: vdev I/O failure, zpool=wd3.1 path=
 offset= size= error=
 

Hi,

1) Try to enable UMASS debugging (you maybe need to rebuild kernel with 
options USB_DEBUG):

sysctl hw.usb.umass.debug=-1

2) Also try to boot without umass in the kernel. What is the output from 
usbconfig, like descriptors, etc ... in USB 3.0 mode.

--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