From owner-freebsd-bugs@FreeBSD.ORG Sun Jul 20 03:50:25 2003 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 9280F37B404 for ; Sun, 20 Jul 2003 03:50:25 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id D271D43FB1 for ; Sun, 20 Jul 2003 03:50:23 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.9/8.12.9) with ESMTP id h6KAoNUp083642 for ; Sun, 20 Jul 2003 03:50:23 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.9/8.12.9/Submit) id h6KAoN7W083641; Sun, 20 Jul 2003 03:50:23 -0700 (PDT) Resent-Date: Sun, 20 Jul 2003 03:50:23 -0700 (PDT) Resent-Message-Id: <200307201050.h6KAoN7W083641@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, Kaygorodov Pasha Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 89C1F37B401 for ; 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 ; 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 ; 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 ; 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 To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: kern/54654: Need SCSI CAM quirk for Rovershot digital camera X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Kaygorodov Pasha List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Jul 2003 10:50:26 -0000 >Number: 54654 >Category: kern >Synopsis: Need SCSI CAM quirk for Rovershot digital camera >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sun Jul 20 03:50:23 PDT 2003 >Closed-Date: >Last-Modified: >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: >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