Date: Wed, 29 Apr 2009 09:33:53 GMT From: Yoshihide Sonoda <yshd@na.rim.or.jp> To: freebsd-gnats-submit@FreeBSD.org Subject: usb/134085: [umass] Adding usb quirk for Sony USB flash drive Message-ID: <200904290933.n3T9XrgB080535@www.freebsd.org> Resent-Message-ID: <200904290940.n3T9e0t2039325@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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: <Storage Media Sony> 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 <Sony> iProduct = 0x0002 <Storage Media> 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: <Sony Storage Media 1.00> 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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200904290933.n3T9XrgB080535>