Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 Jul 2009 16:30:01 GMT
From:      Henri Hennebert <hlh@restart.be>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   usb/137035: Sony cyber-shot DSC-P72 not accessible - cam quirks
Message-ID:  <200907231630.n6NGU1Oq071674@www.freebsd.org>
Resent-Message-ID: <200907231640.n6NGe0jv085729@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         137035
>Category:       usb
>Synopsis:       Sony cyber-shot DSC-P72 not accessible - cam quirks
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-usb
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jul 23 16:40:00 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Henri Hennebert
>Release:        FreeBSD-8.0-BETA2
>Organization:
>Environment:
FreeBSD morzine.restart.bel 8.0-BETA2 FreeBSD 8.0-BETA2 #0 r195825M: Thu Jul 23 16:55:01 CEST 2009     root@morzine.restart.bel:/usr/obj/usr/src/sys/MORZINE  i386

>Description:
When I plug my Sony cyber-shot DSC-P72, a device is created but all
access result in an IO error.

Strangly, this same device was working fine under 7.x without quirks.

dmesg:

ugen3.2: <Sony> at usbus3
umass1: <Sony Sony DSC, class 0/0, rev 1.10/4.50, addr 2> on usbus3
umass1:  RBC over CBI; quirks = 0x0008
umass1:6:1:-1: Attached to scbus6
da6 at umass-sim1 bus 1 target 0 lun 0
da6: <Sony Sony DSC 4.50> Removable Direct Access SCSI-0 device 
da6: 1.000MB/s transfers
da6: 123MB (253696 512 byte sectors: 64H 32S/T 123C)
(da6:umass-sim1:1:0:0): Synchronize cache failed, status == 0x4, scsi status == 0x0

>How-To-Repeat:

>Fix:
I add a quirks in sys/cam/scsi/scsi_da.c



Patch attached with submission follows:

--- sys/cam/scsi/scsi_da.c.old	2009-07-23 18:19:38.489067610 +0200
+++ sys/cam/scsi/scsi_da.c	2009-07-23 15:32:17.325159108 +0200
@@ -554,6 +554,15 @@
 	{
 		{T_DIRECT, SIP_MEDIA_REMOVABLE, "Netac", "OnlyDisk*",
 		 "2000"}, /*quirks*/ DA_Q_NO_SYNC_CACHE
+	},
+	{
+		/*
+		 * Sony Cyber-shot DSC-P72
+		 * dax: <Sony Sony DSC 4.50> Removable Direct Access SCSI-0 device
+		 * PR: xxxxxx
+		 */
+		{T_DIRECT, SIP_MEDIA_REMOVABLE, "Sony", "Sony DSC", "4.50"},
+		/*quirks*/ DA_Q_NO_SYNC_CACHE|DA_Q_NO_PREVENT
 	}
 };
 


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200907231630.n6NGU1Oq071674>