From owner-freebsd-usb@FreeBSD.ORG Wed Apr 29 09:40:01 2009 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9F7C91065677 for ; Wed, 29 Apr 2009 09:40:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 001A28FC23 for ; Wed, 29 Apr 2009 09:40:00 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n3T9e0vE039326 for ; Wed, 29 Apr 2009 09:40:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n3T9e0t2039325; Wed, 29 Apr 2009 09:40:00 GMT (envelope-from gnats) Resent-Date: Wed, 29 Apr 2009 09:40:00 GMT Resent-Message-Id: <200904290940.n3T9e0t2039325@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-usb@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Yoshihide Sonoda Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 00BCB1065670 for ; Wed, 29 Apr 2009 09:33:54 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id D9CF48FC08 for ; Wed, 29 Apr 2009 09:33:53 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n3T9Xrkt080536 for ; Wed, 29 Apr 2009 09:33:53 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id n3T9XrgB080535; Wed, 29 Apr 2009 09:33:53 GMT (envelope-from nobody) Message-Id: <200904290933.n3T9XrgB080535@www.freebsd.org> Date: Wed, 29 Apr 2009 09:33:53 GMT From: Yoshihide Sonoda To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: usb/134085: [umass] Adding usb quirk for Sony USB flash drive X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Apr 2009 09:40:02 -0000 >Number: 134085 >Category: usb >Synopsis: [umass] Adding usb quirk for Sony USB flash drive >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-usb >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Apr 29 09:40:00 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Yoshihide Sonoda >Release: 8.0-CURRENT >Organization: >Environment: FreeBSD eagle.ys.sokohiki.org 8.0-CURRENT FreeBSD 8.0-CURRENT #35: Wed Apr 29 02:11:05 JST 2009 root@eagle.ys.sokohiki.org:/usr/obj/usr/src/sys/eagle amd64 >Description: When I used Sony's USB flash drive(*) with zfs, the following messages was displayed many times. kernel: (da0:umass-sim0:0:0:0): SYNCHRONIZE CACHE(10). CDB: 35 0 0 0 0 0 0 0 0 0 kernel: (da0:umass-sim0:0:0:0): CAM Status: SCSI Status Error kernel: (da0:umass-sim0:0:0:0): SCSI Status: Check Condition kernel: (da0:umass-sim0:0:0:0): ILLEGAL REQUEST asc:24,0 kernel: (da0:umass-sim0:0:0:0): Invalid field in CDB kernel: (da0:umass-sim0:0:0:0): Unretryable error (*) The Web site of the USB flash drive(Japanese): http://www.sony.jp/pocketbit/products/USM_LX_SERIES/ # usbconfig -u 7 -a 2 dump_device_desc ugen7.2: at usbus7, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON bLength = 0x0012 bDescriptorType = 0x0001 bcdUSB = 0x0200 bDeviceClass = 0x0000 bDeviceSubClass = 0x0000 bDeviceProtocol = 0x0000 bMaxPacketSize0 = 0x0040 idVendor = 0x054c idProduct = 0x0243 bcdDevice = 0x0200 iManufacturer = 0x0001 iProduct = 0x0002 iSerialNumber = 0x0003 <6A0904020005022> bNumConfigurations = 0x0001 >How-To-Repeat: 1) Connect Sony's USB flash drive. kernel: umass0: SCSI over Bulk-Only; quirks = 0x0000 kernel: umass0:1:0:-1: Attached to scbus1 kernel: da0 at umass-sim0 bus 0 target 0 lun 0 kernel: da0: Removable Direct Access SCSI-2 device kernel: da0: 40.000MB/s transfers kernel: da0: 7648MB (15663104 512 byte sectors: 255H 63S/T 974C) 2) Make a zfs pool on the drive. # zpool create usbpool /dev/da0s1 >Fix: Please add the following code. --- usbdevs.orig 2009-04-21 22:40:58.203008000 +0900 +++ usbdevs 2009-04-29 01:56:14.545345677 +0900 @@ -2278,6 +2278,7 @@ product SONY CLIE_TH55 0x0144 Sony Clie th55 product SONY CLIE_TJ37 0x0169 Sony Clie tj37 product SONY RF_RECEIVER 0x01db Sony RF mouse/kbd Receiver VGP-WRC1 +product SONY USBM_PBIT 0x0243 Sony USB Memory POCKETBIT /* Sony Ericsson products */ product SONYERICSSON DCU10 0x0528 USB Cable --- umass.c.orig 2009-04-07 01:12:41.477295000 +0900 +++ umass.c 2009-04-29 02:02:28.802546498 +0900 @@ -848,6 +848,10 @@ static const struct umass_devdescr umass UMASS_PROTO_SCSI | UMASS_PROTO_BBB, NO_QUIRKS }, + {USB_VENDOR_SONY, USB_PRODUCT_SONY_USBM_PBIT, RID_WILDCARD, + UMASS_PROTO_SCSI | UMASS_PROTO_BBB, + NO_SYNCHRONIZE_CACHE + }, {USB_VENDOR_SUPERTOP, USB_PRODUCT_SUPERTOP_IDE, RID_WILDCARD, UMASS_PROTO_SCSI | UMASS_PROTO_BBB, IGNORE_RESIDUE | NO_SYNCHRONIZE_CACHE >Release-Note: >Audit-Trail: >Unformatted: