From owner-freebsd-usb@FreeBSD.ORG Sun Jun 30 04:20:00 2013 Return-Path: Delivered-To: freebsd-usb@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 90654D55 for ; Sun, 30 Jun 2013 04:20:00 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 6EBF1114C for ; Sun, 30 Jun 2013 04:20:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r5U4K0pU030946 for ; Sun, 30 Jun 2013 04:20:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r5U4K0Ij030945; Sun, 30 Jun 2013 04:20:00 GMT (envelope-from gnats) Resent-Date: Sun, 30 Jun 2013 04:20:00 GMT Resent-Message-Id: <201306300420.r5U4K0Ij030945@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-usb@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Ted Nolan Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id ED3D4D25 for ; Sun, 30 Jun 2013 04:15:28 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from oldred.freebsd.org (oldred.freebsd.org [8.8.178.121]) by mx1.freebsd.org (Postfix) with ESMTP id DED811133 for ; Sun, 30 Jun 2013 04:15:28 +0000 (UTC) Received: from oldred.freebsd.org ([127.0.1.6]) by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id r5U4FSu7045801 for ; Sun, 30 Jun 2013 04:15:28 GMT (envelope-from nobody@oldred.freebsd.org) Received: (from nobody@localhost) by oldred.freebsd.org (8.14.5/8.14.5/Submit) id r5U4FSer045800; Sun, 30 Jun 2013 04:15:28 GMT (envelope-from nobody) Message-Id: <201306300415.r5U4FSer045800@oldred.freebsd.org> Date: Sun, 30 Jun 2013 04:15:28 GMT From: Ted Nolan To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: usb/180119: FreeBSD 9.1 umass driver does not correctly handle Panasonic Lumix DMC-LX7 Camera X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Jun 2013 04:20:00 -0000 >Number: 180119 >Category: usb >Synopsis: FreeBSD 9.1 umass driver does not correctly handle Panasonic Lumix DMC-LX7 Camera >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: Sun Jun 30 04:20:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Ted Nolan >Release: 9.1 AMD64 >Organization: self >Environment: FreeBSD brookside-ether 9.1-RELEASE FreeBSD 9.1-RELEASE #0 r243825: Tue Dec 4 09:23:10 UTC 2012 root@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64 >Description: The Panasonic Lumix DMC-LX11 camera has a USB connection. When connected over USB to a computer, the camera operates as a USB mass storage device allowing access to the MSDOS filesystem (containing pictures) on the camera's internal SDHC/SDXC card. This works correctly when connecting the camera to my FreeBSD8.1 i386 box over USB1.0. The following messages appear in dmesg on the 8.1 machine: =====START 8.1 messages=========================== ugen0.2: at usbus0 umass0: on usbus0 umass0: SCSI over Bulk-Only; quirks = 0x0000 umass0:2:0:-1: Attached to scbus2 (probe0:umass-sim0:0:0:0): TEST UNIT READY. CDB: 0 0 0 0 0 0 (probe0:umass-sim0:0:0:0): CAM status: SCSI Status Error (probe0:umass-sim0:0:0:0): SCSI status: Check Condition (probe0:umass-sim0:0:0:0): SCSI sense: UNIT ATTENTION asc:29,0 (Power on, reset, or bus device reset occurred) da0 at umass-sim0 bus 0 scbus2 target 0 lun 0 da0: Removable Direct Access SCSI-5 device da0: 1.000MB/s transfers da0: 15193MB (31116288 512 byte sectors: 255H 63S/T 1936C) GEOM: da0: partition 1 does not start on a track boundary. GEOM: da0: partition 1 does not end on a track boundary. ========================END 8.1 messages=========================== The camera also appears as expected in /dev (although the name shows up twice -- something I can't ever recall seeing before): ls -l /dev/da* crw-rw---- 1 root wheel 0, 128 Jun 29 23:46 /dev/da0 crw-rw---- 1 root wheel 0, 129 Jun 29 23:46 /dev/da0s1 crw-rw---- 1 root wheel 0, 129 Jun 29 23:46 /dev/da0s1 However, when connecting the same camera over USB2.0 with the same cable to my 9.1 AMD64 box, mass storage mode does not work, and the following messages show up in dmesg: ======================Start 9.1 messages============================ ugen1.3: at usbus1 umass2: on usbus1 umass2: SCSI over Bulk-Only; quirks = 0x4000 umass2:7:2:-1: Attached to scbus7 (probe0:umass-sim2:2:0:0): REPORT LUNS. CDB: a0 0 0 0 0 0 0 0 0 10 0 0 (probe0:umass-sim2:2:0:0): CAM status: SCSI Status Error (probe0:umass-sim2:2:0:0): SCSI status: Check Condition (probe0:umass-sim2:2:0:0): SCSI sense: UNIT ATTENTION asc:28,0 (Not ready to ready change, medium may have changed) (probe0:umass-sim2:2:0:0): Retrying command (per sense data) da2 at umass-sim2 bus 2 scbus7 target 0 lun 0 da2: Removable Direct Access SCSI-5 device da2: 40.000MB/s transfers da2: 12479025381376MB (133643435037949953 512 byte sectors: 255H 63S/T -432571248C) ==================================END 9.1 messages======================= Note the negative number in the "cylinder" parameter in the last line! Also, no partitions show up in /dev, just the main node for da2: crw-rw---- 1 root wheel 0, 107 Jun 20 00:31 /dev/da0 crw-rw---- 1 root wheel 0, 143 Jun 20 00:32 /dev/da1 crw-rw---- 1 root wheel 0, 145 Jun 20 00:32 /dev/da1s1 crw-rw---- 1 root wheel 0, 146 Jun 20 00:32 /dev/da1s2 crw-rw---- 1 root wheel 0, 149 Jun 20 23:43 /dev/da1s2s1 crw-rw---- 1 root wheel 0, 147 Jun 20 00:32 /dev/da1s5 crw-rw---- 1 root wheel 0, 154 Jun 29 23:59 /dev/da2 >How-To-Repeat: Connect a Panasonic Lumix DMC-LX7 camera to an AMD64 FreeBSD 9.1 system over USB2.0. (I don't know whether 9.1 on i386 works with it or not). >Fix: No fix. The only workaround is to take the SDXC card out of the camera and connect to it with a card reader. I don't like doing this because I figure the card connectors are more delicate than the camera USB connector. >Release-Note: >Audit-Trail: >Unformatted: