From owner-freebsd-usb@FreeBSD.ORG Sun Jan 3 22:51:21 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EBF721065693 for ; Sun, 3 Jan 2010 22:51:21 +0000 (UTC) (envelope-from doverosx@gmail.com) Received: from qw-out-2122.google.com (qw-out-2122.google.com [74.125.92.25]) by mx1.freebsd.org (Postfix) with ESMTP id 9ADDA8FC08 for ; Sun, 3 Jan 2010 22:51:21 +0000 (UTC) Received: by qw-out-2122.google.com with SMTP id 9so3309641qwb.7 for ; Sun, 03 Jan 2010 14:51:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=sDKts7sePjeWF5WN8Mac8EmWXfNdwtERQyNNnVvyTEI=; b=nbx0f+U9u3RJ98sUXYl87av5kX9hUZ/O3tostKOEh7o7vcDOiHk5/U9d5rqQGlBUuv Nh8oWRf2fMPD9aCSiglriNmhYcP0wxqzN+Y82Idl9Rr6NboQimMA9z/zEj7M6OdKWXQ/ 3orXdVVe28srG+siDcUQmvFJhutvtZoTP6AB8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=m4DVxbIubKzp8aypoD0DbkwxPvgw1o30DSG83JEsEtni1IbfhEk4UEnNbt0/0d2L3r 0MyKSeG+VtrxRBU7weyT9DqAyhPcm9LSX7ihHqe/QSQI6HtW1E1TfJN4IyONPN7Ppfic 6FWELi9+t6EFAAaL0C1emZAwIEFpNH2oRpUlw= Received: by 10.224.79.234 with SMTP id q42mr10757045qak.364.1262557556497; Sun, 03 Jan 2010 14:25:56 -0800 (PST) Received: from ?192.168.1.100? (CPE002369161858-CM001868521d34.cpe.net.cable.rogers.com [99.241.8.135]) by mx.google.com with ESMTPS id 21sm15872332qyk.8.2010.01.03.14.25.53 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 03 Jan 2010 14:25:55 -0800 (PST) Message-ID: <4B41196F.4020203@gmail.com> Date: Sun, 03 Jan 2010 17:25:51 -0500 From: "doverosx@gmail.com" User-Agent: Thunderbird 2.0.0.23 (X11/20091225) MIME-Version: 1.0 To: Hans Petter Selasky References: <201001032115.o03LFujI071243@www.freebsd.org> <201001032243.38734.hselasky@c2i.net> In-Reply-To: <201001032243.38734.hselasky@c2i.net> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-usb@freebsd.org Subject: Re: usb/142276: Cache Synchronization Error with Olympus FE210 Camera X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 03 Jan 2010 22:51:22 -0000 Hans Petter Selasky wrote: > On Sunday 03 January 2010 22:15:56 Brodey Dover wrote: > >>> Number: 142276 >>> Category: usb >>> Synopsis: Cache Synchronization Error with Olympus FE210 Camera >>> Confidential: no >>> Severity: serious >>> Priority: low >>> Responsible: freebsd-usb >>> State: open >>> Quarter: >>> Keywords: >>> Date-Required: >>> Class: sw-bug >>> Submitter-Id: current-users >>> Arrival-Date: Sun Jan 03 21:20:01 UTC 2010 >>> Closed-Date: >>> Last-Modified: >>> Originator: Brodey Dover >>> Release: FreeBSD 8- i386 - RELEASE - p1 >>> Organization: >>> >> None. >> >> >>> Environment: >>> >> FreeBSD pcbsd 8.0-RELEASE-p1 FreeBSD 8.0-RELEASE-p1 #3: Fri Dec 11 13:33:42 >> PST 2009 >> root@build8x32.pcbsd.org:/usr/obj/usr/pcbsd-build80/fbsd-source/8.0-src/sy >> s/PCBSD i386 >> >> >>> Description: >>> >> When plugging in the camera the system message buffer outputs many lines >> about cache synchronization issues. When adding, deleting or changing >> files stored on the camera more errors will display about cache >> synchronization. >> >> Furthermore, while mounting the camera X/KDE become unresponsive to mouse >> and keyboard inputs. If music is playing, it will either stop completely >> or squeal (excessive interrupts). >> >> Here is output from dmesg that is relevant to the issue: >> >> ugen0.4: at usbus0 (disconnected) >> umass0: at uhub0, port 6, addr 4 (disconnected) >> (da0:umass-sim0:0:0:0): lost device >> (da0:umass-sim0:0:0:0): removing device entry >> ugen0.4: at usbus0 >> umass0: on usbus0 >> umass0: SCSI over Bulk-Only; quirks = 0x0000 >> umass0:3:0:-1: Attached to scbus3 >> da0 at umass-sim0 bus 0 target 0 lun 0 >> da0: Removable Direct Access SCSI-0 device >> da0: 1.000MB/s transfers >> da0: 1999MB (4095630 512 byte sectors: 255H 63S/T 254C) >> (da0:umass-sim0:0:0:0): Synchronize cache failed, status == 0x4, scsi >> status == 0x0 (da0:umass-sim0:0:0:0): Synchronize cache failed, status == >> 0x4, scsi status == 0x0 GEOM: da0: partition 1 does not start on a track >> boundary. >> GEOM: da0: partition 1 does not end on a track boundary. >> (da0:umass-sim0:0:0:0): Synchronize cache failed, status == 0x4, scsi >> status == 0x0 (da0:umass-sim0:0:0:0): Synchronize cache failed, status == >> 0x4, scsi status == 0x0 (da0:umass-sim0:0:0:0): Synchronize cache failed, >> status == 0x4, scsi status == 0x0 (da0:umass-sim0:0:0:0): Synchronize >> cache failed, status == 0x4, scsi status == 0x0 (da0:umass-sim0:0:0:0): >> Synchronize cache failed, status == 0x4, scsi status == 0x0 >> (da0:umass-sim0:0:0:0): Synchronize cache failed, status == 0x4, scsi >> status == 0x0 (da0:umass-sim0:0:0:0): Synchronize cache failed, status == >> 0x4, scsi status == 0x0 (da0:umass-sim0:0:0:0): Synchronize cache failed, >> status == 0x4, scsi status == 0x0 (da0:umass-sim0:0:0:0): Synchronize >> cache failed, status == 0x4, scsi status == 0x0 (da0:umass-sim0:0:0:0): >> Synchronize cache failed, status == 0x4, scsi status == 0x0 >> (da0:umass-sim0:0:0:0): Synchronize cache failed, status == 0x4, scsi >> status == 0x0 (da0:umass-sim0:0:0:0): Synchronize cache failed, status == >> 0x4, scsi status == 0x0 (da0:umass-sim0:0:0:0): Synchronize cache failed, >> status == 0x4, scsi status == 0x0 (da0:umass-sim0:0:0:0): Synchronize >> cache failed, status == 0x4, scsi status == 0x0 (da0:umass-sim0:0:0:0): >> Synchronize cache failed, status == 0x4, scsi status == 0x0 >> (da0:umass-sim0:0:0:0): Synchronize cache failed, status == 0x4, scsi >> status == 0x0 (da0:umass-sim0:0:0:0): Synchronize cache failed, status == >> 0x4, scsi status == 0x0 (da0:umass-sim0:0:0:0): Synchronize cache failed, >> status == 0x4, scsi status == 0x0 (da0:umass-sim0:0:0:0): Synchronize >> cache failed, status == 0x4, scsi status == 0x0 (da0:umass-sim0:0:0:0): >> Synchronize cache failed, status == 0x4, scsi status == 0x0 >> (da0:umass-sim0:0:0:0): Synchronize cache failed, status == 0x4, scsi >> status == 0x0 (da0:umass-sim0:0:0:0): Synchronize cache failed, status == >> 0x4, scsi status == 0x0 (da0:umass-sim0:0:0:0): Synchronize cache failed, >> status == 0x4, scsi status == 0x0 (da0:umass-sim0:0:0:0): Synchronize >> cache failed, status == 0x4, scsi status == 0x0 (da0:umass-sim0:0:0:0): >> Synchronize cache failed, status == 0x4, scsi status == 0x0 >> (da0:umass-sim0:0:0:0): Synchronize cache failed, status == 0x4, scsi >> status == 0x0 (da0:umass-sim0:0:0:0): Synchronize cache failed, status == >> 0x4, scsi status == 0x0 (da0:umass-sim0:0:0:0): Synchronize cache failed, >> status == 0x4, scsi status == 0x0 (da0:umass-sim0:0:0:0): Synchronize >> cache failed, status == 0x4, scsi status == 0x0 (da0:umass-sim0:0:0:0): >> Synchronize cache failed, status == 0x4, scsi status == 0x0 >> (da0:umass-sim0:0:0:0): Synchronize cache failed, status == 0x4, scsi >> status == 0x0 (da0:umass-sim0:0:0:0): Synchronize cache failed, status == >> 0x4, scsi status == 0x0 (da0:umass-sim0:0:0:0): Synchronize cache failed, >> status == 0x4, scsi status == 0x0 (da0:umass-sim0:0:0:0): Synchronize >> cache failed, status == 0x4, scsi status == 0x0 (da0:umass-sim0:0:0:0): >> Synchronize cache failed, status == 0x4, scsi status == 0x0 >> (da0:umass-sim0:0:0:0): Synchronize cache failed, status == 0x4, scsi >> status == 0x0 (da0:umass-sim0:0:0:0): Synchronize cache failed, status == >> 0x4, scsi status == 0x0 (da0:umass-sim0:0:0:0): Synchronize cache failed, >> status == 0x4, scsi status == 0x0 (da0:umass-sim0:0:0:0): Synchronize >> cache failed, status == 0x4, scsi status == 0x0 (da0:umass-sim0:0:0:0): >> Synchronize cache failed, status == 0x4, scsi status == 0x0 >> (da0:umass-sim0:0:0:0): Synchronize cache failed, status == 0x4, scsi >> status == 0x0 (da0:umass-sim0:0:0:0): Synchronize cache failed, status == >> 0x4, scsi status == 0x0 (da0:umass-sim0:0:0:0): Synchronize cache failed, >> status == 0x4, scsi status == 0x0 (da0:umass-sim0:0:0:0): Synchronize >> cache failed, status == 0x4, scsi status == 0x0 (da0:umass-sim0:0:0:0): >> Synchronize cache failed, status == 0x4, scsi status == 0x0 >> (da0:umass-sim0:0:0:0): Synchronize cache failed, status == 0x4, scsi >> status == 0x0 (da0:umass-sim0:0:0:0): Synchronize cache failed, status == >> 0x4, scsi status == 0x0 (da0:umass-sim0:0:0:0): Synchronize cache failed, >> status == 0x4, scsi status == 0x0 (da0:umass-sim0:0:0:0): Synchronize >> cache failed, status == 0x4, scsi status == 0x0 (da0:umass-sim0:0:0:0): >> Synchronize cache failed, status == 0x4, scsi status == 0x0 >> (da0:umass-sim0:0:0:0): Synchronize cache failed, status == 0x4, scsi >> status == 0x0 (da0:umass-sim0:0:0:0): Synchronize cache failed, status == >> 0x4, scsi status == 0x0 ugen0.4: at usbus0 (disconnected) >> umass0: at uhub0, port 6, addr 4 (disconnected) >> (da0:umass-sim0:0:0:0): lost device >> (da0:umass-sim0:0:0:0): removing device entry >> ugen0.4: at usbus0 >> umass0: on usbus0 >> umass0: SCSI over Bulk-Only; quirks = 0x0000 >> umass0:3:0:-1: Attached to scbus3 >> da0 at umass-sim0 bus 0 target 0 lun 0 >> da0: Removable Direct Access SCSI-0 device >> da0: 1.000MB/s transfers >> da0: 1999MB (4095630 512 byte sectors: 255H 63S/T 254C) >> (da0:umass-sim0:0:0:0): Synchronize cache failed, status == 0x4, scsi >> status == 0x0 (da0:umass-sim0:0:0:0): Synchronize cache failed, status == >> 0x4, scsi status == 0x0 (da0:umass-sim0:0:0:0): Synchronize cache failed, >> status == 0x4, scsi status == 0x0 (da0:umass-sim0:0:0:0): Synchronize >> cache failed, status == 0x4, scsi status == 0x0 (da0:umass-sim0:0:0:0): >> Synchronize cache failed, status == 0x4, scsi status == 0x0 >> (da0:umass-sim0:0:0:0): Synchronize cache failed, status == 0x4, scsi >> status == 0x0 (da0:umass-sim0:0:0:0): Synchronize cache failed, status == >> 0x4, scsi status == 0x0 (da0:umass-sim0:0:0:0): Synchronize cache failed, >> status == 0x4, scsi status == 0x0 (da0:umass-sim0:0:0:0): Synchronize >> cache failed, status == 0x4, scsi status == 0x0 (da0:umass-sim0:0:0:0): >> Synchronize cache failed, status == 0x4, scsi status == 0x0 >> (da0:umass-sim0:0:0:0): Synchronize cache failed, status == 0x4, scsi >> status == 0x0 (da0:umass-sim0:0:0:0): Synchronize cache failed, status == >> 0x4, scsi status == 0x0 (da0:umass-sim0:0:0:0): Synchronize cache failed, >> status == 0x4, scsi status == 0x0 (da0:umass-sim0:0:0:0): Synchronize >> cache failed, status == 0x4, scsi status == 0x0 (da0:umass-sim0:0:0:0): >> Synchronize cache failed, status == 0x4, scsi status == 0x0 >> (da0:umass-sim0:0:0:0): Synchronize cache failed, status == 0x4, scsi >> status == 0x0 (da0:umass-sim0:0:0:0): Synchronize cache failed, status == >> 0x4, scsi status == 0x0 (da0:umass-sim0:0:0:0): Synchronize cache failed, >> status == 0x4, scsi status == 0x0 (da0:umass-sim0:0:0:0): Synchronize >> cache failed, status == 0x4, scsi status == 0x0 (da0:umass-sim0:0:0:0): >> Synchronize cache failed, status == 0x4, scsi status == 0x0 >> (da0:umass-sim0:0:0:0): Synchronize cache failed, status == 0x4, scsi >> status == 0x0 (da0:umass-sim0:0:0:0): Synchronize cache failed, status == >> 0x4, scsi status == 0x0 (da0:umass-sim0:0:0:0): Synchronize cache failed, >> status == 0x4, scsi status == 0x0 (da0:umass-sim0:0:0:0): Synchronize >> cache failed, status == 0x4, scsi status == 0x0 (da0:umass-sim0:0:0:0): >> Synchronize cache failed, status == 0x4, scsi status == 0x0 >> (da0:umass-sim0:0:0:0): Synchronize cache failed, status == 0x4, scsi >> status == 0x0 (da0:umass-sim0:0:0:0): Synchronize cache failed, status == >> 0x4, scsi status == 0x0 (da0:umass-sim0:0:0:0): Synchronize cache failed, >> status == 0x4, scsi status == 0x0 (da0:umass-sim0:0:0:0): Synchronize >> cache failed, status == 0x4, scsi status == 0x0 (da0:umass-sim0:0:0:0): >> Synchronize cache failed, status == 0x4, scsi status == 0x0 >> (da0:umass-sim0:0:0:0): Synchronize cache failed, status == 0x4, scsi >> status == 0x0 (da0:umass-sim0:0:0:0): Synchronize cache failed, status == >> 0x4, scsi status == 0x0 (da0:umass-sim0:0:0:0): Synchronize cache failed, >> status == 0x4, scsi status == 0x0 (da0:umass-sim0:0:0:0): Synchronize >> cache failed, status == 0x4, scsi status == 0x0 (da0:umass-sim0:0:0:0): >> Synchronize cache failed, status == 0x4, scsi status == 0x0 >> (da0:umass-sim0:0:0:0): Synchronize cache failed, status == 0x4, scsi >> status == 0x0 (da0:umass-sim0:0:0:0): Synchronize cache failed, status == >> 0x4, scsi status == 0x0 (da0:umass-sim0:0:0:0): Synchronize cache failed, >> status == 0x4, scsi status == 0x0 ugen0.4: at usbus0 >> (disconnected) >> umass0: at uhub0, port 6, addr 4 (disconnected) >> (da0:umass-sim0:0:0:0): lost device >> (da0:umass-sim0:0:0:0): removing device entry >> ugen0.4: at usbus0 >> umass0: on usbus0 >> umass0: SCSI over Bulk-Only; quirks = 0x0000 >> umass0:3:0:-1: Attached to scbus3 >> da0 at umass-sim0 bus 0 target 0 lun 0 >> da0: Removable Direct Access SCSI-0 device >> da0: 1.000MB/s transfers >> da0: 1999MB (4095630 512 byte sectors: 255H 63S/T 254C) >> (da0:umass-sim0:0:0:0): Synchronize cache failed, status == 0x4, scsi >> status == 0x0 (da0:umass-sim0:0:0:0): Synchronize cache failed, status == >> 0x4, scsi status == 0x0 (da0:umass-sim0:0:0:0): Synchronize cache failed, >> status == 0x4, scsi status == 0x0 (da0:umass-sim0:0:0:0): Synchronize >> cache failed, status == 0x4, scsi status == 0x0 (da0:umass-sim0:0:0:0): >> Synchronize cache failed, status == 0x4, scsi status == 0x0 >> (da0:umass-sim0:0:0:0): Synchronize cache failed, status == 0x4, scsi >> status == 0x0 (da0:umass-sim0:0:0:0): Synchronize cache failed, status == >> 0x4, scsi status == 0x0 (da0:umass-sim0:0:0:0): Synchronize cache failed, >> status == 0x4, scsi status == 0x0 (da0:umass-sim0:0:0:0): Synchronize >> cache failed, status == 0x4, scsi status == 0x0 (da0:umass-sim0:0:0:0): >> Synchronize cache failed, status == 0x4, scsi status == 0x0 >> (da0:umass-sim0:0:0:0): Synchronize cache failed, status == 0x4, scsi >> status == 0x0 (da0:umass-sim0:0:0:0): Synchronize cache failed, status == >> 0x4, scsi status == 0x0 (da0:umass-sim0:0:0:0): Synchronize cache failed, >> status == 0x4, scsi status == 0x0 (da0:umass-sim0:0:0:0): Synchronize >> cache failed, status == 0x4, scsi status == 0x0 (da0:umass-sim0:0:0:0): >> Synchronize cache failed, status == 0x4, scsi status == 0x0 >> (da0:umass-sim0:0:0:0): Synchronize cache failed, status == 0x4, scsi >> status == 0x0 (da0:umass-sim0:0:0:0): Synchronize cache failed, status == >> 0x4, scsi status == 0x0 (da0:umass-sim0:0:0:0): Synchronize cache failed, >> status == 0x4, scsi status == 0x0 (da0:umass-sim0:0:0:0): Synchronize >> cache failed, status == 0x4, scsi status == 0x0 (da0:umass-sim0:0:0:0): >> Synchronize cache failed, status == 0x4, scsi status == 0x0 >> (da0:umass-sim0:0:0:0): Synchronize cache failed, status == 0x4, scsi >> status == 0x0 (da0:umass-sim0:0:0:0): Synchronize cache failed, status == >> 0x4, scsi status == 0x0 (da0:umass-sim0:0:0:0): Synchronize cache failed, >> status == 0x4, scsi status == 0x0 (da0:umass-sim0:0:0:0): Synchronize >> cache failed, status == 0x4, scsi status == 0x0 (da0:umass-sim0:0:0:0): >> Synchronize cache failed, status == 0x4, scsi status == 0x0 pid 17259 >> (gdb), uid 1001: exited on signal 6 >> (da0:umass-sim0:0:0:0): Synchronize cache failed, status == 0x4, scsi >> status == 0x0 (da0:umass-sim0:0:0:0): Synchronize cache failed, status == >> 0x4, scsi status == 0x0 (da0:umass-sim0:0:0:0): Synchronize cache failed, >> status == 0x4, scsi status == 0x0 (da0:umass-sim0:0:0:0): Synchronize >> cache failed, status == 0x4, scsi status == 0x0 (da0:umass-sim0:0:0:0): >> Synchronize cache failed, status == 0x4, scsi status == 0x0 >> (da0:umass-sim0:0:0:0): Synchronize cache failed, status == 0x4, scsi >> status == 0x0 (da0:umass-sim0:0:0:0): Synchronize cache failed, status == >> 0x4, scsi status == 0x0 (da0:umass-sim0:0:0:0): Synchronize cache failed, >> status == 0x4, scsi status == 0x0 (da0:umass-sim0:0:0:0): Synchronize >> cache failed, status == 0x4, scsi status == 0x0 (da0:umass-sim0:0:0:0): >> Synchronize cache failed, status == 0x4, scsi status == 0x0 >> (da0:umass-sim0:0:0:0): Synchronize cache failed, status == 0x4, scsi >> status == 0x0 (da0:umass-sim0:0:0:0): Synchronize cache failed, status == >> 0x4, scsi status == 0x0 (da0:umass-sim0:0:0:0): Synchronize cache failed, >> status == 0x4, scsi status == 0x0 ugen0.4: at usbus0 >> (disconnected) >> umass0: at uhub0, port 6, addr 4 (disconnected) >> (da0:umass-sim0:0:0:0): lost device >> (da0:umass-sim0:0:0:0): removing device entry >> >> Unfortunately I don't have another FE-210 but I have tried other Olympus >> cameras, Nikons and Canons and even other flash but none seem to exhibit >> this issue. Also, changing the SD card also doesn't "fix" the issue and >> the SD card in the FE-210 used by another camera also warrants the same >> errors and usability issues. >> >> >>> How-To-Repeat: >>> >> Plug in an FE-210 Olympus camera. >> >> >>> Fix: >>> >> None really. >> >> >>> Release-Note: >>> Audit-Trail: >>> Unformatted: >>> > > Hi, > > There should be a quirks table in "sys/dev/usb/storage/umass.c" . > > If you are running 8-stable, the quirks table has been moved to > "sys/dev/usb/quirk/usb_quirk.c" and is settable via usbconfig. > > See the the add_quirk_vplh command for usbconfig. > > --HPS > > I currently have these quirks to add: UQ_AUDIO_SWAP_LR UQ_AU_INP_ASYNC UQ_AU_NO_FRAC UQ_AU_NO_XU UQ_BAD_ADC UQ_BAD_AUDIO UQ_BROKEN_BIDIR UQ_BUS_POWERED UQ_HID_IGNORE UQ_KBD_IGNORE UQ_MS_BAD_CLASS UQ_MS_LEADING_BYTE UQ_MS_REVZ UQ_NO_STRINGS UQ_OPEN_CLEARSTALL UQ_POWER_CLAIM UQ_SPUR_BUT_UP UQ_SWAP_UNICODE UQ_CFG_INDEX_1 UQ_CFG_INDEX_2 UQ_CFG_INDEX_3 UQ_CFG_INDEX_4 UQ_CFG_INDEX_0 and this is the line that I have setup now: usbconfig -u 0 -a 4 -i 0 add_dev_quirk_vplh 0x07b4 0x0109 0x0000 0xffff Thanks for the response Hans!