From owner-freebsd-bugs@FreeBSD.ORG Sat Jul 23 10:30:17 2005 Return-Path: X-Original-To: freebsd-bugs@hub.freebsd.org Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4EF6E16A41F for ; Sat, 23 Jul 2005 10:30:17 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id CE9B143D46 for ; Sat, 23 Jul 2005 10:30:16 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j6NAUG6N033596 for ; Sat, 23 Jul 2005 10:30:16 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j6NAUGRN033586; Sat, 23 Jul 2005 10:30:16 GMT (envelope-from gnats) Resent-Date: Sat, 23 Jul 2005 10:30:16 GMT Resent-Message-Id: <200507231030.j6NAUGRN033586@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, Dryice Liu Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id ABD5616A41F for ; Sat, 23 Jul 2005 10:25:35 +0000 (GMT) (envelope-from dryice@hotpop.com) Received: from smtp-out.hotpop.com (smtp-out.hotpop.com [38.113.3.71]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3774143D49 for ; Sat, 23 Jul 2005 10:25:35 +0000 (GMT) (envelope-from dryice@hotpop.com) Received: from hotpop.com (kubrick.hotpop.com [38.113.3.103]) by smtp-out.hotpop.com (Postfix) with SMTP id AA1C517533FD for ; Sat, 23 Jul 2005 10:25:24 +0000 (UTC) Received: from hotpop.com (unknown [221.0.238.103]) by smtp-3.hotpop.com (Postfix) with ESMTP id 1C58E175330A; Sat, 23 Jul 2005 10:25:19 +0000 (UTC) Received: by hotpop.com (sSMTP sendmail emulation); Sat, 23 Jul 2005 18:25:18 +0800 Message-Id: <20050723102519.1C58E175330A@smtp-3.hotpop.com> Date: Sat, 23 Jul 2005 18:25:18 +0800 From: Dryice Liu To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Dryice Liu Subject: kern/83942: QUIRK: Langel USB flash mp3 player X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Dryice Liu List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 23 Jul 2005 10:30:17 -0000 >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: 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: 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: 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: