From pasha@ibis.inasan.rssi.ru  Sun Jul 20 03:44:38 2003
Return-Path: <pasha@ibis.inasan.rssi.ru>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 89C1F37B401
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 20 Jul 2003 03:44:38 -0700 (PDT)
Received: from inasan.rssi.ru (amon.inasan.rssi.ru [195.19.72.12])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 490DC43F93
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 20 Jul 2003 03:44:36 -0700 (PDT)
	(envelope-from pasha@ibis.inasan.rssi.ru)
Received: from ibis.inasan.rssi.ru (ibis.inasan.rssi.ru [195.19.72.27])
	by inasan.rssi.ru (8.12.1/8.11.3) with ESMTP id h6KAiVL0016804
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 20 Jul 2003 14:44:31 +0400
Received: from ibis.inasan.rssi.ru (rooot@localhost [127.0.0.1])
	by ibis.inasan.rssi.ru (8.12.9/8.12.3) with ESMTP id h6KAiVrg001454
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 20 Jul 2003 14:44:31 +0400 (MSD)
	(envelope-from pasha@ibis.inasan.rssi.ru)
Received: (from pasha@localhost)
	by ibis.inasan.rssi.ru (8.12.9/8.12.9/Submit) id h6KAiUKX001453;
	Sun, 20 Jul 2003 14:44:30 +0400 (MSD)
Message-Id: <200307201044.h6KAiUKX001453@ibis.inasan.rssi.ru>
Date: Sun, 20 Jul 2003 14:44:30 +0400 (MSD)
From: Kaygorodov Pasha <pasha@inasan.rssi.ru>
Reply-To: Kaygorodov Pasha <pasha@inasan.rssi.ru>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: Need SCSI CAM quirk for Rovershot digital camera
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         54654
>Category:       kern
>Synopsis:       Need SCSI CAM quirk for Rovershot digital camera
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    njl
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jul 20 03:50:23 PDT 2003
>Closed-Date:    Sun Apr 18 20:47:13 PDT 2004
>Last-Modified:  Sun Apr 18 20:47:13 PDT 2004
>Originator:     Kaygorodov Pasha
>Release:        FreeBSD 4.8-STABLE i386
>Organization:
none
>Environment:
>Description:
	Rovershot RS3310Z digital camera, which uses USB connection (like umass
	device)  don't support READ_6 and sync cache (0x35) commands.
	I have to add CAM quirk for it.
	Now it works fine.

	Rovershot RS3310Z 3.3 Megapixel digital photo:

	Model: RS3310Z
	Manufacturer: Rover Computers Group
	Transport type: USB
	
	# camcontrol inquiry da0
	pass0: < 3.3M DigitalCAM 1.00> Removable Direct Access SCSI-0 device 
	pass0: Serial Number 
	pass0: 650KB/s transfers
	
	# usbdevs -v
	Controller /dev/usb0:
	addr 1: self powered, config 1, UHCI root hub(0x0000), Intel(0x0000), rev 1.00
	 port 1 addr 2: self powered, config 1, 3.3M DigitalCAM(0x3350),          (0x0733), rev 1.00
	 port 2 powered

	# dmesg          # Before quirk

	.....
	umass0:           3.3M DigitalCAM, rev 1.10/1.00, addr 2
	umass0: Get Max Lun not supported (STALLED)
	da0 at umass-sim0 bus 0 target 0 lun 0
	da0: < 3.3M DigitalCAM 1.00> Removable Direct Access SCSI-0 device 
	da0: 650KB/s transfers
	da0: 23552015MB (32000 771752448 byte sectors: 64H 32S/T 15C)
	umass0: Unsupported ATAPI command 0x08, 6 byte command should have been converted
	da0: reading primary partition table: error reading fsbn 0
	umass0: Unsupported ATAPI command 0x35
	(da0:umass-sim0:0:0:0): Synchronize cache failed, status == 0x6, scsi status == 0x0
	.....

	# dmesg          # After quirk

	.....
	umass0:           3.3M DigitalCAM, rev 1.10/1.00, addr 2
	umass0: Get Max Lun not supported (STALLED)
	(da0:umass-sim0:0:0:0): removing device entry
	da0 at umass-sim0 bus 0 target 0 lun 0
	da0: < 3.3M DigitalCAM 1.00> Removable Direct Access SCSI-0 device 
	da0: 650KB/s transfers
	da0: 61MB (125440 512 byte sectors: 64H 32S/T 61C)
	.....
	
>How-To-Repeat:
	Just connect RS3310Z to your FreeBSD box and try to mount umass device.

>Fix:
	Add SCSI da quirk into sys/cam/scsi/scsi_da.c:

	{
	        /*
	         * Rovershot RS3310Z digital camera
	         */
	        {T_DIRECT, SIP_MEDIA_REMOVABLE, "*", "3.3M DigitalCAM", "1.00"}
	        /*quirks*/ DA_Q_NO_6_BYTE|DA_Q_NO_SYNC_CACHE
	},
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->njl 
Responsible-Changed-By: njl 
Responsible-Changed-When: Thu Aug 21 21:51:49 PDT 2003 
Responsible-Changed-Why:  
Please try it without the NO_6_BYTE quirk.  I'll look into this. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=54654 
State-Changed-From-To: open->closed 
State-Changed-By: njl 
State-Changed-When: Sun Apr 18 20:46:52 PDT 2004 
State-Changed-Why:  
This should work on -current and -stable since 2003/8/7.  Close due to 
lack of response. 


http://www.freebsd.org/cgi/query-pr.cgi?pr=54654 
>Unformatted:
 >System: FreeBSD ibis.inasan.rssi.ru 4.8-STABLE FreeBSD 4.8-STABLE #2: Sun Jul 20 13:46:17 MSD 2003 root@ibis.inasan.rssi.ru:/usr/src/sys/compile/IBIS i386
