From owner-freebsd-bugs Mon Jan 7 0:50:12 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id C6C5137B41A for ; Mon, 7 Jan 2002 00:50:02 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g078o2p61797; Mon, 7 Jan 2002 00:50:02 -0800 (PST) (envelope-from gnats) Received: from enigma.x-telecom.net (enigma.x-telecom.net [80.70.64.51]) by hub.freebsd.org (Postfix) with ESMTP id 60E7C37B41A for ; Mon, 7 Jan 2002 00:47:24 -0800 (PST) Received: from kunia by enigma.x-telecom.net with local (Exim 3.33 #1) id 16NVR7-0001LG-00 for FreeBSD-gnats-submit@freebsd.org; Mon, 07 Jan 2002 10:47:17 +0200 Message-Id: Date: Mon, 07 Jan 2002 10:47:17 +0200 From: Olexander Kunytsa Reply-To: Olexander Kunytsa To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.113 Subject: kern/33638: quirk for DIVA USB Mp3 player Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 33638 >Category: kern >Synopsis: quirk for DIVA USB 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: Mon Jan 07 00:50:01 PST 2002 >Closed-Date: >Last-Modified: >Originator: Olexander Kunytsa >Release: FreeBSD 5.0-CURRENT i386 >Organization: XTC >Environment: System: FreeBSD enigma.x-telecom.net 5.0-CURRENT FreeBSD 5.0-CURRENT #3: Mon Jan 7 04:36:57 EET 2002 root@enigma.x-telecom.net:/usr/obj/usr/src/sys/CURRENT i386 >Description: DIVA USB Mp3 player is attached as umass device, it is detected on booting as: da0: Removable Direct Access SCSI-0 device but it fails to be mounted or hexdumped, thus it works under windoze and linux-2.4 >How-To-Repeat: On system with attached DIVA (www.mydivaplayer.com): $hd /dev/da0 umass0: Phase Error, residue = 0 umass0: BBB reset failed, STALLED umass0: Phase Error, residue = 0 umass0: BBB reset failed, STALLED umass0: Phase Error, residue = 0 umass0: BBB reset failed, STALLED umass0: Phase Error, residue = 0 umass0: BBB reset failed, STALLED umass0: Phase Error, residue = 0 umass0: BBB reset failed, STALLED da0: reading primary partition table: error reading fsbn 0 >Fix: Apply this patch (I'd like to have it MFC'ed ASAP) : --- /sys/cam/scsi/scsi_da.c Mon Jan 7 05:32:56 2002 +++ scsi_da.c Mon Jan 7 10:34:18 2002 @@ -339,6 +339,13 @@ */ {T_DIRECT, SIP_MEDIA_REMOVABLE, "Nikon", "Digital Camera", "*"}, /*quirks*/ DA_Q_NO_6_BYTE + },{ + /* + * DIVA USB Mp3 Player. + * Doesn't work correctly with 6 byte reads/writes. + */ + {T_DIRECT, SIP_MEDIA_REMOVABLE, "DIVA USB", "Media Reader","*"}, + /*quirks*/ DA_Q_NO_6_BYTE }, { /* P.S. This patch corrects SCSI-layer DIVA's problem, but one more problem is on uhub: it fails to attach DIVA after disconnecting. At the moment I can use the player only with detaching on boot. >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message