Date: Fri, 17 Sep 2004 09:11:47 -0700 (PDT) From: Luigi Rizzo <rizzo@icir.org> To: FreeBSD-gnats-submit@FreeBSD.org Subject: kern/71818: support for DMR1000 USP flash pen/mp3 player Message-ID: <200409171611.i8HGBl2n022075@xorpc.icir.org> Resent-Message-ID: <200409171620.i8HGKOti014710@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 71818 >Category: kern >Synopsis: support for DMR1000 USP flash pen/mp3 player >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Fri Sep 17 16:20:23 GMT 2004 >Closed-Date: >Last-Modified: >Originator: Luigi Rizzo >Release: RELENG_4 >Organization: Univ di Pisa >Environment: System: FreeBSD xorpc.icir.org 4.8-RELEASE FreeBSD 4.8-RELEASE #0: Mon Apr 7 20:59:56 PDT 2003 root@xorpc.icir.org:/usr/src/sys/compile/ICIR-4.8-USB i386 RELENG_4 trying to use a USB Flash Pen/MP3 player labeled DMR1000 or DMR1128/DMR1256 (USB vendor 0x8206 Product 0x066f) The one I have identifies as "Digital" "MP3 Music Player" >Description: The device is recognised by umass, but accessing it with fdisk or other things hangs. Upon investigation, it turns out that the device does not like a couple of scsi commands (PREVENT_ALLOW_REMOV* and SYNC_CACHE), and the following quirks suffice to remove the problem and make everything work: DA_Q_NO_SYNC_CACHE|DA_Q_NO_PREVENT On 5.2.1 the quirk is not necessary, but i have not been able to figure out why -- on both systems i believe the device tries to use SCSI over BBB only, I have tried (in umass.c) to use different protocols such as ATAPI or UFI but it did not help, nor it helped to use DA_Q_NO_6_BYTE. >How-To-Repeat: >Fix: The attached patch (RELENG_4 only) fixes the problem. Index: scsi_da.c =================================================================== RCS file: /home/ncvs/src/sys/cam/scsi/scsi_da.c,v retrieving revision 1.42.2.50 diff -u -r1.42.2.50 scsi_da.c --- scsi_da.c 8 May 2004 04:02:34 -0000 1.42.2.50 +++ scsi_da.c 17 Sep 2004 15:57:55 -0000 @@ -312,6 +312,13 @@ }, { /* + * DMR1000 USB Flash MP3 Player + */ + {T_DIRECT, SIP_MEDIA_REMOVABLE, "Digital", "MP3*", "*"}, + /*quirks*/ DA_Q_NO_SYNC_CACHE|DA_Q_NO_PREVENT + }, + { + /* * Neuros USB Digital Audio Computer * PR: kern/63645 */ >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200409171611.i8HGBl2n022075>