From owner-freebsd-usb@FreeBSD.ORG Sun May 3 20:00:08 2009 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0C084106564A for ; Sun, 3 May 2009 20:00:08 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id D8D688FC1A for ; Sun, 3 May 2009 20:00:07 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n43K078L065553 for ; Sun, 3 May 2009 20:00:07 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n43K07jB065552; Sun, 3 May 2009 20:00:07 GMT (envelope-from gnats) Resent-Date: Sun, 3 May 2009 20:00:07 GMT Resent-Message-Id: <200905032000.n43K07jB065552@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, Henri-Pierre Charles Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3EC421065673 for ; Sun, 3 May 2009 19:50:21 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 230198FC0A for ; Sun, 3 May 2009 19:50:21 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n43JoK1h075264 for ; Sun, 3 May 2009 19:50:20 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id n43JoKEs075263; Sun, 3 May 2009 19:50:20 GMT (envelope-from nobody) Message-Id: <200905031950.n43JoKEs075263@www.freebsd.org> Date: Sun, 3 May 2009 19:50:20 GMT From: Henri-Pierre Charles To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: usb/134193: System freeze on usb MP3 player insertion 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 May 2009 20:00:08 -0000 >Number: 134193 >Category: usb >Synopsis: System freeze on usb MP3 player insertion >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 May 03 20:00:07 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Henri-Pierre Charles >Release: 7-2-PRERELEASE >Organization: >Environment: FreeBSD asus.hpch.net 7.2-PRERELEASE FreeBSD 7.2-PRERELEASE #3: Sun May 3 17:23:24 CEST 2009 root@media.hpch.net:/usr/src/sys/i386/compile/GENERIC i386 >Description: Using an MP3 player (MPMAN model) the system freeze and give this message : May 2 21:31:24 media kernel: umass0: BBB reset failed, TIMEOUT May 2 21:31:24 media kernel: umass0: BBB bulk-in clear stall failed, TIMEOUT May 2 21:31:24 media kernel: umass0: BBB bulk-out clear stall failed, TIMEOUT May 2 21:31:24 media kernel: umass0: BBB reset failed, TIMEOUT It's impossible to use the system, and of course the MP3 player. >How-To-Repeat: Insert a MPMAN player. I've tried with different model (1Go and 2 Go) >Fix: Patching sys/dev/usb/usbdevs for adding name for this device and patching sys/dev/usb/umass.c for adding quirk NO_SYNCHRONIZE_CACHE fixe the problem Patch attached with submission follows: *** usbdevs 2009-04-15 05:14:26.000000000 +0200 --- usbdevs.hpc 2009-05-03 17:58:53.000000000 +0200 *************** *** 1,4 **** ! $FreeBSD: src/sys/dev/usb/usbdevs,v 1.328.2.26.2.1 2009/04/15 03:14:26 kensmith Exp $ /* $NetBSD: usbdevs,v 1.392 2004/12/29 08:38:44 imp Exp $ */ /*- --- 1,4 ---- ! $FreeBSD: src/sys/dev/usb/usbdevs,v 1.328.2.26 2009/03/23 04:06:21 thompsa Exp $ /* $NetBSD: usbdevs,v 1.392 2004/12/29 08:38:44 imp Exp $ */ /*- *************** *** 624,629 **** --- 624,630 ---- vendor LINKSYS3 0x1915 Linksys vendor QUALCOMMINC 0x19d2 Qualcomm, Incorporated vendor STELERA 0x1a8d Stelera Wireless + vendor MPMAN 0x1cae MpMan vendor DRESDENELEKTRONIK 0x1cf1 dresden elektronik vendor DLINK 0x2001 D-Link vendor PLANEX2 0x2019 Planex Communications *************** *** 663,668 **** --- 664,673 ---- * List of known products. Grouped by vendor. */ + /* MpMan products */ + product MPMAN MPF400_1 0x36d0 MPF400 Music Player 1Go + product MPMAN MPF400_2 0x25a8 MPF400 Music Player 2Go + /* 3Com products */ product 3COM HOMECONN 0x009d HomeConnect Camera product 3COM 3CREB96 0x00a0 Bluetooth USB Adapter *** umass.c 2009-04-15 05:14:26.000000000 +0200 --- umass.c.hpc 2009-05-03 17:58:33.000000000 +0200 *************** *** 24,30 **** * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * ! * $FreeBSD: src/sys/dev/usb/umass.c,v 1.160.2.7.2.1 2009/04/15 03:14:26 kensmith Exp $ * $NetBSD: umass.c,v 1.28 2000/04/02 23:46:53 augustss Exp $ */ --- 24,30 ---- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * ! * $FreeBSD: src/sys/dev/usb/umass.c,v 1.160.2.7 2009/03/23 18:13:18 thompsa Exp $ * $NetBSD: umass.c,v 1.28 2000/04/02 23:46:53 augustss Exp $ */ *************** *** 332,337 **** --- 332,341 ---- }; static struct umass_devdescr_t umass_devdescrs[] = { + { USB_VENDOR_MPMAN, PID_WILDCARD, RID_WILDCARD, + UMASS_PROTO_SCSI | UMASS_PROTO_BBB, + NO_SYNCHRONIZE_CACHE + }, { USB_VENDOR_ADDONICS2, USB_PRODUCT_ADDONICS2_CABLE_205, RID_WILDCARD, UMASS_PROTO_SCSI | UMASS_PROTO_BBB, NO_QUIRKS >Release-Note: >Audit-Trail: >Unformatted: