From nobody@FreeBSD.org  Fri Jul 26 07:57:38 2002
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id D8FFF37B400
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 26 Jul 2002 07:57:38 -0700 (PDT)
Received: from www.freebsd.org (www.FreeBSD.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 9C53943E5E
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 26 Jul 2002 07:57:38 -0700 (PDT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.12.4/8.12.4) with ESMTP id g6QEvcOT093509
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 26 Jul 2002 07:57:38 -0700 (PDT)
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.12.4/8.12.4/Submit) id g6QEvcV2093508;
	Fri, 26 Jul 2002 07:57:38 -0700 (PDT)
Message-Id: <200207261457.g6QEvcV2093508@www.freebsd.org>
Date: Fri, 26 Jul 2002 07:57:38 -0700 (PDT)
From: Keith White <kwhite@uottawa.ca>
To: freebsd-gnats-submit@FreeBSD.org
Subject: HP 315 Digital camera, SCSI quirks
X-Send-Pr-Version: www-1.0

>Number:         41010
>Category:       kern
>Synopsis:       HP 315 Digital camera, SCSI quirks
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    njl
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jul 26 08:00:05 PDT 2002
>Closed-Date:    Fri Oct 18 12:34:58 PDT 2002
>Last-Modified:  Fri Oct 18 12:34:58 PDT 2002
>Originator:     Keith White
>Release:        4.6
>Organization:
SITE, University of Ottawa
>Environment:
FreeBSD admin16.site.uottawa.ca 4.6-RELEASE FreeBSD 4.6-RELEASE #6: Thu Jul 25 10:23:32 EDT 2002     root@admin16.site.uottawa.ca:/usr/src/sys/compile/XBAT  i386

>Description:
Unable to access the HP 315 camera via the USB port.  The
camera is recognized but all accesses to "da0" fail with
IO errors.  Log errors:

Jul 25 09:00:45 foobar /kernel: umass0: HP USB DIGITAL CAMERA, rev 1.10/1.00, addr 2
Jul 25 09:00:45 foobar /kernel: da0 at umass-sim0 bus 0 target 0 lun 0
Jul 25 09:00:45 foobar /kernel: da0: <HP USB CAMERA 1.00> Removable Direct Access SCSI-0 device
Jul 25 09:00:45 foobar /kernel: da0: 650KB/s transfers
Jul 25 09:00:45 foobar /kernel: da0: 7MB (15537 512 byte sectors: 64H 32S/T 7C)
Jul 25 09:01:43 foobar /kernel: umass0: BBB reset failed, IOERROR
Jul 25 09:01:43 foobar /kernel: umass0: BBB bulk-in clear stall failed, IOERROR
Jul 25 09:01:43 foobar /kernel: umass0: BBB bulk-out clear stall failed, IOERROR
Jul 25 09:01:43 foobar /kernel: umass0: BBB reset failed, IOERROR

>How-To-Repeat:
Plug in an HP 315 to a USB port.
Type "dd if=/dev/da0s1"
Wait...

>Fix:
Add the following quirk definition to /sys/cam/scsi/scsi_da.c

        {
                /*
                 * HP 315 USB DIGITAL CAMERA
                 */
                {T_DIRECT, SIP_MEDIA_REMOVABLE, "HP", "USB CAMERA*", "*"},   
                /*quirks*/ DA_Q_NO_6_BYTE
        },

>Release-Note:
>Audit-Trail:

From: Nate Lawson <nate@root.org>
To: freebsd-gnats-submit@FreeBSD.org, kwhite@uottawa.ca
Cc:  
Subject: Re: kern/41010: HP 315 Digital camera, SCSI quirks
Date: Thu, 15 Aug 2002 16:42:47 -0700 (PDT)

 Are you still experiencing problems?  If you do, please send full dmesg
 output.  Note:  "minimum_cmd_size is increased to 10" message is *not* an
 error.
 
 -Nate
 

From: Keith White <Keith.White@site.uottawa.ca>
To: Nate Lawson <nate@root.org>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: kern/41010: HP 315 Digital camera, SCSI quirks
Date: Fri, 16 Aug 2002 09:23:44 -0400 (EDT)

 On Thu, 15 Aug 2002, Nate Lawson wrote:
 
 > Are you still experiencing problems?  If you do, please send full dmesg
 > output.  Note:  "minimum_cmd_size is increased to 10" message is *not* an
 > error.
 
 I'm unsure what you're asking.
 
 No, I have not had any problems since I patched /sys/cam/scsi/scsi_da.c
 Before I patched this file I had received no "minimum_cmd_size is increased
 to 10" message.  The dmesg output I got was included in my original bug
 report.
 
 Do you wish me to try with a "clean" STABLE?
 
 ...keith
 

From: Nate Lawson <nate@root.org>
To: Keith White <Keith.White@site.uottawa.ca>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: kern/41010: HP 315 Digital camera, SCSI quirks
Date: Fri, 16 Aug 2002 10:21:26 -0700 (PDT)

 > Do you wish me to try with a "clean" STABLE?
 
 Yes, please.  There is a more general workaround in scsi_da.c that should
 make the no_byte_6 quirks unnecessary.  We'd like to move to a more
 general solution and not have multiplying quirks.
 
 -Nate
 
State-Changed-From-To: open->feedback 
State-Changed-By: njl 
State-Changed-When: Tue Oct 1 13:53:06 PDT 2002 
State-Changed-Why:  
Any progress on this?  Please test without the quirk and get us the results. 


Responsible-Changed-From-To: freebsd-bugs->njl 
Responsible-Changed-By: njl 
Responsible-Changed-When: Tue Oct 1 13:53:06 PDT 2002 
Responsible-Changed-Why:  

New quirk maintainer.  Please add any information that is missing 
(i.e. new/old dmesg, exact device info, etc.)  You can find all the 
needed information at: 
http://www.root.org/~nate/freebsd/quirks.html 

http://www.freebsd.org/cgi/query-pr.cgi?pr=41010 

From: Nate Lawson <nate@root.org>
To: Keith White <kwhite@uottawa.ca>
Cc: freebsd-gnats-submit@freebsd.org
Subject: Re: kern/41010
Date: Wed, 2 Oct 2002 15:20:44 -0700 (PDT)

 Please test without the quirk with 4.6R or newer.  If it works or no
 response, this PR will be closed in 2 weeks.
 

From: Keith White <Keith.White@site.uottawa.ca>
To: Nate Lawson <nate@root.org>
Cc: freebsd-gnats-submit@freebsd.org
Subject: Re: kern/41010
Date: Fri, 4 Oct 2002 14:24:22 -0400 (EDT)

 On Wed, 2 Oct 2002, Nate Lawson wrote:
 
 > Please test without the quirk with 4.6R or newer.  If it works or no
 > response, this PR will be closed in 2 weeks.
 
 Tested with 4.7-RC, no quirk.  Doesn't work.
 
 Here's dmesg output
 
   umass0: HP USB DIGITAL CAMERA, rev 1.10/1.00, addr 2, SCSI over Bulk-Only
   umass0:1:0:-1: Attached to scbus1 as device 0
   da0 at umass-sim0 bus 0 target 0 lun 0
   da0: <HP USB CAMERA 1.00> Removable Direct Access SCSI-0 device
   da0: 650KB/s transfers
   da0: 7MB (15537 512 byte sectors: 64H 32S/T 7C)
 
 # fdisk da0
   fdisk: can't open device /dev/da0
   fdisk: cannot open disk /dev/da0: Input/output error
 # dmesg
   da0: reading primary partition table: error reading fsbn 0
 
 # dd if=/dev/rda0 of=/dev/null
   dd: /dev/rda0: Input/output error"
 # dmesg
   da0: reading primary partition table: error reading fsbn 0
 
 

From: Nate Lawson <nate@root.org>
To: Keith White <Keith.White@site.uottawa.ca>
Cc: freebsd-gnats-submit@freebsd.org
Subject: Re: kern/41010
Date: Fri, 4 Oct 2002 11:27:37 -0700 (PDT)

 Please send:
   1. Any dmesg output generated by the failed fdisk command
   2. Full device info (manu, model #, etc)
   3. Anything else listed on this page:
      http://www.root.org/~nate/freebsd/quirks.html
 
 Thanks,
 Nate
 
 

From: Keith White <Keith.White@site.uottawa.ca>
To: Nate Lawson <nate@root.org>
Cc: freebsd-gnats-submit@freebsd.org
Subject: Re: kern/41010
Date: Fri, 4 Oct 2002 15:20:58 -0400 (EDT)

 On Fri, 4 Oct 2002, Nate Lawson wrote:
 
 > Please send:
 >   1. Any dmesg output generated by the failed fdisk command
 
 Unfortunately, after a delay, just the one line:
 
   da0: reading primary partition table: error reading fsbn 0
 
 FWIW "usbdevs -v" gives:
   port 2 addr 2: self powered, config 1, USB DIGITAL CAMERA(0x6102), HP(0x03f0), rev 1.00
 
 >   2. Full device info (manu, model #, etc)
 
 HP, HP 315 PhotoSmart digital camera.
 
 >   3. Anything else listed on this page:
 >      http://www.root.org/~nate/freebsd/quirks.html
 
 It needs the DA_Q_NO_6_BYTE quirk.   A possible entry:
 
         {
                 /*
                  * HP 315 USB DIGITAL CAMERA
                  */
                 {T_DIRECT, SIP_MEDIA_REMOVABLE, "HP", "USB CAMERA*", "*"},
                 /*quirks*/ DA_Q_NO_6_BYTE
         },
 
 After the quirk, I am able to use "fdisk da0" and mount the Camera
 with "mount -t msdos /dev/da0s1 /mnt"...
 
 ...keith
 
State-Changed-From-To: feedback->closed 
State-Changed-By: njl 
State-Changed-When: Fri Oct 18 12:28:14 PDT 2002 
State-Changed-Why:  
Quirk committed in rev 1.113 of scsi_da.c.  It will be MFC'd in a week. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=41010 
>Unformatted:
