From owner-freebsd-bugs@FreeBSD.ORG Sun May 19 07:40:00 2013 Return-Path: Delivered-To: freebsd-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id AC321329 for ; Sun, 19 May 2013 07:40:00 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 8E376D2D for ; Sun, 19 May 2013 07:40:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r4J7e0Vn037327 for ; Sun, 19 May 2013 07:40:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r4J7e0Ew037326; Sun, 19 May 2013 07:40:00 GMT (envelope-from gnats) Resent-Date: Sun, 19 May 2013 07:40:00 GMT Resent-Message-Id: <201305190740.r4J7e0Ew037326@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Tim Matthews Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id ACD55278 for ; Sun, 19 May 2013 07:35:21 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from oldred.FreeBSD.org (oldred.freebsd.org [8.8.178.121]) by mx1.freebsd.org (Postfix) with ESMTP id 9F88CD0F for ; Sun, 19 May 2013 07:35:21 +0000 (UTC) Received: from oldred.FreeBSD.org ([127.0.1.6]) by oldred.FreeBSD.org (8.14.5/8.14.5) with ESMTP id r4J7ZLZZ026136 for ; Sun, 19 May 2013 07:35:21 GMT (envelope-from nobody@oldred.FreeBSD.org) Received: (from nobody@localhost) by oldred.FreeBSD.org (8.14.5/8.14.5/Submit) id r4J7ZLjC026135; Sun, 19 May 2013 07:35:21 GMT (envelope-from nobody) Message-Id: <201305190735.r4J7ZLjC026135@oldred.FreeBSD.org> Date: Sun, 19 May 2013 07:35:21 GMT From: Tim Matthews To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: kern/178771: QUIRK: Western Digital My Passport HD X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 19 May 2013 07:40:00 -0000 >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: 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: at usbus7 umass0: 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: at usbus7 umass0: 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: 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: 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: