From owner-freebsd-bugs@FreeBSD.ORG Fri Sep 17 16:20:24 2004 Return-Path: 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 5370616A4CE for ; Fri, 17 Sep 2004 16:20:24 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3146D43D45 for ; Fri, 17 Sep 2004 16:20:24 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.11/8.12.11) with ESMTP id i8HGKO8s014711 for ; Fri, 17 Sep 2004 16:20:24 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.11/8.12.11/Submit) id i8HGKOti014710; Fri, 17 Sep 2004 16:20:24 GMT (envelope-from gnats) Resent-Date: Fri, 17 Sep 2004 16:20:24 GMT Resent-Message-Id: <200409171620.i8HGKOti014710@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, Luigi Rizzo Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4D0D316A4CF for ; Fri, 17 Sep 2004 16:11:47 +0000 (GMT) Received: from xorpc.icir.org (xorpc.icir.org [192.150.187.68]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3256643D39 for ; Fri, 17 Sep 2004 16:11:47 +0000 (GMT) (envelope-from rizzo@icir.org) Received: from xorpc.icir.org (localhost [127.0.0.1]) by xorpc.icir.org (8.12.9p1/8.12.8) with ESMTP id i8HGBlIb022076 for ; Fri, 17 Sep 2004 09:11:47 -0700 (PDT) (envelope-from rizzo@xorpc.icir.org) Received: (from rizzo@localhost) by xorpc.icir.org (8.12.9p1/8.12.3/Submit) id i8HGBl2n022075; Fri, 17 Sep 2004 09:11:47 -0700 (PDT) (envelope-from rizzo) Message-Id: <200409171611.i8HGBl2n022075@xorpc.icir.org> Date: Fri, 17 Sep 2004 09:11:47 -0700 (PDT) From: Luigi Rizzo To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: kern/71818: support for DMR1000 USP flash pen/mp3 player X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Luigi Rizzo List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Sep 2004 16:20:24 -0000 >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: