From rickheit-fbp@numachi.com  Wed Sep 14 17:18:05 2005
Return-Path: <rickheit-fbp@numachi.com>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 5C7AD16A41F
	for <FreeBSD-gnats-submit@freebsd.org>; 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 <FreeBSD-gnats-submit@freebsd.org>; 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 <rickheit-fbp@numachi.com>
Reply-To: Erich Rickheit KSC <rickheit-fbp@numachi.com>
To: FreeBSD-gnats-submit@freebsd.org
Subject: [patch] quirk for Creative MuVo slim
X-Send-Pr-Version: 3.113

>Number:         86131
>Category:       kern
>Synopsis:       [cam] [patch] quirk for Creative MuVo slim
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Sep 14 17:20:15 GMT 2005
>Closed-Date:    Thu Jan 26 09:19:40 GMT 2006
>Last-Modified:  Thu Jan 26 09:19:40 GMT 2006
>Originator:     Erich Rickheit KSC <rickheit-fbp@numachi.com>
>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: <CREATIVE MuVo Slim 1105> 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:

From: Florent Thoumie <flz@xbsd.org>
To: bug-followup@freebsd.org
Cc:  
Subject: Re: usb/86131
Date: Wed, 25 Jan 2006 12:40:44 +0100

 --nextPart14813144.bHe3TKnyL7
 Content-Type: text/plain;
   charset="us-ascii"
 Content-Transfer-Encoding: quoted-printable
 Content-Disposition: inline
 
 	Can you just try without DA_Q_NO_PREVENT ? DA_Q_NO_6_BYTE isn't necessary
 	anymore on recent FreeBSD systems.
 
 =2D-=20
 =46lorent Thoumie
 flz@FreeBSD.org
 =46reeBSD Committer
 
 --nextPart14813144.bHe3TKnyL7
 Content-Type: application/pgp-signature
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.4.2 (FreeBSD)
 
 iD8DBQBD12PFMxEkbVFH3PQRAop+AJ0UANUnuC39M53qrh9nyHDQtDnkKACeIH98
 9fdMoy0qEwKsT9P0UscX2jA=
 =e3U8
 -----END PGP SIGNATURE-----
 
 --nextPart14813144.bHe3TKnyL7--
State-Changed-From-To: open->closed 
State-Changed-By: flz 
State-Changed-When: Thu Jan 26 09:19:34 UTC 2006 
State-Changed-Why:  
Committed to HEAD, MFC planned after 3 days.  Thanks for your report! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=86131 
>Unformatted:
