Date: Sat, 23 Jul 2005 18:25:18 +0800 From: Dryice Liu <dryice@hotpop.com> To: FreeBSD-gnats-submit@FreeBSD.org Cc: Dryice Liu <dryice@hotpop.com> Subject: kern/83942: QUIRK: Langel USB flash mp3 player Message-ID: <20050723102519.1C58E175330A@smtp-3.hotpop.com> Resent-Message-ID: <200507231030.j6NAUGRN033586@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 83942 >Category: kern >Synopsis: QUIRK: Langel USB flash mp3 player >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sat Jul 23 10:30:16 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Dryice Liu >Release: FreeBSD 5.4-STABLE i386 >Organization: >Environment: System: FreeBSD dryice.3322.org 5.4-STABLE FreeBSD 5.4-STABLE #5: Fri Jul 1 19:39:07 CST 2005 root@notebook:ddliu# camcontrol inquiry 0:0 pass0: <USB2.0 (FS) FLASH DISK 1.00> Removable Direct Access SCSI-0 device pass0: Serial Number pass0: 1.000MB/s transfers root@notebook:ddliu# usbdevs -v Controller /dev/usb0: addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), Intel(0x0000), rev 1.00 port 1 addr 2: full speed, power 100 mA, config 1, USB 2.0(FS) FLASH DISK(0x1100), vendor 0x10d6(0x10d6), rev 1.00 port 2 powered >Description: This is for Langel USB flash mp3 player. The website is at http://www.f2f.cc/c12/ (in Chinese). The model I have is Langel-300/2. After I attach the mp3 player, the following message rolls 3 or 4 times and the system goes panic. Even if I detach the mp3 player immediately after I see the message once, the system goes panic too. Jul 22 22:33:00 notebook kernel: da0 at umass-sim0 bus 0 target 0 lun 0 Jul 22 22:33:00 notebook kernel: da0: <USB2.0 (FS) FLASH DISK 1.00> Removable Direct Access SCSI-0 device Jul 22 22:33:00 notebook kernel: da0: 1.000MB/s transfers Jul 22 22:33:00 notebook kernel: da0: 119MB (245473 512 byte sectors: 64H 32S/T 119C) Jul 22 22:33:01 notebook kernel: umass0: BBB reset failed, STALLED Jul 22 22:33:01 notebook kernel: umass0: BBB bulk-in clear stall failed, STALLED Jul 22 22:33:01 notebook kernel: umass0: BBB bulk-out clear stall failed, STALLED Jul 22 22:33:01 notebook kernel: (da0:umass-sim0:0:0:0): Synchronize cache failed, status == 0x4, scsi status == 0x0 Jul 22 22:33:01 notebook kernel: umass0: BBB reset failed, STALLED Jul 22 22:33:01 notebook kernel: umass0: BBB bulk-in clear stall failed, STALLED Jul 22 22:33:01 notebook kernel: umass0: BBB bulk-out clear stall failed, STALLED Jul 22 22:33:01 notebook kernel: umass0: BBB reset failed, STALLED Jul 22 22:33:01 notebook kernel: umass0: BBB bulk-in clear stall failed, STALLED Jul 22 22:33:01 notebook kernel: umass0: BBB bulk-out clear stall failed, STALLED Jul 22 22:33:01 notebook kernel: umass0: BBB reset failed, STALLED Jul 22 22:33:01 notebook kernel: umass0: BBB bulk-in clear stall failed, STALLED Jul 22 22:33:01 notebook kernel: umass0: BBB bulk-out clear stall failed, STALLED Jul 22 22:33:01 notebook kernel: umass0: BBB reset failed, STALLED Jul 22 22:33:01 notebook kernel: umass0: BBB bulk-in clear stall failed, STALLED Jul 22 22:33:01 notebook kernel: umass0: BBB bulk-out clear stall failed, STALLED Jul 22 22:33:01 notebook kernel: umass0: BBB reset failed, STALLED Jul 22 22:33:01 notebook kernel: umass0: BBB bulk-in clear stall failed, STALLED Jul 22 22:33:01 notebook kernel: umass0: BBB bulk-out clear stall failed, STALLED Jul 22 22:33:01 notebook kernel: umass0: BBB reset failed, STALLED Jul 22 22:33:01 notebook kernel: umass0: BBB bulk-in clear stall failed, STALLED Jul 22 22:33:01 notebook kernel: umass0: BBB bulk-out clear stall failed, STALLED Jul 22 22:33:01 notebook kernel: Opened disk da0 -> 5 Jul 22 22:33:01 notebook kernel: umass0: BBB reset failed, STALLED Jul 22 22:33:01 notebook kernel: umass0: BBB bulk-in clear stall failed, STALLED Jul 22 22:33:01 notebook kernel: umass0: BBB bulk-out clear stall failed, STALLED Jul 22 22:33:01 notebook kernel: umass0: BBB reset failed, STALLED Jul 22 22:33:01 notebook kernel: umass0: BBB bulk-in clear stall failed, STALLED Jul 22 22:33:01 notebook kernel: umass0: BBB bulk-out clear stall failed, STALLED Jul 22 22:33:01 notebook kernel: umass0: BBB reset failed, STALLED Jul 22 22:33:01 notebook kernel: umass0: BBB bulk-in clear stall failed, STALLED Jul 22 22:33:01 notebook kernel: umass0: BBB bulk-out clear stall failed, STALLED Jul 22 22:33:01 notebook kernel: umass0: BBB reset failed, STALLED Jul 22 22:33:01 notebook kernel: umass0: BBB bulk-in clear stall failed, STALLED Jul 22 22:33:01 notebook kernel: umass0: BBB bulk-out clear stall failed, STALLED Jul 22 22:33:01 notebook kernel: umass0: BBB reset failed, STALLED Jul 22 22:33:01 notebook kernel: umass0: BBB bulk-in clear stall failed, STALLED Jul 22 22:33:01 notebook kernel: umass0: BBB bulk-out clear stall failed, STALLED Jul 22 22:33:01 notebook kernel: Opened disk da0 -> 5 Jul 22 22:33:01 notebook kernel: umass0: BBB reset failed, STALLED Jul 22 22:33:01 notebook kernel: umass0: BBB bulk-in clear stall failed, STALLED Jul 22 22:33:01 notebook kernel: umass0: BBB bulk-out clear stall failed, STALLED Jul 22 22:33:01 notebook kernel: umass0: BBB reset failed, STALLED Jul 22 22:33:01 notebook kernel: umass0: BBB bulk-in clear stall failed, STALLED Jul 22 22:33:01 notebook kernel: umass0: BBB bulk-out clear stall failed, STALLED Jul 22 22:33:01 notebook kernel: umass0: BBB reset failed, STALLED Jul 22 22:33:01 notebook kernel: umass0: BBB bulk-in clear stall failed, STALLED Jul 22 22:33:01 notebook kernel: umass0: BBB bulk-out clear stall failed, STALLED Jul 22 22:33:01 notebook kernel: umass0: at uhub0 port 1 (addr 2) disconnected Jul 22 22:33:01 notebook kernel: (da0:umass-sim0:0:0:0): lost device Jul 22 22:33:01 notebook kernel: (da0:umass-sim0:0:0:0): removing device entry Jul 22 22:33:01 notebook kernel: Opened disk da0 -> 5 Jul 22 22:33:01 notebook kernel: umass0: detached After applying the quirk, it goes well and I can mount the disk. With dmesg output: da0 at umass-sim0 bus 0 target 0 lun 0 da0: <USB2.0 (FS) FLASH DISK 1.00> Removable Direct Access SCSI-0 device da0: 1.000MB/s transfers da0: 119MB (245473 512 byte sectors: 64H 32S/T 119C) >How-To-Repeat: Attach the mp3 player and the system goes panic. >Fix: --- scsi_da.c.diff begins here --- --- sys/cam/scsi/scsi_da.c.orig Sun Jan 30 08:59:16 2005 +++ sys/cam/scsi/scsi_da.c Sat Jul 23 17:45:40 2005 @@ -318,6 +318,14 @@ {T_DIRECT, SIP_MEDIA_REMOVABLE, "FL" , "NexIA+*", "*"}, /*quirks*/ DA_Q_NO_SYNC_CACHE }, + { + /* + * Langel USB Flash MP3 Player + */ + {T_DIRECT, SIP_MEDIA_REMOVABLE, "USB2.0" , + "(FS) FLASH DISK", "*"}, + /*quirks*/ DA_Q_NO_SYNC_CACHE + }, }; static disk_strategy_t dastrategy; --- scsi_da.c.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050723102519.1C58E175330A>