From owner-freebsd-bugs@FreeBSD.ORG Wed Sep 14 17:20:23 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 C457716A41F for ; Wed, 14 Sep 2005 17:20:23 +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 DB97F43D70 for ; Wed, 14 Sep 2005 17:20:15 +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 j8EHKFAY056444 for ; Wed, 14 Sep 2005 17:20:15 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j8EHKFi4056443; Wed, 14 Sep 2005 17:20:15 GMT (envelope-from gnats) Resent-Date: Wed, 14 Sep 2005 17:20:15 GMT Resent-Message-Id: <200509141720.j8EHKFi4056443@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, Erich Rickheit KSC Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5C7AD16A41F for ; Wed, 14 Sep 2005 17:18:05 +0000 (GMT) (envelope-from rickheit-fbp@numachi.com) Received: from meisai.numachi.com (meisai.numachi.com [198.175.254.6]) by mx1.FreeBSD.org (Postfix) with SMTP id B267443D49 for ; Wed, 14 Sep 2005 17:18:02 +0000 (GMT) (envelope-from rickheit-fbp@numachi.com) Received: (qmail 41427 invoked from network); 14 Sep 2005 17:17:59 -0000 Received: from sniff.numachi.com (198.175.254.15) by meisai.numachi.com with SMTP; 14 Sep 2005 17:17:59 -0000 Received: (qmail 5339 invoked by uid 1009); 14 Sep 2005 17:17:58 -0000 Message-Id: <20050914171758.GA4485@numachi.com> Date: Wed, 14 Sep 2005 13:17:58 -0400 From: Erich Rickheit KSC To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: kern/86131: [patch] quirk for Creative MuVo slim X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Erich Rickheit KSC List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Sep 2005 17:20:24 -0000 >Number: 86131 >Category: kern >Synopsis: [patch] quirk for Creative MuVo slim >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Wed Sep 14 17:20:15 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Erich Rickheit KSC >Release: FreeBSD 4.10-RELEASE i386 >Organization: Numachi >Environment: System: FreeBSD sniff.numachi.com 4.10-RELEASE FreeBSD 4.10-RELEASE #7: Tue Sep 13 22:03:54 EDT 2005 rickheit@sniff.numachi.com:/usr/src/sys/compile/SNIFF i386 Working with a moderately cheap MP3 player, the Creative MuVo Slim # camcontrol inquiry da0 pass0: Removable Direct Access SCSI-4 device pass0: Serial Number xxxxxxxxxxxxxxxx pass0: 650KB/s transfers >Description: Device could not be mounted through the umass driver; attempts made mount stall and sent errors to /var/log/messages: Sep 13 17:18:24 sniff /kernel: umass0: BBB reset failed, TIMEOUT Sep 13 17:18:34 sniff /kernel: umass0: BBB bulk-in clear stall failed, TIMEOUT Sep 13 17:18:34 sniff /kernel: umass0: BBB bulk-out clear stall failed, STALLED (these messages repeated occasionally) At least once, simply disconnecting the player caused the machine to hang, requiring a reboot. >How-To-Repeat: Watch /var/log/messages for umass Plug the device into a USB slot Observe in log that the device is detected As root, attempt to mount the device: # mount -t msdos /dev/da0s1 /mnt Observe 'BBB ...' messages in log Observe that 'mount' does not return for several minutes >Fix: Copied a quirk for a related device and changed the name. After reboot with the recompiled kernel, all works as expected. (I'm not sure if there was some way to modify the other entry so it matched both this device and the original 'NOMAD_MUVO' device. Also, I did not test every combination of these flags to find the minimum necessary; once it worked. I stopped screwing around) --- scsi_da.c Tue Sep 13 22:39:41 2005 +++ /usr/src/sys/cam/scsi/scsi_da.c Tue Sep 13 22:02:12 2005 @@ -310,6 +310,13 @@ {T_DIRECT, SIP_MEDIA_REMOVABLE, "SigmaTel", "MSCN", "*"}, /*quirks*/ DA_Q_NO_SYNC_CACHE|DA_Q_NO_PREVENT }, + { + /* + * Creative MUVO Slim mp3 player (USB) + */ + {T_DIRECT, SIP_MEDIA_REMOVABLE, "CREATIVE", "MuVo Slim", "*"}, + /*quirks*/ DA_Q_NO_6_BYTE|DA_Q_NO_SYNC_CACHE|DA_Q_NO_PREVENT + }, }; static d_open_t daopen; >Release-Note: >Audit-Trail: >Unformatted: