NetBSD Problem Report #49809

From prlw1@cam.ac.uk  Wed Apr  1 18:02:36 2015
Return-Path: <prlw1@cam.ac.uk>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 0D649A654B
	for <gnats-bugs@gnats.NetBSD.org>; Wed,  1 Apr 2015 18:02:36 +0000 (UTC)
Message-Id: <20150401164406.GC770@quark.internal.precedence.co.uk>
Date: Wed, 1 Apr 2015 17:44:06 +0100
From: Patrick Welche <prlw1@cam.ac.uk>
Reply-To: prlw1@cam.ac.uk
To: gnats-bugs@NetBSD.org
Subject: Lumix camera umass cannot attach

>Number:         49809
>Category:       kern
>Synopsis:       Lumix camera doesn't attach as umass
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    skrll
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Apr 01 18:05:02 +0000 2015
>Closed-Date:    Sun Feb 21 13:21:27 +0000 2016
>Last-Modified:  Sun Feb 21 13:21:27 +0000 2016
>Originator:     Patrick Welche
>Release:        NetBSD 7.99.8
>Organization:
	<organization of PR author (multiple lines)>
>Environment:
NetBSD-7.99.8/amd64 of Apr 1 2015
>Description:

After application of usbdevs.diff (attached below):

umass0: Panasonic (Matsushita) Lumix Camera DMC-FS45, rev 2.00/1.00, addr 6
umass0: using SCSI over Bulk-Only
umass0: Get Max Lun
umass0: Get Max Lun failed: IOERROR
umass0: unable to get Max Lun: IOERROR
umass0: WARNING: power management not supported
umass0: detached
umass_disco
umass0: detached
umass0: at uhub2 port 3 (addr 6) disconnected

After application of umass_quirks.diff:

umass0 at uhub2 port 3 configuration 1 interface 0
umass0: Panasonic (Matsushita) Lumix Camera DMC-FS45, rev 2.00/1.00, addr 6
umass0: PanasoSCSI over Bulk-Only
umass0: opening iface 0xfffffe81086ecc00 epaddr 1 for BULKOUT
umass0: opening iface 0xfffffe81086ecc00 epaddr 130 for BULKIN
umass0: umass_attach_bus: SCSI
scsibus0 at umass0: 2 targets, 1 lun per target
umass0: Attach finished
umass0: umass_scsi_cmd: at 1427903614.491611: 0:0 xs=0xfffffe810823ff00 cmd=0x12 datalen=36 (quirks=0x8000, poll=0)
umass_scsi_cmd: async dir=1, cmdlen=6 datalen=36
umass0: umass_bbb_transfer cmd=0x12
umass0: CBW 43: cmdlen=6 (0x12000000240000000000), data = 36 bytes, dir = in
umass0: start xfer buffer=0xfffffe814ceba5bc buflen=31 flags=0x0 timeout=15000
umass0: Handling BBB state 1 (BBB CBW), xfer=0xfffffe81488b58a8, IOERROR
umass0: failed to send CBW
umass0: Bulk Reset
umass0: Handling BBB state 7 (BBB Reset), xfer=0xfffffe8108181170, IOERROR
umass0: Handling BBB sed, IOERROR
umass0: Handling Boint 0x82 stall
umass0: Handling BBB state 8 (BBB bulk-in clear stall), xfer=0xfffffe81081812e0, IOERROR
umass0: BBB bulk-in clear stall failed, IOERROR
umass0: Clear endpoint 0x01 stall
umass0: Handling BBB state 9 (BBB bulk-out clear stall), xfer=0xfffffe8108181a10, IOERROR
umass0: Handling BBB clear stall failed, IOERROR
umass_scsipi_cb: at 1427903614.493434, delta=1823: xs=0xfffffe810823ff00 residue=36 status=3
umass_scsipi_cb: at 1427903614.493434: return xs->error=8, xs->xs_status=0x0 xs->resid=36
umass0: detached
scsibus0: detached
umass_disco
umass0: detached
umass0: at uhub2 port 3 (addr 6) disconnected

So it really isn't happy.


usbdevs.diff:

Index: usbdevs
===================================================================
RCS file: /cvsroot/src/sys/dev/usb/usbdevs,v
retrieving revision 1.693
diff -u -r1.693 usbdevs
--- usbdevs	17 Mar 2015 08:14:30 -0000	1.693
+++ usbdevs	1 Apr 2015 15:57:09 -0000
@@ -2475,6 +2475,7 @@
 product PANASONIC KXLCB20AN	0x0d0a	CD-R Drive KXL-CB20AN
 product PANASONIC KXLCB35AN	0x0d0e	DVD-ROM & CD-R/RW
 product PANASONIC SDCAAE	0x1b00	MultiMediaCard Adapter
+product PANASONIC DMCFS45	0x2372	Lumix Camera DMC-FS45
 product PANASONIC TYTP50P6S	0x3900	TY-TP50P6-S 50in Touch Panel

 /* PARA Industrial products */


umass_quirks.diff:

Index: umass_quirks.c
===================================================================
RCS file: /cvsroot/src/sys/dev/usb/umass_quirks.c,v
retrieving revision 1.96
diff -u -r1.96 umass_quirks.c
--- umass_quirks.c	12 Sep 2014 16:40:38 -0000	1.96
+++ umass_quirks.c	1 Apr 2015 15:57:41 -0000
@@ -171,6 +171,13 @@
 	  UMATCH_DEVCLASS_DEVSUBCLASS_DEVPROTO,
 	  NULL, NULL
 	},
+	{ { USB_VENDOR_PANASONIC, USB_PRODUCT_PANASONIC_DMCFS45 },
+	  UMASS_WPROTO_BBB, UMASS_CPROTO_UNSPEC,
+	  UMASS_QUIRK_NOGETMAXLUN,
+	  0,
+	  UMATCH_DEVCLASS_DEVSUBCLASS_DEVPROTO,
+	  NULL, NULL
+	},

 	/*
 	 * The DiskOnKey does not reject commands it doesn't recognize in a
>How-To-Repeat:
	<code/input/activities to reproduce the problem (multiple lines)>
>Fix:
	<how to correct or work around the problem, if known (multiple lines)>

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: kern-bug-people->skrll
Responsible-Changed-By: skrll@NetBSD.org
Responsible-Changed-When: Fri, 03 Jul 2015 13:13:42 +0000
Responsible-Changed-Why:
Take


State-Changed-From-To: open->closed
State-Changed-By: skrll@NetBSD.org
State-Changed-When: Sun, 21 Feb 2016 13:21:27 +0000
State-Changed-Why:
The camera was broken


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.