NetBSD Problem Report #38618

From martin@duskware.de  Fri May  9 19:45:24 2008
Return-Path: <martin@duskware.de>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by narn.NetBSD.org (Postfix) with ESMTP id 7715B63B293
	for <gnats-bugs@gnats.netbsd.org>; Fri,  9 May 2008 19:45:24 +0000 (UTC)
Message-Id: <20080509192948.EDF4063B293@narn.NetBSD.org>
Date: Fri,  9 May 2008 19:29:48 +0000 (UTC)
From: svs@ropnet.ru
Reply-To: svs@ropnet.ru
To: netbsd-bugs-owner@NetBSD.org
Subject: HP iPAQ 514 in umass mode is not usable and could panic the machine
X-Send-Pr-Version: www-1.0

>Number:         38618
>Category:       kern
>Synopsis:       HP iPAQ 514 in umass mode is not usable and could panic the machine
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    kern-bug-people
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri May 09 19:50:00 +0000 2008
>Closed-Date:    Tue Dec 08 22:02:05 +0000 2015
>Last-Modified:  Tue Dec 08 22:02:05 +0000 2015
>Originator:     Sergey Svishchev
>Release:        4.0
>Organization:
>Environment:
i386
>Description:
HP iPAQ 514 is a Windows Mobile 6 phone with a microSD card slot and mini-USB port.  
It can be used in ActiveSync mode or mass storage mode.

ehci0 at pci0 dev 29 function 7: Intel 82801EB/ER USB EHCI Controller (rev. 0x02)
ehci0: interrupting at irq 10
ehci0: BIOS has given up ownership
ehci0: EHCI version 1.0
ehci0: companion controllers, 2 ports each: uhci0 uhci1 uhci2 uhci3
usb4 at ehci0: USB revision 2.0

ehci0: handing over full speed device on port 5 to uhci2
uhub4: port 5, device disappeared after reset
umass2 at uhub2 port 1 configuration 1 interface 0
umass2: Hewlett Packard product 0xce04, rev 2.00/0.00, addr 2
umass2: using SCSI over Bulk-Only
scsibus2 at umass2: 2 targets, 1 lun per target
sd1 at scsibus2 target 0 lun 0: <HP iPAQ, , > disk removable
<long pause>
sd1: fabricating a geometry
sd1: 486 MB, 486 cyl, 64 head, 32 sec, 512 bytes/sect x 996352 sectors

If I pull out USB cable during long pause, machine panics.  If I wait and then run fdisk, disklabel (etc.), these commands sleep forever in xscmd, dkoplk or getxs state.
>How-To-Repeat:

>Fix:

>Release-Note:

>Audit-Trail:
From: Sergey Svishchev <svs@ropnet.ru>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: kern/38618
Date: Sat, 11 Oct 2008 17:49:13 +0400

 Still happens in 4.99.72 (amd64).  Proposed fix:

 --- usb/umass_quirks.c	11 Dec 2005 12:24:01 -0000	1.70
 +++ usb/umass_quirks.c	11 Oct 2008 13:44:20 -0000
 @@ -194,6 +194,14 @@
   	  UMATCH_DEVCLASS_DEVSUBCLASS_DEVPROTO,
   	  NULL, NULL
   	},
 +	/* do the same for HP iPAQ 514 -- PR 38618 */
 +	{ { USB_VENDOR_HP, 0xce04 },
 +	  UMASS_WPROTO_UNSPEC, UMASS_CPROTO_UNSPEC,
 +	  0,
 +	  PQUIRK_NOBIGMODESENSE | PQUIRK_NOSYNCCACHE,
 +	  UMATCH_DEVCLASS_DEVSUBCLASS_DEVPROTO,
 +	  NULL, NULL
 +	},
   };

   const struct umass_quirk *

 -- 
 Sergey Svishchev

State-Changed-From-To: open->closed
State-Changed-By: shattered@NetBSD.org
State-Changed-When: Tue, 08 Dec 2015 22:02:05 +0000
State-Changed-Why:
May still be broken, but I no longer have the hardware.


>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-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.