>Number:         178771
>Category:       kern
>Synopsis:       QUIRK: Western Digital My Passport HD
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun May 19 07:40:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Tim Matthews
>Release:        9.1-STABLE
>Organization:
-
>Environment:
Commands below run with patch applied:

tim-desktop# uname -a
FreeBSD tim-desktop.matthews 9.1-STABLE FreeBSD 9.1-STABLE #33 r250230M: Sat 
May 11 22:21:52 NZST 2013     
root@tim-desktop.matthews:/usr/obj/usr/src/sys/MYKERNEL  amd64

tim-desktop# camcontrol inquiry da0
pass5: <WD My Passport 0748 1019> Fixed Direct Access SCSI-6 device 
pass5: Serial Number 575842314139324630363435
pass5: 40.000MB/s transfers

>Description:
P/N: WDBKXH5000ABK-01

Western Digital My Passport USB portable hard drive not mountable and 
/dev/da0s1 is not present.

Dmesg after attaching the HD is:

ugen7.2: <Western Digital> at usbus7
umass0: <MSC Bulk-Only Transport> on usbus7
umass0:  SCSI over Bulk-Only; quirks = 0x4001
umass0:9:0:-1: Attached to scbus9
(probe0:umass-sim0:0:0:1): INQUIRY. CDB: 12 0 0 0 24 0 
(probe0:umass-sim0:0:0:1): CAM status: CCB request completed with an error
(probe0:umass-sim0:0:0:1): Retrying command
(probe0:umass-sim0:0:0:1): INQUIRY. CDB: 12 0 0 0 24 0 
(probe0:umass-sim0:0:0:1): CAM status: CCB request completed with an error
(probe0:umass-sim0:0:0:1): Retrying command
(probe0:umass-sim0:0:0:1): INQUIRY. CDB: 12 0 0 0 24 0 
(probe0:umass-sim0:0:0:1): CAM status: CCB request completed with an error
(probe0:umass-sim0:0:0:1): Retrying command
(probe0:umass-sim0:0:0:1): INQUIRY. CDB: 12 0 0 0 24 0 
(probe0:umass-sim0:0:0:1): CAM status: CCB request completed with an error
(probe0:umass-sim0:0:0:1): Retrying command
(da0:umass-sim0:0:0:0): got CAM status 0x44
(da0:umass-sim0:0:0:0): fatal error, failed to attach to device
(da0:umass-sim0:0:0:0): lost device - 0 outstanding, 4 refs
(da0:umass-sim0:0:0:0): removing device entry

>How-To-Repeat:
Try to plug Hd in. Issues are appended to dmesg and won't be mountable.
>Fix:
Attached patches make the HD work like normal and dmesg upon connecting the 
drive with patches is:

ugen7.2: <Western Digital> at usbus7
umass0: <MSC Bulk-Only Transport> on usbus7
umass0:  SCSI over Bulk-Only; quirks = 0x4000
umass0:9:0:-1: Attached to scbus9
da0 at umass-sim0 bus 0 scbus9 target 0 lun 0
da0: <WD My Passport 0748 1019> Fixed Direct Access SCSI-6 device 
da0: 40.000MB/s transfers
da0: 476908MB (976707584 512 byte sectors: 255H 63S/T 60797C)
ses0 at umass-sim0 bus 0 scbus9 target 0 lun 1
ses0: <WD SES Device 1019> Fixed Enclosure Services SCSI-6 device 
ses0: 40.000MB/s transfers
ses0: SCSI-3 ENC Device
GEOM_LABEL[1]: MSDOSFS: da0: no FAT volume detected.
GEOM_LABEL[1]: MSDOSFS: da0s1: FAT32 volume detected.
GEOM_LABEL[1]: Label for provider da0s1 is msdosfs/NO_NAME.

Patch attached with submission follows:

*** /sys/dev/usb/quirk/usb_quirk.c      Sun Feb  3 13:41:14 2013
--- /root/usb-quirk-fix/usb_quirk.c     Sat May 11 22:00:50 2013
*************** static struct usb_quirk_entry usb_quirks
*** 424,429 ****
--- 424,430 ----
            UQ_MSC_FORCE_PROTO_SCSI, UQ_MSC_NO_INQUIRY_EVPD,
            UQ_MSC_NO_SYNC_CACHE),
        USB_QUIRK(WESTERN, MYPASSWORD, 0x0000, 0xffff, UQ_MSC_FORCE_SHORT_INQ),
+       USB_QUIRK(WESTERN, MYPASSPORT, 0x0000, 0xffff, UQ_MSC_NO_SYNC_CACHE),
        USB_QUIRK(WINMAXGROUP, FLASH64MC, 0x0000, 0xffff, UQ_MSC_FORCE_WIRE_BBB,
            UQ_MSC_FORCE_PROTO_SCSI, UQ_MSC_NO_INQUIRY),
        USB_QUIRK(YANO, FW800HD, 0x0000, 0xffff, UQ_MSC_FORCE_WIRE_BBB,


*** /sys/dev/usb/usbdevs        Sun Mar  3 09:46:31 2013
--- /root/usb-quirk-fix/usbdevs Sat May 11 21:58:37 2013
*************** product WESTERN EXTHDD          0x0400  External 
*** 4194,4199 ****
--- 4194,4200 ----
  product WESTERN HUB           0x0500  USB HUB
  product WESTERN MYBOOK                0x0901  MyBook External HDD
  product WESTERN MYPASSWORD    0x0704  MyPassword External HDD
+ product WESTERN MYPASSPORT    0x0748  MyPassport External HDD
  
  /* WIENER Plein & Baus GmbH products */
  product WIENERPLEINBAUS PL512 0x0010  PL512 PSU



>Release-Note:
>Audit-Trail:
>Unformatted:
_______________________________________________
freebsd-bugs@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"

Reply via email to